|
36 | 36 | from ....types.api_gateway.operation_list_response import OperationListResponse
|
37 | 37 | from ....types.api_gateway.operation_create_response import OperationCreateResponse
|
38 | 38 | from ....types.api_gateway.operation_delete_response import OperationDeleteResponse
|
39 |
| -from ....types.api_gateway.api_shield_operation_param import APIShieldOperationParam |
40 | 39 | from ....types.api_gateway.operation_bulk_delete_response import OperationBulkDeleteResponse
|
| 40 | +from ....types.api_gateway.api_shield_operation_model_param import APIShieldOperationModelParam |
41 | 41 |
|
42 | 42 | __all__ = ["OperationsResource", "AsyncOperationsResource"]
|
43 | 43 |
|
@@ -70,7 +70,7 @@ def create(
|
70 | 70 | self,
|
71 | 71 | *,
|
72 | 72 | zone_id: str,
|
73 |
| - body: Iterable[APIShieldOperationParam], |
| 73 | + body: Iterable[APIShieldOperationModelParam], |
74 | 74 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
75 | 75 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
76 | 76 | extra_headers: Headers | None = None,
|
@@ -101,7 +101,7 @@ def create(
|
101 | 101 | raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
102 | 102 | return self._post(
|
103 | 103 | f"/zones/{zone_id}/api_gateway/operations",
|
104 |
| - body=maybe_transform(body, Iterable[APIShieldOperationParam]), |
| 104 | + body=maybe_transform(body, Iterable[APIShieldOperationModelParam]), |
105 | 105 | options=make_request_options(
|
106 | 106 | extra_headers=extra_headers,
|
107 | 107 | extra_query=extra_query,
|
@@ -345,7 +345,7 @@ async def create(
|
345 | 345 | self,
|
346 | 346 | *,
|
347 | 347 | zone_id: str,
|
348 |
| - body: Iterable[APIShieldOperationParam], |
| 348 | + body: Iterable[APIShieldOperationModelParam], |
349 | 349 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
350 | 350 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
351 | 351 | extra_headers: Headers | None = None,
|
@@ -376,7 +376,7 @@ async def create(
|
376 | 376 | raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
377 | 377 | return await self._post(
|
378 | 378 | f"/zones/{zone_id}/api_gateway/operations",
|
379 |
| - body=await async_maybe_transform(body, Iterable[APIShieldOperationParam]), |
| 379 | + body=await async_maybe_transform(body, Iterable[APIShieldOperationModelParam]), |
380 | 380 | options=make_request_options(
|
381 | 381 | extra_headers=extra_headers,
|
382 | 382 | extra_query=extra_query,
|
|
0 commit comments