Skip to content

Commit 6fa8c01

Browse files
feat(api): api update
1 parent a62ea1f commit 6fa8c01

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1742
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-021d54f295e7a738353353d1d65bd906fe3627f4f965a87f0f6ee7f4c0966efe.yml
3-
openapi_spec_hash: b85bcc6a1f559e72831ded53ef810d91
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-88ef04465786d370aa23f356861ae7be6fa003b366887b73dc53e559831de0b8.yml
3+
openapi_spec_hash: bef5fe96cf1b7b2dca7081954de0b4cd
44
config_hash: cb36b26a5fcc81fa60c65016b1e74f0a

src/cloudflare/resources/network_interconnects/cnis.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def list(
170170
cursor: Optional[int] | NotGiven = NOT_GIVEN,
171171
limit: Optional[int] | NotGiven = NOT_GIVEN,
172172
slot: Optional[str] | NotGiven = NOT_GIVEN,
173+
tunnel_id: Optional[str] | NotGiven = NOT_GIVEN,
173174
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
174175
# The extra values given here take precedence over values defined on the client or passed to this method.
175176
extra_headers: Headers | None = None,
@@ -185,6 +186,8 @@ def list(
185186
186187
slot: If specified, only show CNIs associated with the specified slot
187188
189+
tunnel_id: If specified, only show cnis associated with the specified tunnel id
190+
188191
extra_headers: Send extra headers
189192
190193
extra_query: Add additional query parameters to the request
@@ -207,6 +210,7 @@ def list(
207210
"cursor": cursor,
208211
"limit": limit,
209212
"slot": slot,
213+
"tunnel_id": tunnel_id,
210214
},
211215
cni_list_params.CNIListParams,
212216
),
@@ -436,6 +440,7 @@ async def list(
436440
cursor: Optional[int] | NotGiven = NOT_GIVEN,
437441
limit: Optional[int] | NotGiven = NOT_GIVEN,
438442
slot: Optional[str] | NotGiven = NOT_GIVEN,
443+
tunnel_id: Optional[str] | NotGiven = NOT_GIVEN,
439444
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
440445
# The extra values given here take precedence over values defined on the client or passed to this method.
441446
extra_headers: Headers | None = None,
@@ -451,6 +456,8 @@ async def list(
451456
452457
slot: If specified, only show CNIs associated with the specified slot
453458
459+
tunnel_id: If specified, only show cnis associated with the specified tunnel id
460+
454461
extra_headers: Send extra headers
455462
456463
extra_query: Add additional query parameters to the request
@@ -473,6 +480,7 @@ async def list(
473480
"cursor": cursor,
474481
"limit": limit,
475482
"slot": slot,
483+
"tunnel_id": tunnel_id,
476484
},
477485
cni_list_params.CNIListParams,
478486
),

src/cloudflare/types/network_interconnects/cni_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ class CNIListParams(TypedDict, total=False):
1818

1919
slot: Optional[str]
2020
"""If specified, only show CNIs associated with the specified slot"""
21+
22+
tunnel_id: Optional[str]
23+
"""If specified, only show cnis associated with the specified tunnel id"""

tests/api_resources/network_interconnects/test_cnis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None:
242242
cursor=0,
243243
limit=0,
244244
slot="slot",
245+
tunnel_id="tunnel_id",
245246
)
246247
assert_matches_type(CNIListResponse, cni, path=["response"])
247248

@@ -596,6 +597,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare)
596597
cursor=0,
597598
limit=0,
598599
slot="slot",
600+
tunnel_id="tunnel_id",
599601
)
600602
assert_matches_type(CNIListResponse, cni, path=["response"])
601603

0 commit comments

Comments
 (0)