Skip to content

Commit 96cd4c9

Browse files
feat(api): aggregated API specs update
1 parent 8b6d277 commit 96cd4c9

16 files changed

Lines changed: 2 additions & 518 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 657
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-eb97fe6d936e05f873f146404b8eb0991096af214bfe3abdd5b49585cfc60234.yml
3-
openapi_spec_hash: e3dbcceedfbd5a516b2b30db498bdd17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-2169e78eace57eb021fdcba11e1843eac6a14b2f28cf14670c5f42ccc9f3efd9.yml
3+
openapi_spec_hash: 88a74103eec2c3b3324d37d6685109d7
44
config_hash: 0b9fe3822aef92ebe43ad609b931bfc8

src/gcore/types/cdn/cdn_resource.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
"CDNResource",
1212
"Options",
1313
"OptionsAllowedHTTPMethods",
14-
"OptionsBotProtection",
15-
"OptionsBotProtectionBotChallenge",
1614
"OptionsBrotliCompression",
1715
"OptionsBrowserCacheSettings",
1816
"OptionsCacheHTTPHeaders",
@@ -86,35 +84,6 @@ class OptionsAllowedHTTPMethods(BaseModel):
8684
value: List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]
8785

8886

89-
class OptionsBotProtectionBotChallenge(BaseModel):
90-
"""Controls the bot challenge module state."""
91-
92-
enabled: Optional[bool] = None
93-
"""Possible values:
94-
95-
- **true** - Bot challenge is enabled.
96-
- **false** - Bot challenge is disabled.
97-
"""
98-
99-
100-
class OptionsBotProtection(BaseModel):
101-
"""
102-
Allows to prevent online services from overloading and ensure your business workflow running smoothly.
103-
"""
104-
105-
bot_challenge: OptionsBotProtectionBotChallenge
106-
"""Controls the bot challenge module state."""
107-
108-
enabled: bool
109-
"""Controls the option state.
110-
111-
Possible values:
112-
113-
- **true** - Option is enabled.
114-
- **false** - Option is disabled.
115-
"""
116-
117-
11887
class OptionsBrotliCompression(BaseModel):
11988
"""Compresses content with Brotli on the CDN side.
12089
@@ -1683,12 +1652,6 @@ class Options(BaseModel):
16831652
allowed_http_methods: Optional[OptionsAllowedHTTPMethods] = FieldInfo(alias="allowedHttpMethods", default=None)
16841653
"""HTTP methods allowed for content requests from the CDN."""
16851654

1686-
bot_protection: Optional[OptionsBotProtection] = None
1687-
"""
1688-
Allows to prevent online services from overloading and ensure your business
1689-
workflow running smoothly.
1690-
"""
1691-
16921655
brotli_compression: Optional[OptionsBrotliCompression] = None
16931656
"""Compresses content with Brotli on the CDN side.
16941657

src/gcore/types/cdn/cdn_resource_create_params.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"CDNResourceCreateParams",
1313
"Options",
1414
"OptionsAllowedHTTPMethods",
15-
"OptionsBotProtection",
16-
"OptionsBotProtectionBotChallenge",
1715
"OptionsBrotliCompression",
1816
"OptionsBrowserCacheSettings",
1917
"OptionsCacheHTTPHeaders",
@@ -209,35 +207,6 @@ class OptionsAllowedHTTPMethods(TypedDict, total=False):
209207
value: Required[List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]]
210208

211209

212-
class OptionsBotProtectionBotChallenge(TypedDict, total=False):
213-
"""Controls the bot challenge module state."""
214-
215-
enabled: bool
216-
"""Possible values:
217-
218-
- **true** - Bot challenge is enabled.
219-
- **false** - Bot challenge is disabled.
220-
"""
221-
222-
223-
class OptionsBotProtection(TypedDict, total=False):
224-
"""
225-
Allows to prevent online services from overloading and ensure your business workflow running smoothly.
226-
"""
227-
228-
bot_challenge: Required[OptionsBotProtectionBotChallenge]
229-
"""Controls the bot challenge module state."""
230-
231-
enabled: Required[bool]
232-
"""Controls the option state.
233-
234-
Possible values:
235-
236-
- **true** - Option is enabled.
237-
- **false** - Option is disabled.
238-
"""
239-
240-
241210
class OptionsBrotliCompression(TypedDict, total=False):
242211
"""Compresses content with Brotli on the CDN side.
243212
@@ -1806,12 +1775,6 @@ class Options(TypedDict, total=False):
18061775
allowed_http_methods: Annotated[Optional[OptionsAllowedHTTPMethods], PropertyInfo(alias="allowedHttpMethods")]
18071776
"""HTTP methods allowed for content requests from the CDN."""
18081777

1809-
bot_protection: Optional[OptionsBotProtection]
1810-
"""
1811-
Allows to prevent online services from overloading and ensure your business
1812-
workflow running smoothly.
1813-
"""
1814-
18151778
brotli_compression: Optional[OptionsBrotliCompression]
18161779
"""Compresses content with Brotli on the CDN side.
18171780

