|
21 | 21 | async_to_streamed_response_wrapper, |
22 | 22 | ) |
23 | 23 | from ...._wrappers import ResultWrapper |
24 | | -from ....pagination import SyncSinglePage, AsyncSinglePage |
| 24 | +from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray |
25 | 25 | from ...._base_client import AsyncPaginator, make_request_options |
26 | 26 | from ....types.api_gateway.discovery import operation_edit_params, operation_list_params |
27 | 27 | from ....types.api_gateway.discovery_operation import DiscoveryOperation |
@@ -51,16 +51,16 @@ def list( |
51 | 51 | order: Literal["host", "method", "endpoint", "traffic_stats.requests", "traffic_stats.last_updated"] |
52 | 52 | | NotGiven = NOT_GIVEN, |
53 | 53 | origin: Literal["ML", "SessionIdentifier"] | NotGiven = NOT_GIVEN, |
54 | | - page: object | NotGiven = NOT_GIVEN, |
55 | | - per_page: object | NotGiven = NOT_GIVEN, |
| 54 | + page: int | NotGiven = NOT_GIVEN, |
| 55 | + per_page: int | NotGiven = NOT_GIVEN, |
56 | 56 | state: Literal["review", "saved", "ignored"] | NotGiven = NOT_GIVEN, |
57 | 57 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
58 | 58 | # The extra values given here take precedence over values defined on the client or passed to this method. |
59 | 59 | extra_headers: Headers | None = None, |
60 | 60 | extra_query: Query | None = None, |
61 | 61 | extra_body: Body | None = None, |
62 | 62 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
63 | | - ) -> SyncSinglePage[DiscoveryOperation]: |
| 63 | + ) -> SyncV4PagePaginationArray[DiscoveryOperation]: |
64 | 64 | """ |
65 | 65 | Retrieve the most up to date view of discovered operations |
66 | 66 |
|
@@ -112,7 +112,7 @@ def list( |
112 | 112 | raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") |
113 | 113 | return self._get_api_list( |
114 | 114 | f"/zones/{zone_id}/api_gateway/discovery/operations", |
115 | | - page=SyncSinglePage[DiscoveryOperation], |
| 115 | + page=SyncV4PagePaginationArray[DiscoveryOperation], |
116 | 116 | options=make_request_options( |
117 | 117 | extra_headers=extra_headers, |
118 | 118 | extra_query=extra_query, |
@@ -156,7 +156,7 @@ def edit( |
156 | 156 | Args: |
157 | 157 | zone_id: Identifier |
158 | 158 |
|
159 | | - operation_id: UUID identifier |
| 159 | + operation_id: UUID |
160 | 160 |
|
161 | 161 | state: Mark state of operation in API Discovery |
162 | 162 |
|
@@ -210,16 +210,16 @@ def list( |
210 | 210 | order: Literal["host", "method", "endpoint", "traffic_stats.requests", "traffic_stats.last_updated"] |
211 | 211 | | NotGiven = NOT_GIVEN, |
212 | 212 | origin: Literal["ML", "SessionIdentifier"] | NotGiven = NOT_GIVEN, |
213 | | - page: object | NotGiven = NOT_GIVEN, |
214 | | - per_page: object | NotGiven = NOT_GIVEN, |
| 213 | + page: int | NotGiven = NOT_GIVEN, |
| 214 | + per_page: int | NotGiven = NOT_GIVEN, |
215 | 215 | state: Literal["review", "saved", "ignored"] | NotGiven = NOT_GIVEN, |
216 | 216 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
217 | 217 | # The extra values given here take precedence over values defined on the client or passed to this method. |
218 | 218 | extra_headers: Headers | None = None, |
219 | 219 | extra_query: Query | None = None, |
220 | 220 | extra_body: Body | None = None, |
221 | 221 | timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
222 | | - ) -> AsyncPaginator[DiscoveryOperation, AsyncSinglePage[DiscoveryOperation]]: |
| 222 | + ) -> AsyncPaginator[DiscoveryOperation, AsyncV4PagePaginationArray[DiscoveryOperation]]: |
223 | 223 | """ |
224 | 224 | Retrieve the most up to date view of discovered operations |
225 | 225 |
|
@@ -271,7 +271,7 @@ def list( |
271 | 271 | raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") |
272 | 272 | return self._get_api_list( |
273 | 273 | f"/zones/{zone_id}/api_gateway/discovery/operations", |
274 | | - page=AsyncSinglePage[DiscoveryOperation], |
| 274 | + page=AsyncV4PagePaginationArray[DiscoveryOperation], |
275 | 275 | options=make_request_options( |
276 | 276 | extra_headers=extra_headers, |
277 | 277 | extra_query=extra_query, |
@@ -315,7 +315,7 @@ async def edit( |
315 | 315 | Args: |
316 | 316 | zone_id: Identifier |
317 | 317 |
|
318 | | - operation_id: UUID identifier |
| 318 | + operation_id: UUID |
319 | 319 |
|
320 | 320 | state: Mark state of operation in API Discovery |
321 | 321 |
|
|
0 commit comments