From 15c3e095a62ad8dc20b0edbd6fa53f3bb3b8b9dc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 23:57:56 +0000 Subject: [PATCH] feat(terraform): add datasource for `zero_trust_tunnel_cloudflared_token` (#2427) --- .stats.yml | 2 +- .../resources/ai_gateway/ai_gateway.py | 16 --------- src/cloudflare/resources/d1/database.py | 36 ------------------- .../ai_gateway/ai_gateway_create_params.py | 4 --- .../ai_gateway/ai_gateway_create_response.py | 4 --- .../ai_gateway/ai_gateway_delete_response.py | 4 --- .../ai_gateway/ai_gateway_get_response.py | 4 --- .../ai_gateway/ai_gateway_list_response.py | 4 --- .../ai_gateway/ai_gateway_update_params.py | 4 --- .../ai_gateway/ai_gateway_update_response.py | 4 --- src/cloudflare/types/d1/d1.py | 2 -- .../types/d1/database_create_params.py | 1 - .../types/d1/database_list_response.py | 2 -- .../types/durable_objects/namespace.py | 2 -- tests/api_resources/test_ai_gateway.py | 8 ----- 15 files changed, 1 insertion(+), 96 deletions(-) diff --git a/.stats.yml b/.stats.yml index f3c978f2e90..de6e07fc6c3 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-b9c3a90028bf6b940420332aee2ee13b3cf1fa04e607205d7efe8fdb1c7d41e8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e342173dad9584a0439eeec0f609a40c16844e18a138f65e8c9787885da92013.yml diff --git a/src/cloudflare/resources/ai_gateway/ai_gateway.py b/src/cloudflare/resources/ai_gateway/ai_gateway.py index 04527825a3f..1da57375627 100644 --- a/src/cloudflare/resources/ai_gateway/ai_gateway.py +++ b/src/cloudflare/resources/ai_gateway/ai_gateway.py @@ -112,8 +112,6 @@ def create( rate_limiting_interval: Optional[int], rate_limiting_limit: Optional[int], rate_limiting_technique: Literal["fixed", "sliding"], - authentication: bool | NotGiven = NOT_GIVEN, - log_management: Optional[int] | NotGiven = NOT_GIVEN, logpush: bool | NotGiven = NOT_GIVEN, logpush_public_key: Optional[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -150,8 +148,6 @@ def create( "rate_limiting_interval": rate_limiting_interval, "rate_limiting_limit": rate_limiting_limit, "rate_limiting_technique": rate_limiting_technique, - "authentication": authentication, - "log_management": log_management, "logpush": logpush, "logpush_public_key": logpush_public_key, }, @@ -178,8 +174,6 @@ def update( rate_limiting_interval: Optional[int], rate_limiting_limit: Optional[int], rate_limiting_technique: Literal["fixed", "sliding"], - authentication: bool | NotGiven = NOT_GIVEN, - log_management: Optional[int] | NotGiven = NOT_GIVEN, logpush: bool | NotGiven = NOT_GIVEN, logpush_public_key: Optional[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -217,8 +211,6 @@ def update( "rate_limiting_interval": rate_limiting_interval, "rate_limiting_limit": rate_limiting_limit, "rate_limiting_technique": rate_limiting_technique, - "authentication": authentication, - "log_management": log_management, "logpush": logpush, "logpush_public_key": logpush_public_key, }, @@ -416,8 +408,6 @@ async def create( rate_limiting_interval: Optional[int], rate_limiting_limit: Optional[int], rate_limiting_technique: Literal["fixed", "sliding"], - authentication: bool | NotGiven = NOT_GIVEN, - log_management: Optional[int] | NotGiven = NOT_GIVEN, logpush: bool | NotGiven = NOT_GIVEN, logpush_public_key: Optional[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -454,8 +444,6 @@ async def create( "rate_limiting_interval": rate_limiting_interval, "rate_limiting_limit": rate_limiting_limit, "rate_limiting_technique": rate_limiting_technique, - "authentication": authentication, - "log_management": log_management, "logpush": logpush, "logpush_public_key": logpush_public_key, }, @@ -482,8 +470,6 @@ async def update( rate_limiting_interval: Optional[int], rate_limiting_limit: Optional[int], rate_limiting_technique: Literal["fixed", "sliding"], - authentication: bool | NotGiven = NOT_GIVEN, - log_management: Optional[int] | NotGiven = NOT_GIVEN, logpush: bool | NotGiven = NOT_GIVEN, logpush_public_key: Optional[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -521,8 +507,6 @@ async def update( "rate_limiting_interval": rate_limiting_interval, "rate_limiting_limit": rate_limiting_limit, "rate_limiting_technique": rate_limiting_technique, - "authentication": authentication, - "log_management": log_management, "logpush": logpush, "logpush_public_key": logpush_public_key, }, diff --git a/src/cloudflare/resources/d1/database.py b/src/cloudflare/resources/d1/database.py index 055b3d6d2fe..025094dabe8 100644 --- a/src/cloudflare/resources/d1/database.py +++ b/src/cloudflare/resources/d1/database.py @@ -81,8 +81,6 @@ 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. @@ -189,8 +187,6 @@ 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 @@ -240,8 +236,6 @@ 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 @@ -297,8 +291,6 @@ 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 @@ -346,8 +338,6 @@ 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 @@ -388,8 +378,6 @@ 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, @@ -430,8 +418,6 @@ 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. @@ -512,8 +498,6 @@ 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. @@ -568,8 +552,6 @@ 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. @@ -642,8 +624,6 @@ 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. @@ -750,8 +730,6 @@ 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 @@ -801,8 +779,6 @@ 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 @@ -858,8 +834,6 @@ 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 @@ -907,8 +881,6 @@ 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 @@ -949,8 +921,6 @@ 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, @@ -991,8 +961,6 @@ 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. @@ -1073,8 +1041,6 @@ 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. @@ -1129,8 +1095,6 @@ 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/ai_gateway/ai_gateway_create_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py index 1242db27329..0e0f3aee9a3 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_create_params.py @@ -26,10 +26,6 @@ class AIGatewayCreateParams(TypedDict, total=False): rate_limiting_technique: Required[Literal["fixed", "sliding"]] - authentication: bool - - log_management: Optional[int] - logpush: bool logpush_public_key: Optional[str] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py index 659a0523b84..8c4df8ce75e 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_create_response.py @@ -35,10 +35,6 @@ class AIGatewayCreateResponse(BaseModel): rate_limiting_technique: Literal["fixed", "sliding"] - authentication: Optional[bool] = None - - log_management: Optional[int] = None - logpush: Optional[bool] = None logpush_public_key: Optional[str] = None diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py index 10b0d26861b..56b71b99466 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py @@ -35,10 +35,6 @@ class AIGatewayDeleteResponse(BaseModel): rate_limiting_technique: Literal["fixed", "sliding"] - authentication: Optional[bool] = None - - log_management: Optional[int] = None - logpush: Optional[bool] = None logpush_public_key: Optional[str] = None diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py index 665f102fb1b..eed84b4ee8d 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_get_response.py @@ -35,10 +35,6 @@ class AIGatewayGetResponse(BaseModel): rate_limiting_technique: Literal["fixed", "sliding"] - authentication: Optional[bool] = None - - log_management: Optional[int] = None - logpush: Optional[bool] = None logpush_public_key: Optional[str] = None diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py index 4b68d03f3fe..31dca9345f4 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_list_response.py @@ -35,10 +35,6 @@ class AIGatewayListResponse(BaseModel): rate_limiting_technique: Literal["fixed", "sliding"] - authentication: Optional[bool] = None - - log_management: Optional[int] = None - logpush: Optional[bool] = None logpush_public_key: Optional[str] = None diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py b/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py index 8e088902f48..e10c0992a8c 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_update_params.py @@ -23,10 +23,6 @@ class AIGatewayUpdateParams(TypedDict, total=False): rate_limiting_technique: Required[Literal["fixed", "sliding"]] - authentication: bool - - log_management: Optional[int] - logpush: bool logpush_public_key: Optional[str] diff --git a/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py b/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py index bc0b2aa30db..21e6cd223b6 100644 --- a/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py +++ b/src/cloudflare/types/ai_gateway/ai_gateway_update_response.py @@ -35,10 +35,6 @@ class AIGatewayUpdateResponse(BaseModel): rate_limiting_technique: Literal["fixed", "sliding"] - authentication: Optional[bool] = None - - log_management: Optional[int] = None - logpush: Optional[bool] = None logpush_public_key: Optional[str] = None diff --git a/src/cloudflare/types/d1/d1.py b/src/cloudflare/types/d1/d1.py index 36fae4a4492..047e12ac928 100644 --- a/src/cloudflare/types/d1/d1.py +++ b/src/cloudflare/types/d1/d1.py @@ -16,11 +16,9 @@ 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 76619229a50..3db8ef15021 100644 --- a/src/cloudflare/types/d1/database_create_params.py +++ b/src/cloudflare/types/d1/database_create_params.py @@ -12,7 +12,6 @@ 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 bdcb159357d..e767682a8c2 100644 --- a/src/cloudflare/types/d1/database_list_response.py +++ b/src/cloudflare/types/d1/database_list_response.py @@ -13,9 +13,7 @@ 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 diff --git a/src/cloudflare/types/durable_objects/namespace.py b/src/cloudflare/types/durable_objects/namespace.py index e9922554d84..cb1bb82f93f 100644 --- a/src/cloudflare/types/durable_objects/namespace.py +++ b/src/cloudflare/types/durable_objects/namespace.py @@ -18,6 +18,4 @@ class Namespace(BaseModel): script: Optional[str] = None - use_containers: Optional[bool] = None - use_sqlite: Optional[bool] = None diff --git a/tests/api_resources/test_ai_gateway.py b/tests/api_resources/test_ai_gateway.py index 788a1ea2289..410c03d585f 100644 --- a/tests/api_resources/test_ai_gateway.py +++ b/tests/api_resources/test_ai_gateway.py @@ -49,8 +49,6 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None: rate_limiting_interval=0, rate_limiting_limit=0, rate_limiting_technique="fixed", - authentication=True, - log_management=10000, logpush=True, logpush_public_key="xxxxxxxxxxxxxxxx", ) @@ -133,8 +131,6 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None: rate_limiting_interval=0, rate_limiting_limit=0, rate_limiting_technique="fixed", - authentication=True, - log_management=10000, logpush=True, logpush_public_key="xxxxxxxxxxxxxxxx", ) @@ -377,8 +373,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare rate_limiting_interval=0, rate_limiting_limit=0, rate_limiting_technique="fixed", - authentication=True, - log_management=10000, logpush=True, logpush_public_key="xxxxxxxxxxxxxxxx", ) @@ -461,8 +455,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare rate_limiting_interval=0, rate_limiting_limit=0, rate_limiting_technique="fixed", - authentication=True, - log_management=10000, logpush=True, logpush_public_key="xxxxxxxxxxxxxxxx", )