|
20 | 20 | from .._wrappers import ResultWrapper |
21 | 21 | from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray |
22 | 22 | from .._base_client import AsyncPaginator, make_request_options |
23 | | -from ..types.client_certificates import client_certificate_list_params, client_certificate_create_params |
| 23 | +from ..types.client_certificates import ( |
| 24 | + client_certificate_edit_params, |
| 25 | + client_certificate_list_params, |
| 26 | + client_certificate_create_params, |
| 27 | +) |
24 | 28 | from ..types.client_certificates.client_certificate import ClientCertificate |
25 | 29 |
|
26 | 30 | __all__ = ["ClientCertificatesResource", "AsyncClientCertificatesResource"] |
@@ -215,6 +219,7 @@ def edit( |
215 | 219 | client_certificate_id: str, |
216 | 220 | *, |
217 | 221 | zone_id: str, |
| 222 | + reactivate: bool | Omit = omit, |
218 | 223 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
219 | 224 | # The extra values given here take precedence over values defined on the client or passed to this method. |
220 | 225 | extra_headers: Headers | None = None, |
@@ -247,6 +252,9 @@ def edit( |
247 | 252 | ) |
248 | 253 | return self._patch( |
249 | 254 | f"/zones/{zone_id}/client_certificates/{client_certificate_id}", |
| 255 | + body=maybe_transform( |
| 256 | + {"reactivate": reactivate}, client_certificate_edit_params.ClientCertificateEditParams |
| 257 | + ), |
250 | 258 | options=make_request_options( |
251 | 259 | extra_headers=extra_headers, |
252 | 260 | extra_query=extra_query, |
@@ -493,6 +501,7 @@ async def edit( |
493 | 501 | client_certificate_id: str, |
494 | 502 | *, |
495 | 503 | zone_id: str, |
| 504 | + reactivate: bool | Omit = omit, |
496 | 505 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
497 | 506 | # The extra values given here take precedence over values defined on the client or passed to this method. |
498 | 507 | extra_headers: Headers | None = None, |
@@ -525,6 +534,9 @@ async def edit( |
525 | 534 | ) |
526 | 535 | return await self._patch( |
527 | 536 | f"/zones/{zone_id}/client_certificates/{client_certificate_id}", |
| 537 | + body=await async_maybe_transform( |
| 538 | + {"reactivate": reactivate}, client_certificate_edit_params.ClientCertificateEditParams |
| 539 | + ), |
528 | 540 | options=make_request_options( |
529 | 541 | extra_headers=extra_headers, |
530 | 542 | extra_query=extra_query, |
|
0 commit comments