Skip to content

Commit a95f2b1

Browse files
chore(api): update composite API spec
1 parent 8971766 commit a95f2b1

10 files changed

Lines changed: 40 additions & 1 deletion

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2284
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 413848ed436f8f6b40a352e98624f386
3+
openapi_spec_hash: 30eefa25948ca3229d190f96c5bb08d9
44
config_hash: 3504379ebb14928a9890a391899a2e10

src/cloudflare/resources/pipelines/pipelines.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ def list_v1(
506506
self,
507507
*,
508508
account_id: str,
509+
name: str | Omit = omit,
509510
page: float | Omit = omit,
510511
per_page: float | Omit = omit,
511512
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -521,6 +522,8 @@ def list_v1(
521522
Args:
522523
account_id: Specifies the public ID of the account.
523524
525+
name: Filters pipelines by name (case-insensitive substring).
526+
524527
extra_headers: Send extra headers
525528
526529
extra_query: Add additional query parameters to the request
@@ -541,6 +544,7 @@ def list_v1(
541544
timeout=timeout,
542545
query=maybe_transform(
543546
{
547+
"name": name,
544548
"page": page,
545549
"per_page": per_page,
546550
},
@@ -1044,6 +1048,7 @@ def list_v1(
10441048
self,
10451049
*,
10461050
account_id: str,
1051+
name: str | Omit = omit,
10471052
page: float | Omit = omit,
10481053
per_page: float | Omit = omit,
10491054
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1059,6 +1064,8 @@ def list_v1(
10591064
Args:
10601065
account_id: Specifies the public ID of the account.
10611066
1067+
name: Filters pipelines by name (case-insensitive substring).
1068+
10621069
extra_headers: Send extra headers
10631070
10641071
extra_query: Add additional query parameters to the request
@@ -1079,6 +1086,7 @@ def list_v1(
10791086
timeout=timeout,
10801087
query=maybe_transform(
10811088
{
1089+
"name": name,
10821090
"page": page,
10831091
"per_page": per_page,
10841092
},

src/cloudflare/resources/pipelines/sinks.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def list(
112112
self,
113113
*,
114114
account_id: str,
115+
name: str | Omit = omit,
115116
page: float | Omit = omit,
116117
per_page: float | Omit = omit,
117118
pipeline_id: str | Omit = omit,
@@ -128,6 +129,8 @@ def list(
128129
Args:
129130
account_id: Specifies the public ID of the account.
130131
132+
name: Filters sinks by name (case-insensitive substring).
133+
131134
extra_headers: Send extra headers
132135
133136
extra_query: Add additional query parameters to the request
@@ -148,6 +151,7 @@ def list(
148151
timeout=timeout,
149152
query=maybe_transform(
150153
{
154+
"name": name,
151155
"page": page,
152156
"per_page": per_page,
153157
"pipeline_id": pipeline_id,
@@ -339,6 +343,7 @@ def list(
339343
self,
340344
*,
341345
account_id: str,
346+
name: str | Omit = omit,
342347
page: float | Omit = omit,
343348
per_page: float | Omit = omit,
344349
pipeline_id: str | Omit = omit,
@@ -355,6 +360,8 @@ def list(
355360
Args:
356361
account_id: Specifies the public ID of the account.
357362
363+
name: Filters sinks by name (case-insensitive substring).
364+
358365
extra_headers: Send extra headers
359366
360367
extra_query: Add additional query parameters to the request
@@ -375,6 +382,7 @@ def list(
375382
timeout=timeout,
376383
query=maybe_transform(
377384
{
385+
"name": name,
378386
"page": page,
379387
"per_page": per_page,
380388
"pipeline_id": pipeline_id,

src/cloudflare/resources/pipelines/streams.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def list(
163163
self,
164164
*,
165165
account_id: str,
166+
name: str | Omit = omit,
166167
page: float | Omit = omit,
167168
per_page: float | Omit = omit,
168169
pipeline_id: str | Omit = omit,
@@ -179,6 +180,8 @@ def list(
179180
Args:
180181
account_id: Specifies the public ID of the account.
181182
183+
name: Filters streams by name (case-insensitive substring).
184+
182185
pipeline_id: Specifies the public ID of the pipeline.
183186
184187
extra_headers: Send extra headers
@@ -201,6 +204,7 @@ def list(
201204
timeout=timeout,
202205
query=maybe_transform(
203206
{
207+
"name": name,
204208
"page": page,
205209
"per_page": per_page,
206210
"pipeline_id": pipeline_id,
@@ -443,6 +447,7 @@ def list(
443447
self,
444448
*,
445449
account_id: str,
450+
name: str | Omit = omit,
446451
page: float | Omit = omit,
447452
per_page: float | Omit = omit,
448453
pipeline_id: str | Omit = omit,
@@ -459,6 +464,8 @@ def list(
459464
Args:
460465
account_id: Specifies the public ID of the account.
461466
467+
name: Filters streams by name (case-insensitive substring).
468+
462469
pipeline_id: Specifies the public ID of the pipeline.
463470
464471
extra_headers: Send extra headers
@@ -481,6 +488,7 @@ def list(
481488
timeout=timeout,
482489
query=maybe_transform(
483490
{
491+
"name": name,
484492
"page": page,
485493
"per_page": per_page,
486494
"pipeline_id": pipeline_id,

src/cloudflare/types/pipelines/pipeline_list_v1_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class PipelineListV1Params(TypedDict, total=False):
1111
account_id: Required[str]
1212
"""Specifies the public ID of the account."""
1313

14+
name: str
15+
"""Filters pipelines by name (case-insensitive substring)."""
16+
1417
page: float
1518

1619
per_page: float

src/cloudflare/types/pipelines/sink_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class SinkListParams(TypedDict, total=False):
1111
account_id: Required[str]
1212
"""Specifies the public ID of the account."""
1313

14+
name: str
15+
"""Filters sinks by name (case-insensitive substring)."""
16+
1417
page: float
1518

1619
per_page: float

src/cloudflare/types/pipelines/stream_list_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class StreamListParams(TypedDict, total=False):
1111
account_id: Required[str]
1212
"""Specifies the public ID of the account."""
1313

14+
name: str
15+
"""Filters streams by name (case-insensitive substring)."""
16+
1417
page: float
1518

1619
per_page: float

tests/api_resources/pipelines/test_sinks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def test_method_list(self, client: Cloudflare) -> None:
133133
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
134134
sink = client.pipelines.sinks.list(
135135
account_id="0123105f4ecef8ad9ca31a8372d0c353",
136+
name="x",
136137
page=0,
137138
per_page=0,
138139
pipeline_id="pipeline_id",
@@ -392,6 +393,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
392393
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
393394
sink = await async_client.pipelines.sinks.list(
394395
account_id="0123105f4ecef8ad9ca31a8372d0c353",
396+
name="x",
395397
page=0,
396398
per_page=0,
397399
pipeline_id="pipeline_id",

tests/api_resources/pipelines/test_streams.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def test_method_list(self, client: Cloudflare) -> None:
176176
def test_method_list_with_all_params(self, client: Cloudflare) -> None:
177177
stream = client.pipelines.streams.list(
178178
account_id="0123105f4ecef8ad9ca31a8372d0c353",
179+
name="x",
179180
page=0,
180181
per_page=0,
181182
pipeline_id="043e105f4ecef8ad9ca31a8372d0c353",
@@ -477,6 +478,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
477478
async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None:
478479
stream = await async_client.pipelines.streams.list(
479480
account_id="0123105f4ecef8ad9ca31a8372d0c353",
481+
name="x",
480482
page=0,
481483
per_page=0,
482484
pipeline_id="043e105f4ecef8ad9ca31a8372d0c353",

tests/api_resources/test_pipelines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ def test_method_list_v1(self, client: Cloudflare) -> None:
625625
def test_method_list_v1_with_all_params(self, client: Cloudflare) -> None:
626626
pipeline = client.pipelines.list_v1(
627627
account_id="0123105f4ecef8ad9ca31a8372d0c353",
628+
name="x",
628629
page=0,
629630
per_page=0,
630631
)
@@ -1305,6 +1306,7 @@ async def test_method_list_v1(self, async_client: AsyncCloudflare) -> None:
13051306
async def test_method_list_v1_with_all_params(self, async_client: AsyncCloudflare) -> None:
13061307
pipeline = await async_client.pipelines.list_v1(
13071308
account_id="0123105f4ecef8ad9ca31a8372d0c353",
1309+
name="x",
13081310
page=0,
13091311
per_page=0,
13101312
)

0 commit comments

Comments
 (0)