Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 3e13206 commit f07a5ed
Show file tree
Hide file tree
Showing 373 changed files with 262 additions and 3,451 deletions.
201 changes: 98 additions & 103 deletions api.md

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/cloudflare/resources/accounts/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
AsyncPaginator,
make_request_options,
)
from ...types.accounts import member_list_params, member_create_params, member_delete_params, member_update_params
from ...types.accounts import member_list_params, member_create_params, member_update_params
from ...types.shared.member import Member
from ...types.accounts.member_list_response import MemberListResponse
from ...types.accounts.user_with_invite_code import UserWithInviteCode
Expand Down Expand Up @@ -203,7 +203,6 @@ def delete(
member_id: str,
*,
account_id: object,
body: object,
# 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,
Expand All @@ -229,7 +228,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `member_id` but received {member_id!r}")
return self._delete(
f"/accounts/{account_id}/members/{member_id}",
body=maybe_transform(body, member_delete_params.MemberDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -449,7 +447,6 @@ async def delete(
member_id: str,
*,
account_id: object,
body: object,
# 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,
Expand All @@ -475,7 +472,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `member_id` but received {member_id!r}")
return await self._delete(
f"/accounts/{account_id}/members/{member_id}",
body=await async_maybe_transform(body, member_delete_params.MemberDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/addressing/address_maps/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing.address_maps import account_delete_params, account_update_params
from ....types.addressing.address_maps import account_update_params
from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse
from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse

Expand Down Expand Up @@ -90,7 +90,6 @@ def delete(
address_map_id: str,
*,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -120,7 +119,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
body=maybe_transform(body, account_delete_params.AccountDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -192,7 +190,6 @@ async def delete(
address_map_id: str,
*,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -222,7 +219,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/accounts/{account_id}",
body=await async_maybe_transform(body, account_delete_params.AccountDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
AsyncPaginator,
make_request_options,
)
from ....types.addressing import address_map_edit_params, address_map_create_params, address_map_delete_params
from ....types.addressing import address_map_edit_params, address_map_create_params
from ....types.addressing.address_map import AddressMap
from ....types.addressing.address_map_get_response import AddressMapGetResponse
from ....types.addressing.address_map_create_response import AddressMapCreateResponse
Expand Down Expand Up @@ -174,7 +174,6 @@ def delete(
address_map_id: str,
*,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -206,7 +205,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
body=maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -445,7 +443,6 @@ async def delete(
address_map_id: str,
*,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -477,7 +474,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}",
body=await async_maybe_transform(body, address_map_delete_params.AddressMapDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/addressing/address_maps/ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing.address_maps import ip_delete_params, ip_update_params
from ....types.addressing.address_maps import ip_update_params
from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse
from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse

Expand Down Expand Up @@ -96,7 +96,6 @@ def delete(
*,
account_id: str,
address_map_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -130,7 +129,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
body=maybe_transform(body, ip_delete_params.IPDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -208,7 +206,6 @@ async def delete(
*,
account_id: str,
address_map_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -242,7 +239,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `ip_address` but received {ip_address!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/ips/{ip_address}",
body=await async_maybe_transform(body, ip_delete_params.IPDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/addressing/address_maps/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing.address_maps import zone_delete_params, zone_update_params
from ....types.addressing.address_maps import zone_update_params
from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse
from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse

Expand Down Expand Up @@ -96,7 +96,6 @@ def delete(
*,
zone_id: str,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -130,7 +129,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=maybe_transform(body, zone_delete_params.ZoneDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -208,7 +206,6 @@ async def delete(
*,
zone_id: str,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -242,7 +239,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `address_map_id` but received {address_map_id!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/address_maps/{address_map_id}/zones/{zone_id}",
body=await async_maybe_transform(body, zone_delete_params.ZoneDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/addressing/prefixes/delegations.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
AsyncPaginator,
make_request_options,
)
from ....types.addressing.prefixes import delegation_create_params, delegation_delete_params
from ....types.addressing.prefixes import delegation_create_params
from ....types.addressing.prefixes.delegations import Delegations
from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse

Expand Down Expand Up @@ -145,7 +145,6 @@ def delete(
*,
account_id: str,
prefix_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -179,7 +178,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `delegation_id` but received {delegation_id!r}")
return self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/delegations/{delegation_id}",
body=maybe_transform(body, delegation_delete_params.DelegationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -304,7 +302,6 @@ async def delete(
*,
account_id: str,
prefix_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -338,7 +335,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `delegation_id` but received {delegation_id!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}/delegations/{delegation_id}",
body=await async_maybe_transform(body, delegation_delete_params.DelegationDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/addressing/prefixes/prefixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
AsyncPaginator,
make_request_options,
)
from ....types.addressing import prefix_edit_params, prefix_create_params, prefix_delete_params
from ....types.addressing import prefix_edit_params, prefix_create_params
from ....types.addressing.prefix import Prefix
from ....types.addressing.prefix_delete_response import PrefixDeleteResponse

Expand Down Expand Up @@ -163,7 +163,6 @@ def delete(
prefix_id: str,
*,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -193,7 +192,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}")
return self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
body=maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -411,7 +409,6 @@ async def delete(
prefix_id: str,
*,
account_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -441,7 +438,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `prefix_id` but received {prefix_id!r}")
return await self._delete(
f"/accounts/{account_id}/addressing/prefixes/{prefix_id}",
body=await async_maybe_transform(body, prefix_delete_params.PrefixDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/cache/smart_tiered_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.cache import smart_tiered_cache_edit_params, smart_tiered_cache_delete_params
from ...types.cache import smart_tiered_cache_edit_params
from ..._base_client import (
make_request_options,
)
Expand All @@ -45,7 +45,6 @@ def delete(
self,
*,
zone_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -73,7 +72,6 @@ def delete(
SmartTieredCacheDeleteResponse,
self._delete(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
body=maybe_transform(body, smart_tiered_cache_delete_params.SmartTieredCacheDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -193,7 +191,6 @@ async def delete(
self,
*,
zone_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -221,7 +218,6 @@ async def delete(
SmartTieredCacheDeleteResponse,
await self._delete(
f"/zones/{zone_id}/cache/tiered_cache_smart_topology_enable",
body=await async_maybe_transform(body, smart_tiered_cache_delete_params.SmartTieredCacheDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
6 changes: 1 addition & 5 deletions src/cloudflare/resources/cache/variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.cache import variant_edit_params, variant_delete_params
from ...types.cache import variant_edit_params
from ..._base_client import (
make_request_options,
)
Expand All @@ -44,7 +44,6 @@ def delete(
self,
*,
zone_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -74,7 +73,6 @@ def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return self._delete(
f"/zones/{zone_id}/cache/variants",
body=maybe_transform(body, variant_delete_params.VariantDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -189,7 +187,6 @@ async def delete(
self,
*,
zone_id: str,
body: object,
# 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,
Expand Down Expand Up @@ -219,7 +216,6 @@ async def delete(
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
return await self._delete(
f"/zones/{zone_id}/cache/variants",
body=await async_maybe_transform(body, variant_delete_params.VariantDeleteParams),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
Loading

0 comments on commit f07a5ed

Please sign in to comment.