Skip to content

Commit c6a8e46

Browse files
feat(api): api update
1 parent a99409b commit c6a8e46

File tree

5 files changed

+104
-5
lines changed

5 files changed

+104
-5
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: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4437ddd6f78afc134ce2b610ca8e48867edfc75b71fda57b76b31a57a1418d43.yml
3-
openapi_spec_hash: 4d08ab4df814a7d840f32f6d20331010
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0a52d7cff6d266f24d2b4edc1d5eb8d6657b11ada0d34458086967b53a41c239.yml
3+
openapi_spec_hash: cc94c988c0df2f81eedb812aa2d9d199
44
config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"PredefinedEntryConfidence",
1515
"IntegrationEntry",
1616
"ExactDataEntry",
17+
"DocumentTemplateEntry",
1718
"WordListEntry",
1819
]
1920

@@ -99,6 +100,20 @@ class ExactDataEntry(BaseModel):
99100
updated_at: datetime
100101

101102

103+
class DocumentTemplateEntry(BaseModel):
104+
id: str
105+
106+
created_at: datetime
107+
108+
enabled: bool
109+
110+
name: str
111+
112+
type: Literal["document_template"]
113+
114+
updated_at: datetime
115+
116+
102117
class WordListEntry(BaseModel):
103118
id: str
104119

@@ -117,4 +132,6 @@ class WordListEntry(BaseModel):
117132
profile_id: Optional[str] = None
118133

119134

120-
EntryGetResponse: TypeAlias = Union[CustomEntry, PredefinedEntry, IntegrationEntry, ExactDataEntry, WordListEntry]
135+
EntryGetResponse: TypeAlias = Union[
136+
CustomEntry, PredefinedEntry, IntegrationEntry, ExactDataEntry, DocumentTemplateEntry, WordListEntry
137+
]

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"PredefinedEntryConfidence",
1515
"IntegrationEntry",
1616
"ExactDataEntry",
17+
"DocumentTemplateEntry",
1718
"WordListEntry",
1819
]
1920

@@ -99,6 +100,20 @@ class ExactDataEntry(BaseModel):
99100
updated_at: datetime
100101

101102

103+
class DocumentTemplateEntry(BaseModel):
104+
id: str
105+
106+
created_at: datetime
107+
108+
enabled: bool
109+
110+
name: str
111+
112+
type: Literal["document_template"]
113+
114+
updated_at: datetime
115+
116+
102117
class WordListEntry(BaseModel):
103118
id: str
104119

@@ -117,4 +132,6 @@ class WordListEntry(BaseModel):
117132
profile_id: Optional[str] = None
118133

119134

120-
EntryListResponse: TypeAlias = Union[CustomEntry, PredefinedEntry, IntegrationEntry, ExactDataEntry, WordListEntry]
135+
EntryListResponse: TypeAlias = Union[
136+
CustomEntry, PredefinedEntry, IntegrationEntry, ExactDataEntry, DocumentTemplateEntry, WordListEntry
137+
]

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"PredefinedEntryConfidence",
1515
"IntegrationEntry",
1616
"ExactDataEntry",
17+
"DocumentTemplateEntry",
1718
"WordListEntry",
1819
]
1920

@@ -99,6 +100,20 @@ class ExactDataEntry(BaseModel):
99100
updated_at: datetime
100101

101102

103+
class DocumentTemplateEntry(BaseModel):
104+
id: str
105+
106+
created_at: datetime
107+
108+
enabled: bool
109+
110+
name: str
111+
112+
type: Literal["document_template"]
113+
114+
updated_at: datetime
115+
116+
102117
class WordListEntry(BaseModel):
103118
id: str
104119

@@ -117,4 +132,6 @@ class WordListEntry(BaseModel):
117132
profile_id: Optional[str] = None
118133

119134

