From 965aec9799603754867b0e24ee9a26044b7bb0a1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 03:58:30 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#465) --- api.md | 1 + src/cloudflare/types/ssl/__init__.py | 1 + .../ssl/certificate_pack_edit_response.py | 27 ++--------------- .../types/ssl/certificate_pack_status.py | 29 +++++++++++++++++++ .../order_create_response.py | 27 ++--------------- 5 files changed, 35 insertions(+), 50 deletions(-) create mode 100644 src/cloudflare/types/ssl/certificate_pack_status.py diff --git a/api.md b/api.md index 8cf0ccfb413..7e30a1adb2b 100644 --- a/api.md +++ b/api.md @@ -1278,6 +1278,7 @@ Types: ```python from cloudflare.types.ssl import ( + CertificatePackStatus, Host, CertificatePackListResponse, CertificatePackDeleteResponse, diff --git a/src/cloudflare/types/ssl/__init__.py b/src/cloudflare/types/ssl/__init__.py index eb3b7b54821..41194fd8266 100644 --- a/src/cloudflare/types/ssl/__init__.py +++ b/src/cloudflare/types/ssl/__init__.py @@ -6,6 +6,7 @@ from .verification import Verification as Verification from .analyze_create_params import AnalyzeCreateParams as AnalyzeCreateParams from .analyze_create_response import AnalyzeCreateResponse as AnalyzeCreateResponse +from .certificate_pack_status import CertificatePackStatus as CertificatePackStatus from .verification_get_params import VerificationGetParams as VerificationGetParams from .verification_edit_params import VerificationEditParams as VerificationEditParams from .verification_get_response import VerificationGetResponse as VerificationGetResponse diff --git a/src/cloudflare/types/ssl/certificate_pack_edit_response.py b/src/cloudflare/types/ssl/certificate_pack_edit_response.py index 2b9475f83c5..e75f5b894ee 100644 --- a/src/cloudflare/types/ssl/certificate_pack_edit_response.py +++ b/src/cloudflare/types/ssl/certificate_pack_edit_response.py @@ -5,6 +5,7 @@ from .host import Host from ..._models import BaseModel +from .certificate_pack_status import CertificatePackStatus __all__ = ["CertificatePackEditResponse"] @@ -33,31 +34,7 @@ class CertificatePackEditResponse(BaseModel): empty. """ - status: Optional[ - Literal[ - "initializing", - "pending_validation", - "deleted", - "pending_issuance", - "pending_deployment", - "pending_deletion", - "pending_expiration", - "expired", - "active", - "initializing_timed_out", - "validation_timed_out", - "issuance_timed_out", - "deployment_timed_out", - "deletion_timed_out", - "pending_cleanup", - "staging_deployment", - "staging_active", - "deactivating", - "inactive", - "backup_issued", - "holding_deployment", - ] - ] = None + status: Optional[CertificatePackStatus] = None """Status of certificate pack.""" type: Optional[Literal["advanced"]] = None diff --git a/src/cloudflare/types/ssl/certificate_pack_status.py b/src/cloudflare/types/ssl/certificate_pack_status.py new file mode 100644 index 00000000000..2c23558ddd1 --- /dev/null +++ b/src/cloudflare/types/ssl/certificate_pack_status.py @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import Literal + +__all__ = ["CertificatePackStatus"] + +CertificatePackStatus = Literal[ + "initializing", + "pending_validation", + "deleted", + "pending_issuance", + "pending_deployment", + "pending_deletion", + "pending_expiration", + "expired", + "active", + "initializing_timed_out", + "validation_timed_out", + "issuance_timed_out", + "deployment_timed_out", + "deletion_timed_out", + "pending_cleanup", + "staging_deployment", + "staging_active", + "deactivating", + "inactive", + "backup_issued", + "holding_deployment", +] diff --git a/src/cloudflare/types/ssl/certificate_packs/order_create_response.py b/src/cloudflare/types/ssl/certificate_packs/order_create_response.py index e0c4d08946a..19d2e565786 100644 --- a/src/cloudflare/types/ssl/certificate_packs/order_create_response.py +++ b/src/cloudflare/types/ssl/certificate_packs/order_create_response.py @@ -5,6 +5,7 @@ from ..host import Host from ...._models import BaseModel +from ..certificate_pack_status import CertificatePackStatus __all__ = ["OrderCreateResponse"] @@ -33,31 +34,7 @@ class OrderCreateResponse(BaseModel): empty. """ - status: Optional[ - Literal[ - "initializing", - "pending_validation", - "deleted", - "pending_issuance", - "pending_deployment", - "pending_deletion", - "pending_expiration", - "expired", - "active", - "initializing_timed_out", - "validation_timed_out", - "issuance_timed_out", - "deployment_timed_out", - "deletion_timed_out", - "pending_cleanup", - "staging_deployment", - "staging_active", - "deactivating", - "inactive", - "backup_issued", - "holding_deployment", - ] - ] = None + status: Optional[CertificatePackStatus] = None """Status of certificate pack.""" type: Optional[Literal["advanced"]] = None