feat(api): api update

This commit is contained in:
stainless-app[bot] 2025-06-09 17:19:58 +00:00
parent cb5769e139
commit dcfb0036e6
6 changed files with 20 additions and 14 deletions

View file

@ -1,4 +1,4 @@
configured_endpoints: 1752
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-628b27476dcb24be6d178f13e44068933c1e4cf67895b708a62fc182ae35a83a.yml
openapi_spec_hash: 5d8aa29e0696dfd71cc1e27c3d520f2e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8e5d1a969742a91c1dcd3abbe0f2f84986d5613047fe6591258ec0daa3dbaf0b.yml
openapi_spec_hash: 4dc3b9781cc2519d5ae2e9b35a4005c8
config_hash: 8f5aab183b4a8e0f4a9ec9c0293b54f1

View file

@ -267,7 +267,7 @@ class ListsResource(SyncAPIResource):
list_id: str,
*,
account_id: str,
append: Iterable[GatewayItemParam] | NotGiven = NOT_GIVEN,
append: Iterable[list_edit_params.Append] | NotGiven = NOT_GIVEN,
remove: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@ -282,7 +282,7 @@ class ListsResource(SyncAPIResource):
Args:
list_id: API Resource UUID tag.
append: The items in the list.
append: items to add to the list.
remove: A list of the item values you want to remove.
@ -591,7 +591,7 @@ class AsyncListsResource(AsyncAPIResource):
list_id: str,
*,
account_id: str,
append: Iterable[GatewayItemParam] | NotGiven = NOT_GIVEN,
append: Iterable[list_edit_params.Append] | NotGiven = NOT_GIVEN,
remove: List[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
@ -606,7 +606,7 @@ class AsyncListsResource(AsyncAPIResource):
Args:
list_id: API Resource UUID tag.
append: The items in the list.
append: items to add to the list.
remove: A list of the item values you want to remove.

View file

@ -25,5 +25,5 @@ class RuleListResponse(BaseModel):
parameters: Optional[Parameters] = None
"""Parameters of Cloud Connector Rule"""
provider: Optional[Literal["aws_s3", "r2", "gcp_storage", "azure_storage"]] = None
provider: Optional[Literal["aws_s3", "cloudflare_r2", "gcp_storage", "azure_storage"]] = None
"""Cloud Provider type"""

View file

@ -32,5 +32,5 @@ class Rule(TypedDict, total=False):
parameters: RuleParameters
"""Parameters of Cloud Connector Rule"""
provider: Literal["aws_s3", "r2", "gcp_storage", "azure_storage"]
provider: Literal["aws_s3", "cloudflare_r2", "gcp_storage", "azure_storage"]
"""Cloud Provider type"""

View file

@ -25,5 +25,5 @@ class RuleUpdateResponse(BaseModel):
parameters: Optional[Parameters] = None
"""Parameters of Cloud Connector Rule"""
provider: Optional[Literal["aws_s3", "r2", "gcp_storage", "azure_storage"]] = None
provider: Optional[Literal["aws_s3", "cloudflare_r2", "gcp_storage", "azure_storage"]] = None
"""Cloud Provider type"""

View file

@ -5,16 +5,22 @@ from __future__ import annotations
from typing import List, Iterable
from typing_extensions import Required, TypedDict
from .gateway_item_param import GatewayItemParam
__all__ = ["ListEditParams"]
__all__ = ["ListEditParams", "Append"]
class ListEditParams(TypedDict, total=False):
account_id: Required[str]
append: Iterable[GatewayItemParam]
"""The items in the list."""
append: Iterable[Append]
"""items to add to the list."""
remove: List[str]
"""A list of the item values you want to remove."""
class Append(TypedDict, total=False):
description: str
"""The description of the list item, if present"""
value: str
"""The value of the item in a list."""