Skip to content

Commit 249fdaa

Browse files
chore(api): update composite API spec
1 parent 111cba7 commit 249fdaa

File tree

4 files changed

+8
-103
lines changed

4 files changed

+8
-103
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: 1993
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b364b1e3c70c4f3afc65dbe5cd94e2d41e82277fc62b4c93dafe4476a84f64e0.yml
3-
openapi_spec_hash: 7847970049be3a1b3c31574c1bf02d67
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-27f6b1369083e22ebab722ef452af9f22e4f421b5caaddef2f8b1a2abc862a2d.yml
3+
openapi_spec_hash: c1f5be51520a21feec9d12e08b7bb243
44
config_hash: 316e765ff117ffcf8ecf5a3187c184b1

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

Lines changed: 3 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,13 @@
33
from __future__ import annotations
44

55
from typing import Union, Iterable, Optional
6-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
6+
from typing_extensions import Required, TypeAlias, TypedDict
77

88
from ....._types import SequenceNotStr
99
from .pattern_param import PatternParam
1010
from ..context_awareness_param import ContextAwarenessParam
1111

12-
__all__ = [
13-
"CustomCreateParams",
14-
"Entry",
15-
"EntryDLPNewCustomEntry",
16-
"EntryDLPNewWordListEntry",
17-
"SharedEntry",
18-
"SharedEntryCustom",
19-
"SharedEntryPredefined",
20-
"SharedEntryIntegration",
21-
"SharedEntryExactData",
22-
"SharedEntryUnionMember4",
23-
]
12+
__all__ = ["CustomCreateParams", "Entry", "EntryDLPNewCustomEntry", "EntryDLPNewWordListEntry", "SharedEntry"]
2413

2514

2615
class CustomCreateParams(TypedDict, total=False):
@@ -75,46 +64,7 @@ class EntryDLPNewWordListEntry(TypedDict, total=False):
7564
Entry: TypeAlias = Union[EntryDLPNewCustomEntry, EntryDLPNewWordListEntry]
7665

7766

78-
class SharedEntryCustom(TypedDict, total=False):
67+
class SharedEntry(TypedDict, total=False):
7968
enabled: Required[bool]
8069

8170
entry_id: Required[str]
82-
83-
entry_type: Required[Literal["custom"]]
84-
85-
86-
class SharedEntryPredefined(TypedDict, total=False):
87-
enabled: Required[bool]
88-
89-
entry_id: Required[str]
90-
91-
entry_type: Required[Literal["predefined"]]
92-
93-
94-
class SharedEntryIntegration(TypedDict, total=False):
95-
enabled: Required[bool]
96-
97-
entry_id: Required[str]
98-
99-
entry_type: Required[Literal["integration"]]
100-
101-
102-
class SharedEntryExactData(TypedDict, total=False):
103-
enabled: Required[bool]
104-
105-
entry_id: Required[str]
106-
107-
entry_type: Required[Literal["exact_data"]]
108-
109-
110-
class SharedEntryUnionMember4(TypedDict, total=False):
111-
enabled: Required[bool]
112-
113-
entry_id: Required[str]
114-
115-
entry_type: Required[Literal["document_fingerprint"]]
116-
117-
118-
SharedEntry: TypeAlias = Union[
119-
SharedEntryCustom, SharedEntryPredefined, SharedEntryIntegration, SharedEntryExactData, SharedEntryUnionMember4
120-
]

src/cloudflare/types/zero_trust/dlp/profiles/custom_update_params.py

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,12 @@
33
from __future__ import annotations
44

55
from typing import Union, Iterable, Optional
6-
from typing_extensions import Literal, Required, TypeAlias, TypedDict
6+
from typing_extensions import Required, TypeAlias, TypedDict
77

88
from .pattern_param import PatternParam
99
from ..context_awareness_param import ContextAwarenessParam
1010

11-
__all__ = [
12-
"CustomUpdateParams",
13-
"Entry",
14-
"EntryDLPNewCustomEntryWithID",
15-
"EntryDLPNewCustomEntry",
16-
"SharedEntry",
17-
"SharedEntryPredefined",
18-
"SharedEntryIntegration",
19-
"SharedEntryExactData",
20-
"SharedEntryUnionMember3",
21-
]
11+
__all__ = ["CustomUpdateParams", "Entry", "EntryDLPNewCustomEntryWithID", "EntryDLPNewCustomEntry", "SharedEntry"]
2212

2313

2414
class CustomUpdateParams(TypedDict, total=False):
@@ -74,38 +64,7 @@ class EntryDLPNewCustomEntry(TypedDict, total=False):
7464
Entry: TypeAlias = Union[EntryDLPNewCustomEntryWithID, EntryDLPNewCustomEntry]
7565

7666

77-
class SharedEntryPredefined(TypedDict, total=False):
67+
class SharedEntry(TypedDict, total=False):
7868
enabled: Required[bool]
7969

8070
entry_id: Required[str]
81-
82-
entry_type: Required[Literal["predefined"]]
83-
84-
85-
class SharedEntryIntegration(TypedDict, total=False):
86-
enabled: Required[bool]
87-
88-
entry_id: Required[str]
89-
90-
entry_type: Required[Literal["integration"]]
91-
92-
93-
class SharedEntryExactData(TypedDict, total=False):
94-
enabled: Required[bool]
95-
96-
entry_id: Required[str]
97-
98-
entry_type: Required[Literal["exact_data"]]
99-
100-
101-
class SharedEntryUnionMember3(TypedDict, total=False):
102-
enabled: Required[bool]
103-
104-
entry_id: Required[str]
105-
106-
entry_type: Required[Literal["document_fingerprint"]]
107-
108-
109-
SharedEntry: TypeAlias = Union[
110-
SharedEntryPredefined, SharedEntryIntegration, SharedEntryExactData, SharedEntryUnionMember3
111-
]

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
5757
{
5858
"enabled": True,
5959
"entry_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
60-
"entry_type": "custom",
6160
}
6261
],
6362
)
@@ -136,7 +135,6 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
136135
{
137136
"enabled": True,
138137
"entry_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
139-
"entry_type": "predefined",
140138
}
141139
],
142140
)
@@ -324,7 +322,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
324322
{
325323
"enabled": True,
326324
"entry_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
327-
"entry_type": "custom",
328325
}
329326
],
330327
)
@@ -403,7 +400,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
403400
{
404401
"enabled": True,
405402
"entry_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
406-
"entry_type": "predefined",
407403
}
408404
],
409405
)

0 commit comments

Comments
 (0)