Skip to content

Commit c33634e

Browse files
feat(api): api update
1 parent f051fda commit c33634e

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1734
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bec9cd7b22ac8af0991008a7b27ab252a24b2571a196741c2f04b59e8710138c.yml
3-
openapi_spec_hash: c3946e442f3034de3f2c9ab5a5c042ae
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fb111a0086c40e2051f762a27180c017d30a7e71f13b5a883f6109c205e53603.yml
3+
openapi_spec_hash: de05b9c2b538d5175ca561373016af91
44
config_hash: ab6d922663ab4c7b89e22975f70d50d8

src/cloudflare/resources/zones/zones.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def create(
149149
Create Zone
150150
151151
Args:
152-
name: The domain name
152+
name: The domain name.
153153
154154
type: A full zone implies that DNS is hosted with Cloudflare. A partial zone is
155155
typically a partner-hosted zone or a CNAME setup.
@@ -228,7 +228,7 @@ def list(
228228
229229
per_page: Number of zones per page.
230230
231-
status: A zone status
231+
status: Specify a zone status to filter by.
232232
233233
extra_headers: Send extra headers
234234
@@ -469,7 +469,7 @@ async def create(
469469
Create Zone
470470
471471
Args:
472-
name: The domain name
472+
name: The domain name.
473473
474474
type: A full zone implies that DNS is hosted with Cloudflare. A partial zone is
475475
typically a partner-hosted zone or a CNAME setup.
@@ -548,7 +548,7 @@ def list(
548548
549549
per_page: Number of zones per page.
550550
551-
status: A zone status
551+
status: Specify a zone status to filter by.
552552
553553
extra_headers: Send extra headers
554554

src/cloudflare/types/zones/setting_edit_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class ZonesMaxUpload(BaseModel):
320320
id: Literal["max_upload"]
321321
"""identifier of the zone setting."""
322322

323-
value: Literal[100, 200, 500]
323+
value: Literal[100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 1000]
324324
"""Current value of the zone setting."""
325325

326326
editable: Optional[Literal[True, False]] = None

src/cloudflare/types/zones/setting_get_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ class ZonesMaxUpload(BaseModel):
320320
id: Literal["max_upload"]
321321
"""identifier of the zone setting."""
322322

323-
value: Literal[100, 200, 500]
323+
value: Literal[100, 125, 150, 175, 200, 225, 250, 275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 1000]
324324
"""Current value of the zone setting."""
325325

326326
editable: Optional[Literal[True, False]] = None

src/cloudflare/types/zones/zone.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ class Account(BaseModel):
1515
"""Identifier"""
1616

1717
name: Optional[str] = None
18-
"""The name of the account"""
18+
"""The name of the account."""
1919

2020

2121
class Meta(BaseModel):
2222
cdn_only: Optional[bool] = None
23-
"""The zone is only configured for CDN"""
23+
"""The zone is only configured for CDN."""
2424

2525
custom_certificate_quota: Optional[int] = None
26-
"""Number of Custom Certificates the zone can have"""
26+
"""Number of Custom Certificates the zone can have."""
2727

2828
dns_only: Optional[bool] = None
29-
"""The zone is only configured for DNS"""
29+
"""The zone is only configured for DNS."""
3030

3131
foundation_dns: Optional[bool] = None
32-
"""The zone is setup with Foundation DNS"""
32+
"""The zone is setup with Foundation DNS."""
3333

3434
page_rule_quota: Optional[int] = None
35-
"""Number of Page Rules a zone can have"""
35+
"""Number of Page Rules a zone can have."""
3636

3737
phishing_detected: Optional[bool] = None
38-
"""The zone has been flagged for phishing"""
38+
"""The zone has been flagged for phishing."""
3939

4040
step: Optional[int] = None
4141

@@ -45,10 +45,10 @@ class Owner(BaseModel):
4545
"""Identifier"""
4646

4747
name: Optional[str] = None
48-
"""Name of the owner"""
48+
"""Name of the owner."""
4949

5050
type: Optional[str] = None
51-
"""The type of owner"""
51+
"""The type of owner."""
5252

5353

5454
class Plan(BaseModel):
@@ -77,7 +77,7 @@ class Plan(BaseModel):
7777
"""The legacy name of the plan."""
7878

7979
name: Optional[str] = None
80-
"""Name of the owner"""
80+
"""Name of the owner."""
8181

8282
price: Optional[float] = None
8383
"""How much the customer is paying."""
@@ -101,13 +101,13 @@ class Zone(BaseModel):
101101
"""Identifier"""
102102

103103
account: Account
104-
"""The account the zone belongs to"""
104+
"""The account the zone belongs to."""
105105

106106
activated_on: Optional[datetime] = None
107-
"""The last time proof of ownership was detected and the zone was made active"""
107+
"""The last time proof of ownership was detected and the zone was made active."""
108108

109109
created_on: datetime
110-
"""When the zone was created"""
110+
"""When the zone was created."""
111111

112112
development_mode: float
113113
"""
@@ -117,28 +117,28 @@ class Zone(BaseModel):
117117
"""
118118

119119
meta: Meta
120-
"""Metadata about the zone"""
120+
"""Metadata about the zone."""
121121

122122
modified_on: datetime
123-
"""When the zone was last modified"""
123+
"""When the zone was last modified."""
124124

125125
name: str
126-
"""The domain name"""
126+
"""The domain name."""
127127

128128
name_servers: List[str]
129-
"""The name servers Cloudflare assigns to a zone"""
129+
"""The name servers Cloudflare assigns to a zone."""
130130

131131
original_dnshost: Optional[str] = None
132-
"""DNS host at the time of switching to Cloudflare"""
132+
"""DNS host at the time of switching to Cloudflare."""
133133

134134
original_name_servers: Optional[List[str]] = None
135-
"""Original name servers before moving to Cloudflare"""
135+
"""Original name servers before moving to Cloudflare."""
136136

137137
original_registrar: Optional[str] = None
138-
"""Registrar for the domain at the time of switching to Cloudflare"""
138+
"""Registrar for the domain at the time of switching to Cloudflare."""
139139

140140
owner: Owner
141-
"""The owner of the zone"""
141+
"""The owner of the zone."""
142142

143143
plan: Plan
144144
"""A Zones subscription information."""

src/cloudflare/types/zones/zone_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ZoneCreateParams(TypedDict, total=False):
1313
account: Required[Account]
1414

1515
name: Required[str]
16-
"""The domain name"""
16+
"""The domain name."""
1717

1818
type: Type
1919
"""A full zone implies that DNS is hosted with Cloudflare.

src/cloudflare/types/zones/zone_list_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class ZoneListParams(TypedDict, total=False):
4141
"""Number of zones per page."""
4242

4343
status: Literal["initializing", "pending", "active", "moved"]
44-
"""A zone status"""
44+
"""Specify a zone status to filter by."""
4545

4646

4747
class Account(TypedDict, total=False):
4848
id: str
49-
"""An account ID"""
49+
"""Filter by an account ID."""
5050

5151
name: str
5252
"""An account Name.

0 commit comments

Comments
 (0)