Skip to content

Commit b01a29a

Browse files
chore(api): update composite API spec
1 parent 573d9fb commit b01a29a

2 files changed

Lines changed: 25 additions & 39 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2420
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-9cadb6f47eb3d145352d0e7112605e553321aa88991fc55ba6efbe665bb2b52f.yml
3-
openapi_spec_hash: 653808896077b2132c43a0a8a383679c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-77454b7f4d8a6c1b61e16e7f01c2b7af393011c053722940267b38937660140b.yml
3+
openapi_spec_hash: 5929bc536ceca35c4f3ff7af07094fcb
44
config_hash: a23f4c71ccd6c6117c24f63ae415dcf7

‎rulesets/rule.go‎

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,9 +5451,9 @@ type SetCacheSettingsRuleActionParameters struct {
54515451
StripLastModified bool `json:"strip_last_modified"`
54525452
// Whether to strip Set-Cookie headers from the origin response before caching.
54535453
StripSetCookie bool `json:"strip_set_cookie"`
5454-
// Controls how cached responses vary based on request headers. At least one of
5455-
// `default` or `headers` must be set, and `default` is required when `headers` is
5456-
// set.
5454+
// Controls how cached responses vary based on request headers. `default` is
5455+
// required by the API and applies to any Vary response header that does not have a
5456+
// per-header override.
54575457
Vary SetCacheSettingsRuleActionParametersVary `json:"vary"`
54585458
JSON setCacheSettingsRuleActionParametersJSON `json:"-"`
54595459
}
@@ -6015,12 +6015,12 @@ func (r setCacheSettingsRuleActionParametersSharedDictionaryJSON) RawJSON() stri
60156015
return r.raw
60166016
}
60176017

