@@ -540,8 +540,13 @@ func (r BrotliEditable) IsKnown() bool {
540540type BrowserCacheTTL struct {
541541 // Control how long resources cached by client browsers remain valid.
542542 ID BrowserCacheTTLID `json:"id"`
543- // The number of seconds to cache resources for. The API prohibits setting this to
544- // 0 for non-Enterprise domains.
543+ // The number of seconds to cache resources for. Minimum values by plan:
544+ //
545+ // - Free: 7200 seconds (2 hours)
546+ // - Pro: 3600 seconds (1 hour)
547+ // - Business: 1 second
548+ // - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
549+ // is allowed for all plans.
545550 Value int64 `json:"value"`
546551 JSON browserCacheTTLJSON `json:"-"`
547552}
@@ -582,8 +587,13 @@ func (r BrowserCacheTTLID) IsKnown() bool {
582587type BrowserCacheTTLParam struct {
583588 // Control how long resources cached by client browsers remain valid.
584589 ID param.Field [BrowserCacheTTLID ] `json:"id"`
585- // The number of seconds to cache resources for. The API prohibits setting this to
586- // 0 for non-Enterprise domains.
590+ // The number of seconds to cache resources for. Minimum values by plan:
591+ //
592+ // - Free: 7200 seconds (2 hours)
593+ // - Pro: 3600 seconds (1 hour)
594+ // - Business: 1 second
595+ // - Enterprise: 1 second Setting this to 0 enables "Respect Existing Headers" and
596+ // is allowed for all plans.
587597 Value param.Field [int64 ] `json:"value"`
588598}
589599
@@ -3954,8 +3964,7 @@ type SettingEditResponse struct {
39543964 // [SettingEditResponseZonesCacheRulesAegisValue], [AlwaysOnlineValue],
39553965 // [SettingEditResponseZonesSchemasAlwaysUseHTTPSValue],
39563966 // [SettingEditResponseZonesSchemasAutomaticHTTPSRewritesValue], [BrotliValue],
3957- // [SettingEditResponseZonesSchemasBrowserCacheTTLValue],
3958- // [SettingEditResponseZonesSchemasBrowserCheckValue],
3967+ // [int64], [SettingEditResponseZonesSchemasBrowserCheckValue],
39593968 // [SettingEditResponseZonesSchemasCacheLevelValue], [ChallengeTTLValue],
39603969 // [SettingEditResponseZonesChinaNetworkEnabledValue], [[]string],
39613970 // [SettingEditResponseZonesCNAMEFlatteningValue], [DevelopmentModeValue],
@@ -3967,7 +3976,7 @@ type SettingEditResponse struct {
39673976 // [SettingEditResponseZonesSchemasMirageValue], [NELValue],
39683977 // [SettingEditResponseZonesSchemasOpportunisticEncryptionValue],
39693978 // [OpportunisticOnionValue], [OrangeToOrangeValue],
3970- // [SettingEditResponseZonesSchemasOriginErrorPagePassThruValue], [int64],
3979+ // [SettingEditResponseZonesSchemasOriginErrorPagePassThruValue],
39713980 // [SettingEditResponseZonesCacheRulesOriginMaxHTTPVersionValue],
39723981 // [SettingEditResponseZonesSchemasPolishValue], [PrefetchPreloadValue],
39733982 // [SettingEditResponseZonesPrivacyPassValue], [float64], [PseudoIPV4Value],
@@ -4594,7 +4603,7 @@ type SettingEditResponseZonesSchemasBrowserCacheTTL struct {
45944603 // ID of the zone setting.
45954604 ID SettingEditResponseZonesSchemasBrowserCacheTTLID `json:"id,required"`
45964605 // Current value of the zone setting.
4597- Value SettingEditResponseZonesSchemasBrowserCacheTTLValue `json:"value,required"`
4606+ Value int64 `json:"value,required"`
45984607 // Whether or not this setting can be modified for this zone (based on your
45994608 // Cloudflare plan level).
46004609 Editable SettingEditResponseZonesSchemasBrowserCacheTTLEditable `json:"editable"`
@@ -4639,48 +4648,6 @@ func (r SettingEditResponseZonesSchemasBrowserCacheTTLID) IsKnown() bool {
46394648 return false
46404649}
46414650
4642- // Current value of the zone setting.
4643- type SettingEditResponseZonesSchemasBrowserCacheTTLValue int64
4644-
4645- const (
4646- SettingEditResponseZonesSchemasBrowserCacheTTLValue0 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 0
4647- SettingEditResponseZonesSchemasBrowserCacheTTLValue30 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 30
4648- SettingEditResponseZonesSchemasBrowserCacheTTLValue60 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 60
4649- SettingEditResponseZonesSchemasBrowserCacheTTLValue120 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 120
4650- SettingEditResponseZonesSchemasBrowserCacheTTLValue300 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 300
4651- SettingEditResponseZonesSchemasBrowserCacheTTLValue1200 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 1200
4652- SettingEditResponseZonesSchemasBrowserCacheTTLValue1800 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 1800
4653- SettingEditResponseZonesSchemasBrowserCacheTTLValue3600 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 3600
4654- SettingEditResponseZonesSchemasBrowserCacheTTLValue7200 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 7200
4655- SettingEditResponseZonesSchemasBrowserCacheTTLValue10800 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 10800
4656- SettingEditResponseZonesSchemasBrowserCacheTTLValue14400 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 14400
4657- SettingEditResponseZonesSchemasBrowserCacheTTLValue18000 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 18000
4658- SettingEditResponseZonesSchemasBrowserCacheTTLValue28800 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 28800
4659- SettingEditResponseZonesSchemasBrowserCacheTTLValue43200 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 43200
4660- SettingEditResponseZonesSchemasBrowserCacheTTLValue57600 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 57600
4661- SettingEditResponseZonesSchemasBrowserCacheTTLValue72000 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 72000
4662- SettingEditResponseZonesSchemasBrowserCacheTTLValue86400 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 86400
4663- SettingEditResponseZonesSchemasBrowserCacheTTLValue172800 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 172800
4664- SettingEditResponseZonesSchemasBrowserCacheTTLValue259200 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 259200
4665- SettingEditResponseZonesSchemasBrowserCacheTTLValue345600 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 345600
4666- SettingEditResponseZonesSchemasBrowserCacheTTLValue432000 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 432000
4667- SettingEditResponseZonesSchemasBrowserCacheTTLValue691200 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 691200
4668- SettingEditResponseZonesSchemasBrowserCacheTTLValue1382400 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 1382400
4669- SettingEditResponseZonesSchemasBrowserCacheTTLValue2073600 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 2073600
4670- SettingEditResponseZonesSchemasBrowserCacheTTLValue2678400 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 2678400
4671- SettingEditResponseZonesSchemasBrowserCacheTTLValue5356800 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 5356800
4672- SettingEditResponseZonesSchemasBrowserCacheTTLValue16070400 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 16070400
4673- SettingEditResponseZonesSchemasBrowserCacheTTLValue31536000 SettingEditResponseZonesSchemasBrowserCacheTTLValue = 31536000
4674- )
4675-
4676- func (r SettingEditResponseZonesSchemasBrowserCacheTTLValue ) IsKnown () bool {
4677- switch r {
4678- case SettingEditResponseZonesSchemasBrowserCacheTTLValue0 , SettingEditResponseZonesSchemasBrowserCacheTTLValue30 , SettingEditResponseZonesSchemasBrowserCacheTTLValue60 , SettingEditResponseZonesSchemasBrowserCacheTTLValue120 , SettingEditResponseZonesSchemasBrowserCacheTTLValue300 , SettingEditResponseZonesSchemasBrowserCacheTTLValue1200 , SettingEditResponseZonesSchemasBrowserCacheTTLValue1800 , SettingEditResponseZonesSchemasBrowserCacheTTLValue3600 , SettingEditResponseZonesSchemasBrowserCacheTTLValue7200 , SettingEditResponseZonesSchemasBrowserCacheTTLValue10800 , SettingEditResponseZonesSchemasBrowserCacheTTLValue14400 , SettingEditResponseZonesSchemasBrowserCacheTTLValue18000 , SettingEditResponseZonesSchemasBrowserCacheTTLValue28800 , SettingEditResponseZonesSchemasBrowserCacheTTLValue43200 , SettingEditResponseZonesSchemasBrowserCacheTTLValue57600 , SettingEditResponseZonesSchemasBrowserCacheTTLValue72000 , SettingEditResponseZonesSchemasBrowserCacheTTLValue86400 , SettingEditResponseZonesSchemasBrowserCacheTTLValue172800 , SettingEditResponseZonesSchemasBrowserCacheTTLValue259200 , SettingEditResponseZonesSchemasBrowserCacheTTLValue345600 , SettingEditResponseZonesSchemasBrowserCacheTTLValue432000 , SettingEditResponseZonesSchemasBrowserCacheTTLValue691200 , SettingEditResponseZonesSchemasBrowserCacheTTLValue1382400 , SettingEditResponseZonesSchemasBrowserCacheTTLValue2073600 , SettingEditResponseZonesSchemasBrowserCacheTTLValue2678400 , SettingEditResponseZonesSchemasBrowserCacheTTLValue5356800 , SettingEditResponseZonesSchemasBrowserCacheTTLValue16070400 , SettingEditResponseZonesSchemasBrowserCacheTTLValue31536000 :
4679- return true
4680- }
4681- return false
4682- }
4683-
46844651// Whether or not this setting can be modified for this zone (based on your
46854652// Cloudflare plan level).
46864653type SettingEditResponseZonesSchemasBrowserCacheTTLEditable bool
@@ -7199,8 +7166,7 @@ type SettingGetResponse struct {
71997166 // [SettingGetResponseZonesCacheRulesAegisValue], [AlwaysOnlineValue],
72007167 // [SettingGetResponseZonesSchemasAlwaysUseHTTPSValue],
72017168 // [SettingGetResponseZonesSchemasAutomaticHTTPSRewritesValue], [BrotliValue],
7202- // [SettingGetResponseZonesSchemasBrowserCacheTTLValue],
7203- // [SettingGetResponseZonesSchemasBrowserCheckValue],
7169+ // [int64], [SettingGetResponseZonesSchemasBrowserCheckValue],
72047170 // [SettingGetResponseZonesSchemasCacheLevelValue], [ChallengeTTLValue],
72057171 // [SettingGetResponseZonesChinaNetworkEnabledValue], [[]string],
72067172 // [SettingGetResponseZonesCNAMEFlatteningValue], [DevelopmentModeValue],
@@ -7212,7 +7178,7 @@ type SettingGetResponse struct {
72127178 // [SettingGetResponseZonesSchemasMirageValue], [NELValue],
72137179 // [SettingGetResponseZonesSchemasOpportunisticEncryptionValue],
72147180 // [OpportunisticOnionValue], [OrangeToOrangeValue],
7215- // [SettingGetResponseZonesSchemasOriginErrorPagePassThruValue], [int64],
7181+ // [SettingGetResponseZonesSchemasOriginErrorPagePassThruValue],
72167182 // [SettingGetResponseZonesCacheRulesOriginMaxHTTPVersionValue],
72177183 // [SettingGetResponseZonesSchemasPolishValue], [PrefetchPreloadValue],
72187184 // [SettingGetResponseZonesPrivacyPassValue], [float64], [PseudoIPV4Value],
@@ -7839,7 +7805,7 @@ type SettingGetResponseZonesSchemasBrowserCacheTTL struct {
78397805 // ID of the zone setting.
78407806 ID SettingGetResponseZonesSchemasBrowserCacheTTLID `json:"id,required"`
78417807 // Current value of the zone setting.
7842- Value SettingGetResponseZonesSchemasBrowserCacheTTLValue `json:"value,required"`
7808+ Value int64 `json:"value,required"`
78437809 // Whether or not this setting can be modified for this zone (based on your
78447810 // Cloudflare plan level).
78457811 Editable SettingGetResponseZonesSchemasBrowserCacheTTLEditable `json:"editable"`
@@ -7884,48 +7850,6 @@ func (r SettingGetResponseZonesSchemasBrowserCacheTTLID) IsKnown() bool {
78847850 return false
78857851}
78867852
7887- // Current value of the zone setting.
7888- type SettingGetResponseZonesSchemasBrowserCacheTTLValue int64
7889-
7890- const (
7891- SettingGetResponseZonesSchemasBrowserCacheTTLValue0 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 0
7892- SettingGetResponseZonesSchemasBrowserCacheTTLValue30 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 30
7893- SettingGetResponseZonesSchemasBrowserCacheTTLValue60 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 60
7894- SettingGetResponseZonesSchemasBrowserCacheTTLValue120 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 120
7895- SettingGetResponseZonesSchemasBrowserCacheTTLValue300 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 300
7896- SettingGetResponseZonesSchemasBrowserCacheTTLValue1200 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 1200
7897- SettingGetResponseZonesSchemasBrowserCacheTTLValue1800 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 1800
7898- SettingGetResponseZonesSchemasBrowserCacheTTLValue3600 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 3600
7899- SettingGetResponseZonesSchemasBrowserCacheTTLValue7200 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 7200
7900- SettingGetResponseZonesSchemasBrowserCacheTTLValue10800 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 10800
7901- SettingGetResponseZonesSchemasBrowserCacheTTLValue14400 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 14400
7902- SettingGetResponseZonesSchemasBrowserCacheTTLValue18000 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 18000
7903- SettingGetResponseZonesSchemasBrowserCacheTTLValue28800 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 28800
7904- SettingGetResponseZonesSchemasBrowserCacheTTLValue43200 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 43200
7905- SettingGetResponseZonesSchemasBrowserCacheTTLValue57600 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 57600
7906- SettingGetResponseZonesSchemasBrowserCacheTTLValue72000 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 72000
7907- SettingGetResponseZonesSchemasBrowserCacheTTLValue86400 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 86400
7908- SettingGetResponseZonesSchemasBrowserCacheTTLValue172800 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 172800
7909- SettingGetResponseZonesSchemasBrowserCacheTTLValue259200 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 259200
7910- SettingGetResponseZonesSchemasBrowserCacheTTLValue345600 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 345600
7911- SettingGetResponseZonesSchemasBrowserCacheTTLValue432000 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 432000
7912- SettingGetResponseZonesSchemasBrowserCacheTTLValue691200 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 691200
7913- SettingGetResponseZonesSchemasBrowserCacheTTLValue1382400 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 1382400
7914- SettingGetResponseZonesSchemasBrowserCacheTTLValue2073600 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 2073600
7915- SettingGetResponseZonesSchemasBrowserCacheTTLValue2678400 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 2678400
7916- SettingGetResponseZonesSchemasBrowserCacheTTLValue5356800 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 5356800
7917- SettingGetResponseZonesSchemasBrowserCacheTTLValue16070400 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 16070400
7918- SettingGetResponseZonesSchemasBrowserCacheTTLValue31536000 SettingGetResponseZonesSchemasBrowserCacheTTLValue = 31536000
7919- )
7920-
7921- func (r SettingGetResponseZonesSchemasBrowserCacheTTLValue ) IsKnown () bool {
7922- switch r {
7923- case SettingGetResponseZonesSchemasBrowserCacheTTLValue0 , SettingGetResponseZonesSchemasBrowserCacheTTLValue30 , SettingGetResponseZonesSchemasBrowserCacheTTLValue60 , SettingGetResponseZonesSchemasBrowserCacheTTLValue120 , SettingGetResponseZonesSchemasBrowserCacheTTLValue300 , SettingGetResponseZonesSchemasBrowserCacheTTLValue1200 , SettingGetResponseZonesSchemasBrowserCacheTTLValue1800 , SettingGetResponseZonesSchemasBrowserCacheTTLValue3600 , SettingGetResponseZonesSchemasBrowserCacheTTLValue7200 , SettingGetResponseZonesSchemasBrowserCacheTTLValue10800 , SettingGetResponseZonesSchemasBrowserCacheTTLValue14400 , SettingGetResponseZonesSchemasBrowserCacheTTLValue18000 , SettingGetResponseZonesSchemasBrowserCacheTTLValue28800 , SettingGetResponseZonesSchemasBrowserCacheTTLValue43200 , SettingGetResponseZonesSchemasBrowserCacheTTLValue57600 , SettingGetResponseZonesSchemasBrowserCacheTTLValue72000 , SettingGetResponseZonesSchemasBrowserCacheTTLValue86400 , SettingGetResponseZonesSchemasBrowserCacheTTLValue172800 , SettingGetResponseZonesSchemasBrowserCacheTTLValue259200 , SettingGetResponseZonesSchemasBrowserCacheTTLValue345600 , SettingGetResponseZonesSchemasBrowserCacheTTLValue432000 , SettingGetResponseZonesSchemasBrowserCacheTTLValue691200 , SettingGetResponseZonesSchemasBrowserCacheTTLValue1382400 , SettingGetResponseZonesSchemasBrowserCacheTTLValue2073600 , SettingGetResponseZonesSchemasBrowserCacheTTLValue2678400 , SettingGetResponseZonesSchemasBrowserCacheTTLValue5356800 , SettingGetResponseZonesSchemasBrowserCacheTTLValue16070400 , SettingGetResponseZonesSchemasBrowserCacheTTLValue31536000 :
7924- return true
7925- }
7926- return false
7927- }
7928-
79297853// Whether or not this setting can be modified for this zone (based on your
79307854// Cloudflare plan level).
79317855type SettingGetResponseZonesSchemasBrowserCacheTTLEditable bool
0 commit comments