Skip to content

Commit 3d240b0

Browse files
chore(api): update composite API spec
1 parent fb77d7b commit 3d240b0

4 files changed

Lines changed: 15 additions & 2 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: 2077
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c093566ca51115360e46ca9ca24bc3fbc29db807cf5a9b772f797e74ee873c8d.yml
3-
openapi_spec_hash: 344e437bbefb415992d027380accb011
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-67292a7762cbc6daea2d3649d5b0a99e49a9e9a22547625dab3e56ea47b15168.yml
3+
openapi_spec_hash: 929f3a96fac6572e15b2e8b09d57db5a
44
config_hash: 6ae0352dc8a60d8a5c4ca81a71466f3f

src/cloudflare/resources/custom_hostnames/custom_hostnames.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def list(
150150
zone_id: str,
151151
id: str | Omit = omit,
152152
certificate_authority: Literal["google", "lets_encrypt", "ssl_com"] | Omit = omit,
153+
custom_origin_server: str | Omit = omit,
153154
direction: Literal["asc", "desc"] | Omit = omit,
154155
hostname: custom_hostname_list_params.Hostname | Omit = omit,
155156
hostname_status: Literal[
@@ -219,6 +220,8 @@ def list(
219220
220221
certificate_authority: Filter by the certificate authority that issued the SSL certificate.
221222
223+
custom_origin_server: Filter by custom origin server name.
224+
222225
direction: Direction to order hostnames.
223226
224227
hostname_status: Filter by the hostname's activation status.
@@ -257,6 +260,7 @@ def list(
257260
{
258261
"id": id,
259262
"certificate_authority": certificate_authority,
263+
"custom_origin_server": custom_origin_server,
260264
"direction": direction,
261265
"hostname": hostname,
262266
"hostname_status": hostname_status,
@@ -538,6 +542,7 @@ def list(
538542
zone_id: str,
539543
id: str | Omit = omit,
540544
certificate_authority: Literal["google", "lets_encrypt", "ssl_com"] | Omit = omit,
545+
custom_origin_server: str | Omit = omit,
541546
direction: Literal["asc", "desc"] | Omit = omit,
542547
hostname: custom_hostname_list_params.Hostname | Omit = omit,
543548
hostname_status: Literal[
@@ -607,6 +612,8 @@ def list(
607612
608613
certificate_authority: Filter by the certificate authority that issued the SSL certificate.
609614
615+
custom_origin_server: Filter by custom origin server name.
616+
610617
direction: Direction to order hostnames.
611618
612619
hostname_status: Filter by the hostname's activation status.
@@ -645,6 +652,7 @@ def list(
645652
{
646653
"id": id,
647654
"certificate_authority": certificate_authority,
655+
"custom_origin_server": custom_origin_server,
648656
"direction": direction,
649657
"hostname": hostname,
650658
"hostname_status": hostname_status,

src/cloudflare/types/custom_hostnames/custom_hostname_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class CustomHostnameListParams(TypedDict, total=False):
2121
certificate_authority: Literal["google", "lets_encrypt", "ssl_com"]
2222
"""Filter by the certificate authority that issued the SSL certificate."""
2323

24+
custom_origin_server: str
25+
"""Filter by custom origin server name."""
26+
2427
direction: Literal["asc", "desc"]
2528
"""Direction to order hostnames."""
2629

tests/api_resources/test_custom_hostnames.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
112112
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
113113
id="0d89c70d-ad9f-4843-b99f-6cc0252067e9",
114114
certificate_authority="google",
115+
custom_origin_server="origin2.example.com",
115116
direction="desc",
116117
hostname={"contain": "example.com"},
117118
hostname_status="provisioned",
@@ -430,6 +431,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
430431
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
431432
id="0d89c70d-ad9f-4843-b99f-6cc0252067e9",
432433
certificate_authority="google",
434+
custom_origin_server="origin2.example.com",
433435
direction="desc",
434436
hostname={"contain": "example.com"},
435437
hostname_status="provisioned",

0 commit comments

Comments
 (0)