Skip to content

Commit 92ce29b

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#133)
1 parent 2f42526 commit 92ce29b

File tree

9 files changed

+96
-96
lines changed

9 files changed

+96
-96
lines changed

api.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5101,14 +5101,14 @@ Types:
51015101
from cloudflare.types.zero_trust.access.certificates import (
51025102
AccessSettings,
51035103
SettingUpdateResponse,
5104-
SettingListResponse,
5104+
SettingGetResponse,
51055105
)
51065106
```
51075107

51085108
Methods:
51095109

51105110
- <code title="put /{account_or_zone}/{account_or_zone_id}/access/certificates/settings">client.zero_trust.access.certificates.settings.<a href="./src/cloudflare/resources/zero_trust/access/certificates/settings.py">update</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/certificates/setting_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/certificates/setting_update_response.py">Optional</a></code>
5111-
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/certificates/settings">client.zero_trust.access.certificates.settings.<a href="./src/cloudflare/resources/zero_trust/access/certificates/settings.py">list</a>(\*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/certificates/setting_list_response.py">Optional</a></code>
5111+
- <code title="get /{account_or_zone}/{account_or_zone_id}/access/certificates/settings">client.zero_trust.access.certificates.settings.<a href="./src/cloudflare/resources/zero_trust/access/certificates/settings.py">get</a>(\*, account_id, zone_id) -> <a href="./src/cloudflare/types/zero_trust/access/certificates/setting_get_response.py">Optional</a></code>
51125112

51135113
### Groups
51145114

@@ -5173,13 +5173,13 @@ Methods:
51735173
Types:
51745174

51755175
```python
5176-
from cloudflare.types.zero_trust.access import KeyUpdateResponse, KeyListResponse, KeyRotateResponse
5176+
from cloudflare.types.zero_trust.access import KeyUpdateResponse, KeyGetResponse, KeyRotateResponse
51775177
```
51785178

51795179
Methods:
51805180

51815181
- <code title="put /accounts/{identifier}/access/keys">client.zero_trust.access.keys.<a href="./src/cloudflare/resources/zero_trust/access/keys.py">update</a>(identifier, \*\*<a href="src/cloudflare/types/zero_trust/access/key_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/key_update_response.py">KeyUpdateResponse</a></code>
5182-
- <code title="get /accounts/{identifier}/access/keys">client.zero_trust.access.keys.<a href="./src/cloudflare/resources/zero_trust/access/keys.py">list</a>(identifier) -> <a href="./src/cloudflare/types/zero_trust/access/key_list_response.py">KeyListResponse</a></code>
5182+
- <code title="get /accounts/{identifier}/access/keys">client.zero_trust.access.keys.<a href="./src/cloudflare/resources/zero_trust/access/keys.py">get</a>(identifier) -> <a href="./src/cloudflare/types/zero_trust/access/key_get_response.py">KeyGetResponse</a></code>
51835183
- <code title="post /accounts/{identifier}/access/keys/rotate">client.zero_trust.access.keys.<a href="./src/cloudflare/resources/zero_trust/access/keys.py">rotate</a>(identifier) -> <a href="./src/cloudflare/types/zero_trust/access/key_rotate_response.py">KeyRotateResponse</a></code>
51845184

51855185
### Logs

src/cloudflare/resources/zero_trust/access/certificates/settings.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
make_request_options,
2525
)
2626
from .....types.zero_trust.access.certificates import (
27+
SettingGetResponse,
2728
AccessSettingsParam,
28-
SettingListResponse,
2929
SettingUpdateResponse,
3030
setting_update_params,
3131
)
@@ -99,7 +99,7 @@ def update(
9999
cast_to=cast(Type[Optional[SettingUpdateResponse]], ResultWrapper[SettingUpdateResponse]),
100100
)
101101

102-
def list(
102+
def get(
103103
self,
104104
*,
105105
account_id: str | NotGiven = NOT_GIVEN,
@@ -110,7 +110,7 @@ def list(
110110
extra_query: Query | None = None,
111111
extra_body: Body | None = None,
112112
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
113-
) -> Optional[SettingListResponse]:
113+
) -> Optional[SettingGetResponse]:
114114
"""
115115
List all mTLS hostname settings for this account or zone.
116116
@@ -151,7 +151,7 @@ def list(
151151
timeout=timeout,
152152
post_parser=ResultWrapper._unwrapper,
153153
),
154-
cast_to=cast(Type[Optional[SettingListResponse]], ResultWrapper[SettingListResponse]),
154+
cast_to=cast(Type[Optional[SettingGetResponse]], ResultWrapper[SettingGetResponse]),
155155
)
156156

157157

@@ -221,7 +221,7 @@ async def update(
221221
cast_to=cast(Type[Optional[SettingUpdateResponse]], ResultWrapper[SettingUpdateResponse]),
222222
)
223223

224-
async def list(
224+
async def get(
225225
self,
226226
*,
227227
account_id: str | NotGiven = NOT_GIVEN,
@@ -232,7 +232,7 @@ async def list(
232232
extra_query: Query | None = None,
233233
extra_body: Body | None = None,
234234
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
235-
) -> Optional[SettingListResponse]:
235+
) -> Optional[SettingGetResponse]:
236236
"""
237237
List all mTLS hostname settings for this account or zone.
238238
@@ -273,7 +273,7 @@ async def list(
273273
timeout=timeout,
274274
post_parser=ResultWrapper._unwrapper,
275275
),
276-
cast_to=cast(Type[Optional[SettingListResponse]], ResultWrapper[SettingListResponse]),
276+
cast_to=cast(Type[Optional[SettingGetResponse]], ResultWrapper[SettingGetResponse]),
277277
)
278278

279279

@@ -284,8 +284,8 @@ def __init__(self, settings: Settings) -> None:
284284
self.update = to_raw_response_wrapper(
285285
settings.update,
286286
)
287-
self.list = to_raw_response_wrapper(
288-
settings.list,
287+
self.get = to_raw_response_wrapper(
288+
settings.get,
289289
)
290290

291291

@@ -296,8 +296,8 @@ def __init__(self, settings: AsyncSettings) -> None:
296296
self.update = async_to_raw_response_wrapper(
297297
settings.update,
298298
)
299-
self.list = async_to_raw_response_wrapper(
300-
settings.list,
299+
self.get = async_to_raw_response_wrapper(
300+
settings.get,
301301
)
302302

303303

@@ -308,8 +308,8 @@ def __init__(self, settings: Settings) -> None:
308308
self.update = to_streamed_response_wrapper(
309309
settings.update,
310310
)
311-
self.list = to_streamed_response_wrapper(
312-
settings.list,
311+
self.get = to_streamed_response_wrapper(
312+
settings.get,
313313
)
314314

315315

@@ -320,6 +320,6 @@ def __init__(self, settings: AsyncSettings) -> None:
320320
self.update = async_to_streamed_response_wrapper(
321321
settings.update,
322322
)
323-
self.list = async_to_streamed_response_wrapper(
324-
settings.list,
323+
self.get = async_to_streamed_response_wrapper(
324+
settings.get,
325325
)

src/cloudflare/resources/zero_trust/access/keys.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from ...._base_client import (
2424
make_request_options,
2525
)
26-
from ....types.zero_trust.access import KeyListResponse, KeyRotateResponse, KeyUpdateResponse, key_update_params
26+
from ....types.zero_trust.access import KeyGetResponse, KeyRotateResponse, KeyUpdateResponse, key_update_params
2727

2828
__all__ = ["Keys", "AsyncKeys"]
2929

@@ -87,7 +87,7 @@ def update(
8787
),
8888
)
8989

90-
def list(
90+
def get(
9191
self,
9292
identifier: str,
9393
*,
@@ -97,7 +97,7 @@ def list(
9797
extra_query: Query | None = None,
9898
extra_body: Body | None = None,
9999
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
100-
) -> KeyListResponse:
100+
) -> KeyGetResponse:
101101
"""
102102
Gets the Access key rotation settings for an account.
103103
@@ -115,7 +115,7 @@ def list(
115115
if not identifier:
116116
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
117117
return cast(
118-
KeyListResponse,
118+
KeyGetResponse,
119119
self._get(
120120
f"/accounts/{identifier}/access/keys",
121121
options=make_request_options(
@@ -126,7 +126,7 @@ def list(
126126
post_parser=ResultWrapper._unwrapper,
127127
),
128128
cast_to=cast(
129-
Any, ResultWrapper[KeyListResponse]
129+
Any, ResultWrapper[KeyGetResponse]
130130
), # Union types cannot be passed in as arguments in the type system
131131
),
132132
)
@@ -235,7 +235,7 @@ async def update(
235235
),
236236
)
237237

238-
async def list(
238+
async def get(
239239
self,
240240
identifier: str,
241241
*,
@@ -245,7 +245,7 @@ async def list(
245245
extra_query: Query | None = None,
246246
extra_body: Body | None = None,
247247
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
248-
) -> KeyListResponse:
248+
) -> KeyGetResponse:
249249
"""
250250
Gets the Access key rotation settings for an account.
251251
@@ -263,7 +263,7 @@ async def list(
263263
if not identifier:
264264
raise ValueError(f"Expected a non-empty value for `identifier` but received {identifier!r}")
265265
return cast(
266-
KeyListResponse,
266+
KeyGetResponse,
267267
await self._get(
268268
f"/accounts/{identifier}/access/keys",
269269
options=make_request_options(
@@ -274,7 +274,7 @@ async def list(
274274
post_parser=ResultWrapper._unwrapper,
275275
),
276276
cast_to=cast(
277-
Any, ResultWrapper[KeyListResponse]
277+
Any, ResultWrapper[KeyGetResponse]
278278
), # Union types cannot be passed in as arguments in the type system
279279
),
280280
)
@@ -331,8 +331,8 @@ def __init__(self, keys: Keys) -> None:
331331
self.update = to_raw_response_wrapper(
332332
keys.update,
333333
)
334-
self.list = to_raw_response_wrapper(
335-
keys.list,
334+
self.get = to_raw_response_wrapper(
335+
keys.get,
336336
)
337337
self.rotate = to_raw_response_wrapper(
338338
keys.rotate,
@@ -346,8 +346,8 @@ def __init__(self, keys: AsyncKeys) -> None:
346346
self.update = async_to_raw_response_wrapper(
347347
keys.update,
348348
)
349-
self.list = async_to_raw_response_wrapper(
350-
keys.list,
349+
self.get = async_to_raw_response_wrapper(
350+
keys.get,
351351
)
352352
self.rotate = async_to_raw_response_wrapper(
353353
keys.rotate,
@@ -361,8 +361,8 @@ def __init__(self, keys: Keys) -> None:
361361
self.update = to_streamed_response_wrapper(
362362
keys.update,
363363
)
364-
self.list = to_streamed_response_wrapper(
365-
keys.list,
364+
self.get = to_streamed_response_wrapper(
365+
keys.get,
366366
)
367367
self.rotate = to_streamed_response_wrapper(
368368
keys.rotate,
@@ -376,8 +376,8 @@ def __init__(self, keys: AsyncKeys) -> None:
376376
self.update = async_to_streamed_response_wrapper(
377377
keys.update,
378378
)
379-
self.list = async_to_streamed_response_wrapper(
380-
keys.list,
379+
self.get = async_to_streamed_response_wrapper(
380+
keys.get,
381381
)
382382
self.rotate = async_to_streamed_response_wrapper(
383383
keys.rotate,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .access_users import AccessUsers as AccessUsers
88
from .access_groups import AccessGroups as AccessGroups
99
from .access_bookmarks import AccessBookmarks as AccessBookmarks
10-
from .key_list_response import KeyListResponse as KeyListResponse
10+
from .key_get_response import KeyGetResponse as KeyGetResponse
1111
from .key_update_params import KeyUpdateParams as KeyUpdateParams
1212
from .tag_create_params import TagCreateParams as TagCreateParams
1313
from .tag_list_response import TagListResponse as TagListResponse

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from .access_settings import AccessSettings as AccessSettings
6+
from .setting_get_response import SettingGetResponse as SettingGetResponse
67
from .access_settings_param import AccessSettingsParam as AccessSettingsParam
7-
from .setting_list_response import SettingListResponse as SettingListResponse
88
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
99
from .setting_update_response import SettingUpdateResponse as SettingUpdateResponse

src/cloudflare/types/zero_trust/access/certificates/setting_list_response.py src/cloudflare/types/zero_trust/access/certificates/setting_get_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
from .access_settings import AccessSettings
66

7-
__all__ = ["SettingListResponse"]
7+
__all__ = ["SettingGetResponse"]
88

9-
SettingListResponse = List[AccessSettings]
9+
SettingGetResponse = List[AccessSettings]

src/cloudflare/types/zero_trust/access/key_list_response.py src/cloudflare/types/zero_trust/access/key_get_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
from typing import Union
44

5-
__all__ = ["KeyListResponse"]
5+
__all__ = ["KeyGetResponse"]
66

7-
KeyListResponse = Union[object, str]
7+
KeyGetResponse = Union[object, str]

0 commit comments

Comments
 (0)