3
3
from __future__ import annotations
4
4
5
5
from typing import Any , Type , Iterable , Optional , cast
6
- from typing_extensions import Literal
7
6
8
7
import httpx
9
8
21
20
async_to_streamed_response_wrapper ,
22
21
)
23
22
from .._wrappers import ResultWrapper
23
+ from ..types .ssl import CertificatePackRequestType , CertificatePackRequestValidity
24
24
from ..pagination import SyncSinglePage , AsyncSinglePage
25
25
from .._base_client import (
26
26
AsyncPaginator ,
27
27
make_request_options ,
28
28
)
29
29
from ..types .origin_ca_certificates import origin_ca_certificate_list_params , origin_ca_certificate_create_params
30
+ from ..types .ssl .certificate_pack_request_type import CertificatePackRequestType
31
+ from ..types .ssl .certificate_pack_request_validity import CertificatePackRequestValidity
30
32
from ..types .origin_ca_certificates .origin_ca_certificate import OriginCACertificate
31
33
from ..types .origin_ca_certificates .origin_ca_certificate_get_response import OriginCACertificateGetResponse
32
34
from ..types .origin_ca_certificates .origin_ca_certificate_create_response import OriginCACertificateCreateResponse
@@ -49,8 +51,8 @@ def create(
49
51
* ,
50
52
csr : str | NotGiven = NOT_GIVEN ,
51
53
hostnames : Iterable [object ] | NotGiven = NOT_GIVEN ,
52
- request_type : Literal [ "origin-rsa" , "origin-ecc" , "keyless-certificate" ] | NotGiven = NOT_GIVEN ,
53
- requested_validity : Literal [ 7 , 30 , 90 , 365 , 730 , 1095 , 5475 ] | NotGiven = NOT_GIVEN ,
54
+ request_type : CertificatePackRequestType | NotGiven = NOT_GIVEN ,
55
+ requested_validity : CertificatePackRequestValidity | NotGiven = NOT_GIVEN ,
54
56
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
55
57
# The extra values given here take precedence over values defined on the client or passed to this method.
56
58
extra_headers : Headers | None = None ,
@@ -257,8 +259,8 @@ async def create(
257
259
* ,
258
260
csr : str | NotGiven = NOT_GIVEN ,
259
261
hostnames : Iterable [object ] | NotGiven = NOT_GIVEN ,
260
- request_type : Literal [ "origin-rsa" , "origin-ecc" , "keyless-certificate" ] | NotGiven = NOT_GIVEN ,
261
- requested_validity : Literal [ 7 , 30 , 90 , 365 , 730 , 1095 , 5475 ] | NotGiven = NOT_GIVEN ,
262
+ request_type : CertificatePackRequestType | NotGiven = NOT_GIVEN ,
263
+ requested_validity : CertificatePackRequestValidity | NotGiven = NOT_GIVEN ,
262
264
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
263
265
# The extra values given here take precedence over values defined on the client or passed to this method.
264
266
extra_headers : Headers | None = None ,
0 commit comments