Skip to content

Commit f9971b8

Browse files
feat(api): api update
1 parent 9c4e7cc commit f9971b8

33 files changed

+92
-90
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1711
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a3c83da0583dd901258c2b3e118a3e035b71ccb9b831b143bf19573de9dac479.yml
3-
openapi_spec_hash: 9b897cde0cea65944bdd28f90c23992d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ad1d6bbcfceb24dbd3775fdf2644bb1c9388c345b13a59a35be164b41ee6152d.yml
3+
openapi_spec_hash: 8c51f6540c78562bfa5b51054380afd7
44
config_hash: 67f412c990647f3cb598378fa22a9db5

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def create(
9797
Determines if the words should be matched in
9898
a case-sensitive manner Cannot be set to false if `secret` is true or undefined
9999
100-
description: The description of the dataset
100+
description: The description of the dataset.
101101
102102
encoding_version: Dataset encoding version
103103
@@ -166,9 +166,9 @@ def update(
166166
167167
Only required for custom word lists.
168168
169-
description: The description of the dataset
169+
description: The description of the dataset.
170170
171-
name: The name of the dataset, must be unique
171+
name: The name of the dataset, must be unique.
172172
173173
extra_headers: Send extra headers
174174
@@ -366,7 +366,7 @@ async def create(
366366
Determines if the words should be matched in
367367
a case-sensitive manner Cannot be set to false if `secret` is true or undefined
368368
369-
description: The description of the dataset
369+
description: The description of the dataset.
370370
371371
encoding_version: Dataset encoding version
372372
@@ -435,9 +435,9 @@ async def update(
435435
436436
Only required for custom word lists.
437437
438-
description: The description of the dataset
438+
description: The description of the dataset.
439439
440-
name: The name of the dataset, must be unique
440+
name: The name of the dataset, must be unique.
441441
442442
extra_headers: Send extra headers
443443

src/cloudflare/resources/zero_trust/dlp/email/rules.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create(
7373
Create email scanner rule
7474
7575
Args:
76-
conditions: Rule is triggered if all conditions match
76+
conditions: Rule is triggered if all conditions match.
7777
7878
extra_headers: Send extra headers
7979
@@ -128,7 +128,7 @@ def update(
128128
Update email scanner rule
129129
130130
Args:
131-
conditions: Rule is triggered if all conditions match
131+
conditions: Rule is triggered if all conditions match.
132132
133133
extra_headers: Send extra headers
134134
@@ -358,7 +358,7 @@ async def create(
358358
Create email scanner rule
359359
360360
Args:
361-
conditions: Rule is triggered if all conditions match
361+
conditions: Rule is triggered if all conditions match.
362362
363363
extra_headers: Send extra headers
364364
@@ -413,7 +413,7 @@ async def update(
413413
Update email scanner rule
414414
415415
Args:
416-
conditions: Rule is triggered if all conditions match
416+
conditions: Rule is triggered if all conditions match.
417417
418418
extra_headers: Send extra headers
419419

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def get(
327327
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
328328
) -> Optional[EntryGetResponse]:
329329
"""
330-
Fetches a DLP entry by ID
330+
Fetches a DLP entry by ID.
331331
332332
Args:
333333
extra_headers: Send extra headers
@@ -653,7 +653,7 @@ async def get(
653653
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
654654
) -> Optional[EntryGetResponse]:
655655
"""
656-
Fetches a DLP entry by ID
656+
Fetches a DLP entry by ID.
657657
658658
Args:
659659
extra_headers: Send extra headers

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def create(
108108
context_awareness: Scan the context of predefined entries to only return matches surrounded by
109109
keywords.
110110
111-
description: The description of the profile
111+
description: The description of the profile.
112112
113113
shared_entries: Entries from other profiles (e.g. pre-defined Cloudflare profiles, or your
114114
Microsoft Information Protection profiles).
@@ -207,7 +207,7 @@ def update(
207207
context_awareness: Scan the context of predefined entries to only return matches surrounded by
208208
keywords.
209209
210-
description: The description of the profile
210+
description: The description of the profile.
211211
212212
entries: Custom entries from this profile. If this field is omitted, entries owned by
213213
this profile will not be changed.
@@ -420,7 +420,7 @@ async def create(
420420
context_awareness: Scan the context of predefined entries to only return matches surrounded by
421421
keywords.
422422
423-
description: The description of the profile
423+
description: The description of the profile.
424424
425425
shared_entries: Entries from other profiles (e.g. pre-defined Cloudflare profiles, or your
426426
Microsoft Information Protection profiles).
@@ -519,7 +519,7 @@ async def update(
519519
context_awareness: Scan the context of predefined entries to only return matches surrounded by
520520
keywords.
521521
522-
description: The description of the profile
522+
description: The description of the profile.
523523
524524
entries: Custom entries from this profile. If this field is omitted, entries owned by
525525
this profile will not be changed.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get(
124124
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
125125
) -> Optional[Profile]:
126126
"""
127-
Fetches a DLP profile by ID
127+
Fetches a DLP profile by ID.
128128
129129
Args:
130130
extra_headers: Send extra headers
@@ -240,7 +240,7 @@ async def get(
240240
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
241241
) -> Optional[Profile]:
242242
"""
243-
Fetches a DLP profile by ID
243+
Fetches a DLP profile by ID.
244244
245245
Args:
246246
extra_headers: Send extra headers

src/cloudflare/resources/zero_trust/risk_scoring/integrations/integrations.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def create(
8282
Create new risk score integration.
8383
8484
Args:
85-
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com"
85+
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com".
8686
8787
reference_id: A reference id that can be supplied by the client. Currently this should be set
8888
to the Access-Okta IDP ID (a UUIDv4).
@@ -134,13 +134,14 @@ def update(
134134
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
135135
) -> Optional[IntegrationUpdateResponse]:
136136
"""
137-
Overwrite the reference_id, tenant_url, and active values with the ones provided
137+
Overwrite the reference_id, tenant_url, and active values with the ones
138+
provided.
138139
139140
Args:
140141
active: Whether this integration is enabled. If disabled, no risk changes will be
141142
exported to the third-party.
142143
143-
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com"
144+
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com".
144145
145146
reference_id: A reference id that can be supplied by the client. Currently this should be set
146147
to the Access-Okta IDP ID (a UUIDv4).
@@ -335,7 +336,7 @@ async def create(
335336
Create new risk score integration.
336337
337338
Args:
338-
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com"
339+
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com".
339340
340341
reference_id: A reference id that can be supplied by the client. Currently this should be set
341342
to the Access-Okta IDP ID (a UUIDv4).
@@ -387,13 +388,14 @@ async def update(
387388
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
388389
) -> Optional[IntegrationUpdateResponse]:
389390
"""
390-
Overwrite the reference_id, tenant_url, and active values with the ones provided
391+
Overwrite the reference_id, tenant_url, and active values with the ones
392+
provided.
391393
392394
Args:
393395
active: Whether this integration is enabled. If disabled, no risk changes will be
394396
exported to the third-party.
395397
396-
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com"
398+
tenant_url: The base url of the tenant, e.g. "https://tenant.okta.com".
397399
398400
reference_id: A reference id that can be supplied by the client. Currently this should be set
399401
to the Access-Okta IDP ID (a UUIDv4).

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ class Dataset(BaseModel):
5555
case_sensitive: Optional[bool] = None
5656

5757
description: Optional[str] = None
58-
"""The description of the dataset"""
58+
"""The description of the dataset."""

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DatasetCreateParams(TypedDict, total=False):
2020
"""
2121

2222
description: Optional[str]
23-
"""The description of the dataset"""
23+
"""The description of the dataset."""
2424

2525
encoding_version: int
2626
"""Dataset encoding version

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DatasetCreation(BaseModel):
1212
dataset: Dataset
1313

1414
encoding_version: int
15-
"""Encoding version to use for dataset"""
15+
"""Encoding version to use for dataset."""
1616

1717
max_cells: int
1818

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DatasetUpdateParams(TypedDict, total=False):
1818
"""
1919

2020
description: Optional[str]
21-
"""The description of the dataset"""
21+
"""The description of the dataset."""
2222

2323
name: Optional[str]
24-
"""The name of the dataset, must be unique"""
24+
"""The name of the dataset, must be unique."""

src/cloudflare/types/zero_trust/dlp/email/rule_bulk_edit_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RuleBulkEditResponse(BaseModel):
2727
action: Action
2828

2929
conditions: List[Condition]
30-
"""Rule is triggered if all conditions match"""
30+
"""Rule is triggered if all conditions match."""
3131

3232
created_at: datetime
3333

src/cloudflare/types/zero_trust/dlp/email/rule_create_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RuleCreateParams(TypedDict, total=False):
1414
action: Required[Action]
1515

1616
conditions: Required[Iterable[Condition]]
17-
"""Rule is triggered if all conditions match"""
17+
"""Rule is triggered if all conditions match."""
1818

1919
enabled: Required[bool]
2020

src/cloudflare/types/zero_trust/dlp/email/rule_create_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RuleCreateResponse(BaseModel):
2727
action: Action
2828

2929
conditions: List[Condition]
30-
"""Rule is triggered if all conditions match"""
30+
"""Rule is triggered if all conditions match."""
3131

3232
created_at: datetime
3333

src/cloudflare/types/zero_trust/dlp/email/rule_delete_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RuleDeleteResponse(BaseModel):
2727
action: Action
2828

2929
conditions: List[Condition]
30-
"""Rule is triggered if all conditions match"""
30+
"""Rule is triggered if all conditions match."""
3131

3232
created_at: datetime
3333

src/cloudflare/types/zero_trust/dlp/email/rule_get_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RuleGetResponse(BaseModel):
2727
action: Action
2828

2929
conditions: List[Condition]
30-
"""Rule is triggered if all conditions match"""
30+
"""Rule is triggered if all conditions match."""
3131

3232
created_at: datetime
3333

src/cloudflare/types/zero_trust/dlp/email/rule_list_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RuleListResponse(BaseModel):
2727
action: Action
2828

2929
conditions: List[Condition]
30-
"""Rule is triggered if all conditions match"""
30+
"""Rule is triggered if all conditions match."""
3131

3232
created_at: datetime
3333

src/cloudflare/types/zero_trust/dlp/email/rule_update_params.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RuleUpdateParams(TypedDict, total=False):
1414
action: Required[Action]
1515

1616
conditions: Required[Iterable[Condition]]
17-
"""Rule is triggered if all conditions match"""
17+
"""Rule is triggered if all conditions match."""
1818

1919
enabled: Required[bool]
2020

src/cloudflare/types/zero_trust/dlp/email/rule_update_response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RuleUpdateResponse(BaseModel):
2727
action: Action
2828

2929
conditions: List[Condition]
30-
"""Rule is triggered if all conditions match"""
30+
"""Rule is triggered if all conditions match."""
3131

3232
created_at: datetime
3333

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class CustomEntry(BaseModel):
3838

3939
class PredefinedEntryConfidence(BaseModel):
4040
ai_context_available: bool
41-
"""Indicates whether this entry has AI remote service validation"""
41+
"""Indicates whether this entry has AI remote service validation."""
4242

4343
available: bool
4444
"""
4545
Indicates whether this entry has any form of validation that is not an AI remote
46-
service
46+
service.
4747
"""
4848

4949

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class CustomEntry(BaseModel):
3838

3939
class PredefinedEntryConfidence(BaseModel):
4040
ai_context_available: bool
41-
"""Indicates whether this entry has AI remote service validation"""
41+
"""Indicates whether this entry has AI remote service validation."""
4242

4343
available: bool
4444
"""
4545
Indicates whether this entry has any form of validation that is not an AI remote
46-
service
46+
service.
4747
"""
4848

4949

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class CustomEntry(BaseModel):
3838

3939
class PredefinedEntryConfidence(BaseModel):
4040
ai_context_available: bool
41-
"""Indicates whether this entry has AI remote service validation"""
41+
"""Indicates whether this entry has AI remote service validation."""
4242

4343
available: bool
4444
"""
4545
Indicates whether this entry has any form of validation that is not an AI remote
46-
service
46+
service.
4747
"""
4848

4949

0 commit comments

Comments
 (0)