Skip to content

Commit 04834e7

Browse files
feat(api): api update
1 parent faafd4e commit 04834e7

23 files changed

+179
-313
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: 1711
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-215d242e0ff513622e9813f6d942d1d08e9538e5ae476a8ca18c643fc06bad0a.yml
3-
openapi_spec_hash: f02e4f1e52aa64bdb5584cf5b857ed38
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9a240855cda6dbdadcc3935ef47d6a78e5b1967e8bc324815efcb5a87122cdbc.yml
3+
openapi_spec_hash: a765ed4748e49fc0a5eddd9d6df0bbca
44
config_hash: 501967dbe66b4bf5bcf0d508ebdc37c3

src/cloudflare/resources/email_routing/addresses.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def create(
6464
need to be verified before they can be used.
6565
6666
Args:
67-
account_id: Identifier
67+
account_id: Identifier.
6868
6969
email: The contact email address of the user.
7070
@@ -110,7 +110,7 @@ def list(
110110
Lists existing destination addresses.
111111
112112
Args:
113-
account_id: Identifier
113+
account_id: Identifier.
114114
115115
direction: Sorts results in an ascending or descending order.
116116
@@ -167,7 +167,7 @@ def delete(
167167
Deletes a specific destination address.
168168
169169
Args:
170-
account_id: Identifier
170+
account_id: Identifier.
171171
172172
destination_address_identifier: Destination address identifier.
173173
@@ -213,7 +213,7 @@ def get(
213213
Gets information for a specific destination email already created.
214214
215215
Args:
216-
account_id: Identifier
216+
account_id: Identifier.
217217
218218
destination_address_identifier: Destination address identifier.
219219
@@ -282,7 +282,7 @@ async def create(
282282
need to be verified before they can be used.
283283
284284
Args:
285-
account_id: Identifier
285+
account_id: Identifier.
286286
287287
email: The contact email address of the user.
288288
@@ -328,7 +328,7 @@ def list(
328328
Lists existing destination addresses.
329329
330330
Args:
331-
account_id: Identifier
331+
account_id: Identifier.
332332
333333
direction: Sorts results in an ascending or descending order.
334334
@@ -385,7 +385,7 @@ async def delete(
385385
Deletes a specific destination address.
386386
387387
Args:
388-
account_id: Identifier
388+
account_id: Identifier.
389389
390390
destination_address_identifier: Destination address identifier.
391391
@@ -431,7 +431,7 @@ async def get(
431431
Gets information for a specific destination email already created.
432432
433433
Args:
434-
account_id: Identifier
434+
account_id: Identifier.
435435
436436
destination_address_identifier: Destination address identifier.
437437

src/cloudflare/resources/email_routing/dns.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def create(
6464
Add and lock the necessary MX and SPF records.
6565
6666
Args:
67-
zone_id: Identifier
67+
zone_id: Identifier.
6868
6969
name: Domain of your zone.
7070
@@ -108,7 +108,7 @@ def delete(
108108
required for Email Routing to work.
109109
110110
Args:
111-
zone_id: Identifier
111+
zone_id: Identifier.
112112
113113
extra_headers: Send extra headers
114114
@@ -146,7 +146,7 @@ def edit(
146146
Unlock MX Records previously locked by Email Routing.
147147
148148
Args:
149-
zone_id: Identifier
149+
zone_id: Identifier.
150150
151151
name: Domain of your zone.
152152
@@ -189,7 +189,7 @@ def get(
189189
Show the DNS records needed to configure your Email Routing zone.
190190
191191
Args:
192-
zone_id: Identifier
192+
zone_id: Identifier.
193193
194194
subdomain: Domain of your zone.
195195
@@ -256,7 +256,7 @@ async def create(
256256
Add and lock the necessary MX and SPF records.
257257
258258
Args:
259-
zone_id: Identifier
259+
zone_id: Identifier.
260260
261261
name: Domain of your zone.
262262
@@ -300,7 +300,7 @@ def delete(
300300
required for Email Routing to work.
301301
302302
Args:
303-
zone_id: Identifier
303+
zone_id: Identifier.
304304
305305
extra_headers: Send extra headers
306306
@@ -338,7 +338,7 @@ async def edit(
338338
Unlock MX Records previously locked by Email Routing.
339339
340340
Args:
341-
zone_id: Identifier
341+
zone_id: Identifier.
342342
343343
name: Domain of your zone.
344344
@@ -381,7 +381,7 @@ async def get(
381381
Show the DNS records needed to configure your Email Routing zone.
382382
383383
Args:
384-
zone_id: Identifier
384+
zone_id: Identifier.
385385
386386
subdomain: Domain of your zone.
387387

src/cloudflare/resources/email_routing/email_routing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def disable(
9898
required for Email Routing to work.
9999
100100
Args:
101-
zone_id: Identifier
101+
zone_id: Identifier.
102102
103103
extra_headers: Send extra headers
104104
@@ -140,7 +140,7 @@ def enable(
140140
Add and lock the necessary MX and SPF records.
141141
142142
Args:
143-
zone_id: Identifier
143+
zone_id: Identifier.
144144
145145
extra_headers: Send extra headers
146146
@@ -180,7 +180,7 @@ def get(
180180
Get information about the settings for your Email Routing zone.
181181
182182
Args:
183-
zone_id: Identifier
183+
zone_id: Identifier.
184184
185185
extra_headers: Send extra headers
186186
@@ -255,7 +255,7 @@ async def disable(
255255
required for Email Routing to work.
256256
257257
Args:
258-
zone_id: Identifier
258+
zone_id: Identifier.
259259
260260
extra_headers: Send extra headers
261261
@@ -297,7 +297,7 @@ async def enable(
297297
Add and lock the necessary MX and SPF records.
298298
299299
Args:
300-
zone_id: Identifier
300+
zone_id: Identifier.
301301
302302
extra_headers: Send extra headers
303303
@@ -337,7 +337,7 @@ async def get(
337337
Get information about the settings for your Email Routing zone.
338338
339339
Args:
340-
zone_id: Identifier
340+
zone_id: Identifier.
341341
342342
extra_headers: Send extra headers
343343

src/cloudflare/resources/email_routing/rules/catch_alls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def update(
6868
specific destination address.
6969
7070
Args:
71-
zone_id: Identifier
71+
zone_id: Identifier.
7272
7373
actions: List actions for the catch-all routing rule.
7474
@@ -124,7 +124,7 @@ def get(
124124
Get information on the default catch-all routing rule.
125125
126126
Args:
127-
zone_id: Identifier
127+
zone_id: Identifier.
128128
129129
extra_headers: Send extra headers
130130
@@ -189,7 +189,7 @@ async def update(
189189
specific destination address.
190190
191191
Args:
192-
zone_id: Identifier
192+
zone_id: Identifier.
193193
194194
actions: List actions for the catch-all routing rule.
195195
@@ -245,7 +245,7 @@ async def get(
245245
Get information on the default catch-all routing rule.
246246
247247
Args:
248-
zone_id: Identifier
248+
zone_id: Identifier.
249249
250250
extra_headers: Send extra headers
251251

src/cloudflare/resources/email_routing/rules/rules.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def create(
8282
email (like forwarding it to a specific destination address).
8383
8484
Args:
85-
zone_id: Identifier
85+
zone_id: Identifier.
8686
8787
actions: List actions patterns.
8888
@@ -147,7 +147,7 @@ def update(
147147
Update actions and matches, or enable/disable specific routing rules.
148148
149149
Args:
150-
zone_id: Identifier
150+
zone_id: Identifier.
151151
152152
rule_identifier: Routing rule identifier.
153153
@@ -213,7 +213,7 @@ def list(
213213
Lists existing routing rules.
214214
215215
Args:
216-
zone_id: Identifier
216+
zone_id: Identifier.
217217
218218
enabled: Filter by enabled routing rules.
219219
@@ -267,7 +267,7 @@ def delete(
267267
Delete a specific routing rule.
268268
269269
Args:
270-
zone_id: Identifier
270+
zone_id: Identifier.
271271
272272
rule_identifier: Routing rule identifier.
273273
@@ -311,7 +311,7 @@ def get(
311311
Get information for a specific routing rule already created.
312312
313313
Args:
314-
zone_id: Identifier
314+
zone_id: Identifier.
315315
316316
rule_identifier: Routing rule identifier.
317317
@@ -386,7 +386,7 @@ async def create(
386386
email (like forwarding it to a specific destination address).
387387
388388
Args:
389-
zone_id: Identifier
389+
zone_id: Identifier.
390390
391391
actions: List actions patterns.
392392
@@ -451,7 +451,7 @@ async def update(
451451
Update actions and matches, or enable/disable specific routing rules.
452452
453453
Args:
454-
zone_id: Identifier
454+
zone_id: Identifier.
455455
456456
rule_identifier: Routing rule identifier.
457457
@@ -517,7 +517,7 @@ def list(
517517
Lists existing routing rules.
518518
519519
Args:
520-
zone_id: Identifier
520+
zone_id: Identifier.
521521
522522
enabled: Filter by enabled routing rules.
523523
@@ -571,7 +571,7 @@ async def delete(
571571
Delete a specific routing rule.
572572
573573
Args:
574-
zone_id: Identifier
574+
zone_id: Identifier.
575575
576576
rule_identifier: Routing rule identifier.
577577
@@ -615,7 +615,7 @@ async def get(
615615
Get information for a specific routing rule already created.
616616
617617
Args:
618-
zone_id: Identifier
618+
zone_id: Identifier.
619619
620620
rule_identifier: Routing rule identifier.
621621

src/cloudflare/types/email_routing/action.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
3+
from typing import List, Optional
44
from typing_extensions import Literal
55

66
from ..._models import BaseModel
@@ -12,4 +12,4 @@ class Action(BaseModel):
1212
type: Literal["drop", "forward", "worker"]
1313
"""Type of supported action."""
1414

15-
value: List[str]
15+
value: Optional[List[str]] = None

src/cloudflare/types/email_routing/action_param.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ class ActionParam(TypedDict, total=False):
1212
type: Required[Literal["drop", "forward", "worker"]]
1313
"""Type of supported action."""
1414

15-
value: Required[List[str]]
15+
value: List[str]

src/cloudflare/types/email_routing/address_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class AddressCreateParams(TypedDict, total=False):
1111
account_id: Required[str]
12-
"""Identifier"""
12+
"""Identifier."""
1313

1414
email: Required[str]
1515
"""The contact email address of the user."""

src/cloudflare/types/email_routing/address_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class AddressListParams(TypedDict, total=False):
1111
account_id: Required[str]
12-
"""Identifier"""
12+
"""Identifier."""
1313

1414
direction: Literal["asc", "desc"]
1515
"""Sorts results in an ascending or descending order."""

0 commit comments

Comments
 (0)