Skip to content

Commit a6c4b4b

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#468)
1 parent bce1bf4 commit a6c4b4b

38 files changed

+107
-102
lines changed

api.md

+9-12
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Types:
4343

4444
```python
4545
from cloudflare.types.accounts import (
46-
MemberStatus,
46+
Status,
4747
UserWithInviteCode,
4848
MemberListResponse,
4949
MemberDeleteResponse,
@@ -1283,12 +1283,12 @@ Types:
12831283

12841284
```python
12851285
from cloudflare.types.ssl import (
1286-
CertificatePackCA,
1287-
CertificatePackRequestType,
1288-
CertificatePackRequestValidity,
1289-
CertificatePackStatus,
1290-
CertificatePackValidationMethod,
1286+
CertificateAuthority,
12911287
Host,
1288+
RequestType,
1289+
RequestValidity,
1290+
Status,
1291+
ValidationMethod,
12921292
CertificatePackListResponse,
12931293
CertificatePackDeleteResponse,
12941294
CertificatePackEditResponse,
@@ -1395,11 +1395,7 @@ Methods:
13951395
Types:
13961396

13971397
```python
1398-
from cloudflare.types.acm import (
1399-
TotalTLSCertificateAuthority,
1400-
TotalTLSCreateResponse,
1401-
TotalTLSGetResponse,
1402-
)
1398+
from cloudflare.types.acm import CertificateAuthority, TotalTLSCreateResponse, TotalTLSGetResponse
14031399
```
14041400

14051401
Methods:
@@ -1504,6 +1500,7 @@ Types:
15041500
from cloudflare.types.custom_certificates import (
15051501
CustomCertificate,
15061502
GeoRestrictions,
1503+
Status,
15071504
CustomCertificateCreateResponse,
15081505
CustomCertificateDeleteResponse,
15091506
CustomCertificateEditResponse,
@@ -3234,7 +3231,7 @@ Types:
32343231
```python
32353232
from cloudflare.types.addressing import (
32363233
AddressMap,
3237-
AddressMapKind,
3234+
Kind,
32383235
AddressMapCreateResponse,
32393236
AddressMapDeleteResponse,
32403237
AddressMapGetResponse,

src/cloudflare/resources/acm/total_tls.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
async_to_streamed_response_wrapper,
2121
)
2222
from ..._wrappers import ResultWrapper
23-
from ...types.acm import TotalTLSCertificateAuthority, total_tls_create_params
23+
from ...types.acm import CertificateAuthority, total_tls_create_params
2424
from ..._base_client import (
2525
make_request_options,
2626
)
27+
from ...types.acm.certificate_authority import CertificateAuthority
2728
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
2829
from ...types.acm.total_tls_create_response import TotalTLSCreateResponse
29-
from ...types.acm.total_tls_certificate_authority import TotalTLSCertificateAuthority
3030

3131
__all__ = ["TotalTLSResource", "AsyncTotalTLSResource"]
3232

@@ -45,7 +45,7 @@ def create(
4545
*,
4646
zone_id: str,
4747
enabled: bool,
48-
certificate_authority: TotalTLSCertificateAuthority | NotGiven = NOT_GIVEN,
48+
certificate_authority: CertificateAuthority | NotGiven = NOT_GIVEN,
4949
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5050
# The extra values given here take precedence over values defined on the client or passed to this method.
5151
extra_headers: Headers | None = None,
@@ -147,7 +147,7 @@ async def create(
147147
*,
148148
zone_id: str,
149149
enabled: bool,
150-
certificate_authority: TotalTLSCertificateAuthority | NotGiven = NOT_GIVEN,
150+
certificate_authority: CertificateAuthority | NotGiven = NOT_GIVEN,
151151
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
152152
# The extra values given here take precedence over values defined on the client or passed to this method.
153153
extra_headers: Headers | None = None,

src/cloudflare/resources/origin_ca_certificates.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
async_to_streamed_response_wrapper,
2121
)
2222
from .._wrappers import ResultWrapper
23-
from ..types.ssl import CertificatePackRequestType, CertificatePackRequestValidity
23+
from ..types.ssl import RequestType, RequestValidity
2424
from ..pagination import SyncSinglePage, AsyncSinglePage
2525
from .._base_client import (
2626
AsyncPaginator,
2727
make_request_options,
2828
)
29+
from ..types.ssl.request_type import RequestType
30+
from ..types.ssl.request_validity import RequestValidity
2931
from ..types.origin_ca_certificates import origin_ca_certificate_list_params, origin_ca_certificate_create_params
30-
from ..types.ssl.certificate_pack_request_type import CertificatePackRequestType
31-
from ..types.ssl.certificate_pack_request_validity import CertificatePackRequestValidity
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,8 +51,8 @@ def create(
5151
*,
5252
csr: str | NotGiven = NOT_GIVEN,
5353
hostnames: Iterable[object] | NotGiven = NOT_GIVEN,
54-
request_type: CertificatePackRequestType | NotGiven = NOT_GIVEN,
55-
requested_validity: CertificatePackRequestValidity | NotGiven = NOT_GIVEN,
54+
request_type: RequestType | NotGiven = NOT_GIVEN,
55+
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.
5858
extra_headers: Headers | None = None,
@@ -259,8 +259,8 @@ async def create(
259259
*,
260260
csr: str | NotGiven = NOT_GIVEN,
261261
hostnames: Iterable[object] | NotGiven = NOT_GIVEN,
262-
request_type: CertificatePackRequestType | NotGiven = NOT_GIVEN,
263-
requested_validity: CertificatePackRequestValidity | NotGiven = NOT_GIVEN,
262+
request_type: RequestType | NotGiven = NOT_GIVEN,
263+
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.
266266
extra_headers: Headers | None = None,

src/cloudflare/types/accounts/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from __future__ import annotations
44

5+
from .status import Status as Status
56
from .account import Account as Account
6-
from .member_status import MemberStatus as MemberStatus
77
from .role_get_response import RoleGetResponse as RoleGetResponse
88
from .member_list_params import MemberListParams as MemberListParams
99
from .account_list_params import AccountListParams as AccountListParams

src/cloudflare/types/accounts/member_status.py src/cloudflare/types/accounts/status.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
from typing_extensions import Literal
44

5-
__all__ = ["MemberStatus"]
5+
__all__ = ["Status"]
66

7-
MemberStatus = Literal["member", "invited"]
7+
Status = Literal["member", "invited"]

src/cloudflare/types/acm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5+
from .certificate_authority import CertificateAuthority as CertificateAuthority
56
from .total_tls_get_response import TotalTLSGetResponse as TotalTLSGetResponse
67
from .total_tls_create_params import TotalTLSCreateParams as TotalTLSCreateParams
78
from .total_tls_create_response import TotalTLSCreateResponse as TotalTLSCreateResponse
8-
from .total_tls_certificate_authority import TotalTLSCertificateAuthority as TotalTLSCertificateAuthority

src/cloudflare/types/ssl/certificate_pack_ca.py src/cloudflare/types/acm/certificate_authority.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
from typing_extensions import Literal
44

5-
__all__ = ["CertificatePackCA"]
5+
__all__ = ["CertificateAuthority"]
66

7-
CertificatePackCA = Literal["digicert", "google", "lets_encrypt"]
7+
CertificateAuthority = Literal["google", "lets_encrypt"]

src/cloudflare/types/acm/total_tls_create_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing_extensions import Required, TypedDict
66

7-
from .total_tls_certificate_authority import TotalTLSCertificateAuthority
7+
from .certificate_authority import CertificateAuthority
88

99
__all__ = ["TotalTLSCreateParams"]
1010

@@ -19,5 +19,5 @@ class TotalTLSCreateParams(TypedDict, total=False):
1919
proxied A, AAAA, or CNAME record in your zone.
2020
"""
2121

22-
certificate_authority: TotalTLSCertificateAuthority
22+
certificate_authority: CertificateAuthority
2323
"""The Certificate Authority that Total TLS certificates will be issued through."""

src/cloudflare/types/acm/total_tls_create_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
7-
from .total_tls_certificate_authority import TotalTLSCertificateAuthority
7+
from .certificate_authority import CertificateAuthority
88

99
__all__ = ["TotalTLSCreateResponse"]
1010

1111

1212
class TotalTLSCreateResponse(BaseModel):
13-
certificate_authority: Optional[TotalTLSCertificateAuthority] = None
13+
certificate_authority: Optional[CertificateAuthority] = None
1414
"""The Certificate Authority that Total TLS certificates will be issued through."""
1515

1616
enabled: Optional[bool] = None

src/cloudflare/types/acm/total_tls_get_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
7-
from .total_tls_certificate_authority import TotalTLSCertificateAuthority
7+
from .certificate_authority import CertificateAuthority
88

99
__all__ = ["TotalTLSGetResponse"]
1010

1111

1212
class TotalTLSGetResponse(BaseModel):
13-
certificate_authority: Optional[TotalTLSCertificateAuthority] = None
13+
certificate_authority: Optional[CertificateAuthority] = None
1414
"""The Certificate Authority that Total TLS certificates will be issued through."""
1515

1616
enabled: Optional[bool] = None

src/cloudflare/types/addressing/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from __future__ import annotations
44

5+
from .kind import Kind as Kind
56
from .prefix import Prefix as Prefix
67
from .address_map import AddressMap as AddressMap
7-
from .address_map_kind import AddressMapKind as AddressMapKind
88
from .prefix_edit_params import PrefixEditParams as PrefixEditParams
99
from .prefix_create_params import PrefixCreateParams as PrefixCreateParams
1010
from .service_list_response import ServiceListResponse as ServiceListResponse

src/cloudflare/types/addressing/address_map_create_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from typing import List, Optional
44
from datetime import datetime
55

6+
from .kind import Kind
67
from ..._models import BaseModel
7-
from .address_map_kind import AddressMapKind
88

99
__all__ = ["AddressMapCreateResponse", "IP", "Membership"]
1010

@@ -25,7 +25,7 @@ class Membership(BaseModel):
2525
identifier: Optional[str] = None
2626
"""Identifier"""
2727

28-
kind: Optional[AddressMapKind] = None
28+
kind: Optional[Kind] = None
2929
"""The type of the membership."""
3030

3131

src/cloudflare/types/addressing/address_map_get_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from typing import List, Optional
44
from datetime import datetime
55

6+
from .kind import Kind
67
from ..._models import BaseModel
7-
from .address_map_kind import AddressMapKind
88

99
__all__ = ["AddressMapGetResponse", "IP", "Membership"]
1010

@@ -25,7 +25,7 @@ class Membership(BaseModel):
2525
identifier: Optional[str] = None
2626
"""Identifier"""
2727

28-
kind: Optional[AddressMapKind] = None
28+
kind: Optional[Kind] = None
2929
"""The type of the membership."""
3030

3131

src/cloudflare/types/addressing/address_map_kind.py src/cloudflare/types/addressing/kind.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
from typing_extensions import Literal
44

5-
__all__ = ["AddressMapKind"]
5+
__all__ = ["Kind"]
66

7-
AddressMapKind = Literal["zone", "account"]
7+
Kind = Literal["zone", "account"]

src/cloudflare/types/client_certificates/client_certificate.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Optional
4-
from typing_extensions import Literal
54

65
from ..._models import BaseModel
6+
from ..custom_certificates.status import Status
77

88
__all__ = ["ClientCertificate", "CertificateAuthority"]
99

@@ -63,7 +63,7 @@ class ClientCertificate(BaseModel):
6363
state: Optional[str] = None
6464
"""State, provided by the CSR"""
6565

66-
status: Optional[Literal["active", "pending_reactivation", "pending_revocation", "revoked"]] = None
66+
status: Optional[Status] = None
6767
"""
6868
Client Certificates may be active or revoked, and the pending_reactivation or
6969
pending_revocation represent in-progress asynchronous transitions

src/cloudflare/types/custom_certificates/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from .status import Status as Status
56
from .geo_restrictions import GeoRestrictions as GeoRestrictions
67
from .custom_certificate import CustomCertificate as CustomCertificate
78
from .geo_restrictions_param import GeoRestrictionsParam as GeoRestrictionsParam

src/cloudflare/types/acm/total_tls_certificate_authority.py src/cloudflare/types/custom_certificates/status.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
from typing_extensions import Literal
44

5-
__all__ = ["TotalTLSCertificateAuthority"]
5+
__all__ = ["Status"]
66

7-
TotalTLSCertificateAuthority = Literal["google", "lets_encrypt"]
7+
Status = Literal["active", "pending_reactivation", "pending_revocation", "revoked"]

src/cloudflare/types/custom_hostnames/custom_hostname_create_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .dcv_method import DCVMethod
99
from .bundle_method import BundleMethod
1010
from .domain_validation_type import DomainValidationType
11-
from ..ssl.certificate_pack_ca import CertificatePackCA
11+
from ..ssl.certificate_authority import CertificateAuthority
1212

1313
__all__ = ["CustomHostnameCreateParams", "SSL", "SSLSettings", "CustomMetadata"]
1414

@@ -56,7 +56,7 @@ class SSL(TypedDict, total=False):
5656
chain, but does not otherwise modify it.
5757
"""
5858

59-
certificate_authority: CertificatePackCA
59+
certificate_authority: CertificateAuthority
6060
"""The Certificate Authority that will issue the certificate"""
6161

6262
custom_certificate: str

src/cloudflare/types/custom_hostnames/custom_hostname_create_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .dcv_method import DCVMethod
99
from .bundle_method import BundleMethod
1010
from .domain_validation_type import DomainValidationType
11-
from ..ssl.certificate_pack_ca import CertificatePackCA
11+
from ..ssl.certificate_authority import CertificateAuthority
1212

1313
__all__ = [
1414
"CustomHostnameCreateResponse",
@@ -88,7 +88,7 @@ class SSL(BaseModel):
8888
chain, but does not otherwise modify it.
8989
"""
9090

91-
certificate_authority: Optional[CertificatePackCA] = None
91+
certificate_authority: Optional[CertificateAuthority] = None
9292
"""The Certificate Authority that will issue the certificate"""
9393

9494
custom_certificate: Optional[str] = None

src/cloudflare/types/custom_hostnames/custom_hostname_edit_params.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .dcv_method import DCVMethod
99
from .bundle_method import BundleMethod
1010
from .domain_validation_type import DomainValidationType
11-
from ..ssl.certificate_pack_ca import CertificatePackCA
11+
from ..ssl.certificate_authority import CertificateAuthority
1212

1313
__all__ = ["CustomHostnameEditParams", "CustomMetadata", "SSL", "SSLSettings"]
1414

@@ -73,7 +73,7 @@ class SSL(TypedDict, total=False):
7373
chain, but does not otherwise modify it.
7474
"""
7575

76-
certificate_authority: CertificatePackCA
76+
certificate_authority: CertificateAuthority
7777
"""The Certificate Authority that will issue the certificate"""
7878

7979
custom_certificate: str

src/cloudflare/types/custom_hostnames/custom_hostname_edit_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .dcv_method import DCVMethod
99
from .bundle_method import BundleMethod
1010
from .domain_validation_type import DomainValidationType
11-
from ..ssl.certificate_pack_ca import CertificatePackCA
11+
from ..ssl.certificate_authority import CertificateAuthority
1212

1313
__all__ = [
1414
"CustomHostnameEditResponse",
@@ -88,7 +88,7 @@ class SSL(BaseModel):
8888
chain, but does not otherwise modify it.
8989
"""
9090

91-
certificate_authority: Optional[CertificatePackCA] = None
91+
certificate_authority: Optional[CertificateAuthority] = None
9292
"""The Certificate Authority that will issue the certificate"""
9393

9494
custom_certificate: Optional[str] = None

0 commit comments

Comments
 (0)