2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Type , cast
5
+ from typing import Type , Optional , cast
6
6
from typing_extensions import Literal
7
7
8
8
import httpx
@@ -53,7 +53,7 @@ def create(
53
53
extra_query : Query | None = None ,
54
54
extra_body : Body | None = None ,
55
55
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
56
- ) -> ClientCertificate :
56
+ ) -> Optional [ ClientCertificate ] :
57
57
"""
58
58
Create a new API Shield mTLS Client Certificate
59
59
@@ -88,9 +88,9 @@ def create(
88
88
extra_query = extra_query ,
89
89
extra_body = extra_body ,
90
90
timeout = timeout ,
91
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
91
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
92
92
),
93
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
93
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
94
94
)
95
95
96
96
def list (
@@ -170,7 +170,7 @@ def delete(
170
170
extra_query : Query | None = None ,
171
171
extra_body : Body | None = None ,
172
172
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
173
- ) -> ClientCertificate :
173
+ ) -> Optional [ ClientCertificate ] :
174
174
"""
175
175
Set a API Shield mTLS Client Certificate to pending_revocation status for
176
176
processing to revoked status.
@@ -201,9 +201,9 @@ def delete(
201
201
extra_query = extra_query ,
202
202
extra_body = extra_body ,
203
203
timeout = timeout ,
204
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
204
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
205
205
),
206
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
206
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
207
207
)
208
208
209
209
def edit (
@@ -217,7 +217,7 @@ def edit(
217
217
extra_query : Query | None = None ,
218
218
extra_body : Body | None = None ,
219
219
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
220
- ) -> ClientCertificate :
220
+ ) -> Optional [ ClientCertificate ] :
221
221
"""
222
222
If a API Shield mTLS Client Certificate is in a pending_revocation state, you
223
223
may reactivate it with this endpoint.
@@ -248,9 +248,9 @@ def edit(
248
248
extra_query = extra_query ,
249
249
extra_body = extra_body ,
250
250
timeout = timeout ,
251
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
251
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
252
252
),
253
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
253
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
254
254
)
255
255
256
256
def get (
@@ -264,7 +264,7 @@ def get(
264
264
extra_query : Query | None = None ,
265
265
extra_body : Body | None = None ,
266
266
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
267
- ) -> ClientCertificate :
267
+ ) -> Optional [ ClientCertificate ] :
268
268
"""
269
269
Get Details for a single mTLS API Shield Client Certificate
270
270
@@ -294,9 +294,9 @@ def get(
294
294
extra_query = extra_query ,
295
295
extra_body = extra_body ,
296
296
timeout = timeout ,
297
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
297
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
298
298
),
299
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
299
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
300
300
)
301
301
302
302
@@ -321,7 +321,7 @@ async def create(
321
321
extra_query : Query | None = None ,
322
322
extra_body : Body | None = None ,
323
323
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
324
- ) -> ClientCertificate :
324
+ ) -> Optional [ ClientCertificate ] :
325
325
"""
326
326
Create a new API Shield mTLS Client Certificate
327
327
@@ -356,9 +356,9 @@ async def create(
356
356
extra_query = extra_query ,
357
357
extra_body = extra_body ,
358
358
timeout = timeout ,
359
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
359
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
360
360
),
361
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
361
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
362
362
)
363
363
364
364
def list (
@@ -438,7 +438,7 @@ async def delete(
438
438
extra_query : Query | None = None ,
439
439
extra_body : Body | None = None ,
440
440
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
441
- ) -> ClientCertificate :
441
+ ) -> Optional [ ClientCertificate ] :
442
442
"""
443
443
Set a API Shield mTLS Client Certificate to pending_revocation status for
444
444
processing to revoked status.
@@ -469,9 +469,9 @@ async def delete(
469
469
extra_query = extra_query ,
470
470
extra_body = extra_body ,
471
471
timeout = timeout ,
472
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
472
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
473
473
),
474
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
474
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
475
475
)
476
476
477
477
async def edit (
@@ -485,7 +485,7 @@ async def edit(
485
485
extra_query : Query | None = None ,
486
486
extra_body : Body | None = None ,
487
487
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
488
- ) -> ClientCertificate :
488
+ ) -> Optional [ ClientCertificate ] :
489
489
"""
490
490
If a API Shield mTLS Client Certificate is in a pending_revocation state, you
491
491
may reactivate it with this endpoint.
@@ -516,9 +516,9 @@ async def edit(
516
516
extra_query = extra_query ,
517
517
extra_body = extra_body ,
518
518
timeout = timeout ,
519
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
519
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
520
520
),
521
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
521
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
522
522
)
523
523
524
524
async def get (
@@ -532,7 +532,7 @@ async def get(
532
532
extra_query : Query | None = None ,
533
533
extra_body : Body | None = None ,
534
534
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
535
- ) -> ClientCertificate :
535
+ ) -> Optional [ ClientCertificate ] :
536
536
"""
537
537
Get Details for a single mTLS API Shield Client Certificate
538
538
@@ -562,9 +562,9 @@ async def get(
562
562
extra_query = extra_query ,
563
563
extra_body = extra_body ,
564
564
timeout = timeout ,
565
- post_parser = ResultWrapper [ClientCertificate ]._unwrapper ,
565
+ post_parser = ResultWrapper [Optional [ ClientCertificate ] ]._unwrapper ,
566
566
),
567
- cast_to = cast (Type [ClientCertificate ], ResultWrapper [ClientCertificate ]),
567
+ cast_to = cast (Type [Optional [ ClientCertificate ] ], ResultWrapper [ClientCertificate ]),
568
568
)
569
569
570
570
0 commit comments