From f0b49831d42186dc6b187b274e23f2f03907070f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 28 Mar 2024 04:39:35 +0000
Subject: [PATCH] feat(api): update via SDK Studio (#184)
---
api.md | 16 ++---
.../resources/images/v1/variants.py | 36 +++++------
src/cloudflare/types/images/v1/__init__.py | 4 +-
.../{image_variant.py => v1_image_variant.py} | 4 +-
...image_variants.py => v1_image_variants.py} | 4 +-
.../types/request_tracers/__init__.py | 2 +-
...quest_trace.py => request_tracer_trace.py} | 12 ++--
.../request_tracers/trace_create_response.py | 4 +-
.../types/secondary_dns/__init__.py | 1 +
.../outgoing_force_notify_response.py | 6 ++
.../api_resources/images/v1/test_variants.py | 60 +++++++++----------
11 files changed, 78 insertions(+), 71 deletions(-)
rename src/cloudflare/types/images/v1/{image_variant.py => v1_image_variant.py} (92%)
rename src/cloudflare/types/images/v1/{image_variants.py => v1_image_variants.py} (91%)
rename src/cloudflare/types/request_tracers/{request_trace.py => request_tracer_trace.py} (78%)
create mode 100644 src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py
diff --git a/api.md b/api.md
index 8d63267f790..89157bead09 100644
--- a/api.md
+++ b/api.md
@@ -2389,10 +2389,10 @@ Types:
from cloudflare.types.secondary_dns import (
SecondaryDNSDisableTransfer,
SecondaryDNSEnableTransfer,
- SecondaryDNSForce,
OutgoingCreateResponse,
OutgoingUpdateResponse,
OutgoingDeleteResponse,
+ OutgoingForceNotifyResponse,
OutgoingGetResponse,
)
```
@@ -2404,7 +2404,7 @@ Methods:
- client.secondary_dns.outgoing.delete(\*, zone_id) -> OutgoingDeleteResponse
- client.secondary_dns.outgoing.disable(\*, zone_id) -> str
- client.secondary_dns.outgoing.enable(\*, zone_id) -> str
-- client.secondary_dns.outgoing.force_notify(\*, zone_id) -> str
+- client.secondary_dns.outgoing.force_notify(\*, zone_id) -> str
- client.secondary_dns.outgoing.get(\*, zone_id) -> OutgoingGetResponse
### Status
@@ -3515,16 +3515,16 @@ Methods:
Types:
```python
-from cloudflare.types.images.v1 import ImageVariant, ImageVariants, VariantDeleteResponse
+from cloudflare.types.images.v1 import V1ImageVariant, V1ImageVariants, VariantDeleteResponse
```
Methods:
-- client.images.v1.variants.create(\*, account_id, \*\*params) -> ImageVariant
-- client.images.v1.variants.list(\*, account_id) -> ImageVariants
+- client.images.v1.variants.create(\*, account_id, \*\*params) -> V1ImageVariant
+- client.images.v1.variants.list(\*, account_id) -> V1ImageVariants
- client.images.v1.variants.delete(variant_id, \*, account_id) -> VariantDeleteResponse
-- client.images.v1.variants.edit(variant_id, \*, account_id, \*\*params) -> ImageVariant
-- client.images.v1.variants.get(variant_id, \*, account_id) -> ImageVariant
+- client.images.v1.variants.edit(variant_id, \*, account_id, \*\*params) -> V1ImageVariant
+- client.images.v1.variants.get(variant_id, \*, account_id) -> V1ImageVariant
### Blobs
@@ -4167,7 +4167,7 @@ Methods:
Types:
```python
-from cloudflare.types.request_tracers import RequestTrace, TraceCreateResponse
+from cloudflare.types.request_tracers import RequestTracerTrace, TraceCreateResponse
```
Methods:
diff --git a/src/cloudflare/resources/images/v1/variants.py b/src/cloudflare/resources/images/v1/variants.py
index 37e4b167dec..cca0fd68980 100644
--- a/src/cloudflare/resources/images/v1/variants.py
+++ b/src/cloudflare/resources/images/v1/variants.py
@@ -24,8 +24,8 @@
make_request_options,
)
from ....types.images.v1 import (
- ImageVariant,
- ImageVariants,
+ V1ImageVariant,
+ V1ImageVariants,
VariantDeleteResponse,
variant_edit_params,
variant_create_params,
@@ -56,7 +56,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariant:
+ ) -> V1ImageVariant:
"""
Specify variants that allow you to resize images for different use cases.
@@ -95,7 +95,7 @@ def create(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariant], ResultWrapper[ImageVariant]),
+ cast_to=cast(Type[V1ImageVariant], ResultWrapper[V1ImageVariant]),
)
def list(
@@ -108,7 +108,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariants:
+ ) -> V1ImageVariants:
"""
Lists existing variants.
@@ -134,7 +134,7 @@ def list(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariants], ResultWrapper[ImageVariants]),
+ cast_to=cast(Type[V1ImageVariants], ResultWrapper[V1ImageVariants]),
)
def delete(
@@ -197,7 +197,7 @@ def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariant:
+ ) -> V1ImageVariant:
"""
Updating a variant purges the cache for all images associated with the variant.
@@ -237,7 +237,7 @@ def edit(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariant], ResultWrapper[ImageVariant]),
+ cast_to=cast(Type[V1ImageVariant], ResultWrapper[V1ImageVariant]),
)
def get(
@@ -251,7 +251,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariant:
+ ) -> V1ImageVariant:
"""
Fetch details for a single variant.
@@ -279,7 +279,7 @@ def get(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariant], ResultWrapper[ImageVariant]),
+ cast_to=cast(Type[V1ImageVariant], ResultWrapper[V1ImageVariant]),
)
@@ -305,7 +305,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariant:
+ ) -> V1ImageVariant:
"""
Specify variants that allow you to resize images for different use cases.
@@ -344,7 +344,7 @@ async def create(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariant], ResultWrapper[ImageVariant]),
+ cast_to=cast(Type[V1ImageVariant], ResultWrapper[V1ImageVariant]),
)
async def list(
@@ -357,7 +357,7 @@ async def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariants:
+ ) -> V1ImageVariants:
"""
Lists existing variants.
@@ -383,7 +383,7 @@ async def list(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariants], ResultWrapper[ImageVariants]),
+ cast_to=cast(Type[V1ImageVariants], ResultWrapper[V1ImageVariants]),
)
async def delete(
@@ -446,7 +446,7 @@ async def edit(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariant:
+ ) -> V1ImageVariant:
"""
Updating a variant purges the cache for all images associated with the variant.
@@ -486,7 +486,7 @@ async def edit(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariant], ResultWrapper[ImageVariant]),
+ cast_to=cast(Type[V1ImageVariant], ResultWrapper[V1ImageVariant]),
)
async def get(
@@ -500,7 +500,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> ImageVariant:
+ ) -> V1ImageVariant:
"""
Fetch details for a single variant.
@@ -528,7 +528,7 @@ async def get(
timeout=timeout,
post_parser=ResultWrapper._unwrapper,
),
- cast_to=cast(Type[ImageVariant], ResultWrapper[ImageVariant]),
+ cast_to=cast(Type[V1ImageVariant], ResultWrapper[V1ImageVariant]),
)
diff --git a/src/cloudflare/types/images/v1/__init__.py b/src/cloudflare/types/images/v1/__init__.py
index 32d8ab558a2..88b88af4175 100644
--- a/src/cloudflare/types/images/v1/__init__.py
+++ b/src/cloudflare/types/images/v1/__init__.py
@@ -2,9 +2,9 @@
from __future__ import annotations
-from .image_variant import ImageVariant as ImageVariant
-from .image_variants import ImageVariants as ImageVariants
+from .v1_image_variant import V1ImageVariant as V1ImageVariant
from .images_image_keys import ImagesImageKeys as ImagesImageKeys
+from .v1_image_variants import V1ImageVariants as V1ImageVariants
from .images_images_stats import ImagesImagesStats as ImagesImagesStats
from .variant_edit_params import VariantEditParams as VariantEditParams
from .variant_create_params import VariantCreateParams as VariantCreateParams
diff --git a/src/cloudflare/types/images/v1/image_variant.py b/src/cloudflare/types/images/v1/v1_image_variant.py
similarity index 92%
rename from src/cloudflare/types/images/v1/image_variant.py
rename to src/cloudflare/types/images/v1/v1_image_variant.py
index ae5430e6503..adcbc3dd87d 100644
--- a/src/cloudflare/types/images/v1/image_variant.py
+++ b/src/cloudflare/types/images/v1/v1_image_variant.py
@@ -7,7 +7,7 @@
from ...._models import BaseModel
-__all__ = ["ImageVariant", "Variant", "VariantOptions"]
+__all__ = ["V1ImageVariant", "Variant", "VariantOptions"]
class VariantOptions(BaseModel):
@@ -40,5 +40,5 @@ class Variant(BaseModel):
"""
-class ImageVariant(BaseModel):
+class V1ImageVariant(BaseModel):
variant: Optional[Variant] = None
diff --git a/src/cloudflare/types/images/v1/image_variants.py b/src/cloudflare/types/images/v1/v1_image_variants.py
similarity index 91%
rename from src/cloudflare/types/images/v1/image_variants.py
rename to src/cloudflare/types/images/v1/v1_image_variants.py
index 1dc6f1f8573..6d19fc03cf9 100644
--- a/src/cloudflare/types/images/v1/image_variants.py
+++ b/src/cloudflare/types/images/v1/v1_image_variants.py
@@ -7,7 +7,7 @@
from ...._models import BaseModel
-__all__ = ["ImageVariants", "Variants", "VariantsHero", "VariantsHeroOptions"]
+__all__ = ["V1ImageVariants", "Variants", "VariantsHero", "VariantsHeroOptions"]
class VariantsHeroOptions(BaseModel):
@@ -44,5 +44,5 @@ class Variants(BaseModel):
hero: Optional[VariantsHero] = None
-class ImageVariants(BaseModel):
+class V1ImageVariants(BaseModel):
variants: Optional[Variants] = None
diff --git a/src/cloudflare/types/request_tracers/__init__.py b/src/cloudflare/types/request_tracers/__init__.py
index 27e1d8c7f50..fb3abea3227 100644
--- a/src/cloudflare/types/request_tracers/__init__.py
+++ b/src/cloudflare/types/request_tracers/__init__.py
@@ -2,6 +2,6 @@
from __future__ import annotations
-from .request_trace import RequestTrace as RequestTrace
from .trace_create_params import TraceCreateParams as TraceCreateParams
+from .request_tracer_trace import RequestTracerTrace as RequestTracerTrace
from .trace_create_response import TraceCreateResponse as TraceCreateResponse
diff --git a/src/cloudflare/types/request_tracers/request_trace.py b/src/cloudflare/types/request_tracers/request_tracer_trace.py
similarity index 78%
rename from src/cloudflare/types/request_tracers/request_trace.py
rename to src/cloudflare/types/request_tracers/request_tracer_trace.py
index e93324669fa..e98038cc66d 100644
--- a/src/cloudflare/types/request_tracers/request_trace.py
+++ b/src/cloudflare/types/request_tracers/request_tracer_trace.py
@@ -7,10 +7,10 @@
from ..._compat import PYDANTIC_V2
from ..._models import BaseModel
-__all__ = ["RequestTrace", "RequestTraceItem"]
+__all__ = ["RequestTracerTrace", "RequestTracerTraceItem"]
-class RequestTraceItem(BaseModel):
+class RequestTracerTraceItem(BaseModel):
action: Optional[str] = None
"""If step type is rule, then action performed by this rule"""
@@ -35,15 +35,15 @@ class RequestTraceItem(BaseModel):
step_name: Optional[str] = None
"""Tracing step identifying name"""
- trace: Optional[RequestTrace] = None
+ trace: Optional[RequestTracerTrace] = None
type: Optional[str] = None
"""Tracing step type"""
-RequestTrace = List[RequestTraceItem]
+RequestTracerTrace = List[RequestTracerTraceItem]
if PYDANTIC_V2:
- RequestTraceItem.model_rebuild()
+ RequestTracerTraceItem.model_rebuild()
else:
- RequestTraceItem.update_forward_refs() # type: ignore
+ RequestTracerTraceItem.update_forward_refs() # type: ignore
diff --git a/src/cloudflare/types/request_tracers/trace_create_response.py b/src/cloudflare/types/request_tracers/trace_create_response.py
index 95f03348589..2738569266b 100644
--- a/src/cloudflare/types/request_tracers/trace_create_response.py
+++ b/src/cloudflare/types/request_tracers/trace_create_response.py
@@ -14,10 +14,10 @@ class TraceCreateResponse(BaseModel):
status_code: Optional[int] = None
"""HTTP Status code of zone response"""
- trace: Optional["RequestTrace"] = None
+ trace: Optional["RequestTracerTrace"] = None
-from .request_trace import RequestTrace
+from .request_tracer_trace import RequestTracerTrace
if PYDANTIC_V2:
TraceCreateResponse.model_rebuild()
diff --git a/src/cloudflare/types/secondary_dns/__init__.py b/src/cloudflare/types/secondary_dns/__init__.py
index 69b24dee5eb..06ee64c3d7a 100644
--- a/src/cloudflare/types/secondary_dns/__init__.py
+++ b/src/cloudflare/types/secondary_dns/__init__.py
@@ -31,4 +31,5 @@
from .outgoing_delete_response import OutgoingDeleteResponse as OutgoingDeleteResponse
from .outgoing_update_response import OutgoingUpdateResponse as OutgoingUpdateResponse
from .secondary_dns_enable_transfer import SecondaryDNSEnableTransfer as SecondaryDNSEnableTransfer
+from .outgoing_force_notify_response import OutgoingForceNotifyResponse as OutgoingForceNotifyResponse
from .secondary_dns_disable_transfer import SecondaryDNSDisableTransfer as SecondaryDNSDisableTransfer
diff --git a/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py b/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py
new file mode 100644
index 00000000000..8604fc2e9ec
--- /dev/null
+++ b/src/cloudflare/types/secondary_dns/outgoing_force_notify_response.py
@@ -0,0 +1,6 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+
+__all__ = ["OutgoingForceNotifyResponse"]
+
+OutgoingForceNotifyResponse = str
diff --git a/tests/api_resources/images/v1/test_variants.py b/tests/api_resources/images/v1/test_variants.py
index c326575dea3..c1635eadd07 100644
--- a/tests/api_resources/images/v1/test_variants.py
+++ b/tests/api_resources/images/v1/test_variants.py
@@ -10,8 +10,8 @@
from cloudflare import Cloudflare, AsyncCloudflare
from tests.utils import assert_matches_type
from cloudflare.types.images.v1 import (
- ImageVariant,
- ImageVariants,
+ V1ImageVariant,
+ V1ImageVariants,
VariantDeleteResponse,
)
@@ -34,7 +34,7 @@ def test_method_create(self, client: Cloudflare) -> None:
"width": 1366,
},
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -50,7 +50,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
},
never_require_signed_urls=True,
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -69,7 +69,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -88,7 +88,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -113,7 +113,7 @@ def test_method_list(self, client: Cloudflare) -> None:
variant = client.images.v1.variants.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(ImageVariants, variant, path=["response"])
+ assert_matches_type(V1ImageVariants, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -125,7 +125,7 @@ def test_raw_response_list(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariants, variant, path=["response"])
+ assert_matches_type(V1ImageVariants, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -137,7 +137,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariants, variant, path=["response"])
+ assert_matches_type(V1ImageVariants, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -214,7 +214,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
"width": 1366,
},
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -230,7 +230,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
},
never_require_signed_urls=True,
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -249,7 +249,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -268,7 +268,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -306,7 +306,7 @@ def test_method_get(self, client: Cloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -319,7 +319,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -332,7 +332,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -368,7 +368,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
"width": 1366,
},
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -384,7 +384,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
},
never_require_signed_urls=True,
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -403,7 +403,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -422,7 +422,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -447,7 +447,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
variant = await async_client.images.v1.variants.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(ImageVariants, variant, path=["response"])
+ assert_matches_type(V1ImageVariants, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -459,7 +459,7 @@ async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariants, variant, path=["response"])
+ assert_matches_type(V1ImageVariants, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -471,7 +471,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariants, variant, path=["response"])
+ assert_matches_type(V1ImageVariants, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -548,7 +548,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
"width": 1366,
},
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -564,7 +564,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
},
never_require_signed_urls=True,
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -583,7 +583,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -602,7 +602,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -640,7 +640,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
"string",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -653,7 +653,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
@pytest.mark.skip()
@parametrize
@@ -666,7 +666,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
variant = await response.parse()
- assert_matches_type(ImageVariant, variant, path=["response"])
+ assert_matches_type(V1ImageVariant, variant, path=["response"])
assert cast(Any, response.is_closed) is True