Skip to content

Commit 7121a55

Browse files
committed
feat(zero_trust): update generated types and methods
1 parent ed7d261 commit 7121a55

22 files changed

Lines changed: 1726 additions & 87 deletions

File tree

src/cloudflare/resources/zero_trust/access/logs/access_requests.py

Lines changed: 38 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def list(
5757
direction: Literal["desc", "asc"] | Omit = omit,
5858
email: str | Omit = omit,
5959
email_exact: bool | Omit = omit,
60-
email_op: Literal["eq", "neq"] | Omit = omit,
60+
email_op: Literal["eq", "neq", "contains"] | Omit = omit,
6161
fields: str | Omit = omit,
6262
idp_op: Literal["eq", "neq"] | Omit = omit,
6363
limit: int | Omit = omit,
@@ -92,14 +92,23 @@ def list(
9292
9393
direction: The chronological sorting order for the logs.
9494
95-
email: Filter by user email. Defaults to substring matching. To force exact matching,
96-
set `email_exact=true`. Example (default): `email=@example.com` returns all
97-
events with that domain. Example (exact):
98-
`email=user@example.com&email_exact=true` returns only that user.
95+
email: Filter by user email. Match mode is controlled by `emailOp` (preferred) or the
96+
legacy `email_exact` flag.
97+
98+
- Default (no `emailOp`, `email_exact=false` or unset): substring match —
99+
`email=@example.com` returns all events with that domain.
100+
- Exact match: set `emailOp=eq` (preferred) or `email_exact=true` — e.g.
101+
`email=user@example.com&email_exact=true` returns only that user.
102+
- Explicit substring match: set `emailOp=contains` (without `email_exact=true`).
103+
When both are set, `email_exact=true` takes precedence and the match is exact.
104+
- Exclusion: set `emailOp=neq`. With `email_exact=true` this is an exact-value
105+
exclusion; without it, a fuzzy substring exclusion.
99106
100107
email_exact: When true, `email` is matched exactly instead of substring matching.
101108
102-
email_op: Operator for the `email` filter.
109+
email_op: Operator for the `email` filter. `contains` performs a substring
110+
(case-sensitive) match. When `email_exact=true` is also set, `email_exact` takes
111+
precedence and `contains` is ignored.
103112
104113
fields: Comma-separated list of fields to include in the response. When omitted, all
105114
fields are returned.
@@ -120,9 +129,11 @@ def list(
120129
121130
until: The latest event timestamp to query.
122131
123-
user_id: Filter by user UUID.
132+
user_id: Deprecated. Accepted for backward compatibility but no longer applied as a
133+
filter. Use `email` instead.
124134
125-
user_id_op: Operator for the `user_id` filter.
135+
user_id_op: Deprecated. Accepted for backward compatibility but no longer applied as a
136+
filter (the `user_id` parameter is itself deprecated).
126137
127138
extra_headers: Send extra headers
128139
@@ -202,7 +213,7 @@ async def list(
202213
direction: Literal["desc", "asc"] | Omit = omit,
203214
email: str | Omit = omit,
204215
email_exact: bool | Omit = omit,
205-
email_op: Literal["eq", "neq"] | Omit = omit,
216+
email_op: Literal["eq", "neq", "contains"] | Omit = omit,
206217
fields: str | Omit = omit,
207218
idp_op: Literal["eq", "neq"] | Omit = omit,
208219
limit: int | Omit = omit,
@@ -237,14 +248,23 @@ async def list(
237248
238249
direction: The chronological sorting order for the logs.
239250
240-
email: Filter by user email. Defaults to substring matching. To force exact matching,
241-
set `email_exact=true`. Example (default): `email=@example.com` returns all
242-
events with that domain. Example (exact):
243-
`email=user@example.com&email_exact=true` returns only that user.
251+
email: Filter by user email. Match mode is controlled by `emailOp` (preferred) or the
252+
legacy `email_exact` flag.
253+
254+
- Default (no `emailOp`, `email_exact=false` or unset): substring match —
255+
`email=@example.com` returns all events with that domain.
256+
- Exact match: set `emailOp=eq` (preferred) or `email_exact=true` — e.g.
257+
`email=user@example.com&email_exact=true` returns only that user.
258+
- Explicit substring match: set `emailOp=contains` (without `email_exact=true`).
259+
When both are set, `email_exact=true` takes precedence and the match is exact.
260+
- Exclusion: set `emailOp=neq`. With `email_exact=true` this is an exact-value
261+
exclusion; without it, a fuzzy substring exclusion.
244262
245263
email_exact: When true, `email` is matched exactly instead of substring matching.
246264
247-
email_op: Operator for the `email` filter.
265+
email_op: Operator for the `email` filter. `contains` performs a substring
266+
(case-sensitive) match. When `email_exact=true` is also set, `email_exact` takes
267+
precedence and `contains` is ignored.
248268
249269
fields: Comma-separated list of fields to include in the response. When omitted, all
250270
fields are returned.
@@ -265,9 +285,11 @@ async def list(
265285
266286
until: The latest event timestamp to query.
267287
268-
user_id: Filter by user UUID.
288+
user_id: Deprecated. Accepted for backward compatibility but no longer applied as a
289+
filter. Use `email` instead.
269290
270-
user_id_op: Operator for the `user_id` filter.
291+
user_id_op: Deprecated. Accepted for backward compatibility but no longer applied as a
292+
filter (the `user_id` parameter is itself deprecated).
271293
272294
extra_headers: Send extra headers
273295

src/cloudflare/resources/zero_trust/access/logs/scim/updates.py

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ def list(
5151
*,
5252
account_id: str,
5353
idp_id: SequenceNotStr[str],
54-
cf_resource_id: str | Omit = omit,
54+
cf_resource_id: SequenceNotStr[str] | Omit = omit,
5555
direction: Literal["desc", "asc"] | Omit = omit,
56-
idp_resource_id: str | Omit = omit,
56+
idp_resource_id: SequenceNotStr[str] | Omit = omit,
5757
limit: int | Omit = omit,
5858
page: int | Omit = omit,
5959
per_page: int | Omit = omit,
6060
request_method: List[Literal["DELETE", "PATCH", "POST", "PUT"]] | Omit = omit,
61-
resource_group_name: str | Omit = omit,
61+
resource_group_name: SequenceNotStr[str] | Omit = omit,
6262
resource_type: List[Literal["USER", "GROUP"]] | Omit = omit,
63-
resource_user_email: str | Omit = omit,
63+
resource_user_email: SequenceNotStr[str] | Omit = omit,
6464
since: Union[str, datetime] | Omit = omit,
6565
status: List[Literal["FAILURE", "SUCCESS"]] | Omit = omit,
6666
until: Union[str, datetime] | Omit = omit,
@@ -81,11 +81,17 @@ def list(
8181
8282
idp_id: The unique Id of the IdP that has SCIM enabled.
8383
84-
cf_resource_id: The unique Cloudflare-generated Id of the SCIM resource.
84+
cf_resource_id: The unique Cloudflare-generated Id of the SCIM resource. Pass once for a single
85+
lookup (`?cf_resource_id=A`) or repeat the parameter
86+
(`?cf_resource_id=A&cf_resource_id=B`) to filter by multiple resources in one
87+
request.
8588
8689
direction: The chronological order used to sort the logs.
8790
88-
idp_resource_id: The IdP-generated Id of the SCIM resource.
91+
idp_resource_id: The IdP-generated Id of the SCIM resource. Pass once for a single lookup
92+
(`?idp_resource_id=A`) or repeat the parameter
93+
(`?idp_resource_id=A&idp_resource_id=B`) to filter by multiple resources in one
94+
request.
8995
9096
limit: The maximum number of update logs to retrieve.
9197
@@ -95,11 +101,17 @@ def list(
95101
96102
request_method: The request method of the SCIM request.
97103
98-
resource_group_name: The display name of the SCIM Group resource.
104+
resource_group_name: The display name of the SCIM Group resource. Pass once for a single lookup
105+
(`?resource_group_name=A`) or repeat the parameter
106+
(`?resource_group_name=A&resource_group_name=B`) to filter by multiple group
107+
names in one request.
99108
100109
resource_type: The resource type of the SCIM request.
101110
102-
resource_user_email: The email address of the SCIM User resource.
111+
resource_user_email: The email address of the SCIM User resource. Pass once for a single lookup
112+
(`?resource_user_email=A`) or repeat the parameter
113+
(`?resource_user_email=A&resource_user_email=B`) to filter by multiple emails in
114+
one request.
103115
104116
since: the timestamp of the earliest update log.
105117
@@ -174,16 +186,16 @@ def list(
174186
*,
175187
account_id: str,
176188
idp_id: SequenceNotStr[str],
177-
cf_resource_id: str | Omit = omit,
189+
cf_resource_id: SequenceNotStr[str] | Omit = omit,
178190
direction: Literal["desc", "asc"] | Omit = omit,
179-
idp_resource_id: str | Omit = omit,
191+
idp_resource_id: SequenceNotStr[str] | Omit = omit,
180192
limit: int | Omit = omit,
181193
page: int | Omit = omit,
182194
per_page: int | Omit = omit,
183195
request_method: List[Literal["DELETE", "PATCH", "POST", "PUT"]] | Omit = omit,
184-
resource_group_name: str | Omit = omit,
196+
resource_group_name: SequenceNotStr[str] | Omit = omit,
185197
resource_type: List[Literal["USER", "GROUP"]] | Omit = omit,
186-
resource_user_email: str | Omit = omit,
198+
resource_user_email: SequenceNotStr[str] | Omit = omit,
187199
since: Union[str, datetime] | Omit = omit,
188200
status: List[Literal["FAILURE", "SUCCESS"]] | Omit = omit,
189201
until: Union[str, datetime] | Omit = omit,
@@ -204,11 +216,17 @@ def list(
204216
205217
idp_id: The unique Id of the IdP that has SCIM enabled.
206218
207-
cf_resource_id: The unique Cloudflare-generated Id of the SCIM resource.
219+
cf_resource_id: The unique Cloudflare-generated Id of the SCIM resource. Pass once for a single
220+
lookup (`?cf_resource_id=A`) or repeat the parameter
221+
(`?cf_resource_id=A&cf_resource_id=B`) to filter by multiple resources in one
222+
request.
208223
209224
direction: The chronological order used to sort the logs.
210225
211-
idp_resource_id: The IdP-generated Id of the SCIM resource.
226+
idp_resource_id: The IdP-generated Id of the SCIM resource. Pass once for a single lookup
227+
(`?idp_resource_id=A`) or repeat the parameter
228+
(`?idp_resource_id=A&idp_resource_id=B`) to filter by multiple resources in one
229+
request.
212230
213231
limit: The maximum number of update logs to retrieve.
214232
@@ -218,11 +236,17 @@ def list(
218236
219237
request_method: The request method of the SCIM request.
220238
221-
resource_group_name: The display name of the SCIM Group resource.
239+
resource_group_name: The display name of the SCIM Group resource. Pass once for a single lookup
240+
(`?resource_group_name=A`) or repeat the parameter
241+
(`?resource_group_name=A&resource_group_name=B`) to filter by multiple group
242+
names in one request.
222243
223244
resource_type: The resource type of the SCIM request.
224245
225-
resource_user_email: The email address of the SCIM User resource.
246+
resource_user_email: The email address of the SCIM User resource. Pass once for a single lookup
247+
(`?resource_user_email=A`) or repeat the parameter
248+
(`?resource_user_email=A&resource_user_email=B`) to filter by multiple emails in
249+
one request.
226250
227251
since: the timestamp of the earliest update log.
228252

src/cloudflare/resources/zero_trust/api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,22 @@ Methods:
103103
- <code title="delete /accounts/{account_id}/devices/ip-profiles/{profile_id}">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">delete</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile_delete_response.py">IPProfileDeleteResponse</a></code>
104104
- <code title="get /accounts/{account_id}/devices/ip-profiles/{profile_id}">client.zero_trust.devices.ip_profiles.<a href="./src/cloudflare/resources/zero_trust/devices/ip_profiles.py">get</a>(profile_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/ip_profile.py">IPProfile</a></code>
105105

106+
### DeploymentGroups
107+
108+
Types:
109+
110+
```python
111+
from cloudflare.types.zero_trust.devices import DeploymentGroup, DeploymentGroupDeleteResponse
112+
```
113+
114+
Methods:
115+
116+
- <code title="post /accounts/{account_id}/devices/deployment-groups">client.zero_trust.devices.deployment_groups.<a href="./src/cloudflare/resources/zero_trust/devices/deployment_groups.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/deployment_group_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/deployment_group.py">DeploymentGroup</a></code>
117+
- <code title="get /accounts/{account_id}/devices/deployment-groups">client.zero_trust.devices.deployment_groups.<a href="./src/cloudflare/resources/zero_trust/devices/deployment_groups.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/deployment_group_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/deployment_group.py">SyncV4PagePaginationArray[DeploymentGroup]</a></code>
118+
- <code title="delete /accounts/{account_id}/devices/deployment-groups/{group_id}">client.zero_trust.devices.deployment_groups.<a href="./src/cloudflare/resources/zero_trust/devices/deployment_groups.py">delete</a>(group_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/deployment_group_delete_response.py">DeploymentGroupDeleteResponse</a></code>
119+
- <code title="patch /accounts/{account_id}/devices/deployment-groups/{group_id}">client.zero_trust.devices.deployment_groups.<a href="./src/cloudflare/resources/zero_trust/devices/deployment_groups.py">edit</a>(group_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/deployment_group_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/deployment_group.py">DeploymentGroup</a></code>
120+
- <code title="get /accounts/{account_id}/devices/deployment-groups/{group_id}">client.zero_trust.devices.deployment_groups.<a href="./src/cloudflare/resources/zero_trust/devices/deployment_groups.py">get</a>(group_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/deployment_group.py">DeploymentGroup</a></code>
121+
106122
### Networks
107123

108124
Types:

src/cloudflare/resources/zero_trust/devices/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
OverrideCodesResourceWithStreamingResponse,
105105
AsyncOverrideCodesResourceWithStreamingResponse,
106106
)
107+
from .deployment_groups import (
108+
DeploymentGroupsResource,
109+
AsyncDeploymentGroupsResource,
110+
DeploymentGroupsResourceWithRawResponse,
111+
AsyncDeploymentGroupsResourceWithRawResponse,
112+
DeploymentGroupsResourceWithStreamingResponse,
113+
AsyncDeploymentGroupsResourceWithStreamingResponse,
114+
)
107115

108116
__all__ = [
109117
"ResilienceResource",
@@ -130,6 +138,12 @@
130138
"AsyncIPProfilesResourceWithRawResponse",
131139
"IPProfilesResourceWithStreamingResponse",
132140
"AsyncIPProfilesResourceWithStreamingResponse",
141+
"DeploymentGroupsResource",
142+
"AsyncDeploymentGroupsResource",
143+
"DeploymentGroupsResourceWithRawResponse",
144+
"AsyncDeploymentGroupsResourceWithRawResponse",
145+
"DeploymentGroupsResourceWithStreamingResponse",
146+
"AsyncDeploymentGroupsResourceWithStreamingResponse",
133147
"NetworksResource",
134148
"AsyncNetworksResource",
135149
"NetworksResourceWithRawResponse",

0 commit comments

Comments
 (0)