Skip to content

Commit d8131ea

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#989)
1 parent 1be11e8 commit d8131ea

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1343
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-263576da5eb5ab2ac4e94b5546f7851d1bba6cc4c7cda43454f07e0fc3feed13.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e74e6bc5452012a8e268e22531fc275f2e79381aa2f2dd3fd8c0d16e6cd0a28.yml

src/cloudflare/resources/intel/indicator_feeds/indicator_feeds.py

+8
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def update(
127127
description: str | NotGiven = NOT_GIVEN,
128128
is_attributable: bool | NotGiven = NOT_GIVEN,
129129
is_public: bool | NotGiven = NOT_GIVEN,
130+
name: str | NotGiven = NOT_GIVEN,
130131
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
131132
# The extra values given here take precedence over values defined on the client or passed to this method.
132133
extra_headers: Headers | None = None,
@@ -148,6 +149,8 @@ def update(
148149
149150
is_public: The new is_public value of the feed
150151
152+
name: The new name of the feed
153+
151154
extra_headers: Send extra headers
152155
153156
extra_query: Add additional query parameters to the request
@@ -165,6 +168,7 @@ def update(
165168
"description": description,
166169
"is_attributable": is_attributable,
167170
"is_public": is_public,
171+
"name": name,
168172
},
169173
indicator_feed_update_params.IndicatorFeedUpdateParams,
170174
),
@@ -373,6 +377,7 @@ async def update(
373377
description: str | NotGiven = NOT_GIVEN,
374378
is_attributable: bool | NotGiven = NOT_GIVEN,
375379
is_public: bool | NotGiven = NOT_GIVEN,
380+
name: str | NotGiven = NOT_GIVEN,
376381
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
377382
# The extra values given here take precedence over values defined on the client or passed to this method.
378383
extra_headers: Headers | None = None,
@@ -394,6 +399,8 @@ async def update(
394399
395400
is_public: The new is_public value of the feed
396401
402+
name: The new name of the feed
403+
397404
extra_headers: Send extra headers
398405
399406
extra_query: Add additional query parameters to the request
@@ -411,6 +418,7 @@ async def update(
411418
"description": description,
412419
"is_attributable": is_attributable,
413420
"is_public": is_public,
421+
"name": name,
414422
},
415423
indicator_feed_update_params.IndicatorFeedUpdateParams,
416424
),

src/cloudflare/types/intel/indicator_feed_get_response.py

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class IndicatorFeedGetResponse(BaseModel):
1919
description: Optional[str] = None
2020
"""The description of the example test"""
2121

22+
is_attributable: Optional[bool] = None
23+
"""Whether the indicator feed can be attributed to a provider"""
24+
25+
is_public: Optional[bool] = None
26+
"""Whether the indicator feed is exposed to customers"""
27+
2228
latest_upload_status: Optional[
2329
Literal["Mirroring", "Unifying", "Loading", "Provisioning", "Complete", "Error"]
2430
] = None
@@ -29,3 +35,9 @@ class IndicatorFeedGetResponse(BaseModel):
2935

3036
name: Optional[str] = None
3137
"""The name of the indicator feed"""
38+
39+
provider_id: Optional[str] = None
40+
"""The unique identifier for the provider"""
41+
42+
provider_name: Optional[str] = None
43+
"""The provider of the indicator feed"""

src/cloudflare/types/intel/indicator_feed_update_params.py

+3
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ class IndicatorFeedUpdateParams(TypedDict, total=False):
1919

2020
is_public: bool
2121
"""The new is_public value of the feed"""
22+
23+
name: str
24+
"""The new name of the feed"""

tests/api_resources/intel/test_indicator_feeds.py

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def test_method_update_with_all_params(self, client: Cloudflare) -> None:
8686
description="This is an example description",
8787
is_attributable=True,
8888
is_public=True,
89+
name="indicator_list",
8990
)
9091
assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
9192

@@ -312,6 +313,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncCloudflare
312313
description="This is an example description",
313314
is_attributable=True,
314315
is_public=True,
316+
name="indicator_list",
315317
)
316318
assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
317319

0 commit comments

Comments
 (0)