Skip to content

Commit 1cf726b

Browse files
chore(api): update composite API spec
1 parent e2f1b60 commit 1cf726b

7 files changed

Lines changed: 9 additions & 25 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: 1821
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1544d3ce240854918fbe9b00b19fbb0674ea2407efdc76d3e9da856b83de1ca9.yml
3-
openapi_spec_hash: a9cccbe23c91f680f2f2a60cb05bf6e7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ba49f660dd96ef4b12f92d84c930d1ede9f18231fd368bb055663b088cc0ba08.yml
3+
openapi_spec_hash: 012280d2210535547f7b350a2e7bd01d
44
config_hash: 107e0f1f8a98b007260b319226b88b3c

src/cloudflare/resources/zero_trust/dlp/entries/custom.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import httpx
88

9-
from ....._types import Body, Query, Headers, NotGiven, not_given
9+
from ....._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
1010
from ....._utils import maybe_transform, async_maybe_transform
1111
from ....._compat import cached_property
1212
from ....._resource import SyncAPIResource, AsyncAPIResource
@@ -56,7 +56,7 @@ def create(
5656
enabled: bool,
5757
name: str,
5858
pattern: PatternParam,
59-
profile_id: str,
59+
profile_id: str | Omit = omit,
6060
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6161
# The extra values given here take precedence over values defined on the client or passed to this method.
6262
extra_headers: Headers | None = None,
@@ -297,7 +297,7 @@ async def create(
297297
enabled: bool,
298298
name: str,
299299
pattern: PatternParam,
300-
profile_id: str,
300+
profile_id: str | Omit = omit,
301301
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302302
# The extra values given here take precedence over values defined on the client or passed to this method.
303303
extra_headers: Headers | None = None,

src/cloudflare/resources/zero_trust/dlp/entries/entries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def create(
9393
enabled: bool,
9494
name: str,
9595
pattern: PatternParam,
96-
profile_id: str,
96+
profile_id: str | Omit = omit,
9797
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9898
# The extra values given here take precedence over values defined on the client or passed to this method.
9999
extra_headers: Headers | None = None,
@@ -431,7 +431,7 @@ async def create(
431431
enabled: bool,
432432
name: str,
433433
pattern: PatternParam,
434-
profile_id: str,
434+
profile_id: str | Omit = omit,
435435
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
436436
# The extra values given here take precedence over values defined on the client or passed to this method.
437437
extra_headers: Headers | None = None,

src/cloudflare/types/zero_trust/dlp/entries/custom_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ class CustomCreateParams(TypedDict, total=False):
1818

1919
pattern: Required[PatternParam]
2020

21-
profile_id: Required[str]
21+
profile_id: str

src/cloudflare/types/zero_trust/dlp/entry_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ class EntryCreateParams(TypedDict, total=False):
1818

1919
pattern: Required[PatternParam]
2020

21-
profile_id: Required[str]
21+
profile_id: str

tests/api_resources/zero_trust/dlp/entries/test_custom.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def test_method_create(self, client: Cloudflare) -> None:
3030
enabled=True,
3131
name="name",
3232
pattern={"regex": "regex"},
33-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3433
)
3534
assert_matches_type(Optional[CustomCreateResponse], custom, path=["response"])
3635

@@ -55,7 +54,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5554
enabled=True,
5655
name="name",
5756
pattern={"regex": "regex"},
58-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
5957
)
6058

6159
assert response.is_closed is True
@@ -70,7 +68,6 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
7068
enabled=True,
7169
name="name",
7270
pattern={"regex": "regex"},
73-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
7471
) as response:
7572
assert not response.is_closed
7673
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -88,7 +85,6 @@ def test_path_params_create(self, client: Cloudflare) -> None:
8885
enabled=True,
8986
name="name",
9087
pattern={"regex": "regex"},
91-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
9288
)
9389

9490
@pytest.mark.skip(reason="TODO: investigate 422 error in prism test")
@@ -320,7 +316,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
320316
enabled=True,
321317
name="name",
322318
pattern={"regex": "regex"},
323-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
324319
)
325320
assert_matches_type(Optional[CustomCreateResponse], custom, path=["response"])
326321

@@ -345,7 +340,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
345340
enabled=True,
346341
name="name",
347342
pattern={"regex": "regex"},
348-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
349343
)
350344

351345
assert response.is_closed is True
@@ -360,7 +354,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
360354
enabled=True,
361355
name="name",
362356
pattern={"regex": "regex"},
363-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
364357
) as response:
365358
assert not response.is_closed
366359
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -378,7 +371,6 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
378371
enabled=True,
379372
name="name",
380373
pattern={"regex": "regex"},
381-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
382374
)
383375

384376
@pytest.mark.skip(reason="TODO: investigate 422 error in prism test")

tests/api_resources/zero_trust/dlp/test_entries.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def test_method_create(self, client: Cloudflare) -> None:
3030
enabled=True,
3131
name="name",
3232
pattern={"regex": "regex"},
33-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
3433
)
3534
assert_matches_type(Optional[EntryCreateResponse], entry, path=["response"])
3635

@@ -55,7 +54,6 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
5554
enabled=True,
5655
name="name",
5756
pattern={"regex": "regex"},
58-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
5957
)
6058

6159
assert response.is_closed is True
@@ -70,7 +68,6 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
7068
enabled=True,
7169
name="name",
7270
pattern={"regex": "regex"},
73-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
7471
) as response:
7572
assert not response.is_closed
7673
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -88,7 +85,6 @@ def test_path_params_create(self, client: Cloudflare) -> None:
8885
enabled=True,
8986
name="name",
9087
pattern={"regex": "regex"},
91-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
9288
)
9389

9490
@pytest.mark.skip(reason="TODO: investigate broken test")
@@ -457,7 +453,6 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
457453
enabled=True,
458454
name="name",
459455
pattern={"regex": "regex"},
460-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
461456
)
462457
assert_matches_type(Optional[EntryCreateResponse], entry, path=["response"])
463458

@@ -482,7 +477,6 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
482477
enabled=True,
483478
name="name",
484479
pattern={"regex": "regex"},
485-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
486480
)
487481

488482
assert response.is_closed is True
@@ -497,7 +491,6 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
497491
enabled=True,
498492
name="name",
499493
pattern={"regex": "regex"},
500-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
501494
) as response:
502495
assert not response.is_closed
503496
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -515,7 +508,6 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
515508
enabled=True,
516509
name="name",
517510
pattern={"regex": "regex"},
518-
profile_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
519511
)
520512

521513
@pytest.mark.skip(reason="TODO: investigate broken test")

0 commit comments

Comments
 (0)