33from __future__ import annotations
44
55from typing import Any , Type , Iterable , Optional , cast
6- from typing_extensions import Literal
76
87import httpx
98
2120 async_to_streamed_response_wrapper ,
2221)
2322from .._wrappers import ResultWrapper
23+ from ..types .ssl import CertificatePackRequestType , CertificatePackRequestValidity
2424from ..pagination import SyncSinglePage , AsyncSinglePage
2525from .._base_client import (
2626 AsyncPaginator ,
2727 make_request_options ,
2828)
2929from ..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
3032from ..types .origin_ca_certificates .origin_ca_certificate import OriginCACertificate
3133from ..types .origin_ca_certificates .origin_ca_certificate_get_response import OriginCACertificateGetResponse
3234from ..types .origin_ca_certificates .origin_ca_certificate_create_response import OriginCACertificateCreateResponse
@@ -49,8 +51,8 @@ def create(
4951 * ,
5052 csr : str | NotGiven = NOT_GIVEN ,
5153 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 ,
5456 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5557 # The extra values given here take precedence over values defined on the client or passed to this method.
5658 extra_headers : Headers | None = None ,
@@ -257,8 +259,8 @@ async def create(
257259 * ,
258260 csr : str | NotGiven = NOT_GIVEN ,
259261 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 ,
262264 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
263265 # The extra values given here take precedence over values defined on the client or passed to this method.
264266 extra_headers : Headers | None = None ,
0 commit comments