Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99d9133

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2150)
1 parentb6ca4bd commit99d9133

File tree

15 files changed

+310
-78
lines changed

15 files changed

+310
-78
lines changed

‎.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints:1417
2-
openapi_spec_url:https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c64fbec9a1e17ca560abf251c26a4adb4d60123dbe3f7dcc10819494cd97a6f.yml
2+
openapi_spec_url:https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2959676ecfc112a904ecea7f0874900dd48e4e15ea12ab641b3428db5dade9aa.yml

‎api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5236,7 +5236,7 @@ Methods:
52365236

52375237
- <code title="post /{account_or_zone}/{account_or_zone_id}/access/apps">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">create</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/application_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/application_create_response.py">Optional</a></code>
52385238
- <code title="put /{account_or_zone}/{account_or_zone_id}/access/apps/{app_id}">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">update</a>(app_id, \*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/application_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/application_update_response.py">Optional</a></code>
5239-
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/apps">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">list</a>(\*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/application_list_response.py">SyncSinglePage[ApplicationListResponse]</a></code>
5239+
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/apps">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">list</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/application_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/application_list_response.py">SyncSinglePage[ApplicationListResponse]</a></code>
52405240
- <code title="delete /{account_or_zone}/{account_or_zone_id}/access/apps/{app_id}">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">delete</a>(app_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/application_delete_response.py">Optional</a></code>
52415241
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/apps/{app_id}">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">get</a>(app_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/application_get_response.py">Optional</a></code>
52425242
- <code title="post /{account_or_zone}/{account_or_zone_id}/access/apps/{app_id}/revoke_tokens">client.zero_trust.access.applications.<a href="./src/cloudflare/resources/zero_trust/access/applications/applications.py">revoke_tokens</a>(app_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/application_revoke_tokens_response.py">object</a></code>
@@ -5364,7 +5364,7 @@ Methods:
53645364

53655365
- <code title="post /{account_or_zone}/{account_or_zone_id}/access/groups">client.zero_trust.access.groups.<a href="./src/cloudflare/resources/zero_trust/access/groups.py">create</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/group_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/zero_trust_group.py">Optional</a></code>
53665366
- <code title="put /{account_or_zone}/{account_or_zone_id}/access/groups/{group_id}">client.zero_trust.access.groups.<a href="./src/cloudflare/resources/zero_trust/access/groups.py">update</a>(group_id, \*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/group_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/zero_trust_group.py">Optional</a></code>
5367-
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/groups">client.zero_trust.access.groups.<a href="./src/cloudflare/resources/zero_trust/access/groups.py">list</a>(\*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/zero_trust_group.py">SyncSinglePage[ZeroTrustGroup]</a></code>
5367+
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/groups">client.zero_trust.access.groups.<a href="./src/cloudflare/resources/zero_trust/access/groups.py">list</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/group_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/zero_trust_group.py">SyncSinglePage[ZeroTrustGroup]</a></code>
53685368
- <code title="delete /{account_or_zone}/{account_or_zone_id}/access/groups/{group_id}">client.zero_trust.access.groups.<a href="./src/cloudflare/resources/zero_trust/access/groups.py">delete</a>(group_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/group_delete_response.py">Optional</a></code>
53695369
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/groups/{group_id}">client.zero_trust.access.groups.<a href="./src/cloudflare/resources/zero_trust/access/groups.py">get</a>(group_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/zero_trust_group.py">Optional</a></code>
53705370

@@ -5444,7 +5444,7 @@ from cloudflare.types.zero_trust.access import AccessUser
54445444

54455445
Methods:
54465446

5447-
- <code title="get /accounts/{account_id}/access/users">client.zero_trust.access.users.<a href="./src/cloudflare/resources/zero_trust/access/users/users.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/access/access_user.py">SyncSinglePage[AccessUser]</a></code>
5447+
- <code title="get /accounts/{account_id}/access/users">client.zero_trust.access.users.<a href="./src/cloudflare/resources/zero_trust/access/users/users.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/access/user_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/access_user.py">SyncSinglePage[AccessUser]</a></code>
54485448

54495449
#### ActiveSessions
54505450

‎src/cloudflare/resources/zero_trust/access/applications/applications.py

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
from .....types.zero_trust.accessimport (
6060
AppID,
6161
ApplicationType,
62+
application_list_params,
6263
application_create_params,
6364
application_update_params,
6465
)
@@ -1899,6 +1900,10 @@ def list(
18991900
*,
19001901
account_id:str|NotGiven=NOT_GIVEN,
19011902
zone_id:str|NotGiven=NOT_GIVEN,
1903+
aud:str|NotGiven=NOT_GIVEN,
1904+
domain:str|NotGiven=NOT_GIVEN,
1905+
name:str|NotGiven=NOT_GIVEN,
1906+
search:str|NotGiven=NOT_GIVEN,
19021907
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
19031908
# The extra values given here take precedence over values defined on the client or passed to this method.
19041909
extra_headers:Headers|None=None,
@@ -1914,6 +1919,14 @@ def list(
19141919
19151920
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
19161921
1922+
aud: The aud of the app.
1923+
1924+
domain: The domain of the app.
1925+
1926+
name: The name of the app.
1927+
1928+
search: Search for apps by other listed query parameters.
1929+
19171930
extra_headers: Send extra headers
19181931
19191932
extra_query: Add additional query parameters to the request
@@ -1938,7 +1951,19 @@ def list(
19381951
f"/{account_or_zone}/{account_or_zone_id}/access/apps",
19391952
page=SyncSinglePage[ApplicationListResponse],
19401953
options=make_request_options(
1941-
extra_headers=extra_headers,extra_query=extra_query,extra_body=extra_body,timeout=timeout
1954+
extra_headers=extra_headers,
1955+
extra_query=extra_query,
1956+
extra_body=extra_body,
1957+
timeout=timeout,
1958+
query=maybe_transform(
1959+
{
1960+
"aud":aud,
1961+
"domain":domain,
1962+
"name":name,
1963+
"search":search,
1964+
},
1965+
application_list_params.ApplicationListParams,
1966+
),
19421967
),
19431968
model=cast(Any,ApplicationListResponse),# Union types cannot be passed in as arguments in the type system
19441969
)
@@ -3943,6 +3968,10 @@ def list(
39433968
*,
39443969
account_id:str|NotGiven=NOT_GIVEN,
39453970
zone_id:str|NotGiven=NOT_GIVEN,
3971+
aud:str|NotGiven=NOT_GIVEN,
3972+
domain:str|NotGiven=NOT_GIVEN,
3973+
name:str|NotGiven=NOT_GIVEN,
3974+
search:str|NotGiven=NOT_GIVEN,
39463975
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
39473976
# The extra values given here take precedence over values defined on the client or passed to this method.
39483977
extra_headers:Headers|None=None,
@@ -3958,6 +3987,14 @@ def list(
39583987
39593988
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
39603989
3990+
aud: The aud of the app.
3991+
3992+
domain: The domain of the app.
3993+
3994+
name: The name of the app.
3995+
3996+
search: Search for apps by other listed query parameters.
3997+
39613998
extra_headers: Send extra headers
39623999
39634000
extra_query: Add additional query parameters to the request
@@ -3982,7 +4019,19 @@ def list(
39824019
f"/{account_or_zone}/{account_or_zone_id}/access/apps",
39834020
page=AsyncSinglePage[ApplicationListResponse],
39844021
options=make_request_options(
3985-
extra_headers=extra_headers,extra_query=extra_query,extra_body=extra_body,timeout=timeout
4022+
extra_headers=extra_headers,
4023+
extra_query=extra_query,
4024+
extra_body=extra_body,
4025+
timeout=timeout,
4026+
query=maybe_transform(
4027+
{
4028+
"aud":aud,
4029+
"domain":domain,
4030+
"name":name,
4031+
"search":search,
4032+
},
4033+
application_list_params.ApplicationListParams,
4034+
),
39864035
),
39874036
model=cast(Any,ApplicationListResponse),# Union types cannot be passed in as arguments in the type system
39884037
)

‎src/cloudflare/resources/zero_trust/access/groups.py

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ...._wrappersimportResultWrapper
2323
from ....paginationimportSyncSinglePage,AsyncSinglePage
2424
from ...._base_clientimportAsyncPaginator,make_request_options
25-
from ....types.zero_trust.accessimportgroup_create_params,group_update_params
25+
from ....types.zero_trust.accessimportgroup_list_params,group_create_params,group_update_params
2626
from ....types.zero_trust.access_rule_paramimportAccessRuleParam
2727
from ....types.zero_trust.access.zero_trust_groupimportZeroTrustGroup
2828
from ....types.zero_trust.access.group_delete_responseimportGroupDeleteResponse
@@ -220,6 +220,8 @@ def list(
220220
*,
221221
account_id:str|NotGiven=NOT_GIVEN,
222222
zone_id:str|NotGiven=NOT_GIVEN,
223+
name:str|NotGiven=NOT_GIVEN,
224+
search:str|NotGiven=NOT_GIVEN,
223225
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
224226
# The extra values given here take precedence over values defined on the client or passed to this method.
225227
extra_headers:Headers|None=None,
@@ -235,6 +237,10 @@ def list(
235237
236238
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
237239
240+
name: The name of the group.
241+
242+
search: Search for groups by other listed query parameters.
243+
238244
extra_headers: Send extra headers
239245
240246
extra_query: Add additional query parameters to the request
@@ -259,7 +265,17 @@ def list(
259265
f"/{account_or_zone}/{account_or_zone_id}/access/groups",
260266
page=SyncSinglePage[ZeroTrustGroup],
261267
options=make_request_options(
262-
extra_headers=extra_headers,extra_query=extra_query,extra_body=extra_body,timeout=timeout
268+
extra_headers=extra_headers,
269+
extra_query=extra_query,
270+
extra_body=extra_body,
271+
timeout=timeout,
272+
query=maybe_transform(
273+
{
274+
"name":name,
275+
"search":search,
276+
},
277+
group_list_params.GroupListParams,
278+
),
263279
),
264280
model=ZeroTrustGroup,
265281
)
@@ -569,6 +585,8 @@ def list(
569585
*,
570586
account_id:str|NotGiven=NOT_GIVEN,
571587
zone_id:str|NotGiven=NOT_GIVEN,
588+
name:str|NotGiven=NOT_GIVEN,
589+
search:str|NotGiven=NOT_GIVEN,
572590
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
573591
# The extra values given here take precedence over values defined on the client or passed to this method.
574592
extra_headers:Headers|None=None,
@@ -584,6 +602,10 @@ def list(
584602
585603
zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
586604
605+
name: The name of the group.
606+
607+
search: Search for groups by other listed query parameters.
608+
587609
extra_headers: Send extra headers
588610
589611
extra_query: Add additional query parameters to the request
@@ -608,7 +630,17 @@ def list(
608630
f"/{account_or_zone}/{account_or_zone_id}/access/groups",
609631
page=AsyncSinglePage[ZeroTrustGroup],
610632
options=make_request_options(
611-
extra_headers=extra_headers,extra_query=extra_query,extra_body=extra_body,timeout=timeout
633+
extra_headers=extra_headers,
634+
extra_query=extra_query,
635+
extra_body=extra_body,
636+
timeout=timeout,
637+
query=maybe_transform(
638+
{
639+
"name":name,
640+
"search":search,
641+
},
642+
group_list_params.GroupListParams,
643+
),
612644
),
613645
model=ZeroTrustGroup,
614646
)

‎src/cloudflare/resources/zero_trust/access/users/users.py

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
importhttpx
66

77
from ....._typesimportNOT_GIVEN,Body,Query,Headers,NotGiven
8+
from ....._utilsimportmaybe_transform
89
from ....._compatimportcached_property
910
from ....._resourceimportSyncAPIResource,AsyncAPIResource
1011
from ....._responseimport (
@@ -39,6 +40,7 @@
3940
LastSeenIdentityResourceWithStreamingResponse,
4041
AsyncLastSeenIdentityResourceWithStreamingResponse,
4142
)
43+
from .....types.zero_trust.accessimportuser_list_params
4244
from .....types.zero_trust.access.access_userimportAccessUser
4345

4446
__all__= ["UsersResource","AsyncUsersResource"]
@@ -80,6 +82,9 @@ def list(
8082
self,
8183
*,
8284
account_id:str,
85+
email:str|NotGiven=NOT_GIVEN,
86+
name:str|NotGiven=NOT_GIVEN,
87+
search:str|NotGiven=NOT_GIVEN,
8388
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8489
# The extra values given here take precedence over values defined on the client or passed to this method.
8590
extra_headers:Headers|None=None,
@@ -93,6 +98,12 @@ def list(
9398
Args:
9499
account_id: Identifier
95100
101+
email: The email of the user.
102+
103+
name: The name of the user.
104+
105+
search: Search for users by other listed query parameters.
106+
96107
extra_headers: Send extra headers
97108
98109
extra_query: Add additional query parameters to the request
@@ -107,7 +118,18 @@ def list(
107118
f"/accounts/{account_id}/access/users",
108119
page=SyncSinglePage[AccessUser],
109120
options=make_request_options(
110-
extra_headers=extra_headers,extra_query=extra_query,extra_body=extra_body,timeout=timeout
121+
extra_headers=extra_headers,
122+
extra_query=extra_query,
123+
extra_body=extra_body,
124+
timeout=timeout,
125+
query=maybe_transform(
126+
{
127+
"email":email,
128+
"name":name,
129+
"search":search,
130+
},
131+
user_list_params.UserListParams,
132+
),
111133
),
112134
model=AccessUser,
113135
)
@@ -149,6 +171,9 @@ def list(
149171
self,
150172
*,
151173
account_id:str,
174+
email:str|NotGiven=NOT_GIVEN,
175+
name:str|NotGiven=NOT_GIVEN,
176+
search:str|NotGiven=NOT_GIVEN,
152177
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
153178
# The extra values given here take precedence over values defined on the client or passed to this method.
154179
extra_headers:Headers|None=None,
@@ -162,6 +187,12 @@ def list(
162187
Args:
163188
account_id: Identifier
164189
190+
email: The email of the user.
191+
192+
name: The name of the user.
193+
194+
search: Search for users by other listed query parameters.
195+
165196
extra_headers: Send extra headers
166197
167198
extra_query: Add additional query parameters to the request
@@ -176,7 +207,18 @@ def list(
176207
f"/accounts/{account_id}/access/users",
177208
page=AsyncSinglePage[AccessUser],
178209
options=make_request_options(
179-
extra_headers=extra_headers,extra_query=extra_query,extra_body=extra_body,timeout=timeout
210+
extra_headers=extra_headers,
211+
extra_query=extra_query,
212+
extra_body=extra_body,
213+
timeout=timeout,
214+
query=maybe_transform(
215+
{
216+
"email":email,
217+
"name":name,
218+
"search":search,
219+
},
220+
user_list_params.UserListParams,
221+
),
180222
),
181223
model=AccessUser,
182224
)

‎src/cloudflare/types/zero_trust/access/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
from .allowed_originsimportAllowedOriginsasAllowedOrigins
2020
from .application_typeimportApplicationTypeasApplicationType
2121
from .key_get_responseimportKeyGetResponseasKeyGetResponse
22+
from .user_list_paramsimportUserListParamsasUserListParams
2223
from .zero_trust_groupimportZeroTrustGroupasZeroTrustGroup
24+
from .group_list_paramsimportGroupListParamsasGroupListParams
2325
from .key_update_paramsimportKeyUpdateParamsasKeyUpdateParams
2426
from .tag_create_paramsimportTagCreateParamsasTagCreateParams
2527
from .tag_update_paramsimportTagUpdateParamsasTagUpdateParams
@@ -46,6 +48,7 @@
4648
from .policy_create_responseimportPolicyCreateResponseasPolicyCreateResponse
4749
from .policy_delete_responseimportPolicyDeleteResponseasPolicyDeleteResponse
4850
from .policy_update_responseimportPolicyUpdateResponseasPolicyUpdateResponse
51+
from .application_list_paramsimportApplicationListParamsasApplicationListParams
4952
from .saas_app_name_id_formatimportSaaSAppNameIDFormatasSaaSAppNameIDFormat
5053
from .application_get_responseimportApplicationGetResponseasApplicationGetResponse
5154
from .bookmark_delete_responseimportBookmarkDeleteResponseasBookmarkDeleteResponse
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__importannotations
4+
5+
fromtyping_extensionsimportTypedDict
6+
7+
__all__= ["ApplicationListParams"]
8+
9+
10+
classApplicationListParams(TypedDict,total=False):
11+
account_id:str
12+
"""The Account ID to use for this endpoint. Mutually exclusive with the Zone ID."""
13+
14+
zone_id:str
15+
"""The Zone ID to use for this endpoint. Mutually exclusive with the Account ID."""
16+
17+
aud:str
18+
"""The aud of the app."""
19+
20+
domain:str
21+
"""The domain of the app."""
22+
23+
name:str
24+
"""The name of the app."""
25+
26+
search:str
27+
"""Search for apps by other listed query parameters."""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp