diff --git a/.stats.yml b/.stats.yml
index a020cecdf876..7f7c7cf8f522 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 1267
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5c41a7aa9877639ecb82e8e278d9d8d77a58f9d308ed8e8f570cd3243f130e05.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6229bf7c4bed6b9026088be8817d3c8111576b2d12ff5220d193f479f230e449.yml
diff --git a/api.md b/api.md
index 708c1aa46f94..ec86aa26aa7f 100644
--- a/api.md
+++ b/api.md
@@ -3650,11 +3650,11 @@ from cloudflare.types.intel import (
Methods:
-- client.intel.indicator_feeds.create(\*, account_id, \*\*params) -> IndicatorFeedCreateResponse
-- client.intel.indicator_feeds.update(feed_id, \*, account_id, \*\*params) -> IndicatorFeedUpdateResponse
+- client.intel.indicator_feeds.create(\*, account_id, \*\*params) -> Optional
+- client.intel.indicator_feeds.update(feed_id, \*, account_id, \*\*params) -> Optional
- client.intel.indicator_feeds.list(\*, account_id) -> SyncSinglePage[IndicatorFeedListResponse]
- client.intel.indicator_feeds.data(feed_id, \*, account_id) -> str
-- client.intel.indicator_feeds.get(feed_id, \*, account_id) -> IndicatorFeedGetResponse
+- client.intel.indicator_feeds.get(feed_id, \*, account_id) -> Optional
### Permissions
@@ -3670,9 +3670,9 @@ from cloudflare.types.intel.indicator_feeds import (
Methods:
-- client.intel.indicator_feeds.permissions.create(\*, account_id, \*\*params) -> PermissionCreateResponse
-- client.intel.indicator_feeds.permissions.list(\*, account_id) -> PermissionListResponse
-- client.intel.indicator_feeds.permissions.delete(\*, account_id, \*\*params) -> PermissionDeleteResponse
+- client.intel.indicator_feeds.permissions.create(\*, account_id, \*\*params) -> Optional
+- client.intel.indicator_feeds.permissions.list(\*, account_id) -> Optional
+- client.intel.indicator_feeds.permissions.delete(\*, account_id, \*\*params) -> Optional
## Sinkholes
diff --git a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py
index c76f8b588c97..d68e35981378 100644
--- a/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py
+++ b/src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Type, cast
+from typing import Type, Optional, cast
import httpx
@@ -67,7 +67,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IndicatorFeedCreateResponse:
+ ) -> Optional[IndicatorFeedCreateResponse]:
"""
Create new indicator feed
@@ -102,9 +102,9 @@ def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IndicatorFeedCreateResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IndicatorFeedCreateResponse]]._unwrapper,
),
- cast_to=cast(Type[IndicatorFeedCreateResponse], ResultWrapper[IndicatorFeedCreateResponse]),
+ cast_to=cast(Type[Optional[IndicatorFeedCreateResponse]], ResultWrapper[IndicatorFeedCreateResponse]),
)
def update(
@@ -119,7 +119,7 @@ def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IndicatorFeedUpdateResponse:
+ ) -> Optional[IndicatorFeedUpdateResponse]:
"""
Update indicator feed data
@@ -148,9 +148,9 @@ def update(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IndicatorFeedUpdateResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IndicatorFeedUpdateResponse]]._unwrapper,
),
- cast_to=cast(Type[IndicatorFeedUpdateResponse], ResultWrapper[IndicatorFeedUpdateResponse]),
+ cast_to=cast(Type[Optional[IndicatorFeedUpdateResponse]], ResultWrapper[IndicatorFeedUpdateResponse]),
)
def list(
@@ -239,7 +239,7 @@ def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IndicatorFeedGetResponse:
+ ) -> Optional[IndicatorFeedGetResponse]:
"""
Get indicator feed metadata
@@ -265,9 +265,9 @@ def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IndicatorFeedGetResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IndicatorFeedGetResponse]]._unwrapper,
),
- cast_to=cast(Type[IndicatorFeedGetResponse], ResultWrapper[IndicatorFeedGetResponse]),
+ cast_to=cast(Type[Optional[IndicatorFeedGetResponse]], ResultWrapper[IndicatorFeedGetResponse]),
)
@@ -296,7 +296,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IndicatorFeedCreateResponse:
+ ) -> Optional[IndicatorFeedCreateResponse]:
"""
Create new indicator feed
@@ -331,9 +331,9 @@ async def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IndicatorFeedCreateResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IndicatorFeedCreateResponse]]._unwrapper,
),
- cast_to=cast(Type[IndicatorFeedCreateResponse], ResultWrapper[IndicatorFeedCreateResponse]),
+ cast_to=cast(Type[Optional[IndicatorFeedCreateResponse]], ResultWrapper[IndicatorFeedCreateResponse]),
)
async def update(
@@ -348,7 +348,7 @@ async def update(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IndicatorFeedUpdateResponse:
+ ) -> Optional[IndicatorFeedUpdateResponse]:
"""
Update indicator feed data
@@ -379,9 +379,9 @@ async def update(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IndicatorFeedUpdateResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IndicatorFeedUpdateResponse]]._unwrapper,
),
- cast_to=cast(Type[IndicatorFeedUpdateResponse], ResultWrapper[IndicatorFeedUpdateResponse]),
+ cast_to=cast(Type[Optional[IndicatorFeedUpdateResponse]], ResultWrapper[IndicatorFeedUpdateResponse]),
)
def list(
@@ -470,7 +470,7 @@ async def get(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> IndicatorFeedGetResponse:
+ ) -> Optional[IndicatorFeedGetResponse]:
"""
Get indicator feed metadata
@@ -496,9 +496,9 @@ async def get(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[IndicatorFeedGetResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[IndicatorFeedGetResponse]]._unwrapper,
),
- cast_to=cast(Type[IndicatorFeedGetResponse], ResultWrapper[IndicatorFeedGetResponse]),
+ cast_to=cast(Type[Optional[IndicatorFeedGetResponse]], ResultWrapper[IndicatorFeedGetResponse]),
)
diff --git a/src/cloudflare/resources/intel/indicator_feeds/permissions.py b/src/cloudflare/resources/intel/indicator_feeds/permissions.py
index 9558b5e48ff8..fe0f399ebdd3 100644
--- a/src/cloudflare/resources/intel/indicator_feeds/permissions.py
+++ b/src/cloudflare/resources/intel/indicator_feeds/permissions.py
@@ -2,7 +2,7 @@
from __future__ import annotations
-from typing import Type, cast
+from typing import Type, Optional, cast
import httpx
@@ -52,7 +52,7 @@ def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PermissionCreateResponse:
+ ) -> Optional[PermissionCreateResponse]:
"""
Grant permission to indicator feed
@@ -87,9 +87,9 @@ def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[PermissionCreateResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[PermissionCreateResponse]]._unwrapper,
),
- cast_to=cast(Type[PermissionCreateResponse], ResultWrapper[PermissionCreateResponse]),
+ cast_to=cast(Type[Optional[PermissionCreateResponse]], ResultWrapper[PermissionCreateResponse]),
)
def list(
@@ -102,7 +102,7 @@ def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PermissionListResponse:
+ ) -> Optional[PermissionListResponse]:
"""
List indicator feed permissions
@@ -126,9 +126,9 @@ def list(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[PermissionListResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[PermissionListResponse]]._unwrapper,
),
- cast_to=cast(Type[PermissionListResponse], ResultWrapper[PermissionListResponse]),
+ cast_to=cast(Type[Optional[PermissionListResponse]], ResultWrapper[PermissionListResponse]),
)
def delete(
@@ -143,7 +143,7 @@ def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PermissionDeleteResponse:
+ ) -> Optional[PermissionDeleteResponse]:
"""
Revoke permission to indicator feed
@@ -178,9 +178,9 @@ def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[PermissionDeleteResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[PermissionDeleteResponse]]._unwrapper,
),
- cast_to=cast(Type[PermissionDeleteResponse], ResultWrapper[PermissionDeleteResponse]),
+ cast_to=cast(Type[Optional[PermissionDeleteResponse]], ResultWrapper[PermissionDeleteResponse]),
)
@@ -205,7 +205,7 @@ async def create(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PermissionCreateResponse:
+ ) -> Optional[PermissionCreateResponse]:
"""
Grant permission to indicator feed
@@ -240,9 +240,9 @@ async def create(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[PermissionCreateResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[PermissionCreateResponse]]._unwrapper,
),
- cast_to=cast(Type[PermissionCreateResponse], ResultWrapper[PermissionCreateResponse]),
+ cast_to=cast(Type[Optional[PermissionCreateResponse]], ResultWrapper[PermissionCreateResponse]),
)
async def list(
@@ -255,7 +255,7 @@ async def list(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PermissionListResponse:
+ ) -> Optional[PermissionListResponse]:
"""
List indicator feed permissions
@@ -279,9 +279,9 @@ async def list(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[PermissionListResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[PermissionListResponse]]._unwrapper,
),
- cast_to=cast(Type[PermissionListResponse], ResultWrapper[PermissionListResponse]),
+ cast_to=cast(Type[Optional[PermissionListResponse]], ResultWrapper[PermissionListResponse]),
)
async def delete(
@@ -296,7 +296,7 @@ async def delete(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> PermissionDeleteResponse:
+ ) -> Optional[PermissionDeleteResponse]:
"""
Revoke permission to indicator feed
@@ -331,9 +331,9 @@ async def delete(
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
- post_parser=ResultWrapper[PermissionDeleteResponse]._unwrapper,
+ post_parser=ResultWrapper[Optional[PermissionDeleteResponse]]._unwrapper,
),
- cast_to=cast(Type[PermissionDeleteResponse], ResultWrapper[PermissionDeleteResponse]),
+ cast_to=cast(Type[Optional[PermissionDeleteResponse]], ResultWrapper[PermissionDeleteResponse]),
)
diff --git a/src/cloudflare/types/intel/indicator_feed_create_response.py b/src/cloudflare/types/intel/indicator_feed_create_response.py
index df05ab4b464e..3f6e80b940d9 100644
--- a/src/cloudflare/types/intel/indicator_feed_create_response.py
+++ b/src/cloudflare/types/intel/indicator_feed_create_response.py
@@ -18,6 +18,12 @@ class IndicatorFeedCreateResponse(BaseModel):
description: Optional[str] = None
"""The description of the example test"""
+ is_attributable: Optional[bool] = None
+ """Whether the indicator feed can be attributed to a provider"""
+
+ is_public: Optional[bool] = None
+ """Whether the indicator feed is exposed to customers"""
+
modified_on: Optional[datetime] = None
"""The date and time when the data entry was last modified"""
diff --git a/src/cloudflare/types/intel/indicator_feed_list_response.py b/src/cloudflare/types/intel/indicator_feed_list_response.py
index 5f965155c38a..9358f20f9819 100644
--- a/src/cloudflare/types/intel/indicator_feed_list_response.py
+++ b/src/cloudflare/types/intel/indicator_feed_list_response.py
@@ -18,6 +18,12 @@ class IndicatorFeedListResponse(BaseModel):
description: Optional[str] = None
"""The description of the example test"""
+ is_attributable: Optional[bool] = None
+ """Whether the indicator feed can be attributed to a provider"""
+
+ is_public: Optional[bool] = None
+ """Whether the indicator feed is exposed to customers"""
+
modified_on: Optional[datetime] = None
"""The date and time when the data entry was last modified"""
diff --git a/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py b/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py
index 50538efec4f0..141ef2696f25 100644
--- a/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py
+++ b/src/cloudflare/types/intel/indicator_feeds/permission_list_response.py
@@ -14,6 +14,12 @@ class PermissionListResponseItem(BaseModel):
description: Optional[str] = None
"""The description of the example test"""
+ is_attributable: Optional[bool] = None
+ """Whether the indicator feed can be attributed to a provider"""
+
+ is_public: Optional[bool] = None
+ """Whether the indicator feed is exposed to customers"""
+
name: Optional[str] = None
"""The name of the indicator feed"""
diff --git a/tests/api_resources/intel/indicator_feeds/test_permissions.py b/tests/api_resources/intel/indicator_feeds/test_permissions.py
index 5e89ce038e22..3b06e3c0d146 100644
--- a/tests/api_resources/intel/indicator_feeds/test_permissions.py
+++ b/tests/api_resources/intel/indicator_feeds/test_permissions.py
@@ -3,7 +3,7 @@
from __future__ import annotations
import os
-from typing import Any, cast
+from typing import Any, Optional, cast
import pytest
@@ -26,7 +26,7 @@ def test_method_create(self, client: Cloudflare) -> None:
permission = client.intel.indicator_feeds.permissions.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
@@ -35,7 +35,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
account_tag="823f45f16fd2f7e21e1e054aga4d2859",
feed_id=1,
)
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
@@ -46,7 +46,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"
permission = response.parse()
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
@@ -57,7 +57,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = response.parse()
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -73,7 +73,7 @@ def test_method_list(self, client: Cloudflare) -> None:
permission = client.intel.indicator_feeds.permissions.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PermissionListResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionListResponse], permission, path=["response"])
@parametrize
def test_raw_response_list(self, client: Cloudflare) -> None:
@@ -84,7 +84,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"
permission = response.parse()
- assert_matches_type(PermissionListResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionListResponse], permission, path=["response"])
@parametrize
def test_streaming_response_list(self, client: Cloudflare) -> None:
@@ -95,7 +95,7 @@ def test_streaming_response_list(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = response.parse()
- assert_matches_type(PermissionListResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionListResponse], permission, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -111,7 +111,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
permission = client.intel.indicator_feeds.permissions.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
@parametrize
def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
@@ -120,7 +120,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None:
account_tag="823f45f16fd2f7e21e1e054aga4d2859",
feed_id=1,
)
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
@parametrize
def test_raw_response_delete(self, client: Cloudflare) -> None:
@@ -131,7 +131,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = response.parse()
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
@parametrize
def test_streaming_response_delete(self, client: Cloudflare) -> None:
@@ -142,7 +142,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = response.parse()
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -162,7 +162,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
permission = await async_client.intel.indicator_feeds.permissions.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
@@ -171,7 +171,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
account_tag="823f45f16fd2f7e21e1e054aga4d2859",
feed_id=1,
)
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@@ -182,7 +182,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"
permission = await response.parse()
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
@@ -193,7 +193,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = await response.parse()
- assert_matches_type(PermissionCreateResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionCreateResponse], permission, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -209,7 +209,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None:
permission = await async_client.intel.indicator_feeds.permissions.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PermissionListResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionListResponse], permission, path=["response"])
@parametrize
async def test_raw_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -220,7 +220,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"
permission = await response.parse()
- assert_matches_type(PermissionListResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionListResponse], permission, path=["response"])
@parametrize
async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> None:
@@ -231,7 +231,7 @@ async def test_streaming_response_list(self, async_client: AsyncCloudflare) -> N
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = await response.parse()
- assert_matches_type(PermissionListResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionListResponse], permission, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -247,7 +247,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
permission = await async_client.intel.indicator_feeds.permissions.delete(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
@parametrize
async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare) -> None:
@@ -256,7 +256,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare
account_tag="823f45f16fd2f7e21e1e054aga4d2859",
feed_id=1,
)
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
@parametrize
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
@@ -267,7 +267,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = await response.parse()
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
@parametrize
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
@@ -278,7 +278,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
permission = await response.parse()
- assert_matches_type(PermissionDeleteResponse, permission, path=["response"])
+ assert_matches_type(Optional[PermissionDeleteResponse], permission, path=["response"])
assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/intel/test_indicator_feeds.py b/tests/api_resources/intel/test_indicator_feeds.py
index 8b13403785c0..ec384a7a6fb1 100644
--- a/tests/api_resources/intel/test_indicator_feeds.py
+++ b/tests/api_resources/intel/test_indicator_feeds.py
@@ -3,7 +3,7 @@
from __future__ import annotations
import os
-from typing import Any, cast
+from typing import Any, Optional, cast
import pytest
@@ -28,7 +28,7 @@ def test_method_create(self, client: Cloudflare) -> None:
indicator_feed = client.intel.indicator_feeds.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
@parametrize
def test_method_create_with_all_params(self, client: Cloudflare) -> None:
@@ -37,7 +37,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
description="example feed description",
name="example_feed_1",
)
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
@parametrize
def test_raw_response_create(self, client: Cloudflare) -> None:
@@ -48,7 +48,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"
indicator_feed = response.parse()
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
@parametrize
def test_streaming_response_create(self, client: Cloudflare) -> None:
@@ -59,7 +59,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = response.parse()
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -77,7 +77,7 @@ def test_method_update(self, client: Cloudflare) -> None:
12,
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -87,7 +87,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
account_id="023e105f4ecef8ad9ca31a8372d0c353",
source="@/Users/me/test.stix2",
)
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -100,7 +100,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = response.parse()
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -113,7 +113,7 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = response.parse()
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -212,7 +212,7 @@ def test_method_get(self, client: Cloudflare) -> None:
12,
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(IndicatorFeedGetResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedGetResponse], indicator_feed, path=["response"])
@parametrize
def test_raw_response_get(self, client: Cloudflare) -> None:
@@ -224,7 +224,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"
indicator_feed = response.parse()
- assert_matches_type(IndicatorFeedGetResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedGetResponse], indicator_feed, path=["response"])
@parametrize
def test_streaming_response_get(self, client: Cloudflare) -> None:
@@ -236,7 +236,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = response.parse()
- assert_matches_type(IndicatorFeedGetResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedGetResponse], indicator_feed, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -257,7 +257,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
indicator_feed = await async_client.intel.indicator_feeds.create(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncCloudflare) -> None:
@@ -266,7 +266,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
description="example feed description",
name="example_feed_1",
)
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
@parametrize
async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
@@ -277,7 +277,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"
indicator_feed = await response.parse()
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
@parametrize
async def test_streaming_response_create(self, async_client: AsyncCloudflare) -> None:
@@ -288,7 +288,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = await response.parse()
- assert_matches_type(IndicatorFeedCreateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedCreateResponse], indicator_feed, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -306,7 +306,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
12,
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -316,7 +316,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
account_id="023e105f4ecef8ad9ca31a8372d0c353",
source="@/Users/me/test.stix2",
)
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -329,7 +329,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = await response.parse()
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
@pytest.mark.skip(reason="TODO: investigate broken test")
@parametrize
@@ -342,7 +342,7 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = await response.parse()
- assert_matches_type(IndicatorFeedUpdateResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -441,7 +441,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None:
12,
account_id="023e105f4ecef8ad9ca31a8372d0c353",
)
- assert_matches_type(IndicatorFeedGetResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedGetResponse], indicator_feed, path=["response"])
@parametrize
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
@@ -453,7 +453,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"
indicator_feed = await response.parse()
- assert_matches_type(IndicatorFeedGetResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedGetResponse], indicator_feed, path=["response"])
@parametrize
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
@@ -465,7 +465,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
indicator_feed = await response.parse()
- assert_matches_type(IndicatorFeedGetResponse, indicator_feed, path=["response"])
+ assert_matches_type(Optional[IndicatorFeedGetResponse], indicator_feed, path=["response"])
assert cast(Any, response.is_closed) is True