src/gcore/types/cdn/cdn_resource_replace_params.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"CDNResourceReplaceParams",
1313
"Options",
1414
"OptionsAllowedHTTPMethods",
15-
"OptionsBotProtection",
16-
"OptionsBotProtectionBotChallenge",
1715
"OptionsBrotliCompression",
1816
"OptionsBrowserCacheSettings",
1917
"OptionsCacheHTTPHeaders",
@@ -182,35 +180,6 @@ class OptionsAllowedHTTPMethods(TypedDict, total=False):
182180
value: Required[List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]]
183181

184182

185-
class OptionsBotProtectionBotChallenge(TypedDict, total=False):
186-
"""Controls the bot challenge module state."""
187-
188-
enabled: bool
189-
"""Possible values:
190-
191-
- **true** - Bot challenge is enabled.
192-
- **false** - Bot challenge is disabled.
193-
"""
194-
195-
196-
class OptionsBotProtection(TypedDict, total=False):
197-
"""
198-
Allows to prevent online services from overloading and ensure your business workflow running smoothly.
199-
"""
200-
201-
bot_challenge: Required[OptionsBotProtectionBotChallenge]
202-
"""Controls the bot challenge module state."""
203-
204-
enabled: Required[bool]
205-
"""Controls the option state.
206-
207-
Possible values:
208-
209-
- **true** - Option is enabled.
210-
- **false** - Option is disabled.
211-
"""
212-
213-
214183
class OptionsBrotliCompression(TypedDict, total=False):
215184
"""Compresses content with Brotli on the CDN side.
216185
@@ -1779,12 +1748,6 @@ class Options(TypedDict, total=False):
17791748
allowed_http_methods: Annotated[Optional[OptionsAllowedHTTPMethods], PropertyInfo(alias="allowedHttpMethods")]
17801749
"""HTTP methods allowed for content requests from the CDN."""
17811750

1782-
bot_protection: Optional[OptionsBotProtection]
1783-
"""
1784-
Allows to prevent online services from overloading and ensure your business
1785-
workflow running smoothly.
1786-
"""
1787-
17881751
brotli_compression: Optional[OptionsBrotliCompression]
17891752
"""Compresses content with Brotli on the CDN side.
17901753

src/gcore/types/cdn/cdn_resource_update_params.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"CDNResourceUpdateParams",
1313
"Options",
1414
"OptionsAllowedHTTPMethods",
15-
"OptionsBotProtection",
16-
"OptionsBotProtectionBotChallenge",
1715
"OptionsBrotliCompression",
1816
"OptionsBrowserCacheSettings",
1917
"OptionsCacheHTTPHeaders",
@@ -173,35 +171,6 @@ class OptionsAllowedHTTPMethods(TypedDict, total=False):
173171
value: Required[List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]]
174172

175173

176-
class OptionsBotProtectionBotChallenge(TypedDict, total=False):
177-
"""Controls the bot challenge module state."""
178-
179-
enabled: bool
180-
"""Possible values:
181-
182-
- **true** - Bot challenge is enabled.
183-
- **false** - Bot challenge is disabled.
184-
"""
185-
186-
187-
class OptionsBotProtection(TypedDict, total=False):
188-
"""
189-
Allows to prevent online services from overloading and ensure your business workflow running smoothly.
190-
"""
191-
192-
bot_challenge: Required[OptionsBotProtectionBotChallenge]
193-
"""Controls the bot challenge module state."""
194-
195-
enabled: Required[bool]
196-
"""Controls the option state.
197-
198-
Possible values:
199-
200-
- **true** - Option is enabled.
201-
- **false** - Option is disabled.
202-
"""
203-
204-
205174
class OptionsBrotliCompression(TypedDict, total=False):
206175
"""Compresses content with Brotli on the CDN side.
207176
@@ -1770,12 +1739,6 @@ class Options(TypedDict, total=False):
17701739
allowed_http_methods: Annotated[Optional[OptionsAllowedHTTPMethods], PropertyInfo(alias="allowedHttpMethods")]
17711740
"""HTTP methods allowed for content requests from the CDN."""
17721741

1773-
bot_protection: Optional[OptionsBotProtection]
1774-
"""
1775-
Allows to prevent online services from overloading and ensure your business
1776-
workflow running smoothly.
1777-
"""
1778-
17791742
brotli_compression: Optional[OptionsBrotliCompression]
17801743
"""Compresses content with Brotli on the CDN side.
17811744

