Skip to content

Commit f5efa16

Browse files
feat(api): aggregated API specs update
1 parent adc6730 commit f5efa16

5 files changed

Lines changed: 280 additions & 14 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: 658
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore/gcore-49a48cd48270c9e72f277d36d87dc605e6f225755093efee47f206c428ce2486.yml
3-
openapi_spec_hash: b86bc8f93f6ae74dc966ed86fbf0ac68
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore/gcore-82db99348d2190a3c196adc12baac374facc672e882539e8518c7b85058c47ee.yml
3+
openapi_spec_hash: ae93d73931883d82017b3acd3c14eabd
44
config_hash: 88e4af508ede520a45a0563d9cf077cc

src/gcore/types/cdn/origin_group_create_params.py

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"NoneAuthSourceChangeHostSource",
1515
"NoneAuthSourceChangeS3Source",
1616
"NoneAuthSourceChangeS3SourceConfig",
17+
"NoneAuthSourceChangeFastedgeSource",
18+
"NoneAuthSourceChangeFastedgeSourceConfig",
1719
"AwsSignatureV4",
1820
"AwsSignatureV4Auth",
1921
]
@@ -188,20 +190,84 @@ class NoneAuthSourceChangeS3Source(TypedDict, total=False):
188190
from this origin instead of the default.
189191
"""
190192

191-
origin_type: Literal["host", "s3"]
192-
"""Origin type. Present in responses only for S3 sources.
193+
origin_type: Literal["host", "s3", "fastedge"]
194+
"""Origin type. Present in responses for S3 and FastEdge sources.
193195
194196
Possible values:
195197
196198
- **host** - A source server or endpoint from which content is fetched.
197199
- **s3** - S3 storage with either AWS v4 authentication or public access.
200+
- **fastedge** - A FastEdge application served directly from the local FastEdge
201+
runtime on the edge node, identified by `app_id`.
198202
"""
199203

200204
tag: str
201205
"""Tag for the origin source."""
202206

203207

204-
NoneAuthSource: TypeAlias = Union[NoneAuthSourceChangeHostSource, NoneAuthSourceChangeS3Source]
208+
class NoneAuthSourceChangeFastedgeSourceConfig(TypedDict, total=False):
209+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
210+
211+
app_id: Required[str]
212+
"""
213+
ID of the FastEdge application served as origin (string, matching the existing
214+
fastedge option's convention). The CDN dispatches requests to the local FastEdge
215+
runtime on the edge node using this identifier. The application must belong to
216+
the requesting client, be enabled, and have `wasi-http` API type.
217+
"""
218+
219+
220+
class NoneAuthSourceChangeFastedgeSource(TypedDict, total=False):
221+
config: Required[NoneAuthSourceChangeFastedgeSourceConfig]
222+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
223+
224+
origin_type: Required[Literal["host", "s3", "fastedge"]]
225+
"""Origin type. Present in responses for S3 and FastEdge sources.
226+
227+
Possible values:
228+
229+
- **host** - A source server or endpoint from which content is fetched.
230+
- **s3** - S3 storage with either AWS v4 authentication or public access.
231+
- **fastedge** - A FastEdge application served directly from the local FastEdge
232+
runtime on the edge node, identified by `app_id`.
233+
"""
234+
235+
backup: bool
236+
"""
237+
Defines whether the origin is a backup, meaning that it will not be used until
238+
one of active origins become unavailable.
239+
240+
Possible values:
241+
242+
- **true** - Origin is a backup.
243+
- **false** - Origin is not a backup.
244+
"""
245+
246+
enabled: bool
247+
"""Enables or disables an origin source in the origin group.
248+
249+
Possible values:
250+
251+
- **true** - Origin is enabled and the CDN uses it to pull content.
252+
- **false** - Origin is disabled and the CDN does not use it to pull content.
253+
254+
Origin group must contain at least one enabled origin.
255+
"""
256+
257+
host_header_override: Optional[str]
258+
"""Per-origin Host header override.
259+
260+
When set, the CDN sends this value as the Host header when requesting content
261+
from this origin instead of the default.
262+
"""
263+
264+
tag: str
265+
"""Tag for the origin source."""
266+
267+
268+
NoneAuthSource: TypeAlias = Union[
269+
NoneAuthSourceChangeHostSource, NoneAuthSourceChangeS3Source, NoneAuthSourceChangeFastedgeSource
270+
]
205271