120-
EntryUpdateResponse: TypeAlias = Union[CustomEntry, PredefinedEntry, IntegrationEntry, ExactDataEntry, WordListEntry]
135+
EntryUpdateResponse: TypeAlias = Union[
136+
CustomEntry, PredefinedEntry, IntegrationEntry, ExactDataEntry, DocumentTemplateEntry, WordListEntry
137+
]

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"CustomProfileEntryPredefinedEntryConfidence",
1919
"CustomProfileEntryIntegrationEntry",
2020
"CustomProfileEntryExactDataEntry",
21+
"CustomProfileEntryDocumentTemplateEntry",
2122
"CustomProfileEntryWordListEntry",
2223
"PredefinedProfile",
2324
"PredefinedProfileEntry",
@@ -26,6 +27,7 @@
2627
"PredefinedProfileEntryPredefinedEntryConfidence",
2728
"PredefinedProfileEntryIntegrationEntry",
2829
"PredefinedProfileEntryExactDataEntry",
30+
"PredefinedProfileEntryDocumentTemplateEntry",
2931
"PredefinedProfileEntryWordListEntry",
3032
"IntegrationProfile",
3133
"IntegrationProfileEntry",
@@ -34,6 +36,7 @@
3436
"IntegrationProfileEntryPredefinedEntryConfidence",
3537
"IntegrationProfileEntryIntegrationEntry",
3638
"IntegrationProfileEntryExactDataEntry",
39+
"IntegrationProfileEntryDocumentTemplateEntry",
3740
"IntegrationProfileEntryWordListEntry",
3841
]
3942

@@ -119,6 +122,20 @@ class CustomProfileEntryExactDataEntry(BaseModel):
119122
updated_at: datetime
120123

121124

125+
class CustomProfileEntryDocumentTemplateEntry(BaseModel):
126+
id: str
127+
128+
created_at: datetime
129+
130+
enabled: bool
131+
132+
name: str
133+
134+
type: Literal["document_template"]
135+
136+
updated_at: datetime
137+
138+
122139
class CustomProfileEntryWordListEntry(BaseModel):
123140
id: str
124141

@@ -142,6 +159,7 @@ class CustomProfileEntryWordListEntry(BaseModel):
142159
CustomProfileEntryPredefinedEntry,
143160
CustomProfileEntryIntegrationEntry,
144161
CustomProfileEntryExactDataEntry,
162+
CustomProfileEntryDocumentTemplateEntry,
145163
CustomProfileEntryWordListEntry,
146164
]
147165

@@ -263,6 +281,20 @@ class PredefinedProfileEntryExactDataEntry(BaseModel):
263281
updated_at: datetime
264282

265283

284+
class PredefinedProfileEntryDocumentTemplateEntry(BaseModel):
285+
id: str
286+
287+
created_at: datetime
288+
289+
enabled: bool
290+
291+
name: str
292+
293+
type: Literal["document_template"]
294+
295+
updated_at: datetime
296+
297+
266298
class PredefinedProfileEntryWordListEntry(BaseModel):
267299
id: str
268300

@@ -286,6 +318,7 @@ class PredefinedProfileEntryWordListEntry(BaseModel):
286318
PredefinedProfileEntryPredefinedEntry,
287319
PredefinedProfileEntryIntegrationEntry,
288320
PredefinedProfileEntryExactDataEntry,
321+
PredefinedProfileEntryDocumentTemplateEntry,
289322
PredefinedProfileEntryWordListEntry,
290323
]
291324

@@ -400,6 +433,20 @@ class IntegrationProfileEntryExactDataEntry(BaseModel):
400433
updated_at: datetime
401434

402435

436+
class IntegrationProfileEntryDocumentTemplateEntry(BaseModel):
437+
id: str
438+
439+
created_at: datetime
440+
441+
enabled: bool
442+
443+
name: str
444+
445+
type: Literal["document_template"]
446+
447+
updated_at: datetime
448+
449+
403450
class IntegrationProfileEntryWordListEntry(BaseModel):
404451
id: str
405452

@@ -423,6 +470,7 @@ class IntegrationProfileEntryWordListEntry(BaseModel):
423470
IntegrationProfileEntryPredefinedEntry,
424471
IntegrationProfileEntryIntegrationEntry,
425472
IntegrationProfileEntryExactDataEntry,
473+
IntegrationProfileEntryDocumentTemplateEntry,
426474
IntegrationProfileEntryWordListEntry,
427475
]
428476

0 commit comments

Comments
 (0)