23
23
from ...._base_client import (
24
24
make_request_options ,
25
25
)
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
27
27
28
28
__all__ = ["Keys" , "AsyncKeys" ]
29
29
@@ -87,7 +87,7 @@ def update(
87
87
),
88
88
)
89
89
90
- def list (
90
+ def get (
91
91
self ,
92
92
identifier : str ,
93
93
* ,
@@ -97,7 +97,7 @@ def list(
97
97
extra_query : Query | None = None ,
98
98
extra_body : Body | None = None ,
99
99
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
100
- ) -> KeyListResponse :
100
+ ) -> KeyGetResponse :
101
101
"""
102
102
Gets the Access key rotation settings for an account.
103
103
@@ -115,7 +115,7 @@ def list(
115
115
if not identifier :
116
116
raise ValueError (f"Expected a non-empty value for `identifier` but received { identifier !r} " )
117
117
return cast (
118
- KeyListResponse ,
118
+ KeyGetResponse ,
119
119
self ._get (
120
120
f"/accounts/{ identifier } /access/keys" ,
121
121
options = make_request_options (
@@ -126,7 +126,7 @@ def list(
126
126
post_parser = ResultWrapper ._unwrapper ,
127
127
),
128
128
cast_to = cast (
129
- Any , ResultWrapper [KeyListResponse ]
129
+ Any , ResultWrapper [KeyGetResponse ]
130
130
), # Union types cannot be passed in as arguments in the type system
131
131
),
132
132
)
@@ -235,7 +235,7 @@ async def update(
235
235
),
236
236
)
237
237
238
- async def list (
238
+ async def get (
239
239
self ,
240
240
identifier : str ,
241
241
* ,
@@ -245,7 +245,7 @@ async def list(
245
245
extra_query : Query | None = None ,
246
246
extra_body : Body | None = None ,
247
247
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
248
- ) -> KeyListResponse :
248
+ ) -> KeyGetResponse :
249
249
"""
250
250
Gets the Access key rotation settings for an account.
251
251
@@ -263,7 +263,7 @@ async def list(
263
263
if not identifier :
264
264
raise ValueError (f"Expected a non-empty value for `identifier` but received { identifier !r} " )
265
265
return cast (
266
- KeyListResponse ,
266
+ KeyGetResponse ,
267
267
await self ._get (
268
268
f"/accounts/{ identifier } /access/keys" ,
269
269
options = make_request_options (
@@ -274,7 +274,7 @@ async def list(
274
274
post_parser = ResultWrapper ._unwrapper ,
275
275
),
276
276
cast_to = cast (
277
- Any , ResultWrapper [KeyListResponse ]
277
+ Any , ResultWrapper [KeyGetResponse ]
278
278
), # Union types cannot be passed in as arguments in the type system
279
279
),
280
280
)
@@ -331,8 +331,8 @@ def __init__(self, keys: Keys) -> None:
331
331
self .update = to_raw_response_wrapper (
332
332
keys .update ,
333
333
)
334
- self .list = to_raw_response_wrapper (
335
- keys .list ,
334
+ self .get = to_raw_response_wrapper (
335
+ keys .get ,
336
336
)
337
337
self .rotate = to_raw_response_wrapper (
338
338
keys .rotate ,
@@ -346,8 +346,8 @@ def __init__(self, keys: AsyncKeys) -> None:
346
346
self .update = async_to_raw_response_wrapper (
347
347
keys .update ,
348
348
)
349
- self .list = async_to_raw_response_wrapper (
350
- keys .list ,
349
+ self .get = async_to_raw_response_wrapper (
350
+ keys .get ,
351
351
)
352
352
self .rotate = async_to_raw_response_wrapper (
353
353
keys .rotate ,
@@ -361,8 +361,8 @@ def __init__(self, keys: Keys) -> None:
361
361
self .update = to_streamed_response_wrapper (
362
362
keys .update ,
363
363
)
364
- self .list = to_streamed_response_wrapper (
365
- keys .list ,
364
+ self .get = to_streamed_response_wrapper (
365
+ keys .get ,
366
366
)
367
367
self .rotate = to_streamed_response_wrapper (
368
368
keys .rotate ,
@@ -376,8 +376,8 @@ def __init__(self, keys: AsyncKeys) -> None:
376
376
self .update = async_to_streamed_response_wrapper (
377
377
keys .update ,
378
378
)
379
- self .list = async_to_streamed_response_wrapper (
380
- keys .list ,
379
+ self .get = async_to_streamed_response_wrapper (
380
+ keys .get ,
381
381
)
382
382
self .rotate = async_to_streamed_response_wrapper (
383
383
keys .rotate ,
0 commit comments