Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1448
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-35321a10f9aec92aee5cd1982968d65ac8bddae6f8cdc422b8168d0d08b19c29.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1fd56d8b296b94813055efeb0207b08e331534303d4967b674513550f33e0ccb.yml
16 changes: 8 additions & 8 deletions src/cloudflare/resources/r2/buckets/domains/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def create(
*,
account_id: str,
domain: str,
enabled: bool,
zone_id: str,
enabled: bool | NotGiven = NOT_GIVEN,
min_tls: Literal["1.0", "1.1", "1.2", "1.3"] | NotGiven = NOT_GIVEN,
cf_r2_jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -81,11 +81,11 @@ def create(

domain: Name of the custom domain to be added

zone_id: Zone ID of the custom domain

enabled: Whether to enable public bucket access at the custom domain. If undefined, the
domain will be enabled.

zone_id: Zone ID of the custom domain

min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
not set, defaults to 1.0.

Expand Down Expand Up @@ -114,8 +114,8 @@ def create(
body=maybe_transform(
{
"domain": domain,
"zone_id": zone_id,
"enabled": enabled,
"zone_id": zone_id,
"min_tls": min_tls,
},
custom_create_params.CustomCreateParams,
Expand Down Expand Up @@ -398,8 +398,8 @@ async def create(
*,
account_id: str,
domain: str,
enabled: bool,
zone_id: str,
enabled: bool | NotGiven = NOT_GIVEN,
min_tls: Literal["1.0", "1.1", "1.2", "1.3"] | NotGiven = NOT_GIVEN,
cf_r2_jurisdiction: Literal["default", "eu", "fedramp"] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand All @@ -419,11 +419,11 @@ async def create(

domain: Name of the custom domain to be added

zone_id: Zone ID of the custom domain

enabled: Whether to enable public bucket access at the custom domain. If undefined, the
domain will be enabled.

zone_id: Zone ID of the custom domain

min_tls: Minimum TLS Version the custom domain will accept for incoming connections. If
not set, defaults to 1.0.

Expand Down Expand Up @@ -452,8 +452,8 @@ async def create(
body=await async_maybe_transform(
{
"domain": domain,
"zone_id": zone_id,
"enabled": enabled,
"zone_id": zone_id,
"min_tls": min_tls,
},
custom_create_params.CustomCreateParams,
Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/zero_trust/dex/colos.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def list(
are also returned and sorted alphabetically.

Args:
from_: Start time for connection period in RFC3339 (ISO 8601) format.
from_: Start time for connection period in ISO (RFC3339 - ISO 8601) format

to: End time for connection period in RFC3339 (ISO 8601) format.
to: End time for connection period in ISO (RFC3339 - ISO 8601) format

sort_by: Type of usage that colos should be sorted by. If unspecified, returns all
Cloudflare colos sorted alphabetically.
Expand Down Expand Up @@ -141,9 +141,9 @@ def list(
are also returned and sorted alphabetically.

Args:
from_: Start time for connection period in RFC3339 (ISO 8601) format.
from_: Start time for connection period in ISO (RFC3339 - ISO 8601) format

to: End time for connection period in RFC3339 (ISO 8601) format.
to: End time for connection period in ISO (RFC3339 - ISO 8601) format

sort_by: Type of usage that colos should be sorted by. If unspecified, returns all
Cloudflare colos sorted alphabetically.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def get(
Args:
test_id: API Resource UUID tag.

from_: Start time for aggregate metrics in ISO format
from_: Start time for the query in ISO (RFC3339 - ISO 8601) format

to: End time for aggregate metrics in ISO format
to: End time for the query in ISO (RFC3339 - ISO 8601) format

colo: Optionally filter result stats to a Cloudflare colo. Cannot be used in
combination with deviceId param.
Expand Down Expand Up @@ -157,9 +157,9 @@ async def get(
Args:
test_id: API Resource UUID tag.

from_: Start time for aggregate metrics in ISO format
from_: Start time for the query in ISO (RFC3339 - ISO 8601) format

to: End time for aggregate metrics in ISO format
to: End time for the query in ISO (RFC3339 - ISO 8601) format

colo: Optionally filter result stats to a Cloudflare colo. Cannot be used in
combination with deviceId param.
Expand Down
8 changes: 4 additions & 4 deletions src/cloudflare/resources/zero_trust/dex/traceroute_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ def percentiles(
Args:
test_id: API Resource UUID tag.

from_: Start time for aggregate metrics in ISO format
from_: Start time for the query in ISO (RFC3339 - ISO 8601) format

to: End time for aggregate metrics in ISO format
to: End time for the query in ISO (RFC3339 - ISO 8601) format

colo: Optionally filter result stats to a Cloudflare colo. Cannot be used in
combination with deviceId param.
Expand Down Expand Up @@ -432,9 +432,9 @@ async def percentiles(
Args:
test_id: API Resource UUID tag.

from_: Start time for aggregate metrics in ISO format
from_: Start time for the query in ISO (RFC3339 - ISO 8601) format

to: End time for aggregate metrics in ISO format
to: End time for the query in ISO (RFC3339 - ISO 8601) format

colo: Optionally filter result stats to a Cloudflare colo. Cannot be used in
combination with deviceId param.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ class CustomCreateParams(TypedDict, total=False):
domain: Required[str]
"""Name of the custom domain to be added"""

zone_id: Required[Annotated[str, PropertyInfo(alias="zoneId")]]
"""Zone ID of the custom domain"""

enabled: bool
enabled: Required[bool]
"""Whether to enable public bucket access at the custom domain.

If undefined, the domain will be enabled.
"""

zone_id: Required[Annotated[str, PropertyInfo(alias="zoneId")]]
"""Zone ID of the custom domain"""

min_tls: Annotated[Literal["1.0", "1.1", "1.2", "1.3"], PropertyInfo(alias="minTLS")]
"""Minimum TLS Version the custom domain will accept for incoming connections.

Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/dex/colo_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class ColoListParams(TypedDict, total=False):
account_id: Required[str]

from_: Required[Annotated[str, PropertyInfo(alias="from")]]
"""Start time for connection period in RFC3339 (ISO 8601) format."""
"""Start time for connection period in ISO (RFC3339 - ISO 8601) format"""

to: Required[str]
"""End time for connection period in RFC3339 (ISO 8601) format."""
"""End time for connection period in ISO (RFC3339 - ISO 8601) format"""

sort_by: Annotated[Literal["fleet-status-usage", "application-tests-usage"], PropertyInfo(alias="sortBy")]
"""Type of usage that colos should be sorted by.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class PercentileGetParams(TypedDict, total=False):
account_id: Required[str]

from_: Required[Annotated[str, PropertyInfo(alias="from")]]
"""Start time for aggregate metrics in ISO format"""
"""Start time for the query in ISO (RFC3339 - ISO 8601) format"""

to: Required[str]
"""End time for aggregate metrics in ISO format"""
"""End time for the query in ISO (RFC3339 - ISO 8601) format"""

colo: str
"""Optionally filter result stats to a Cloudflare colo.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class TracerouteTestPercentilesParams(TypedDict, total=False):
account_id: Required[str]

from_: Required[Annotated[str, PropertyInfo(alias="from")]]
"""Start time for aggregate metrics in ISO format"""
"""Start time for the query in ISO (RFC3339 - ISO 8601) format"""

to: Required[str]
"""End time for aggregate metrics in ISO format"""
"""End time for the query in ISO (RFC3339 - ISO 8601) format"""

colo: str
"""Optionally filter result stats to a Cloudflare colo.
Expand Down
14 changes: 12 additions & 2 deletions tests/api_resources/r2/buckets/domains/test_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def test_method_create(self, client: Cloudflare) -> None:
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)
assert_matches_type(CustomCreateResponse, custom, path=["response"])
Expand All @@ -39,8 +40,8 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
min_tls="1.0",
cf_r2_jurisdiction="default",
)
Expand All @@ -52,6 +53,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)

Expand All @@ -66,6 +68,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
) as response:
assert not response.is_closed
Expand All @@ -83,6 +86,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
bucket_name="example-bucket",
account_id="",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)

Expand All @@ -91,6 +95,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
bucket_name="",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)

Expand Down Expand Up @@ -373,6 +378,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)
assert_matches_type(CustomCreateResponse, custom, path=["response"])
Expand All @@ -383,8 +389,8 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
min_tls="1.0",
cf_r2_jurisdiction="default",
)
Expand All @@ -396,6 +402,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)

Expand All @@ -410,6 +417,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
bucket_name="example-bucket",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
) as response:
assert not response.is_closed
Expand All @@ -427,6 +435,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
bucket_name="example-bucket",
account_id="",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)

Expand All @@ -435,6 +444,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
bucket_name="",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain="prefix.example-domain.com",
enabled=True,
zone_id="36ca64a6d92827b8a6b90be344bb1bfd",
)

Expand Down