Skip to content

Commit cd6be1a

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#1199)
1 parent a330274 commit cd6be1a

File tree

12 files changed

+13
-353
lines changed

12 files changed

+13
-353
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1258
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-90a35461612450a99cbc7456efed147532b3bbd683a18535b759d9c02742c835.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ac180c47ed9fe592a3b6dd8635623b4419a73968e580eacd342734e0a383fb7.yml

src/cloudflare/resources/zero_trust/gateway/certificates.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ def delete(
130130
extra_body: Body | None = None,
131131
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
132132
) -> Optional[CertificateDeleteResponse]:
133-
"""Deletes a gateway-managed Zero Trust certificate.
134-
135-
A certificate must be
136-
deactivated from the edge (inactive) before it is deleted.
133+
"""
134+
Deletes a gateway-managed Zero Trust certificate.
137135
138136
Args:
139137
certificate_id: Certificate UUID tag.
@@ -304,10 +302,8 @@ async def delete(
304302
extra_body: Body | None = None,
305303
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
306304
) -> Optional[CertificateDeleteResponse]:
307-
"""Deletes a gateway-managed Zero Trust certificate.
308-
309-
A certificate must be
310-
deactivated from the edge (inactive) before it is deleted.
305+
"""
306+
Deletes a gateway-managed Zero Trust certificate.
311307
312308
Args:
313309
certificate_id: Certificate UUID tag.

