Skip to content

Commit dcfb003

Browse files
feat(api): api update
1 parent cb5769e commit dcfb003

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
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: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-628b27476dcb24be6d178f13e44068933c1e4cf67895b708a62fc182ae35a83a.yml
3-
openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml
3+
openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8
44
config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1

src/cloudflare/resources/zero_trust/gateway/lists/lists.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def edit(
267267
list_id: str,
268268
*,
269269
account_id: str,
270-
append: Iterable[GatewayItemParam] | NotGiven = NOT_GIVEN,
270+
append: Iterable[list_edit_params.Append] | NotGiven = NOT_GIVEN,
271271
remove: List[str] | NotGiven = NOT_GIVEN,
272272
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
273273
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -282,7 +282,7 @@ def edit(
282282
Args:
283283
list_id: API Resource UUID tag.
284284
285-
append: The items in the list.
285+
append: items to add to the list.
286286
287287
remove: A list of the item values you want to remove.
288288
@@ -591,7 +591,7 @@ async def edit(
591591
list_id: str,
592592
*,
593593
account_id: str,
594-
append: Iterable[GatewayItemParam] | NotGiven = NOT_GIVEN,
594+
append: Iterable[list_edit_params.Append] | NotGiven = NOT_GIVEN,
595595
remove: List[str] | NotGiven = NOT_GIVEN,
596596
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
597597
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -606,7 +606,7 @@ async def edit(
606606
Args:
607607
list_id: API Resource UUID tag.
608608
609-
append: The items in the list.
609+
append: items to add to the list.
610610
611611
remove: A list of the item values you want to remove.
612612

src/cloudflare/types/cloud_connector/rule_list_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ class RuleListResponse(BaseModel):
2525
parameters: Optional[Parameters] = None
2626
"""Parameters of Cloud Connector Rule"""
2727

28-
provider: Optional[Literal["aws_s3", "r2", "gcp_storage", "azure_storage"]] = None
28+
provider: Optional[Literal["aws_s3", "cloudflare_r2", "gcp_storage", "azure_storage"]] = None
2929
"""Cloud Provider type"""

src/cloudflare/types/cloud_connector/rule_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ class Rule(TypedDict, total=False):
3232
parameters: RuleParameters
3333
"""Parameters of Cloud Connector Rule"""
3434

35-
provider: Literal["aws_s3", "r2", "gcp_storage", "azure_storage"]
35+
provider: Literal["aws_s3", "cloudflare_r2", "gcp_storage", "azure_storage"]
3636
"""Cloud Provider type"""

src/cloudflare/types/cloud_connector/rule_update_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ class RuleUpdateResponse(BaseModel):
2525
parameters: Optional[Parameters] = None
2626
"""Parameters of Cloud Connector Rule"""
2727

28-
provider: Optional[Literal["aws_s3", "r2", "gcp_storage", "azure_storage"]] = None
28+
provider: Optional[Literal["aws_s3", "cloudflare_r2", "gcp_storage", "azure_storage"]] = None
2929
"""Cloud Provider type"""

src/cloudflare/types/zero_trust/gateway/list_edit_params.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@
55
from typing import List, Iterable
66
from typing_extensions import Required, TypedDict
77

8-
from .gateway_item_param import GatewayItemParam
9-
10-
__all__ = ["ListEditParams"]
8+
__all__ = ["ListEditParams", "Append"]
119

1210

1311
class ListEditParams(TypedDict, total=False):
1412
account_id: Required[str]
1513

16-
append: Iterable[GatewayItemParam]
17-
"""The items in the list."""
14+
append: Iterable[Append]
15+
"""items to add to the list."""
1816

1917
remove: List[str]
2018
"""A list of the item values you want to remove."""
19+
20+
21+
class Append(TypedDict, total=False):
22+
description: str
23+
"""The description of the list item, if present"""
24+
25+
value: str
26+
"""The value of the item in a list."""

0 commit comments

Comments
 (0)