Skip to content

Commit 7d70fe4

Browse files
feat(api): aggregated API specs update
1 parent 030f335 commit 7d70fe4

16 files changed

Lines changed: 2 additions & 488 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-d73605eab588cd7efdba20ce0eee0a405cb65022fbe7b7e9a16ba65b7d5ebdd3.yml
3-
openapi_spec_hash: 489b55923a96afb5b42137852162f901
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-ba1eb162beed31f03386720005830bdaad3be08b9e08a07b2f10a2dd124648b8.yml
3+
openapi_spec_hash: 416a4779f456d266b805fef5a54cfbc7
44
config_hash: d2defa3f4caff86ec6f4b8890f74b295

src/gcore/types/cdn/cdn_resource.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"OptionsRedirectHTTPToHTTPS",
4949
"OptionsRedirectHTTPSToHTTP",
5050
"OptionsReferrerACL",
51-
"OptionsRequestLimiter",
5251
"OptionsResponseHeadersHidingPolicy",
5352
"OptionsRewrite",
5453
"OptionsSecureKey",
@@ -1127,38 +1126,6 @@ class OptionsReferrerACL(BaseModel):
11271126
"""
11281127

11291128

1130-
class OptionsRequestLimiter(BaseModel):
1131-
"""Option allows to limit the amount of HTTP requests."""
1132-
1133-
enabled: bool
1134-
"""Controls the option state.
1135-
1136-
Possible values:
1137-
1138-
- **true** - Option is enabled.
1139-
- **false** - Option is disabled.
1140-
"""
1141-
1142-
rate: int
1143-
"""Maximum request rate."""
1144-
1145-
burst: Optional[int] = None
1146-
1147-
delay: Optional[int] = None
1148-
1149-
rate_unit: Optional[Literal["r/s", "r/m"]] = None
1150-
"""Units of measurement for the `rate` field.
1151-
1152-
Possible values:
1153-
1154-
- **r/s** - Requests per second.
1155-
- **r/m** - Requests per minute.
1156-
1157-
If the rate is less than one request per second, it is specified in request per
1158-
minute (r/m.)
1159-
"""
1160-
1161-
11621129
class OptionsResponseHeadersHidingPolicy(BaseModel):
11631130
"""Hides HTTP headers from an origin server in the CDN response."""
11641131

@@ -1900,9 +1867,6 @@ class Options(BaseModel):
19001867
referrer_acl: Optional[OptionsReferrerACL] = None
19011868
"""Controls access to the CDN resource content for specified domain names."""
19021869

1903-
request_limiter: Optional[OptionsRequestLimiter] = None
1904-
"""Option allows to limit the amount of HTTP requests."""
1905-
19061870
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy] = None
19071871
"""Hides HTTP headers from an origin server in the CDN response."""
19081872

src/gcore/types/cdn/cdn_resource_create_params.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"OptionsRedirectHTTPToHTTPS",
5050
"OptionsRedirectHTTPSToHTTP",
5151
"OptionsReferrerACL",
52-
"OptionsRequestLimiter",
5352
"OptionsResponseHeadersHidingPolicy",
5453
"OptionsRewrite",
5554
"OptionsSecureKey",
@@ -1252,34 +1251,6 @@ class OptionsReferrerACL(TypedDict, total=False):
12521251
"""
12531252

12541253

1255-
class OptionsRequestLimiter(TypedDict, total=False):
1256-
"""Option allows to limit the amount of HTTP requests."""
1257-
1258-
enabled: Required[bool]
1259-
"""Controls the option state.
1260-
1261-
Possible values:
1262-
1263-
- **true** - Option is enabled.
1264-
- **false** - Option is disabled.
1265-
"""
1266-
1267-
rate: Required[int]
1268-
"""Maximum request rate."""
1269-
1270-
rate_unit: Literal["r/s", "r/m"]
1271-
"""Units of measurement for the `rate` field.
1272-
1273-
Possible values:
1274-
1275-
- **r/s** - Requests per second.
1276-
- **r/m** - Requests per minute.
1277-
1278-
If the rate is less than one request per second, it is specified in request per
1279-
minute (r/m.)
1280-
"""
1281-
1282-
12831254
class OptionsResponseHeadersHidingPolicy(TypedDict, total=False):
12841255
"""Hides HTTP headers from an origin server in the CDN response."""
12851256

@@ -2023,9 +1994,6 @@ class Options(TypedDict, total=False):
20231994
referrer_acl: Optional[OptionsReferrerACL]
20241995
"""Controls access to the CDN resource content for specified domain names."""
20251996

2026-
request_limiter: Optional[OptionsRequestLimiter]
2027-
"""Option allows to limit the amount of HTTP requests."""
2028-
20291997
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy]
20301998
"""Hides HTTP headers from an origin server in the CDN response."""
20311999

