diff --git a/api.md b/api.md index 82f9d6ad955..3827413a429 100644 --- a/api.md +++ b/api.md @@ -4,7 +4,7 @@ from cloudflare.types import ( ASN, AuditLog, - CertificatePackRequestType, + CertificateRequestType, CloudflareTunnel, ErrorData, Identifier, diff --git a/src/cloudflare/resources/origin_ca_certificates.py b/src/cloudflare/resources/origin_ca_certificates.py index 9b5e93c7c65..0469f455fb2 100644 --- a/src/cloudflare/resources/origin_ca_certificates.py +++ b/src/cloudflare/resources/origin_ca_certificates.py @@ -28,7 +28,7 @@ ) from ..types.ssl.request_validity import RequestValidity from ..types.origin_ca_certificates import origin_ca_certificate_list_params, origin_ca_certificate_create_params -from ..types.shared.certificate_pack_request_type import CertificatePackRequestType +from ..types.shared.certificate_request_type import CertificateRequestType from ..types.origin_ca_certificates.origin_ca_certificate import OriginCACertificate from ..types.origin_ca_certificates.origin_ca_certificate_get_response import OriginCACertificateGetResponse from ..types.origin_ca_certificates.origin_ca_certificate_create_response import OriginCACertificateCreateResponse @@ -51,7 +51,7 @@ def create( *, csr: str | NotGiven = NOT_GIVEN, hostnames: Iterable[object] | NotGiven = NOT_GIVEN, - request_type: CertificatePackRequestType | NotGiven = NOT_GIVEN, + request_type: CertificateRequestType | NotGiven = NOT_GIVEN, requested_validity: RequestValidity | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -259,7 +259,7 @@ async def create( *, csr: str | NotGiven = NOT_GIVEN, hostnames: Iterable[object] | NotGiven = NOT_GIVEN, - request_type: CertificatePackRequestType | NotGiven = NOT_GIVEN, + request_type: CertificateRequestType | NotGiven = NOT_GIVEN, requested_validity: RequestValidity | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. diff --git a/src/cloudflare/types/__init__.py b/src/cloudflare/types/__init__.py index debf7cacb6a..e5d0a72b561 100644 --- a/src/cloudflare/types/__init__.py +++ b/src/cloudflare/types/__init__.py @@ -16,5 +16,5 @@ PermissionGrant as PermissionGrant, CloudflareTunnel as CloudflareTunnel, LoadBalancerPreview as LoadBalancerPreview, - CertificatePackRequestType as CertificatePackRequestType, + CertificateRequestType as CertificateRequestType, ) diff --git a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py index 1d9ed5cf403..0ded731e49c 100644 --- a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py +++ b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py @@ -5,7 +5,7 @@ from ..._models import BaseModel from ..ssl.request_validity import RequestValidity -from ..shared.certificate_pack_request_type import CertificatePackRequestType +from ..shared.certificate_request_type import CertificateRequestType __all__ = ["OriginCACertificate"] @@ -20,7 +20,7 @@ class OriginCACertificate(BaseModel): certificate. """ - request_type: CertificatePackRequestType + request_type: CertificateRequestType """ Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). diff --git a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py index 3adb18d7f3f..704ed08eed1 100644 --- a/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py +++ b/src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py @@ -6,7 +6,7 @@ from typing_extensions import TypedDict from ..ssl.request_validity import RequestValidity -from ..shared.certificate_pack_request_type import CertificatePackRequestType +from ..shared.certificate_request_type import CertificateRequestType __all__ = ["OriginCACertificateCreateParams"] @@ -21,7 +21,7 @@ class OriginCACertificateCreateParams(TypedDict, total=False): certificate. """ - request_type: CertificatePackRequestType + request_type: CertificateRequestType """ Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers). diff --git a/src/cloudflare/types/shared/__init__.py b/src/cloudflare/types/shared/__init__.py index 933cdb9a98b..0a9630a29f2 100644 --- a/src/cloudflare/types/shared/__init__.py +++ b/src/cloudflare/types/shared/__init__.py @@ -13,4 +13,4 @@ from .permission_grant import PermissionGrant as PermissionGrant from .cloudflare_tunnel import CloudflareTunnel as CloudflareTunnel from .load_balancer_preview import LoadBalancerPreview as LoadBalancerPreview -from .certificate_pack_request_type import CertificatePackRequestType as CertificatePackRequestType +from .certificate_request_type import CertificateRequestType as CertificateRequestType diff --git a/src/cloudflare/types/shared/certificate_pack_request_type.py b/src/cloudflare/types/shared/certificate_pack_request_type.py deleted file mode 100644 index 850d67c2f5e..00000000000 --- a/src/cloudflare/types/shared/certificate_pack_request_type.py +++ /dev/null @@ -1,7 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing_extensions import Literal - -__all__ = ["CertificatePackRequestType"] - -CertificatePackRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"] diff --git a/src/cloudflare/types/shared/certificate_request_type.py b/src/cloudflare/types/shared/certificate_request_type.py new file mode 100644 index 00000000000..dea937c3690 --- /dev/null +++ b/src/cloudflare/types/shared/certificate_request_type.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +__all__ = ["CertificateRequestType"] + +CertificateRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"] diff --git a/src/cloudflare/types/shared_params/__init__.py b/src/cloudflare/types/shared_params/__init__.py index 1827eea3707..92f6f91d686 100644 --- a/src/cloudflare/types/shared_params/__init__.py +++ b/src/cloudflare/types/shared_params/__init__.py @@ -2,4 +2,4 @@ from .asn import ASN as ASN from .permission_grant import PermissionGrant as PermissionGrant -from .certificate_pack_request_type import CertificatePackRequestType as CertificatePackRequestType +from .certificate_request_type import CertificateRequestType as CertificateRequestType diff --git a/src/cloudflare/types/shared_params/certificate_pack_request_type.py b/src/cloudflare/types/shared_params/certificate_request_type.py similarity index 55% rename from src/cloudflare/types/shared_params/certificate_pack_request_type.py rename to src/cloudflare/types/shared_params/certificate_request_type.py index aa3fe05410f..4366cc3dd96 100644 --- a/src/cloudflare/types/shared_params/certificate_pack_request_type.py +++ b/src/cloudflare/types/shared_params/certificate_request_type.py @@ -4,6 +4,6 @@ from typing_extensions import Literal -__all__ = ["CertificatePackRequestType"] +__all__ = ["CertificateRequestType"] -CertificatePackRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"] +CertificateRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"]