Skip to content

Commit bce1bf4

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

19 files changed

+70
-29
lines changed

api.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ Methods:
4242
Types:
4343

4444
```python
45-
from cloudflare.types.accounts import UserWithInviteCode, MemberListResponse, MemberDeleteResponse
45+
from cloudflare.types.accounts import (
46+
MemberStatus,
47+
UserWithInviteCode,
48+
MemberListResponse,
49+
MemberDeleteResponse,
50+
)
4651
```
4752

4853
Methods:
@@ -1390,7 +1395,11 @@ Methods:
13901395
Types:
13911396

13921397
```python
1393-
from cloudflare.types.acm import TotalTLSCreateResponse, TotalTLSGetResponse
1398+
from cloudflare.types.acm import (
1399+
TotalTLSCertificateAuthority,
1400+
TotalTLSCreateResponse,
1401+
TotalTLSGetResponse,
1402+
)
13941403
```
13951404

13961405
Methods:
@@ -3225,6 +3234,7 @@ Types:
32253234
```python
32263235
from cloudflare.types.addressing import (
32273236
AddressMap,
3237+
AddressMapKind,
32283238
AddressMapCreateResponse,
32293239
AddressMapDeleteResponse,
32303240
AddressMapGetResponse,

src/cloudflare/resources/acm/total_tls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
from typing import Type, Optional, cast
6-
from typing_extensions import Literal
76

87
import httpx
98

@@ -21,12 +20,13 @@
2120
async_to_streamed_response_wrapper,
2221
)
2322
from ..._wrappers import ResultWrapper
24-
from ...types.acm import total_tls_create_params
23+
from ...types.acm import TotalTLSCertificateAuthority, total_tls_create_params
2524
from ..._base_client import (
2625
make_request_options,
2726
)
2827
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
2928
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: Literal["google", "lets_encrypt"] | NotGiven = NOT_GIVEN,
48+
certificate_authority: TotalTLSCertificateAuthority | 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: Literal["google", "lets_encrypt"] | NotGiven = NOT_GIVEN,
150+
certificate_authority: TotalTLSCertificateAuthority | 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/types/accounts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
from .account import Account as Account
6+
from .member_status import MemberStatus as MemberStatus
67
from .role_get_response import RoleGetResponse as RoleGetResponse
78
from .member_list_params import MemberListParams as MemberListParams
89
from .account_list_params import AccountListParams as AccountListParams
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__ = ["MemberStatus"]
6+
7+
MemberStatus = Literal["member", "invited"]

src/cloudflare/types/acm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
from .total_tls_get_response import TotalTLSGetResponse as TotalTLSGetResponse
66
from .total_tls_create_params import TotalTLSCreateParams as TotalTLSCreateParams
77
from .total_tls_create_response import TotalTLSCreateResponse as TotalTLSCreateResponse
8+
from .total_tls_certificate_authority import TotalTLSCertificateAuthority as TotalTLSCertificateAuthority
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__ = ["TotalTLSCertificateAuthority"]
6+
7+
TotalTLSCertificateAuthority = Literal["google", "lets_encrypt"]

src/cloudflare/types/acm/total_tls_create_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing_extensions import Required, TypedDict
6+
7+
from .total_tls_certificate_authority import TotalTLSCertificateAuthority
68

79
__all__ = ["TotalTLSCreateParams"]
810

@@ -17,5 +19,5 @@ class TotalTLSCreateParams(TypedDict, total=False):
1719
proxied A, AAAA, or CNAME record in your zone.
1820
"""
1921

20-
certificate_authority: Literal["google", "lets_encrypt"]
22+
certificate_authority: TotalTLSCertificateAuthority
2123
"""The Certificate Authority that Total TLS certificates will be issued through."""

src/cloudflare/types/acm/total_tls_create_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
7+
from .total_tls_certificate_authority import TotalTLSCertificateAuthority
78

89
__all__ = ["TotalTLSCreateResponse"]
910

1011

1112
class TotalTLSCreateResponse(BaseModel):
12-
certificate_authority: Optional[Literal["google", "lets_encrypt"]] = None
13+
certificate_authority: Optional[TotalTLSCertificateAuthority] = None
1314
"""The Certificate Authority that Total TLS certificates will be issued through."""
1415

1516
enabled: Optional[bool] = None

src/cloudflare/types/acm/total_tls_get_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
7+
from .total_tls_certificate_authority import TotalTLSCertificateAuthority
78

89
__all__ = ["TotalTLSGetResponse"]
910

1011

1112
class TotalTLSGetResponse(BaseModel):
12-
certificate_authority: Optional[Literal["google", "lets_encrypt"]] = None
13+
certificate_authority: Optional[TotalTLSCertificateAuthority] = None
1314
"""The Certificate Authority that Total TLS certificates will be issued through."""
1415

1516
enabled: Optional[bool] = None

src/cloudflare/types/addressing/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from .prefix import Prefix as Prefix
66
from .address_map import AddressMap as AddressMap
7+
from .address_map_kind import AddressMapKind as AddressMapKind
78
from .prefix_edit_params import PrefixEditParams as PrefixEditParams
89
from .prefix_create_params import PrefixCreateParams as PrefixCreateParams
910
from .service_list_response import ServiceListResponse as ServiceListResponse

0 commit comments

Comments
 (0)