src/gcore/types/cdn/cdn_resource_replace_params.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"OptionsRedirectHTTPToHTTPS",
5050
"OptionsRedirectHTTPSToHTTP",
5151
"OptionsReferrerACL",
52-
"OptionsRequestLimiter",
5352
"OptionsResponseHeadersHidingPolicy",
5453
"OptionsRewrite",
5554
"OptionsSecureKey",
@@ -1225,34 +1224,6 @@ class OptionsReferrerACL(TypedDict, total=False):
12251224
"""
12261225

12271226

1228-
class OptionsRequestLimiter(TypedDict, total=False):
1229-
"""Option allows to limit the amount of HTTP requests."""
1230-
1231-
enabled: Required[bool]
1232-
"""Controls the option state.
1233-
1234-
Possible values:
1235-
1236-
- **true** - Option is enabled.
1237-
- **false** - Option is disabled.
1238-
"""
1239-
1240-
rate: Required[int]
1241-
"""Maximum request rate."""
1242-
1243-
rate_unit: Literal["r/s", "r/m"]
1244-
"""Units of measurement for the `rate` field.
1245-
1246-
Possible values:
1247-
1248-
- **r/s** - Requests per second.
1249-
- **r/m** - Requests per minute.
1250-
1251-
If the rate is less than one request per second, it is specified in request per
1252-
minute (r/m.)
1253-
"""
1254-
1255-
12561227
class OptionsResponseHeadersHidingPolicy(TypedDict, total=False):
12571228
"""Hides HTTP headers from an origin server in the CDN response."""
12581229

@@ -1996,9 +1967,6 @@ class Options(TypedDict, total=False):
19961967
referrer_acl: Optional[OptionsReferrerACL]
19971968
"""Controls access to the CDN resource content for specified domain names."""
19981969

1999-
request_limiter: Optional[OptionsRequestLimiter]
2000-
"""Option allows to limit the amount of HTTP requests."""
2001-
20021970
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy]
20031971
"""Hides HTTP headers from an origin server in the CDN response."""
20041972

src/gcore/types/cdn/cdn_resource_update_params.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"OptionsRedirectHTTPToHTTPS",
5050
"OptionsRedirectHTTPSToHTTP",
5151
"OptionsReferrerACL",
52-
"OptionsRequestLimiter",
5352
"OptionsResponseHeadersHidingPolicy",
5453
"OptionsRewrite",
5554
"OptionsSecureKey",
@@ -1216,34 +1215,6 @@ class OptionsReferrerACL(TypedDict, total=False):
12161215
"""
12171216

12181217

1219-
class OptionsRequestLimiter(TypedDict, total=False):
1220-
"""Option allows to limit the amount of HTTP requests."""
1221-
1222-
enabled: Required[bool]
1223-
"""Controls the option state.
1224-
1225-
Possible values:
1226-
1227-
- **true** - Option is enabled.
1228-
- **false** - Option is disabled.
1229-
"""
1230-
1231-
rate: Required[int]
1232-
"""Maximum request rate."""
1233-
1234-
rate_unit: Literal["r/s", "r/m"]
1235-
"""Units of measurement for the `rate` field.
1236-
1237-
Possible values:
1238-
1239-
- **r/s** - Requests per second.
1240-
- **r/m** - Requests per minute.
1241-
1242-
If the rate is less than one request per second, it is specified in request per
1243-
minute (r/m.)
1244-
"""
1245-
1246-
12471218
class OptionsResponseHeadersHidingPolicy(TypedDict, total=False):
12481219
"""Hides HTTP headers from an origin server in the CDN response."""
12491220

@@ -1987,9 +1958,6 @@ class Options(TypedDict, total=False):
19871958
referrer_acl: Optional[OptionsReferrerACL]
19881959
"""Controls access to the CDN resource content for specified domain names."""
19891960

