Skip to content

Commit e05c02f

Browse files
chore(api): update composite API spec
1 parent c525e9c commit e05c02f

11 files changed

Lines changed: 223 additions & 15 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: 2063
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8b1e159bc8bcbd6eba3b0b85ba43ded86d0102a23545fcd9c226828e84dab1e9.yml
3-
openapi_spec_hash: c1d18dd14d4a2eb028dd2d32e55cc02d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d20e76fb8aad7a3f928616ae90dcf7c126065dd57d36e20bafb3ae89ff4fe96e.yml
3+
openapi_spec_hash: cac25a57bf08fea9b33a8b95119916e9
44
config_hash: 436dbbeb18db3b6d221f37bf7054a839

src/cloudflare/resources/custom_hostnames/custom_hostnames.py

Lines changed: 114 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,57 @@ def list(
149149
*,
150150
zone_id: str,
151151
id: str | Omit = omit,
152+
certificate_authority: Literal["google", "lets_encrypt", "ssl_com"] | Omit = omit,
152153
direction: Literal["asc", "desc"] | Omit = omit,
153-
hostname: str | Omit = omit,
154+
hostname: custom_hostname_list_params.Hostname | Omit = omit,
155+
hostname_status: Literal[
156+
"active",
157+
"pending",
158+
"active_redeploying",
159+
"moved",
160+
"pending_deletion",
161+
"deleted",
162+
"pending_blocked",
163+
"pending_migration",
164+
"pending_provisioned",
165+
"test_pending",
166+
"test_active",
167+
"test_active_apex",
168+
"test_blocked",
169+
"test_failed",
170+
"provisioned",
171+
"blocked",
172+
]
173+
| Omit = omit,
154174
order: Literal["ssl", "ssl_status"] | Omit = omit,
155175
page: float | Omit = omit,
156176
per_page: float | Omit = omit,
157177
ssl: Literal[0, 1] | Omit = omit,
178+
ssl_status: Literal[
179+
"initializing",
180+
"pending_validation",
181+
"deleted",
182+
"pending_issuance",
183+
"pending_deployment",
184+
"pending_deletion",
185+
"pending_expiration",
186+
"expired",
187+
"active",
188+
"initializing_timed_out",
189+
"validation_timed_out",
190+
"issuance_timed_out",
191+
"deployment_timed_out",
192+
"deletion_timed_out",
193+
"pending_cleanup",
194+
"staging_deployment",
195+
"staging_active",
196+
"deactivating",
197+
"inactive",
198+
"backup_issued",
199+
"holding_deployment",
200+
]
201+
| Omit = omit,
202+
wildcard: bool | Omit = omit,
158203
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
159204
# The extra values given here take precedence over values defined on the client or passed to this method.
160205
extra_headers: Headers | None = None,
@@ -172,10 +217,11 @@ def list(
172217
initial custom_hostname creation. This parameter cannot be used with the
173218
'hostname' parameter.
174219
220+
certificate_authority: Filter by the certificate authority that issued the SSL certificate.
221+
175222
direction: Direction to order hostnames.
176223
177-
hostname: Fully qualified domain name to match against. This parameter cannot be used with
178-
the 'id' parameter.
224+
hostname_status: Filter by the hostname's activation status.
179225
180226
order: Field to order hostnames by.
181227
@@ -185,6 +231,10 @@ def list(
185231
186232
ssl: Whether to filter hostnames based on if they have SSL enabled.
187233
234+
ssl_status: Filter by SSL certificate status.
235+
236+
wildcard: Filter by whether the custom hostname is a wildcard hostname.
237+
188238
extra_headers: Send extra headers
189239
190240
extra_query: Add additional query parameters to the request
@@ -206,12 +256,16 @@ def list(
206256
query=maybe_transform(
207257
{
208258
"id": id,
259+
"certificate_authority": certificate_authority,
209260
"direction": direction,
210261
"hostname": hostname,
262+
"hostname_status": hostname_status,
211263
"order": order,
212264
"page": page,
213265
"per_page": per_page,
214266
"ssl": ssl,
267+
"ssl_status": ssl_status,
268+
"wildcard": wildcard,
215269
},
216270
custom_hostname_list_params.CustomHostnameListParams,
217271
),
@@ -483,12 +537,57 @@ def list(
483537
*,
484538
zone_id: str,
485539
id: str | Omit = omit,
540+
certificate_authority: Literal["google", "lets_encrypt", "ssl_com"] | Omit = omit,
486541
direction: Literal["asc", "desc"] | Omit = omit,
487-
hostname: str | Omit = omit,
542+
hostname: custom_hostname_list_params.Hostname | Omit = omit,
543+
hostname_status: Literal[
544+
"active",
545+
"pending",
546+
"active_redeploying",
547+
"moved",
548+
"pending_deletion",
549+
"deleted",
550+
"pending_blocked",
551+
"pending_migration",
552+
"pending_provisioned",
553+
"test_pending",
554+
"test_active",
555+
"test_active_apex",
556+
"test_blocked",
557+
"test_failed",
558+
"provisioned",
559+
"blocked",
560+
]
561+
| Omit = omit,
488562
order: Literal["ssl", "ssl_status"] | Omit = omit,
489563
page: float | Omit = omit,
490564
per_page: float | Omit = omit,
491565
ssl: Literal[0, 1] | Omit = omit,
566+
ssl_status: Literal[
567+
"initializing",
568+
"pending_validation",
569+
"deleted",
570+
"pending_issuance",
571+
"pending_deployment",
572+
"pending_deletion",
573+
"pending_expiration",
574+
"expired",
575+
"active",
576+
"initializing_timed_out",
577+
"validation_timed_out",
578+
"issuance_timed_out",
579+
"deployment_timed_out",
580+
"deletion_timed_out",
581+
"pending_cleanup",
582+
"staging_deployment",
583+
"staging_active",
584+
"deactivating",
585+
"inactive",
586+
"backup_issued",
587+
"holding_deployment",
588+
]
589+
| Omit = omit,
590+
wildcard: bool | Omit = omit,
492591
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
493592
# The extra values given here take precedence over values defined on the client or passed to this method.
494593
extra_headers: Headers | None = None,
@@ -506,10 +605,11 @@ def list(
506605
initial custom_hostname creation. This parameter cannot be used with the
507606
'hostname' parameter.
508607
608+
certificate_authority: Filter by the certificate authority that issued the SSL certificate.
609+
509610
direction: Direction to order hostnames.
510611
511-
hostname: Fully qualified domain name to match against. This parameter cannot be used with
512-
the 'id' parameter.
612+
hostname_status: Filter by the hostname's activation status.
513613
514614
order: Field to order hostnames by.
515615
@@ -519,6 +619,10 @@ def list(
519619
520620
ssl: Whether to filter hostnames based on if they have SSL enabled.
521621
622+
ssl_status: Filter by SSL certificate status.
623+
624+
wildcard: Filter by whether the custom hostname is a wildcard hostname.
625+
522626
extra_headers: Send extra headers
523627
524628
extra_query: Add additional query parameters to the request
@@ -540,12 +644,16 @@ def list(
540644
query=maybe_transform(
541645
{
542646
"id": id,
647+
"certificate_authority": certificate_authority,
543648
"direction": direction,
544649
"hostname": hostname,
650+
"hostname_status": hostname_status,
545651
"order": order,
546652
"page": page,
547653
"per_page": per_page,
548654
"ssl": ssl,
655+
"ssl_status": ssl_status,
656+
"wildcard": wildcard,
549657
},
550658
custom_hostname_list_params.CustomHostnameListParams,
551659
),

src/cloudflare/resources/magic_transit/cf_interconnects.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def update(
6060
interface_address: str | Omit = omit,
6161
interface_address6: str | Omit = omit,
6262
mtu: int | Omit = omit,
63+
name: str | Omit = omit,
6364
x_magic_new_hc_target: bool | Omit = omit,
6465
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6566
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -98,6 +99,8 @@ def update(
9899
mtu: The Maximum Transmission Unit (MTU) in bytes for the interconnect. The minimum
99100
value is 576.
100101
102+
name: The name of the interconnect. The name cannot share a name with other tunnels.
103+
101104
extra_headers: Send extra headers
102105
103106
extra_query: Add additional query parameters to the request
@@ -131,6 +134,7 @@ def update(
131134
"interface_address": interface_address,
132135
"interface_address6": interface_address6,
133136
"mtu": mtu,
137+
"name": name,
134138
},
135139
cf_interconnect_update_params.CfInterconnectUpdateParams,
136140
),
@@ -337,6 +341,7 @@ async def update(
337341
interface_address: str | Omit = omit,
338342
interface_address6: str | Omit = omit,
339343
mtu: int | Omit = omit,
344+
name: str | Omit = omit,
340345
x_magic_new_hc_target: bool | Omit = omit,
341346
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
342347
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -375,6 +380,8 @@ async def update(
375380
mtu: The Maximum Transmission Unit (MTU) in bytes for the interconnect. The minimum
376381
value is 576.
377382
383+
name: The name of the interconnect. The name cannot share a name with other tunnels.
384+
378385
extra_headers: Send extra headers
379386
380387
extra_query: Add additional query parameters to the request
@@ -408,6 +415,7 @@ async def update(
408415
"interface_address": interface_address,
409416
"interface_address6": interface_address6,
410417
"mtu": mtu,
418+
"name": name,
411419
},
412420
cf_interconnect_update_params.CfInterconnectUpdateParams,
413421
),

src/cloudflare/types/custom_hostnames/custom_hostname_list_params.py

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing_extensions import Literal, Required, TypedDict
66

7-
__all__ = ["CustomHostnameListParams"]
7+
__all__ = ["CustomHostnameListParams", "Hostname"]
88

99

1010
class CustomHostnameListParams(TypedDict, total=False):
@@ -18,14 +18,33 @@ class CustomHostnameListParams(TypedDict, total=False):
1818
This parameter cannot be used with the 'hostname' parameter.
1919
"""
2020

21+
certificate_authority: Literal["google", "lets_encrypt", "ssl_com"]
22+
"""Filter by the certificate authority that issued the SSL certificate."""
23+
2124
direction: Literal["asc", "desc"]
2225
"""Direction to order hostnames."""
2326

24-
hostname: str
25-
"""Fully qualified domain name to match against.
27+
hostname: Hostname
2628

27-
This parameter cannot be used with the 'id' parameter.
28-
"""
29+
hostname_status: Literal[
30+
"active",
31+
"pending",
32+
"active_redeploying",
33+
"moved",
34+
"pending_deletion",
35+
"deleted",
36+
"pending_blocked",
37+
"pending_migration",
38+
"pending_provisioned",
39+
"test_pending",
40+
"test_active",
41+
"test_active_apex",
42+
"test_blocked",
43+
"test_failed",
44+
"provisioned",
45+
"blocked",
46+
]
47+
"""Filter by the hostname's activation status."""
2948

3049
order: Literal["ssl", "ssl_status"]
3150
"""Field to order hostnames by."""
@@ -38,3 +57,39 @@ class CustomHostnameListParams(TypedDict, total=False):
3857

3958
ssl: Literal[0, 1]
4059
"""Whether to filter hostnames based on if they have SSL enabled."""
60+
61+
ssl_status: Literal[
62+
"initializing",
63+
"pending_validation",
64+
"deleted",
65+
"pending_issuance",
66+
"pending_deployment",
67+
"pending_deletion",
68+
"pending_expiration",
69+
"expired",
70+
"active",
71+
"initializing_timed_out",
72+
"validation_timed_out",
73+
"issuance_timed_out",
74+
"deployment_timed_out",
75+
"deletion_timed_out",
76+
"pending_cleanup",
77+
"staging_deployment",
78+
"staging_active",
79+
"deactivating",
80+
"inactive",
81+
"backup_issued",
82+
"holding_deployment",
83+
]
84+
"""Filter by SSL certificate status."""
85+
86+
wildcard: bool
87+
"""Filter by whether the custom hostname is a wildcard hostname."""
88+
89+
90+
class Hostname(TypedDict, total=False):
91+
contain: str
92+
"""Filters hostnames by a substring match on the hostname value.
93+
94+
This parameter cannot be used with the 'id' parameter.
95+
"""

src/cloudflare/types/magic_transit/cf_interconnect_bulk_update_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class ModifiedInterconnect(BaseModel):
7070
name: Optional[str] = None
7171
"""The name of the interconnect. The name cannot share a name with other tunnels."""
7272

73+
virtual_port_reservation_id: Optional[str] = None
74+
"""
75+
An identifier that correlates this interconnect with the corresponding V2 CNI
76+
interconnect resource.
77+
"""
78+
7379

7480
class CfInterconnectBulkUpdateResponse(BaseModel):
7581
modified: Optional[bool] = None

src/cloudflare/types/magic_transit/cf_interconnect_get_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class Interconnect(BaseModel):
7070
name: Optional[str] = None
7171
"""The name of the interconnect. The name cannot share a name with other tunnels."""
7272

73+
virtual_port_reservation_id: Optional[str] = None
74+
"""
75+
An identifier that correlates this interconnect with the corresponding V2 CNI
76+
interconnect resource.
77+
"""
78+
7379

7480
class CfInterconnectGetResponse(BaseModel):
7581
interconnect: Optional[Interconnect] = None

src/cloudflare/types/magic_transit/cf_interconnect_list_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class Interconnect(BaseModel):
7070
name: Optional[str] = None
7171
"""The name of the interconnect. The name cannot share a name with other tunnels."""
7272

73+
virtual_port_reservation_id: Optional[str] = None
74+
"""
75+
An identifier that correlates this interconnect with the corresponding V2 CNI
76+
interconnect resource.
77+
"""
78+
7379

7480
class CfInterconnectListResponse(BaseModel):
7581
interconnects: Optional[List[Interconnect]] = None

src/cloudflare/types/magic_transit/cf_interconnect_update_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class CfInterconnectUpdateParams(TypedDict, total=False):
4949
The minimum value is 576.
5050
"""
5151

52+
name: str
53+
"""The name of the interconnect. The name cannot share a name with other tunnels."""
54+
5255
x_magic_new_hc_target: Annotated[bool, PropertyInfo(alias="x-magic-new-hc-target")]
5356

5457

0 commit comments

Comments
 (0)