mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): OpenAPI spec update via Stainless API (#989)
This commit is contained in:
parent
1be11e847d
commit
d8131eaecc
5 changed files with 26 additions and 1 deletions
|
|
@ -1,2 +1,2 @@
|
|||
configured_endpoints: 1343
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-263576da5eb5ab2ac4e94b5546f7851d1bba6cc4c7cda43454f07e0fc3feed13.yml
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5e74e6bc5452012a8e268e22531fc275f2e79381aa2f2dd3fd8c0d16e6cd0a28.yml
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ class IndicatorFeedsResource(SyncAPIResource):
|
|||
description: str | NotGiven = NOT_GIVEN,
|
||||
is_attributable: bool | NotGiven = NOT_GIVEN,
|
||||
is_public: bool | NotGiven = NOT_GIVEN,
|
||||
name: str | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -148,6 +149,8 @@ class IndicatorFeedsResource(SyncAPIResource):
|
|||
|
||||
is_public: The new is_public value of the feed
|
||||
|
||||
name: The new name of the feed
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -165,6 +168,7 @@ class IndicatorFeedsResource(SyncAPIResource):
|
|||
"description": description,
|
||||
"is_attributable": is_attributable,
|
||||
"is_public": is_public,
|
||||
"name": name,
|
||||
},
|
||||
indicator_feed_update_params.IndicatorFeedUpdateParams,
|
||||
),
|
||||
|
|
@ -373,6 +377,7 @@ class AsyncIndicatorFeedsResource(AsyncAPIResource):
|
|||
description: str | NotGiven = NOT_GIVEN,
|
||||
is_attributable: bool | NotGiven = NOT_GIVEN,
|
||||
is_public: bool | NotGiven = NOT_GIVEN,
|
||||
name: str | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -394,6 +399,8 @@ class AsyncIndicatorFeedsResource(AsyncAPIResource):
|
|||
|
||||
is_public: The new is_public value of the feed
|
||||
|
||||
name: The new name of the feed
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -411,6 +418,7 @@ class AsyncIndicatorFeedsResource(AsyncAPIResource):
|
|||
"description": description,
|
||||
"is_attributable": is_attributable,
|
||||
"is_public": is_public,
|
||||
"name": name,
|
||||
},
|
||||
indicator_feed_update_params.IndicatorFeedUpdateParams,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ class IndicatorFeedGetResponse(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"""
|
||||
|
||||
latest_upload_status: Optional[
|
||||
Literal["Mirroring", "Unifying", "Loading", "Provisioning", "Complete", "Error"]
|
||||
] = None
|
||||
|
|
@ -29,3 +35,9 @@ class IndicatorFeedGetResponse(BaseModel):
|
|||
|
||||
name: Optional[str] = None
|
||||
"""The name of the indicator feed"""
|
||||
|
||||
provider_id: Optional[str] = None
|
||||
"""The unique identifier for the provider"""
|
||||
|
||||
provider_name: Optional[str] = None
|
||||
"""The provider of the indicator feed"""
|
||||
|
|
|
|||
|
|
@ -19,3 +19,6 @@ class IndicatorFeedUpdateParams(TypedDict, total=False):
|
|||
|
||||
is_public: bool
|
||||
"""The new is_public value of the feed"""
|
||||
|
||||
name: str
|
||||
"""The new name of the feed"""
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@ class TestIndicatorFeeds:
|
|||
description="This is an example description",
|
||||
is_attributable=True,
|
||||
is_public=True,
|
||||
name="indicator_list",
|
||||
)
|
||||
assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
|
||||
|
||||
|
|
@ -312,6 +313,7 @@ class TestAsyncIndicatorFeeds:
|
|||
description="This is an example description",
|
||||
is_attributable=True,
|
||||
is_public=True,
|
||||
name="indicator_list",
|
||||
)
|
||||
assert_matches_type(Optional[IndicatorFeedUpdateResponse], indicator_feed, path=["response"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue