From 3ef46439f9a7817c15b16df4e799eab742142268 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 04:33:10 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#470) --- api.md | 2 +- src/cloudflare/resources/origin_ca_certificates.py | 6 +++--- src/cloudflare/types/__init__.py | 2 +- .../types/origin_ca_certificates/origin_ca_certificate.py | 4 ++-- .../origin_ca_certificate_create_params.py | 4 ++-- src/cloudflare/types/shared/__init__.py | 2 +- .../types/shared/certificate_pack_request_type.py | 7 ------- src/cloudflare/types/shared/certificate_request_type.py | 7 +++++++ src/cloudflare/types/shared_params/__init__.py | 2 +- ...te_pack_request_type.py => certificate_request_type.py} | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 src/cloudflare/types/shared/certificate_pack_request_type.py create mode 100644 src/cloudflare/types/shared/certificate_request_type.py rename src/cloudflare/types/shared_params/{certificate_pack_request_type.py => certificate_request_type.py} (55%) diff --git a/api.md b/api.md index 82f9d6ad9554..3827413a4298 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 9b5e93c7c659..0469f455fb26 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 debf7cacb6a9..e5d0a72b561f 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 1d9ed5cf4039..0ded731e49ca 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 3adb18d7f3f2..704ed08eed1a 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 933cdb9a98b5..0a9630a29f27 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 850d67c2f5e6..000000000000 --- 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 000000000000..dea937c36904 --- /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 1827eea37076..92f6f91d686d 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 aa3fe05410ff..4366cc3dd96a 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"]