206272

207273
class AwsSignatureV4(TypedDict, total=False):

src/gcore/types/cdn/origin_group_replace_params.py

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"NoneAuthSourceChangeHostSource",
1515
"NoneAuthSourceChangeS3Source",
1616
"NoneAuthSourceChangeS3SourceConfig",
17+
"NoneAuthSourceChangeFastedgeSource",
18+
"NoneAuthSourceChangeFastedgeSourceConfig",
1719
"AwsSignatureV4",
1820
"AwsSignatureV4Auth",
1921
]
@@ -196,20 +198,84 @@ class NoneAuthSourceChangeS3Source(TypedDict, total=False):
196198
from this origin instead of the default.
197199
"""
198200

199-
origin_type: Literal["host", "s3"]
200-
"""Origin type. Present in responses only for S3 sources.
201+
origin_type: Literal["host", "s3", "fastedge"]
202+
"""Origin type. Present in responses for S3 and FastEdge sources.
201203
202204
Possible values:
203205
204206
- **host** - A source server or endpoint from which content is fetched.
205207
- **s3** - S3 storage with either AWS v4 authentication or public access.
208+
- **fastedge** - A FastEdge application served directly from the local FastEdge
209+
runtime on the edge node, identified by `app_id`.
206210
"""
207211

208212
tag: str
209213
"""Tag for the origin source."""
210214

211215

212-
NoneAuthSource: TypeAlias = Union[NoneAuthSourceChangeHostSource, NoneAuthSourceChangeS3Source]
216+
class NoneAuthSourceChangeFastedgeSourceConfig(TypedDict, total=False):
217+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
218+
219+
app_id: Required[str]
220+
"""
221+
ID of the FastEdge application served as origin (string, matching the existing
222+
fastedge option's convention). The CDN dispatches requests to the local FastEdge
223+
runtime on the edge node using this identifier. The application must belong to
224+
the requesting client, be enabled, and have `wasi-http` API type.
225+
"""
226+
227+
228+
class NoneAuthSourceChangeFastedgeSource(TypedDict, total=False):
229+
config: Required[NoneAuthSourceChangeFastedgeSourceConfig]
230+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
231+
232+
origin_type: Required[Literal["host", "s3", "fastedge"]]
233+
"""Origin type. Present in responses for S3 and FastEdge sources.
234+
235+
Possible values:
236+
237+
- **host** - A source server or endpoint from which content is fetched.
238+
- **s3** - S3 storage with either AWS v4 authentication or public access.
239+
- **fastedge** - A FastEdge application served directly from the local FastEdge
240+
runtime on the edge node, identified by `app_id`.
241+
"""
242+
243+
backup: bool
244+
"""
245+
Defines whether the origin is a backup, meaning that it will not be used until
246+
one of active origins become unavailable.
247+
248+
Possible values:
249+
250+
- **true** - Origin is a backup.
251+
- **false** - Origin is not a backup.
252+
"""
253+
254+
enabled: bool
255+
"""Enables or disables an origin source in the origin group.
256+
257+
Possible values:
258+
259+
- **true** - Origin is enabled and the CDN uses it to pull content.
260+
- **false** - Origin is disabled and the CDN does not use it to pull content.
261+
262+
Origin group must contain at least one enabled origin.
263+
"""
264+
265+
host_header_override: Optional[str]
266+
"""Per-origin Host header override.
267+
268+
When set, the CDN sends this value as the Host header when requesting content
269+
from this origin instead of the default.
270+
"""
271+
272+
tag: str
273+
"""Tag for the origin source."""
274+
275+
276+
NoneAuthSource: TypeAlias = Union[
277+
NoneAuthSourceChangeHostSource, NoneAuthSourceChangeS3Source, NoneAuthSourceChangeFastedgeSource
278+
]
213279

