@@ -177,13 +177,10 @@ func (r AntiVirusSettingsParam) MarshalJSON() (data []byte, err error) {
177177
178178// Block page layout settings.
179179type BlockPageSettings struct {
180- // Enable only cipher suites and TLS versions compliant with FIPS 140-2.
181- Enabled bool `json:"enabled,required,nullable"`
182- // Controls whether the user is redirected to a Cloudflare-hosted block page or to
183- // a customer-provided URI.
184- Mode BlockPageSettingsMode `json:"mode,required"`
185180 // If mode is customized_block_page: block page background color in #rrggbb format.
186181 BackgroundColor string `json:"background_color"`
182+ // Enable only cipher suites and TLS versions compliant with FIPS 140-2.
183+ Enabled bool `json:"enabled,nullable"`
187184 // If mode is customized_block_page: block page footer text.
188185 FooterText string `json:"footer_text"`
189186 // If mode is customized_block_page: block page header text.
@@ -198,6 +195,9 @@ type BlockPageSettings struct {
198195 // If mode is customized_block_page: subject line for emails created from block
199196 // page.
200197 MailtoSubject string `json:"mailto_subject"`
198+ // Controls whether the user is redirected to a Cloudflare-hosted block page or to
199+ // a customer-provided URI.
200+ Mode BlockPageSettingsMode `json:"mode"`
201201 // If mode is customized_block_page: block page title.
202202 Name string `json:"name"`
203203 // This setting was shared via the Orgs API and cannot be edited by the current
@@ -218,15 +218,15 @@ type BlockPageSettings struct {
218218// blockPageSettingsJSON contains the JSON metadata for the struct
219219// [BlockPageSettings]
220220type blockPageSettingsJSON struct {
221- Enabled apijson.Field
222- Mode apijson.Field
223221 BackgroundColor apijson.Field
222+ Enabled apijson.Field
224223 FooterText apijson.Field
225224 HeaderText apijson.Field
226225 IncludeContext apijson.Field
227226 LogoPath apijson.Field
228227 MailtoAddress apijson.Field
229228 MailtoSubject apijson.Field
229+ Mode apijson.Field
230230 Name apijson.Field
231231 ReadOnly apijson.Field
232232 SourceAccount apijson.Field
@@ -264,13 +264,10 @@ func (r BlockPageSettingsMode) IsKnown() bool {
264264
265265// Block page layout settings.
266266type BlockPageSettingsParam struct {
267- // Enable only cipher suites and TLS versions compliant with FIPS 140-2.
268- Enabled param.Field [bool ] `json:"enabled,required"`
269- // Controls whether the user is redirected to a Cloudflare-hosted block page or to
270- // a customer-provided URI.
271- Mode param.Field [BlockPageSettingsMode ] `json:"mode,required"`
272267 // If mode is customized_block_page: block page background color in #rrggbb format.
273268 BackgroundColor param.Field [string ] `json:"background_color"`
269+ // Enable only cipher suites and TLS versions compliant with FIPS 140-2.
270+ Enabled param.Field [bool ] `json:"enabled"`
274271 // If mode is customized_block_page: block page footer text.
275272 FooterText param.Field [string ] `json:"footer_text"`
276273 // If mode is customized_block_page: block page header text.
@@ -285,6 +282,9 @@ type BlockPageSettingsParam struct {
285282 // If mode is customized_block_page: subject line for emails created from block
286283 // page.
287284 MailtoSubject param.Field [string ] `json:"mailto_subject"`
285+ // Controls whether the user is redirected to a Cloudflare-hosted block page or to
286+ // a customer-provided URI.
287+ Mode param.Field [BlockPageSettingsMode ] `json:"mode"`
288288 // If mode is customized_block_page: block page title.
289289 Name param.Field [string ] `json:"name"`
290290 // If mode is customized_block_page: suppress detailed info at the bottom of the
0 commit comments