Skip to content

Commit 6b8c3c3

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#470)
1 parent 37db74d commit 6b8c3c3

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from cloudflare.types import (
55
ASN,
66
AuditLog,
7-
CertificatePackRequestType,
7+
CertificateRequestType,
88
CloudflareTunnel,
99
ErrorData,
1010
Identifier,

src/cloudflare/resources/origin_ca_certificates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
)
2929
from ..types.ssl.request_validity import RequestValidity
3030
from ..types.origin_ca_certificates import origin_ca_certificate_list_params, origin_ca_certificate_create_params
31-
from ..types.shared.certificate_pack_request_type import CertificatePackRequestType
31+
from ..types.shared.certificate_request_type import CertificateRequestType
3232
from ..types.origin_ca_certificates.origin_ca_certificate import OriginCACertificate
3333
from ..types.origin_ca_certificates.origin_ca_certificate_get_response import OriginCACertificateGetResponse
3434
from ..types.origin_ca_certificates.origin_ca_certificate_create_response import OriginCACertificateCreateResponse
@@ -51,7 +51,7 @@ def create(
5151
*,
5252
csr: str | NotGiven = NOT_GIVEN,
5353
hostnames: Iterable[object] | NotGiven = NOT_GIVEN,
54-
request_type: CertificatePackRequestType | NotGiven = NOT_GIVEN,
54+
request_type: CertificateRequestType | NotGiven = NOT_GIVEN,
5555
requested_validity: RequestValidity | NotGiven = NOT_GIVEN,
5656
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5757
# 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(
259259
*,
260260
csr: str | NotGiven = NOT_GIVEN,
261261
hostnames: Iterable[object] | NotGiven = NOT_GIVEN,
262-
request_type: CertificatePackRequestType | NotGiven = NOT_GIVEN,
262+
request_type: CertificateRequestType | NotGiven = NOT_GIVEN,
263263
requested_validity: RequestValidity | NotGiven = NOT_GIVEN,
264264
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
265265
# The extra values given here take precedence over values defined on the client or passed to this method.

src/cloudflare/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
PermissionGrant as PermissionGrant,
1717
CloudflareTunnel as CloudflareTunnel,
1818
LoadBalancerPreview as LoadBalancerPreview,
19-
CertificatePackRequestType as CertificatePackRequestType,
19+
CertificateRequestType as CertificateRequestType,
2020
)

src/cloudflare/types/origin_ca_certificates/origin_ca_certificate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ..._models import BaseModel
77
from ..ssl.request_validity import RequestValidity
8-
from ..shared.certificate_pack_request_type import CertificatePackRequestType
8+
from ..shared.certificate_request_type import CertificateRequestType
99

1010
__all__ = ["OriginCACertificate"]
1111

@@ -20,7 +20,7 @@ class OriginCACertificate(BaseModel):
2020
certificate.
2121
"""
2222

23-
request_type: CertificatePackRequestType
23+
request_type: CertificateRequestType
2424
"""
2525
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
2626
or "keyless-certificate" (for Keyless SSL servers).

src/cloudflare/types/origin_ca_certificates/origin_ca_certificate_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing_extensions import TypedDict
77

88
from ..ssl.request_validity import RequestValidity
9-
from ..shared.certificate_pack_request_type import CertificatePackRequestType
9+
from ..shared.certificate_request_type import CertificateRequestType
1010

1111
__all__ = ["OriginCACertificateCreateParams"]
1212

@@ -21,7 +21,7 @@ class OriginCACertificateCreateParams(TypedDict, total=False):
2121
certificate.
2222
"""
2323

24-
request_type: CertificatePackRequestType
24+
request_type: CertificateRequestType
2525
"""
2626
Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
2727
or "keyless-certificate" (for Keyless SSL servers).

src/cloudflare/types/shared/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
from .permission_grant import PermissionGrant as PermissionGrant
1414
from .cloudflare_tunnel import CloudflareTunnel as CloudflareTunnel
1515
from .load_balancer_preview import LoadBalancerPreview as LoadBalancerPreview
16-
from .certificate_pack_request_type import CertificatePackRequestType as CertificatePackRequestType
16+
from .certificate_request_type import CertificateRequestType as CertificateRequestType

src/cloudflare/types/shared/certificate_pack_request_type.py

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing_extensions import Literal
4+
5+
__all__ = ["CertificateRequestType"]
6+
7+
CertificateRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"]

src/cloudflare/types/shared_params/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from .asn import ASN as ASN
44
from .permission_grant import PermissionGrant as PermissionGrant
5-
from .certificate_pack_request_type import CertificatePackRequestType as CertificatePackRequestType
5+
from .certificate_request_type import CertificateRequestType as CertificateRequestType

src/cloudflare/types/shared_params/certificate_pack_request_type.py renamed to src/cloudflare/types/shared_params/certificate_request_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
from typing_extensions import Literal
66

7-
__all__ = ["CertificatePackRequestType"]
7+
__all__ = ["CertificateRequestType"]
88

9-
CertificatePackRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"]
9+
CertificateRequestType = Literal["origin-rsa", "origin-ecc", "keyless-certificate"]

0 commit comments

Comments
 (0)