6018-
// Controls how cached responses vary based on request headers. At least one of
6019-
// `default` or `headers` must be set, and `default` is required when `headers` is
6020-
// set.
6018+
// Controls how cached responses vary based on request headers. `default` is
6019+
// required by the API and applies to any Vary response header that does not have a
6020+
// per-header override.
60216021
type SetCacheSettingsRuleActionParametersVary struct {
6022-
// Controls how a single request header (or the default for all headers)
6023-
// contributes to the cache key.
6022+
// Controls how response Vary headers without a per-header override contribute to
6023+
// the cache key.
60246024
Default SetCacheSettingsRuleActionParametersVaryDefault `json:"default"`
60256025
// A mapping of lowercase request header names to their vary configuration.
60266026
Headers map[string]SetCacheSettingsRuleActionParametersVaryHeader `json:"headers"`
@@ -6044,25 +6044,18 @@ func (r setCacheSettingsRuleActionParametersVaryJSON) RawJSON() string {
60446044
return r.raw
60456045
}
60466046

6047-
// Controls how a single request header (or the default for all headers)
6048-
// contributes to the cache key.
6047+
// Controls how response Vary headers without a per-header override contribute to
6048+
// the cache key.
60496049
type SetCacheSettingsRuleActionParametersVaryDefault struct {
60506050
// How the header value is treated when building the cache key.
60516051
Action SetCacheSettingsRuleActionParametersVaryDefaultAction `json:"action" api:"required"`
6052-
// The set of languages to normalize against. Only valid for the `accept-language`
6053-
// header.
6054-
Languages []string `json:"languages"`
6055-
// The set of media types to normalize against. Only valid for the `accept` header.
6056-
MediaTypes []string `json:"media_types"`
6057-
JSON setCacheSettingsRuleActionParametersVaryDefaultJSON `json:"-"`
6052+
JSON setCacheSettingsRuleActionParametersVaryDefaultJSON `json:"-"`
60586053
}
60596054

60606055
// setCacheSettingsRuleActionParametersVaryDefaultJSON contains the JSON metadata
60616056
// for the struct [SetCacheSettingsRuleActionParametersVaryDefault]
60626057
type setCacheSettingsRuleActionParametersVaryDefaultJSON struct {
60636058
Action apijson.Field
6064-
Languages apijson.Field
6065-
MediaTypes apijson.Field
60666059
raw string
60676060
ExtraFields map[string]apijson.Field
60686061
}
@@ -6092,8 +6085,7 @@ func (r SetCacheSettingsRuleActionParametersVaryDefaultAction) IsKnown() bool {
60926085
return false
60936086
}
60946087

6095-
// Controls how a single request header (or the default for all headers)
6096-
// contributes to the cache key.
6088+
// Controls how a single request header contributes to the cache key.
60976089
type SetCacheSettingsRuleActionParametersVaryHeader struct {
60986090
// How the header value is treated when building the cache key.
60996091
Action SetCacheSettingsRuleActionParametersVaryHeadersAction `json:"action" api:"required"`
@@ -6293,9 +6285,9 @@ type SetCacheSettingsRuleActionParametersParam struct {
62936285
StripLastModified param.Field[bool] `json:"strip_last_modified"`
62946286
// Whether to strip Set-Cookie headers from the origin response before caching.
62956287
StripSetCookie param.Field[bool] `json:"strip_set_cookie"`
6296-
// Controls how cached responses vary based on request headers. At least one of
6297-
// `default` or `headers` must be set, and `default` is required when `headers` is
6298-
// set.
6288+
// Controls how cached responses vary based on request headers. `default` is
6289+
// required by the API and applies to any Vary response header that does not have a
6290+
// per-header override.
62996291
Vary param.Field[SetCacheSettingsRuleActionParametersVaryParam] `json:"vary"`
63006292
}
63016293

@@ -6524,12 +6516,12 @@ func (r SetCacheSettingsRuleActionParametersSharedDictionaryParam) MarshalJSON()
65246516
return apijson.MarshalRoot(r)
65256517
}
65266518

6527-
// Controls how cached responses vary based on request headers. At least one of
6528-
// `default` or `headers` must be set, and `default` is required when `headers` is
6529-
// set.
6519+
// Controls how cached responses vary based on request headers. `default` is
6520+
// required by the API and applies to any Vary response header that does not have a
6521+
// per-header override.
65306522
type SetCacheSettingsRuleActionParametersVaryParam struct {
6531-
// Controls how a single request header (or the default for all headers)
6532-
// contributes to the cache key.
6523+
// Controls how response Vary headers without a per-header override contribute to
6524+
// the cache key.
65336525
Default param.Field[SetCacheSettingsRuleActionParametersVaryDefaultParam] `json:"default"`
65346526
// A mapping of lowercase request header names to their vary configuration.
65356527
Headers param.Field[map[string]SetCacheSettingsRuleActionParametersVaryHeaderParam] `json:"headers"`
@@ -6539,24 +6531,18 @@ func (r SetCacheSettingsRuleActionParametersVaryParam) MarshalJSON() (data []byt
65396531
return apijson.MarshalRoot(r)
65406532
}
65416533

6542-
// Controls how a single request header (or the default for all headers)
6543-
// contributes to the cache key.
6534+
// Controls how response Vary headers without a per-header override contribute to
6535+
// the cache key.
65446536
type SetCacheSettingsRuleActionParametersVaryDefaultParam struct {
65456537
// How the header value is treated when building the cache key.
65466538
Action param.Field[SetCacheSettingsRuleActionParametersVaryDefaultAction] `json:"action" api:"required"`
6547-
// The set of languages to normalize against. Only valid for the `accept-language`
6548-
// header.
6549-
Languages param.Field[[]string] `json:"languages"`
6550-
// The set of media types to normalize against. Only valid for the `accept` header.
6551-
MediaTypes param.Field[[]string] `json:"media_types"`
65526539
}
65536540

65546541
func (r SetCacheSettingsRuleActionParametersVaryDefaultParam) MarshalJSON() (data []byte, err error) {
65556542
return apijson.MarshalRoot(r)
65566543
}
65576544

6558-
// Controls how a single request header (or the default for all headers)
6559-
// contributes to the cache key.
6545+
// Controls how a single request header contributes to the cache key.
65606546
type SetCacheSettingsRuleActionParametersVaryHeaderParam struct {
65616547
// How the header value is treated when building the cache key.
65626548
Action param.Field[SetCacheSettingsRuleActionParametersVaryHeadersAction] `json:"action" api:"required"`

0 commit comments

Comments
 (0)