Skip to content

Commit

Permalink
feat(terraform): add datasource for `zero_trust_tunnel_cloudflared_to…
Browse files Browse the repository at this point in the history
…ken` (#2427)
  • Loading branch information
stainless-app[bot] authored Feb 4, 2025
1 parent f66b496 commit 15c3e09
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 96 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 0 additions & 16 deletions src/cloudflare/resources/ai_gateway/ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
},
Expand All @@ -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.
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
},
Expand All @@ -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.
Expand Down Expand Up @@ -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,
},
Expand Down
36 changes: 0 additions & 36 deletions src/cloudflare/resources/d1/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_get_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
4 changes: 0 additions & 4 deletions src/cloudflare/types/ai_gateway/ai_gateway_update_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions src/cloudflare/types/d1/d1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion src/cloudflare/types/d1/database_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions src/cloudflare/types/d1/database_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions src/cloudflare/types/durable_objects/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ class Namespace(BaseModel):

script: Optional[str] = None

use_containers: Optional[bool] = None

use_sqlite: Optional[bool] = None
8 changes: 0 additions & 8 deletions tests/api_resources/test_ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit 15c3e09

Please sign in to comment.