1990-
request_limiter: Optional[OptionsRequestLimiter]
1991-
"""Option allows to limit the amount of HTTP requests."""
1992-
19931961
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy]
19941962
"""Hides HTTP headers from an origin server in the CDN response."""
19951963

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"OptionsRedirectHTTPToHTTPS",
4747
"OptionsRedirectHTTPSToHTTP",
4848
"OptionsReferrerACL",
49-
"OptionsRequestLimiter",
5049
"OptionsResponseHeadersHidingPolicy",
5150
"OptionsRewrite",
5251
"OptionsSecureKey",
@@ -1078,38 +1077,6 @@ class OptionsReferrerACL(BaseModel):
10781077
"""
10791078

10801079

1081-
class OptionsRequestLimiter(BaseModel):
1082-
"""Option allows to limit the amount of HTTP requests."""
1083-
1084-
enabled: bool
1085-
"""Controls the option state.
1086-
1087-
Possible values:
1088-
1089-
- **true** - Option is enabled.
1090-
- **false** - Option is disabled.
1091-
"""
1092-
1093-
rate: int
1094-
"""Maximum request rate."""
1095-
1096-
burst: Optional[int] = None
1097-
1098-
delay: Optional[int] = None
1099-
1100-
rate_unit: Optional[Literal["r/s", "r/m"]] = None
1101-
"""Units of measurement for the `rate` field.
1102-
1103-
Possible values:
1104-
1105-
- **r/s** - Requests per second.
1106-
- **r/m** - Requests per minute.
1107-
1108-
If the rate is less than one request per second, it is specified in request per
1109-
minute (r/m.)
1110-
"""
1111-
1112-
11131080
class OptionsResponseHeadersHidingPolicy(BaseModel):
11141081
"""Hides HTTP headers from an origin server in the CDN response."""
11151082

@@ -1752,9 +1719,6 @@ class Options(BaseModel):
17521719
referrer_acl: Optional[OptionsReferrerACL] = None
17531720
"""Controls access to the CDN resource content for specified domain names."""
17541721

1755-
request_limiter: Optional[OptionsRequestLimiter] = None
1756-
"""Option allows to limit the amount of HTTP requests."""
1757-
17581722
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy] = None
17591723
"""Hides HTTP headers from an origin server in the CDN response."""
17601724

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"OptionsRedirectHTTPToHTTPS",
4848
"OptionsRedirectHTTPSToHTTP",
4949
"OptionsReferrerACL",
50-
"OptionsRequestLimiter",
5150
"OptionsResponseHeadersHidingPolicy",
5251
"OptionsRewrite",
5352
"OptionsSecureKey",
@@ -1154,34 +1153,6 @@ class OptionsReferrerACL(TypedDict, total=False):
11541153
"""
11551154

11561155

1157-
class OptionsRequestLimiter(TypedDict, total=False):
1158-
"""Option allows to limit the amount of HTTP requests."""
1159-
1160-
enabled: Required[bool]
1161-
"""Controls the option state.
1162-
1163-
Possible values:
1164-
1165-
- **true** - Option is enabled.
1166-
- **false** - Option is disabled.
1167-
"""
1168-
1169-
rate: Required[int]
1170-
"""Maximum request rate."""
1171-
1172-
rate_unit: Literal["r/s", "r/m"]
1173-
"""Units of measurement for the `rate` field.
1174-
1175-
Possible values:
1176-
1177-
- **r/s** - Requests per second.
1178-
- **r/m** - Requests per minute.
1179-
1180-
If the rate is less than one request per second, it is specified in request per
1181-
minute (r/m.)
1182-
"""
1183-
1184-
11851156
class OptionsResponseHeadersHidingPolicy(TypedDict, total=False):
11861157
"""Hides HTTP headers from an origin server in the CDN response."""
11871158

@@ -1826,9 +1797,6 @@ class Options(TypedDict, total=False):
18261797
referrer_acl: Optional[OptionsReferrerACL]
18271798
"""Controls access to the CDN resource content for specified domain names."""
18281799

1829-
request_limiter: Optional[OptionsRequestLimiter]
1830-
"""Option allows to limit the amount of HTTP requests."""
1831-
18321800
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy]
18331801
"""Hides HTTP headers from an origin server in the CDN response."""
18341802

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"OptionsRedirectHTTPToHTTPS",
4848
"OptionsRedirectHTTPSToHTTP",
4949
"OptionsReferrerACL",
50-
"OptionsRequestLimiter",
5150
"OptionsResponseHeadersHidingPolicy",
5251
"OptionsRewrite",
5352
"OptionsSecureKey",
@@ -1156,34 +1155,6 @@ class OptionsReferrerACL(TypedDict, total=False):
11561155
"""
11571156

11581157

1159-
class OptionsRequestLimiter(TypedDict, total=False):
1160-
"""Option allows to limit the amount of HTTP requests."""
1161-
1162-
enabled: Required[bool]
1163-
"""Controls the option state.
1164-
1165-
Possible values:
1166-
1167-
- **true** - Option is enabled.
1168-
- **false** - Option is disabled.
1169-
"""
1170-
1171-
rate: Required[int]
1172-
"""Maximum request rate."""
1173-
1174-
rate_unit: Literal["r/s", "r/m"]
1175-
"""Units of measurement for the `rate` field.
1176-
1177-
Possible values:
1178-
1179-
- **r/s** - Requests per second.
1180-
- **r/m** - Requests per minute.
1181-
1182-
If the rate is less than one request per second, it is specified in request per
1183-
minute (r/m.)
1184-
"""
1185-
1186-
11871158
class OptionsResponseHeadersHidingPolicy(TypedDict, total=False):
11881159
"""Hides HTTP headers from an origin server in the CDN response."""
11891160

@@ -1828,9 +1799,6 @@ class Options(TypedDict, total=False):
18281799
referrer_acl: Optional[OptionsReferrerACL]
18291800
"""Controls access to the CDN resource content for specified domain names."""
18301801

1831-
request_limiter: Optional[OptionsRequestLimiter]
1832-
"""Option allows to limit the amount of HTTP requests."""
1833-
18341802
response_headers_hiding_policy: Optional[OptionsResponseHeadersHidingPolicy]
18351803
"""Hides HTTP headers from an origin server in the CDN response."""
18361804

0 commit comments

Comments
 (0)