src/gcore/types/cdn/cdn_resources/cdn_resource_rule.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
"CDNResourceRule",
1212
"Options",
1313
"OptionsAllowedHTTPMethods",
14-
"OptionsBotProtection",
15-
"OptionsBotProtectionBotChallenge",
1614
"OptionsBrotliCompression",
1715
"OptionsBrowserCacheSettings",
1816
"OptionsCacheHTTPHeaders",
@@ -80,35 +78,6 @@ class OptionsAllowedHTTPMethods(BaseModel):
8078
value: List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]
8179

8280

83-
class OptionsBotProtectionBotChallenge(BaseModel):
84-
"""Controls the bot challenge module state."""
85-
86-
enabled: Optional[bool] = None
87-
"""Possible values:
88-
89-
- **true** - Bot challenge is enabled.
90-
- **false** - Bot challenge is disabled.
91-
"""
92-
93-
94-
class OptionsBotProtection(BaseModel):
95-
"""
96-
Allows to prevent online services from overloading and ensure your business workflow running smoothly.
97-
"""
98-
99-
bot_challenge: OptionsBotProtectionBotChallenge
100-
"""Controls the bot challenge module state."""
101-
102-
enabled: bool
103-
"""Controls the option state.
104-
105-
Possible values:
106-
107-
- **true** - Option is enabled.
108-
- **false** - Option is disabled.
109-
"""
110-
111-
11281
class OptionsBrotliCompression(BaseModel):
11382
"""Compresses content with Brotli on the CDN side.
11483
@@ -1544,12 +1513,6 @@ class Options(BaseModel):
15441513
allowed_http_methods: Optional[OptionsAllowedHTTPMethods] = FieldInfo(alias="allowedHttpMethods", default=None)
15451514
"""HTTP methods allowed for content requests from the CDN."""
15461515

1547-
bot_protection: Optional[OptionsBotProtection] = None
1548-
"""
1549-
Allows to prevent online services from overloading and ensure your business
1550-
workflow running smoothly.
1551-
"""
1552-
15531516
brotli_compression: Optional[OptionsBrotliCompression] = None
15541517
"""Compresses content with Brotli on the CDN side.
15551518

src/gcore/types/cdn/cdn_resources/rule_create_params.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
"RuleCreateParams",
1313
"Options",
1414
"OptionsAllowedHTTPMethods",
15-
"OptionsBotProtection",
16-
"OptionsBotProtectionBotChallenge",
1715
"OptionsBrotliCompression",
1816
"OptionsBrowserCacheSettings",
1917
"OptionsCacheHTTPHeaders",
@@ -154,35 +152,6 @@ class OptionsAllowedHTTPMethods(TypedDict, total=False):
154152
value: Required[List[Literal["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]]]
155153

156154

157-
class OptionsBotProtectionBotChallenge(TypedDict, total=False):
158-
"""Controls the bot challenge module state."""
159-
160-
enabled: bool
161-
"""Possible values:
162-
163-
- **true** - Bot challenge is enabled.
164-
- **false** - Bot challenge is disabled.
165-
"""
166-
167-
168-
class OptionsBotProtection(TypedDict, total=False):
169-
"""
170-
Allows to prevent online services from overloading and ensure your business workflow running smoothly.
171-
"""
172-
173-
bot_challenge: Required[OptionsBotProtectionBotChallenge]
174-
"""Controls the bot challenge module state."""
175-
176-
enabled: Required[bool]
177-
"""Controls the option state.
178-
179-
Possible values:
180-
181-
- **true** - Option is enabled.
182-
- **false** - Option is disabled.
183-
"""
184-
185-
186155
class OptionsBrotliCompression(TypedDict, total=False):
187156
"""Compresses content with Brotli on the CDN side.
188157
@@ -1618,12 +1587,6 @@ class Options(TypedDict, total=False):
16181587
allowed_http_methods: Annotated[Optional[OptionsAllowedHTTPMethods], PropertyInfo(alias="allowedHttpMethods")]
16191588
"""HTTP methods allowed for content requests from the CDN."""
16201589

1621-
bot_protection: Optional[OptionsBotProtection]
1622-
"""
1623-
Allows to prevent online services from overloading and ensure your business
1624-
workflow running smoothly.
1625-
"""
1626-
16271590
brotli_compression: Optional[OptionsBrotliCompression]
16281591
"""Compresses content with Brotli on the CDN side.
16291592

0 commit comments

Comments
 (0)