@@ -125,12 +125,13 @@ type MitigationListResponseMitigation struct {
125125 ID string `json:"id" api:"required"`
126126 // Date when the mitigation will become active. Time in RFC 3339 format
127127 // (https://www.rfc-editor.org/rfc/rfc3339.html)
128- EffectiveDate string `json:"effective_date" api:"required"`
129- EntityID string `json:"entity_id" api:"required"`
130- EntityType MitigationListResponseMitigationsEntityType `json:"entity_type" api:"required"`
128+ EffectiveDate string `json:"effective_date" api:"required"`
129+ EntityID string `json:"entity_id" api:"required"`
130+ // The type of entity targeted by a mitigation.
131+ EntityType MitigationListResponseMitigationsEntityType `json:"entity_type" api:"required"`
131132 // The status of a mitigation
132133 Status MitigationListResponseMitigationsStatus `json:"status" api:"required"`
133- // The type of mitigation
134+ // The type of mitigation applied to a reported entity.
134135 Type MitigationListResponseMitigationsType `json:"type" api:"required"`
135136 JSON mitigationListResponseMitigationJSON `json:"-"`
136137}
@@ -156,6 +157,7 @@ func (r mitigationListResponseMitigationJSON) RawJSON() string {
156157 return r .raw
157158}
158159
160+ // The type of entity targeted by a mitigation.
159161type MitigationListResponseMitigationsEntityType string
160162
161163const (
@@ -191,22 +193,34 @@ func (r MitigationListResponseMitigationsStatus) IsKnown() bool {
191193 return false
192194}
193195
194- // The type of mitigation
196+ // The type of mitigation applied to a reported entity.
195197type MitigationListResponseMitigationsType string
196198
197199const (
198- MitigationListResponseMitigationsTypeLegalBlock MitigationListResponseMitigationsType = "legal_block"
199- MitigationListResponseMitigationsTypeMisleadingInterstitial MitigationListResponseMitigationsType = "misleading_interstitial"
200- MitigationListResponseMitigationsTypePhishingInterstitial MitigationListResponseMitigationsType = "phishing_interstitial"
201- MitigationListResponseMitigationsTypeNetworkBlock MitigationListResponseMitigationsType = "network_block"
202- MitigationListResponseMitigationsTypeRateLimitCache MitigationListResponseMitigationsType = "rate_limit_cache"
203- MitigationListResponseMitigationsTypeAccountSuspend MitigationListResponseMitigationsType = "account_suspend"
204- MitigationListResponseMitigationsTypeRedirectVideoStream MitigationListResponseMitigationsType = "redirect_video_stream"
200+ MitigationListResponseMitigationsTypeAccountSuspend MitigationListResponseMitigationsType = "account_suspend"
201+ MitigationListResponseMitigationsTypeCopyrightInterstitial MitigationListResponseMitigationsType = "copyright_interstitial"
202+ MitigationListResponseMitigationsTypeGeoBlock MitigationListResponseMitigationsType = "geo_block"
203+ MitigationListResponseMitigationsTypeLegalBlock MitigationListResponseMitigationsType = "legal_block"
204+ MitigationListResponseMitigationsTypeMalwareInterstitial MitigationListResponseMitigationsType = "malware_interstitial"
205+ MitigationListResponseMitigationsTypeMisleadingInterstitial MitigationListResponseMitigationsType = "misleading_interstitial"
206+ MitigationListResponseMitigationsTypeNetworkBlock MitigationListResponseMitigationsType = "network_block"
207+ MitigationListResponseMitigationsTypePhishingInterstitial MitigationListResponseMitigationsType = "phishing_interstitial"
208+ MitigationListResponseMitigationsTypePlayfairiteEnforce MitigationListResponseMitigationsType = "playfairite_enforce"
209+ MitigationListResponseMitigationsTypeR2TakedownAccount MitigationListResponseMitigationsType = "r2_takedown_account"
210+ MitigationListResponseMitigationsTypeR2TakedownBucket MitigationListResponseMitigationsType = "r2_takedown_bucket"
211+ MitigationListResponseMitigationsTypeR2TakedownObject MitigationListResponseMitigationsType = "r2_takedown_object"
212+ MitigationListResponseMitigationsTypeRateLimitCache MitigationListResponseMitigationsType = "rate_limit_cache"
213+ MitigationListResponseMitigationsTypeRedirectVideoStream MitigationListResponseMitigationsType = "redirect_video_stream"
214+ MitigationListResponseMitigationsTypeRegistrarFreeze MitigationListResponseMitigationsType = "registrar_freeze"
215+ MitigationListResponseMitigationsTypeRegistrarParking MitigationListResponseMitigationsType = "registrar_parking"
216+ MitigationListResponseMitigationsTypeStreamBlockAccount MitigationListResponseMitigationsType = "stream_block_account"
217+ MitigationListResponseMitigationsTypeUserSuspend MitigationListResponseMitigationsType = "user_suspend"
218+ MitigationListResponseMitigationsTypeWorkersTakedownByZoneID MitigationListResponseMitigationsType = "workers_takedown_by_zone_id"
205219)
206220
207221func (r MitigationListResponseMitigationsType ) IsKnown () bool {
208222 switch r {
209- case MitigationListResponseMitigationsTypeLegalBlock , MitigationListResponseMitigationsTypeMisleadingInterstitial , MitigationListResponseMitigationsTypePhishingInterstitial , MitigationListResponseMitigationsTypeNetworkBlock , MitigationListResponseMitigationsTypeRateLimitCache , MitigationListResponseMitigationsTypeAccountSuspend , MitigationListResponseMitigationsTypeRedirectVideoStream :
223+ case MitigationListResponseMitigationsTypeAccountSuspend , MitigationListResponseMitigationsTypeCopyrightInterstitial , MitigationListResponseMitigationsTypeGeoBlock , MitigationListResponseMitigationsTypeLegalBlock , MitigationListResponseMitigationsTypeMalwareInterstitial , MitigationListResponseMitigationsTypeMisleadingInterstitial , MitigationListResponseMitigationsTypeNetworkBlock , MitigationListResponseMitigationsTypePhishingInterstitial , MitigationListResponseMitigationsTypePlayfairiteEnforce , MitigationListResponseMitigationsTypeR2TakedownAccount , MitigationListResponseMitigationsTypeR2TakedownBucket , MitigationListResponseMitigationsTypeR2TakedownObject , MitigationListResponseMitigationsTypeRateLimitCache , MitigationListResponseMitigationsTypeRedirectVideoStream , MitigationListResponseMitigationsTypeRegistrarFreeze , MitigationListResponseMitigationsTypeRegistrarParking , MitigationListResponseMitigationsTypeStreamBlockAccount , MitigationListResponseMitigationsTypeUserSuspend , MitigationListResponseMitigationsTypeWorkersTakedownByZoneID :
210224 return true
211225 }
212226 return false
@@ -217,12 +231,13 @@ type MitigationReviewResponse struct {
217231 ID string `json:"id" api:"required"`
218232 // Date when the mitigation will become active. Time in RFC 3339 format
219233 // (https://www.rfc-editor.org/rfc/rfc3339.html)
220- EffectiveDate string `json:"effective_date" api:"required"`
221- EntityID string `json:"entity_id" api:"required"`
222- EntityType MitigationReviewResponseEntityType `json:"entity_type" api:"required"`
234+ EffectiveDate string `json:"effective_date" api:"required"`
235+ EntityID string `json:"entity_id" api:"required"`
236+ // The type of entity targeted by a mitigation.
237+ EntityType MitigationReviewResponseEntityType `json:"entity_type" api:"required"`
223238 // The status of a mitigation
224239 Status MitigationReviewResponseStatus `json:"status" api:"required"`
225- // The type of mitigation
240+ // The type of mitigation applied to a reported entity.
226241 Type MitigationReviewResponseType `json:"type" api:"required"`
227242 JSON mitigationReviewResponseJSON `json:"-"`
228243}
@@ -248,6 +263,7 @@ func (r mitigationReviewResponseJSON) RawJSON() string {
248263 return r .raw
249264}
250265
266+ // The type of entity targeted by a mitigation.
251267type MitigationReviewResponseEntityType string
252268
253269const (
@@ -283,22 +299,34 @@ func (r MitigationReviewResponseStatus) IsKnown() bool {
283299 return false
284300}
285301
286- // The type of mitigation
302+ // The type of mitigation applied to a reported entity.
287303type MitigationReviewResponseType string
288304
289305const (
290- MitigationReviewResponseTypeLegalBlock MitigationReviewResponseType = "legal_block"
291- MitigationReviewResponseTypeMisleadingInterstitial MitigationReviewResponseType = "misleading_interstitial"
292- MitigationReviewResponseTypePhishingInterstitial MitigationReviewResponseType = "phishing_interstitial"
293- MitigationReviewResponseTypeNetworkBlock MitigationReviewResponseType = "network_block"
294- MitigationReviewResponseTypeRateLimitCache MitigationReviewResponseType = "rate_limit_cache"
295- MitigationReviewResponseTypeAccountSuspend MitigationReviewResponseType = "account_suspend"
296- MitigationReviewResponseTypeRedirectVideoStream MitigationReviewResponseType = "redirect_video_stream"
306+ MitigationReviewResponseTypeAccountSuspend MitigationReviewResponseType = "account_suspend"
307+ MitigationReviewResponseTypeCopyrightInterstitial MitigationReviewResponseType = "copyright_interstitial"
308+ MitigationReviewResponseTypeGeoBlock MitigationReviewResponseType = "geo_block"
309+ MitigationReviewResponseTypeLegalBlock MitigationReviewResponseType = "legal_block"
310+ MitigationReviewResponseTypeMalwareInterstitial MitigationReviewResponseType = "malware_interstitial"
311+ MitigationReviewResponseTypeMisleadingInterstitial MitigationReviewResponseType = "misleading_interstitial"
312+ MitigationReviewResponseTypeNetworkBlock MitigationReviewResponseType = "network_block"
313+ MitigationReviewResponseTypePhishingInterstitial MitigationReviewResponseType = "phishing_interstitial"
314+ MitigationReviewResponseTypePlayfairiteEnforce MitigationReviewResponseType = "playfairite_enforce"
315+ MitigationReviewResponseTypeR2TakedownAccount MitigationReviewResponseType = "r2_takedown_account"
316+ MitigationReviewResponseTypeR2TakedownBucket MitigationReviewResponseType = "r2_takedown_bucket"
317+ MitigationReviewResponseTypeR2TakedownObject MitigationReviewResponseType = "r2_takedown_object"
318+ MitigationReviewResponseTypeRateLimitCache MitigationReviewResponseType = "rate_limit_cache"
319+ MitigationReviewResponseTypeRedirectVideoStream MitigationReviewResponseType = "redirect_video_stream"
320+ MitigationReviewResponseTypeRegistrarFreeze MitigationReviewResponseType = "registrar_freeze"
321+ MitigationReviewResponseTypeRegistrarParking MitigationReviewResponseType = "registrar_parking"
322+ MitigationReviewResponseTypeStreamBlockAccount MitigationReviewResponseType = "stream_block_account"
323+ MitigationReviewResponseTypeUserSuspend MitigationReviewResponseType = "user_suspend"
324+ MitigationReviewResponseTypeWorkersTakedownByZoneID MitigationReviewResponseType = "workers_takedown_by_zone_id"
297325)
298326
299327func (r MitigationReviewResponseType ) IsKnown () bool {
300328 switch r {
301- case MitigationReviewResponseTypeLegalBlock , MitigationReviewResponseTypeMisleadingInterstitial , MitigationReviewResponseTypePhishingInterstitial , MitigationReviewResponseTypeNetworkBlock , MitigationReviewResponseTypeRateLimitCache , MitigationReviewResponseTypeAccountSuspend , MitigationReviewResponseTypeRedirectVideoStream :
329+ case MitigationReviewResponseTypeAccountSuspend , MitigationReviewResponseTypeCopyrightInterstitial , MitigationReviewResponseTypeGeoBlock , MitigationReviewResponseTypeLegalBlock , MitigationReviewResponseTypeMalwareInterstitial , MitigationReviewResponseTypeMisleadingInterstitial , MitigationReviewResponseTypeNetworkBlock , MitigationReviewResponseTypePhishingInterstitial , MitigationReviewResponseTypePlayfairiteEnforce , MitigationReviewResponseTypeR2TakedownAccount , MitigationReviewResponseTypeR2TakedownBucket , MitigationReviewResponseTypeR2TakedownObject , MitigationReviewResponseTypeRateLimitCache , MitigationReviewResponseTypeRedirectVideoStream , MitigationReviewResponseTypeRegistrarFreeze , MitigationReviewResponseTypeRegistrarParking , MitigationReviewResponseTypeStreamBlockAccount , MitigationReviewResponseTypeUserSuspend , MitigationReviewResponseTypeWorkersTakedownByZoneID :
302330 return true
303331 }
304332 return false
@@ -398,18 +426,30 @@ func (r MitigationListParamsStatus) IsKnown() bool {
398426type MitigationListParamsType string
399427
400428const (
401- MitigationListParamsTypeLegalBlock MitigationListParamsType = "legal_block"
402- MitigationListParamsTypeMisleadingInterstitial MitigationListParamsType = "misleading_interstitial"
403- MitigationListParamsTypePhishingInterstitial MitigationListParamsType = "phishing_interstitial"
404- MitigationListParamsTypeNetworkBlock MitigationListParamsType = "network_block"
405- MitigationListParamsTypeRateLimitCache MitigationListParamsType = "rate_limit_cache"
406- MitigationListParamsTypeAccountSuspend MitigationListParamsType = "account_suspend"
407- MitigationListParamsTypeRedirectVideoStream MitigationListParamsType = "redirect_video_stream"
429+ MitigationListParamsTypeAccountSuspend MitigationListParamsType = "account_suspend"
430+ MitigationListParamsTypeCopyrightInterstitial MitigationListParamsType = "copyright_interstitial"
431+ MitigationListParamsTypeGeoBlock MitigationListParamsType = "geo_block"
432+ MitigationListParamsTypeLegalBlock MitigationListParamsType = "legal_block"
433+ MitigationListParamsTypeMalwareInterstitial MitigationListParamsType = "malware_interstitial"
434+ MitigationListParamsTypeMisleadingInterstitial MitigationListParamsType = "misleading_interstitial"
435+ MitigationListParamsTypeNetworkBlock MitigationListParamsType = "network_block"
436+ MitigationListParamsTypePhishingInterstitial MitigationListParamsType = "phishing_interstitial"
437+ MitigationListParamsTypePlayfairiteEnforce MitigationListParamsType = "playfairite_enforce"
438+ MitigationListParamsTypeR2TakedownAccount MitigationListParamsType = "r2_takedown_account"
439+ MitigationListParamsTypeR2TakedownBucket MitigationListParamsType = "r2_takedown_bucket"
440+ MitigationListParamsTypeR2TakedownObject MitigationListParamsType = "r2_takedown_object"
441+ MitigationListParamsTypeRateLimitCache MitigationListParamsType = "rate_limit_cache"
442+ MitigationListParamsTypeRedirectVideoStream MitigationListParamsType = "redirect_video_stream"
443+ MitigationListParamsTypeRegistrarFreeze MitigationListParamsType = "registrar_freeze"
444+ MitigationListParamsTypeRegistrarParking MitigationListParamsType = "registrar_parking"
445+ MitigationListParamsTypeStreamBlockAccount MitigationListParamsType = "stream_block_account"
446+ MitigationListParamsTypeUserSuspend MitigationListParamsType = "user_suspend"
447+ MitigationListParamsTypeWorkersTakedownByZoneID MitigationListParamsType = "workers_takedown_by_zone_id"
408448)
409449
410450func (r MitigationListParamsType ) IsKnown () bool {
411451 switch r {
412- case MitigationListParamsTypeLegalBlock , MitigationListParamsTypeMisleadingInterstitial , MitigationListParamsTypePhishingInterstitial , MitigationListParamsTypeNetworkBlock , MitigationListParamsTypeRateLimitCache , MitigationListParamsTypeAccountSuspend , MitigationListParamsTypeRedirectVideoStream :
452+ case MitigationListParamsTypeAccountSuspend , MitigationListParamsTypeCopyrightInterstitial , MitigationListParamsTypeGeoBlock , MitigationListParamsTypeLegalBlock , MitigationListParamsTypeMalwareInterstitial , MitigationListParamsTypeMisleadingInterstitial , MitigationListParamsTypeNetworkBlock , MitigationListParamsTypePhishingInterstitial , MitigationListParamsTypePlayfairiteEnforce , MitigationListParamsTypeR2TakedownAccount , MitigationListParamsTypeR2TakedownBucket , MitigationListParamsTypeR2TakedownObject , MitigationListParamsTypeRateLimitCache , MitigationListParamsTypeRedirectVideoStream , MitigationListParamsTypeRegistrarFreeze , MitigationListParamsTypeRegistrarParking , MitigationListParamsTypeStreamBlockAccount , MitigationListParamsTypeUserSuspend , MitigationListParamsTypeWorkersTakedownByZoneID :
413453 return true
414454 }
415455 return false
0 commit comments