214280

215281
class AwsSignatureV4(TypedDict, total=False):

src/gcore/types/cdn/origin_group_update_params.py

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"NoneAuthSourceChangeHostSource",
1515
"NoneAuthSourceChangeS3Source",
1616
"NoneAuthSourceChangeS3SourceConfig",
17+
"NoneAuthSourceChangeFastedgeSource",
18+
"NoneAuthSourceChangeFastedgeSourceConfig",
1719
"AwsSignatureV4",
1820
"AwsSignatureV4Auth",
1921
]
@@ -196,20 +198,84 @@ class NoneAuthSourceChangeS3Source(TypedDict, total=False):
196198
from this origin instead of the default.
197199
"""
198200

199-
origin_type: Literal["host", "s3"]
200-
"""Origin type. Present in responses only for S3 sources.
201+
origin_type: Literal["host", "s3", "fastedge"]
202+
"""Origin type. Present in responses for S3 and FastEdge sources.
201203
202204
Possible values:
203205
204206
- **host** - A source server or endpoint from which content is fetched.
205207
- **s3** - S3 storage with either AWS v4 authentication or public access.
208+
- **fastedge** - A FastEdge application served directly from the local FastEdge
209+
runtime on the edge node, identified by `app_id`.
206210
"""
207211

208212
tag: str
209213
"""Tag for the origin source."""
210214

211215

212-
NoneAuthSource: TypeAlias = Union[NoneAuthSourceChangeHostSource, NoneAuthSourceChangeS3Source]
216+
class NoneAuthSourceChangeFastedgeSourceConfig(TypedDict, total=False):
217+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
218+
219+
app_id: Required[str]
220+
"""
221+
ID of the FastEdge application served as origin (string, matching the existing
222+
fastedge option's convention). The CDN dispatches requests to the local FastEdge
223+
runtime on the edge node using this identifier. The application must belong to
224+
the requesting client, be enabled, and have `wasi-http` API type.
225+
"""
226+
227+
228+
class NoneAuthSourceChangeFastedgeSource(TypedDict, total=False):
229+
config: Required[NoneAuthSourceChangeFastedgeSourceConfig]
230+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
231+
232+
origin_type: Required[Literal["host", "s3", "fastedge"]]
233+
"""Origin type. Present in responses for S3 and FastEdge sources.
234+
235+
Possible values:
236+
237+
- **host** - A source server or endpoint from which content is fetched.
238+
- **s3** - S3 storage with either AWS v4 authentication or public access.
239+
- **fastedge** - A FastEdge application served directly from the local FastEdge
240+
runtime on the edge node, identified by `app_id`.
241+
"""
242+
243+
backup: bool
244+
"""
245+
Defines whether the origin is a backup, meaning that it will not be used until
246+
one of active origins become unavailable.
247+
248+
Possible values:
249+
250+
- **true** - Origin is a backup.
251+
- **false** - Origin is not a backup.
252+
"""
253+
254+
enabled: bool
255+
"""Enables or disables an origin source in the origin group.
256+
257+
Possible values:
258+
259+
- **true** - Origin is enabled and the CDN uses it to pull content.
260+
- **false** - Origin is disabled and the CDN does not use it to pull content.
261+
262+
Origin group must contain at least one enabled origin.
263+
"""
264+
265+
host_header_override: Optional[str]
266+
"""Per-origin Host header override.
267+
268+
When set, the CDN sends this value as the Host header when requesting content
269+
from this origin instead of the default.
270+
"""
271+
272+
tag: str
273+
"""Tag for the origin source."""
274+
275+
276+
NoneAuthSource: TypeAlias = Union[
277+
NoneAuthSourceChangeHostSource, NoneAuthSourceChangeS3Source, NoneAuthSourceChangeFastedgeSource
278+
]
213279

214280

215281
class AwsSignatureV4(TypedDict, total=False):

