Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 37db74d commit 6b8c3c3
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from cloudflare.types import (
ASN,
AuditLog,
CertificatePackRequestType,
CertificateRequestType,
CloudflareTunnel,
ErrorData,
Identifier,
Expand Down
6 changes: 3 additions & 3 deletions src/cloudflare/resources/origin_ca_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
PermissionGrant as PermissionGrant,
CloudflareTunnel as CloudflareTunnel,
LoadBalancerPreview as LoadBalancerPreview,
CertificatePackRequestType as CertificatePackRequestType,
CertificateRequestType as CertificateRequestType,
)
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/shared/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions src/cloudflare/types/shared/certificate_pack_request_type.py

This file was deleted.

7 changes: 7 additions & 0 deletions src/cloudflare/types/shared/certificate_request_type.py
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion src/cloudflare/types/shared_params/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 6b8c3c3

Please sign in to comment.