diff --git a/.stats.yml b/.stats.yml index 4e9f3ec1b67..9890061ba23 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1525 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8bf742ae6e2cee2bd6aaefb44268e1d2242cae3b8057371f5d71c10b4da3f67f.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-013c26b947bc82da7dfa6f50d9e66450b455bb9400b244ac190bc6ecaf5c158f.yml diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py index 025094dabe8..055b3d6d2fe 100644 --- a/src/cloudflare/resources/d1/database.py +++ b/src/cloudflare/resources/d1/database.py @@ -81,6 +81,8 @@ def create( Args: account_id: Account identifier tag. + name: D1 database name. + primary_location_hint: Specify the region to create the D1 primary, if available. If this option is omitted, the D1 will be created as close as possible to the current user. @@ -187,6 +189,8 @@ def delete( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -236,6 +240,8 @@ def export( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + output_format: Specifies that you will poll this endpoint until the export completes current_bookmark: To poll an in-progress export, provide the current bookmark (returned by your @@ -291,6 +297,8 @@ def get( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -338,6 +346,8 @@ def import_( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + action: Indicates you have a new SQL file to upload. etag: Required when action is 'init' or 'ingest'. An md5 hash of the file you're @@ -378,6 +388,8 @@ def import_( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + action: Indicates you've finished uploading to tell the D1 to start consuming it etag: An md5 hash of the file you're uploading. Used to check if it already exists, @@ -418,6 +430,8 @@ def import_( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + action: Indicates you've finished uploading to tell the D1 to start consuming it current_bookmark: This identifies the currently-running import, checking its status. @@ -498,6 +512,8 @@ def query( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + sql: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. @@ -552,6 +568,8 @@ def raw( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + sql: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. @@ -624,6 +642,8 @@ async def create( Args: account_id: Account identifier tag. + name: D1 database name. + primary_location_hint: Specify the region to create the D1 primary, if available. If this option is omitted, the D1 will be created as close as possible to the current user. @@ -730,6 +750,8 @@ async def delete( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -779,6 +801,8 @@ async def export( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + output_format: Specifies that you will poll this endpoint until the export completes current_bookmark: To poll an in-progress export, provide the current bookmark (returned by your @@ -834,6 +858,8 @@ async def get( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -881,6 +907,8 @@ async def import_( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + action: Indicates you have a new SQL file to upload. etag: Required when action is 'init' or 'ingest'. An md5 hash of the file you're @@ -921,6 +949,8 @@ async def import_( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + action: Indicates you've finished uploading to tell the D1 to start consuming it etag: An md5 hash of the file you're uploading. Used to check if it already exists, @@ -961,6 +991,8 @@ async def import_( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + action: Indicates you've finished uploading to tell the D1 to start consuming it current_bookmark: This identifies the currently-running import, checking its status. @@ -1041,6 +1073,8 @@ def query( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + sql: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. @@ -1095,6 +1129,8 @@ def raw( Args: account_id: Account identifier tag. + database_id: D1 database identifier (UUID). + sql: Your SQL query. Supports multiple statements, joined by semicolons, which will be executed as a batch. diff --git a/src/cloudflare/types/d1/d1.py b/src/cloudflare/types/d1/d1.py index 047e12ac928..36fae4a4492 100644 --- a/src/cloudflare/types/d1/d1.py +++ b/src/cloudflare/types/d1/d1.py @@ -16,9 +16,11 @@ class D1(BaseModel): """The D1 database's size, in bytes.""" name: Optional[str] = None + """D1 database name.""" num_tables: Optional[float] = None uuid: Optional[str] = None + """D1 database identifier (UUID).""" version: Optional[str] = None diff --git a/src/cloudflare/types/d1/database_create_params.py b/src/cloudflare/types/d1/database_create_params.py index 3db8ef15021..76619229a50 100644 --- a/src/cloudflare/types/d1/database_create_params.py +++ b/src/cloudflare/types/d1/database_create_params.py @@ -12,6 +12,7 @@ class DatabaseCreateParams(TypedDict, total=False): """Account identifier tag.""" name: Required[str] + """D1 database name.""" primary_location_hint: Literal["wnam", "enam", "weur", "eeur", "apac", "oc"] """Specify the region to create the D1 primary, if available. diff --git a/src/cloudflare/types/d1/database_list_response.py b/src/cloudflare/types/d1/database_list_response.py index e767682a8c2..bdcb159357d 100644 --- a/src/cloudflare/types/d1/database_list_response.py +++ b/src/cloudflare/types/d1/database_list_response.py @@ -13,7 +13,9 @@ class DatabaseListResponse(BaseModel): """Specifies the timestamp the resource was created as an ISO8601 string.""" name: Optional[str] = None + """D1 database name.""" uuid: Optional[str] = None + """D1 database identifier (UUID).""" version: Optional[str] = None