src/gcore/types/cdn/origin_groups.py

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"NoneAuthSourceHostSourceResponse",
1313
"NoneAuthSourceS3SourceResponse",
1414
"NoneAuthSourceS3SourceResponseConfig",
15+
"NoneAuthSourceFastedgeSourceResponse",
16+
"NoneAuthSourceFastedgeSourceResponseConfig",
1517
"AwsSignatureV4",
1618
"AwsSignatureV4Auth",
1719
]
@@ -112,13 +114,15 @@ class NoneAuthSourceS3SourceResponse(BaseModel):
112114
config: NoneAuthSourceS3SourceResponseConfig
113115
"""S3 storage configuration. Required when `origin_type` is `s3`."""
114116

115-
origin_type: Literal["host", "s3"]
116-
"""Origin type. Present in responses only for S3 sources.
117+
origin_type: Literal["host", "s3", "fastedge"]
118+
"""Origin type. Present in responses for S3 and FastEdge sources.
117119
118120
Possible values:
119121
120122
- **host** - A source server or endpoint from which content is fetched.
121123
- **s3** - S3 storage with either AWS v4 authentication or public access.
124+
- **fastedge** - A FastEdge application served directly from the local FastEdge
125+
runtime on the edge node, identified by `app_id`.
122126
"""
123127

124128
backup: Optional[bool] = None
@@ -154,7 +158,71 @@ class NoneAuthSourceS3SourceResponse(BaseModel):
154158
"""Tag for the origin source."""
155159

156160

157-
NoneAuthSource: TypeAlias = Union[NoneAuthSourceHostSourceResponse, NoneAuthSourceS3SourceResponse]
161+
class NoneAuthSourceFastedgeSourceResponseConfig(BaseModel):
162+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
163+
164+
app_id: str
165+
"""
166+
ID of the FastEdge application served as origin (string, matching the existing
167+
fastedge option's convention). The CDN dispatches requests to the local FastEdge
168+
runtime on the edge node using this identifier. The application must belong to
169+
the requesting client, be enabled, and have `wasi-http` API type.
170+
"""
171+
172+
173+
class NoneAuthSourceFastedgeSourceResponse(BaseModel):
174+
"""A FastEdge application origin source."""
175+
176+
config: NoneAuthSourceFastedgeSourceResponseConfig
177+
"""FastEdge application configuration. Required when `origin_type` is `fastedge`."""
178+
179+
origin_type: Literal["host", "s3", "fastedge"]
180+
"""Origin type. Present in responses for S3 and FastEdge sources.
181+
182+
Possible values:
183+
184+
- **host** - A source server or endpoint from which content is fetched.
185+
- **s3** - S3 storage with either AWS v4 authentication or public access.
186+
- **fastedge** - A FastEdge application served directly from the local FastEdge
187+
runtime on the edge node, identified by `app_id`.
188+
"""
189+
190+
backup: Optional[bool] = None
191+
"""
192+
Defines whether the origin is a backup, meaning that it will not be used until
193+
one of active origins become unavailable.
194+
195+
Possible values:
196+
197+
- **true** - Origin is a backup.
198+
- **false** - Origin is not a backup.
199+
"""
200+
201+
enabled: Optional[bool] = None
202+
"""Enables or disables an origin source in the origin group.
203+
204+
Possible values:
205+
206+
- **true** - Origin is enabled and the CDN uses it to pull content.
207+
- **false** - Origin is disabled and the CDN does not use it to pull content.
208+
209+
Origin group must contain at least one enabled origin.
210+
"""
211+
212+
host_header_override: Optional[str] = None
213+
"""Per-origin Host header override.
214+
215+
When set, the CDN sends this value as the Host header when requesting content
216+
from this origin instead of the default.
217+
"""
218+
219+
tag: Optional[str] = None
220+
"""Tag for the origin source."""
221+
222+
223+
NoneAuthSource: TypeAlias = Union[
224+
NoneAuthSourceHostSourceResponse, NoneAuthSourceS3SourceResponse, NoneAuthSourceFastedgeSourceResponse
225+
]
158226

159227

160228
class NoneAuth(BaseModel):

0 commit comments

Comments
 (0)