src/cloudflare/resources/zero_trust/gateway/locations.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def create(
4646
client_default: bool | NotGiven = NOT_GIVEN,
4747
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
4848
ecs_support: bool | NotGiven = NOT_GIVEN,
49-
endpoints: location_create_params.Endpoints | NotGiven = NOT_GIVEN,
5049
networks: Iterable[location_create_params.Network] | NotGiven = NOT_GIVEN,
5150
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5251
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -71,10 +70,6 @@ def create(
7170
7271
ecs_support: True if the location needs to resolve EDNS queries.
7372
74-
endpoints: The destination endpoints configured for this location. When updating a
75-
location, if this field is absent or set with null, the endpoints configuration
76-
remains unchanged.
77-
7873
networks: A list of network ranges that requests from this location would originate from.
7974
A non-empty list is only effective if the ipv4 endpoint is enabled for this
8075
location.
@@ -97,7 +92,6 @@ def create(
9792
"client_default": client_default,
9893
"dns_destination_ips_id": dns_destination_ips_id,
9994
"ecs_support": ecs_support,
100-
"endpoints": endpoints,
10195
"networks": networks,
10296
},
10397
location_create_params.LocationCreateParams,
@@ -121,7 +115,6 @@ def update(
121115
client_default: bool | NotGiven = NOT_GIVEN,
122116
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
123117
ecs_support: bool | NotGiven = NOT_GIVEN,
124-
endpoints: location_update_params.Endpoints | NotGiven = NOT_GIVEN,
125118
networks: Iterable[location_update_params.Network] | NotGiven = NOT_GIVEN,
126119
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
127120
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -146,10 +139,6 @@ def update(
146139
147140
ecs_support: True if the location needs to resolve EDNS queries.
148141
149-
endpoints: The destination endpoints configured for this location. When updating a
150-
location, if this field is absent or set with null, the endpoints configuration
151-
remains unchanged.
152-
153142
networks: A list of network ranges that requests from this location would originate from.
154143
A non-empty list is only effective if the ipv4 endpoint is enabled for this
155144
location.
@@ -174,7 +163,6 @@ def update(
174163
"client_default": client_default,
175164
"dns_destination_ips_id": dns_destination_ips_id,
176165
"ecs_support": ecs_support,
177-
"endpoints": endpoints,
178166
"networks": networks,
179167
},
180168
location_update_params.LocationUpdateParams,
@@ -326,7 +314,6 @@ async def create(
326314
client_default: bool | NotGiven = NOT_GIVEN,
327315
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
328316
ecs_support: bool | NotGiven = NOT_GIVEN,
329-
endpoints: location_create_params.Endpoints | NotGiven = NOT_GIVEN,
330317
networks: Iterable[location_create_params.Network] | NotGiven = NOT_GIVEN,
331318
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
332319
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -351,10 +338,6 @@ async def create(
351338
352339
ecs_support: True if the location needs to resolve EDNS queries.
353340
354-
endpoints: The destination endpoints configured for this location. When updating a
355-
location, if this field is absent or set with null, the endpoints configuration
356-
remains unchanged.
357-
358341
networks: A list of network ranges that requests from this location would originate from.
359342
A non-empty list is only effective if the ipv4 endpoint is enabled for this
360343
location.
@@ -377,7 +360,6 @@ async def create(
377360
"client_default": client_default,
378361
"dns_destination_ips_id": dns_destination_ips_id,
379362
"ecs_support": ecs_support,
380-
"endpoints": endpoints,
381363
"networks": networks,
382364
},
383365
location_create_params.LocationCreateParams,
@@ -401,7 +383,6 @@ async def update(
401383
client_default: bool | NotGiven = NOT_GIVEN,
402384
dns_destination_ips_id: str | NotGiven = NOT_GIVEN,
403385
ecs_support: bool | NotGiven = NOT_GIVEN,
404-
endpoints: location_update_params.Endpoints | NotGiven = NOT_GIVEN,
405386
networks: Iterable[location_update_params.Network] | NotGiven = NOT_GIVEN,
406387
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
407388
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -426,10 +407,6 @@ async def update(
426407
427408
ecs_support: True if the location needs to resolve EDNS queries.
428409
429-
endpoints: The destination endpoints configured for this location. When updating a
430-
location, if this field is absent or set with null, the endpoints configuration
431-
remains unchanged.
432-
433410
networks: A list of network ranges that requests from this location would originate from.
434411
A non-empty list is only effective if the ipv4 endpoint is enabled for this
435412
location.
@@ -454,7 +431,6 @@ async def update(
454431
"client_default": client_default,
455432
"dns_destination_ips_id": dns_destination_ips_id,
456433
"ecs_support": ecs_support,
457-
"endpoints": endpoints,
458434
"networks": networks,
459435
},
460436
location_update_params.LocationUpdateParams,

src/cloudflare/types/zero_trust/gateway/certificate_create_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class CertificateCreateResponse(BaseModel):
1414
"""Certificate UUID tag."""
1515

1616
binding_status: Optional[Literal["pending_deployment", "active", "pending_deletion", "inactive"]] = None
17-
"""The deployment status of the certificate on Cloudflare's edge.
18-
19-
Certificates in the 'active' state may be used for Gateway TLS interception.
20-
"""
17+
"""The deployment status of the certificate on Cloudflare's edge."""
2118

2219
created_at: Optional[datetime] = None
2320

src/cloudflare/types/zero_trust/gateway/certificate_delete_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class CertificateDeleteResponse(BaseModel):
1414
"""Certificate UUID tag."""
1515

1616
binding_status: Optional[Literal["pending_deployment", "active", "pending_deletion", "inactive"]] = None
17-
"""The deployment status of the certificate on Cloudflare's edge.
18-
19-
Certificates in the 'active' state may be used for Gateway TLS interception.
20-
"""
17+
"""The deployment status of the certificate on Cloudflare's edge."""
2118

2219
created_at: Optional[datetime] = None
2320

src/cloudflare/types/zero_trust/gateway/certificate_get_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class CertificateGetResponse(BaseModel):
1414
"""Certificate UUID tag."""
1515

1616
binding_status: Optional[Literal["pending_deployment", "active", "pending_deletion", "inactive"]] = None
17-
"""The deployment status of the certificate on Cloudflare's edge.
18-
19-
Certificates in the 'active' state may be used for Gateway TLS interception.
20-
"""
17+
"""The deployment status of the certificate on Cloudflare's edge."""
2118

2219
created_at: Optional[datetime] = None
2320

src/cloudflare/types/zero_trust/gateway/certificate_list_response.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ class CertificateListResponse(BaseModel):
1414
"""Certificate UUID tag."""
1515

1616
binding_status: Optional[Literal["pending_deployment", "active", "pending_deletion", "inactive"]] = None
17-
"""The deployment status of the certificate on Cloudflare's edge.
18-
19-
Certificates in the 'active' state may be used for Gateway TLS interception.
20-
"""
17+
"""The deployment status of the certificate on Cloudflare's edge."""
2118

2219
created_at: Optional[datetime] = None
2320

src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919

2020
class Certificate(BaseModel):
2121
id: str
22-
"""UUID of certificate to be used for interception.
23-
24-
Certificate must be active on the edge.
25-
"""
22+
"""UUID of certificate to be used for interception."""
2623

2724

2825
class GatewayConfigurationSettings(BaseModel):

src/cloudflare/types/zero_trust/gateway/gateway_configuration_settings_param.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020

2121
class Certificate(TypedDict, total=False):
2222
id: Required[str]
23-
"""UUID of certificate to be used for interception.
24-
25-
Certificate must be active on the edge.
26-
"""
23+
"""UUID of certificate to be used for interception."""
2724

2825

2926
class GatewayConfigurationSettingsParam(TypedDict, total=False):

src/cloudflare/types/zero_trust/gateway/location_create_params.py

Lines changed: 1 addition & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,7 @@
55
from typing import Iterable
66
from typing_extensions import Required, TypedDict
77

8-
__all__ = [
9-
"LocationCreateParams",
10-
"Endpoints",
11-
"EndpointsDOH",
12-
"EndpointsDOHNetwork",
13-
"EndpointsDOT",
14-
"EndpointsDOTNetwork",
15-
"EndpointsIPV4",
16-
"EndpointsIPV6",
17-
"EndpointsIPV6Network",
18-
"Network",
19-
]
8+
__all__ = ["LocationCreateParams", "Network"]
209

2110

2211
class LocationCreateParams(TypedDict, total=False):
@@ -40,13 +29,6 @@ class LocationCreateParams(TypedDict, total=False):
4029
ecs_support: bool
4130
"""True if the location needs to resolve EDNS queries."""
4231

43-
endpoints: Endpoints
44-
"""The destination endpoints configured for this location.
45-
46-
When updating a location, if this field is absent or set with null, the
47-
endpoints configuration remains unchanged.
48-
"""
49-
5032
networks: Iterable[Network]
5133
"""A list of network ranges that requests from this location would originate from.
5234
@@ -55,79 +37,6 @@ class LocationCreateParams(TypedDict, total=False):
5537
"""
5638

5739

58-
class EndpointsDOHNetwork(TypedDict, total=False):
59-
network: Required[str]
60-
"""The IP address or IP CIDR."""
61-
62-
63-
class EndpointsDOH(TypedDict, total=False):
64-
enabled: bool
65-
"""True if the endpoint is enabled for this location."""
66-
67-
networks: Iterable[EndpointsDOHNetwork]
68-
"""A list of allowed source IP network ranges for this endpoint.
69-
70-
When empty, all source IPs are allowed. A non-empty list is only effective if
71-
the endpoint is enabled for this location.
72-
"""
73-
74-
require_token: bool
75-
"""
76-
True if the endpoint requires
77-
[user identity](https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/agentless/dns/dns-over-https/#filter-doh-requests-by-user)
78-
authentication.
79-
"""
80-
81-
82-
class EndpointsDOTNetwork(TypedDict, total=False):
83-
network: Required[str]
84-
"""The IP address or IP CIDR."""
85-
86-
87-
class EndpointsDOT(TypedDict, total=False):
88-
enabled: bool
89-
"""True if the endpoint is enabled for this location."""
90-
91-
networks: Iterable[EndpointsDOTNetwork]
92-
"""A list of allowed source IP network ranges for this endpoint.
93-
94-
When empty, all source IPs are allowed. A non-empty list is only effective if
95-
the endpoint is enabled for this location.
96-
"""
97-
98-
99-
class EndpointsIPV4(TypedDict, total=False):
100-
enabled: bool
101-
"""True if the endpoint is enabled for this location."""
102-
103-
104-
class EndpointsIPV6Network(TypedDict, total=False):
105-
network: Required[str]
106-
"""The IPv6 address or IPv6 CIDR."""
107-
108-
109-
class EndpointsIPV6(TypedDict, total=False):
110-
enabled: bool
111-
"""True if the endpoint is enabled for this location."""
112-
113-
networks: Iterable[EndpointsIPV6Network]
114-
"""A list of allowed source IPv6 network ranges for this endpoint.
115-
116-
When empty, all source IPs are allowed. A non-empty list is only effective if
117-
the endpoint is enabled for this location.
118-
"""
119-
120-
121-
class Endpoints(TypedDict, total=False):
122-
doh: EndpointsDOH
123-
124-
dot: EndpointsDOT
125-
126-
ipv4: EndpointsIPV4
127-
128-
ipv6: EndpointsIPV6
129-
130-
13140
class Network(TypedDict, total=False):
13241
network: Required[str]
13342
"""The IPv4 address or IPv4 CIDR. IPv4 CIDRs are limited to a maximum of /24."""

0 commit comments

Comments
 (0)