Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 24, 2024
1 parent bd39128 commit 9c065ca
Show file tree
Hide file tree
Showing 963 changed files with 2,418 additions and 2,740 deletions.
2 changes: 1 addition & 1 deletion src/cloudflare/_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from ._utils import is_dict
from ._models import construct_type
from .types.shared import ErrorData
from .types.shared.error_data import ErrorData

__all__ = [
"BadRequestError",
Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/accounts/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
AsyncPaginator,
make_request_options,
)
from ...types.accounts import AccountGetResponse, AccountUpdateResponse, account_list_params, account_update_params
from ...types.accounts import account_list_params, account_update_params
from ...types.accounts.account_get_response import AccountGetResponse
from ...types.accounts.account_update_response import AccountUpdateResponse

__all__ = ["Accounts", "AsyncAccounts"]

Expand Down
15 changes: 5 additions & 10 deletions src/cloudflare/resources/accounts/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,11 @@
AsyncPaginator,
make_request_options,
)
from ...types.shared import Member
from ...types.accounts import (
MemberListResponse,
UserWithInviteCode,
MemberDeleteResponse,
member_list_params,
member_create_params,
member_delete_params,
member_update_params,
)
from ...types.accounts import member_list_params, member_create_params, member_delete_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
from ...types.accounts.member_delete_response import MemberDeleteResponse

__all__ = ["Members", "AsyncMembers"]

Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/resources/accounts/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
AsyncPaginator,
make_request_options,
)
from ...types.shared import Role
from ...types.accounts import RoleGetResponse
from ...types.shared.role import Role
from ...types.accounts.role_get_response import RoleGetResponse

__all__ = ["Roles", "AsyncRoles"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/acm/total_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.acm import TotalTLSGetResponse, TotalTLSCreateResponse, total_tls_create_params
from ...types.acm import total_tls_create_params
from ..._base_client import (
make_request_options,
)
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
from ...types.acm.total_tls_create_response import TotalTLSCreateResponse

__all__ = ["TotalTLS", "AsyncTotalTLS"]

Expand Down
9 changes: 3 additions & 6 deletions src/cloudflare/resources/addressing/address_maps/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing.address_maps import (
AccountDeleteResponse,
AccountUpdateResponse,
account_delete_params,
account_update_params,
)
from ....types.addressing.address_maps import account_delete_params, account_update_params
from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse
from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse

__all__ = ["Accounts", "AsyncAccounts"]

Expand Down
14 changes: 5 additions & 9 deletions src/cloudflare/resources/addressing/address_maps/address_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,11 @@
AsyncPaginator,
make_request_options,
)
from ....types.addressing import (
AddressMap,
AddressMapGetResponse,
AddressMapCreateResponse,
AddressMapDeleteResponse,
address_map_edit_params,
address_map_create_params,
address_map_delete_params,
)
from ....types.addressing import address_map_edit_params, address_map_create_params, address_map_delete_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
from ....types.addressing.address_map_delete_response import AddressMapDeleteResponse

__all__ = ["AddressMaps", "AsyncAddressMaps"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/addressing/address_maps/ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing.address_maps import IPDeleteResponse, IPUpdateResponse, ip_delete_params, ip_update_params
from ....types.addressing.address_maps import ip_delete_params, ip_update_params
from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse
from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse

__all__ = ["IPs", "AsyncIPs"]

Expand Down
9 changes: 3 additions & 6 deletions src/cloudflare/resources/addressing/address_maps/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing.address_maps import (
ZoneDeleteResponse,
ZoneUpdateResponse,
zone_delete_params,
zone_update_params,
)
from ....types.addressing.address_maps import zone_delete_params, zone_update_params
from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse
from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse

__all__ = ["Zones", "AsyncZones"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
from ...._base_client import (
make_request_options,
)
from ....types.addressing import LOADocumentCreateResponse, loa_document_create_params
from ....types.addressing import loa_document_create_params
from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse

__all__ = ["LOADocuments", "AsyncLOADocuments"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/addressing/prefixes/bgp/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
AsyncPaginator,
make_request_options,
)
from .....types.addressing.prefixes.bgp import ServiceBinding, BindingDeleteResponse, binding_create_params
from .....types.addressing.prefixes.bgp import binding_create_params
from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding
from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse

__all__ = ["Bindings", "AsyncBindings"]

Expand Down
3 changes: 2 additions & 1 deletion src/cloudflare/resources/addressing/prefixes/bgp/prefixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
AsyncPaginator,
make_request_options,
)
from .....types.addressing.prefixes.bgp import BGPPrefix, prefix_edit_params
from .....types.addressing.prefixes.bgp import prefix_edit_params
from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix

__all__ = ["Prefixes", "AsyncPrefixes"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/addressing/prefixes/bgp/statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
from ....._base_client import (
make_request_options,
)
from .....types.addressing.prefixes.bgp import StatusGetResponse, StatusEditResponse, status_edit_params
from .....types.addressing.prefixes.bgp import status_edit_params
from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse
from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse

__all__ = ["Statuses", "AsyncStatuses"]

Expand Down
8 changes: 2 additions & 6 deletions src/cloudflare/resources/addressing/prefixes/delegations.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@
AsyncPaginator,
make_request_options,
)
from ....types.addressing.prefixes import (
DelegationDeleteResponse,
delegations,
delegation_create_params,
delegation_delete_params,
)
from ....types.addressing.prefixes import delegations, delegation_create_params, delegation_delete_params
from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse

__all__ = ["Delegations", "AsyncDelegations"]

Expand Down
10 changes: 3 additions & 7 deletions src/cloudflare/resources/addressing/prefixes/prefixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@
AsyncPaginator,
make_request_options,
)
from ....types.addressing import (
Prefix,
PrefixDeleteResponse,
prefix_edit_params,
prefix_create_params,
prefix_delete_params,
)
from ....types.addressing import prefix_edit_params, prefix_create_params, prefix_delete_params
from ....types.addressing.prefix import Prefix
from ....types.addressing.prefix_delete_response import PrefixDeleteResponse

__all__ = ["Prefixes", "AsyncPrefixes"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/addressing/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
AsyncPaginator,
make_request_options,
)
from ...types.addressing import ServiceListResponse
from ...types.addressing.service_list_response import ServiceListResponse

__all__ = ["Services", "AsyncServices"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/available_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ..._base_client import (
make_request_options,
)
from ...types.alerting import AvailableAlertListResponse
from ...types.alerting.available_alert_list_response import AvailableAlertListResponse

__all__ = ["AvailableAlerts", "AsyncAvailableAlerts"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/alerting/destinations/eligible.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ...._base_client import (
make_request_options,
)
from ....types.alerting.destinations import EligibleGetResponse
from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse

__all__ = ["Eligible", "AsyncEligible"]

Expand Down
10 changes: 4 additions & 6 deletions src/cloudflare/resources/alerting/destinations/pagerduty.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
from ...._base_client import (
make_request_options,
)
from ....types.alerting.destinations import (
PagerdutyGetResponse,
PagerdutyLinkResponse,
PagerdutyCreateResponse,
PagerdutyDeleteResponse,
)
from ....types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse
from ....types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse
from ....types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse
from ....types.alerting.destinations.pagerduty_delete_response import PagerdutyDeleteResponse

__all__ = ["PagerdutyResource", "AsyncPagerdutyResource"]

Expand Down
12 changes: 4 additions & 8 deletions src/cloudflare/resources/alerting/destinations/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@
AsyncPaginator,
make_request_options,
)
from ....types.alerting.destinations import (
WebhookCreateResponse,
WebhookDeleteResponse,
WebhookUpdateResponse,
webhooks,
webhook_create_params,
webhook_update_params,
)
from ....types.alerting.destinations import webhooks, webhook_create_params, webhook_update_params
from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse
from ....types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse
from ....types.alerting.destinations.webhook_update_response import WebhookUpdateResponse

__all__ = ["Webhooks", "AsyncWebhooks"]

Expand Down
3 changes: 2 additions & 1 deletion src/cloudflare/resources/alerting/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
AsyncPaginator,
make_request_options,
)
from ...types.alerting import History, history_list_params
from ...types.alerting import history_list_params
from ...types.alerting.history import History

__all__ = ["HistoryResource", "AsyncHistoryResource"]

Expand Down
17 changes: 7 additions & 10 deletions src/cloudflare/resources/alerting/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,13 @@
AsyncPaginator,
make_request_options,
)
from ...types.alerting import (
Policy,
MechanismParam,
PolicyFilterParam,
PolicyCreateResponse,
PolicyDeleteResponse,
PolicyUpdateResponse,
policy_create_params,
policy_update_params,
)
from ...types.alerting import policy_create_params, policy_update_params
from ...types.alerting.policy import Policy
from ...types.alerting.mechanism_param import MechanismParam
from ...types.alerting.policy_filter_param import PolicyFilterParam
from ...types.alerting.policy_create_response import PolicyCreateResponse
from ...types.alerting.policy_delete_response import PolicyDeleteResponse
from ...types.alerting.policy_update_response import PolicyUpdateResponse

__all__ = ["Policies", "AsyncPolicies"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/argo/smart_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.argo import SmartRoutingGetResponse, SmartRoutingEditResponse, smart_routing_edit_params
from ...types.argo import smart_routing_edit_params
from ..._base_client import (
make_request_options,
)
from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse
from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse

__all__ = ["SmartRouting", "AsyncSmartRouting"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/argo/tiered_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.argo import TieredCachingGetResponse, TieredCachingEditResponse, tiered_caching_edit_params
from ...types.argo import tiered_caching_edit_params
from ..._base_client import (
make_request_options,
)
from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse
from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse

__all__ = ["TieredCaching", "AsyncTieredCaching"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/audit_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
AsyncPaginator,
make_request_options,
)
from ..types.shared import AuditLog
from ..types.audit_logs import audit_log_list_params
from ..types.shared.audit_log import AuditLog

__all__ = ["AuditLogs", "AsyncAuditLogs"]

Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/resources/billing/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ..._base_client import (
make_request_options,
)
from ...types.billing import ProfileGetResponse
from ...types.billing.profile_get_response import ProfileGetResponse

__all__ = ["Profiles", "AsyncProfiles"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/bot_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
from .._base_client import (
make_request_options,
)
from ..types.bot_management import BotManagementGetResponse, BotManagementUpdateResponse, bot_management_update_params
from ..types.bot_management import bot_management_update_params
from ..types.bot_management.bot_management_get_response import BotManagementGetResponse
from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse

__all__ = ["BotManagement", "AsyncBotManagement"]

Expand Down
4 changes: 3 additions & 1 deletion src/cloudflare/resources/brand_protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
from .._base_client import (
make_request_options,
)
from ..types.brand_protection import Info, Submit, brand_protection_submit_params, brand_protection_url_info_params
from ..types.brand_protection import brand_protection_submit_params, brand_protection_url_info_params
from ..types.brand_protection.info import Info
from ..types.brand_protection.submit import Submit

__all__ = ["BrandProtection", "AsyncBrandProtection"]

Expand Down
3 changes: 2 additions & 1 deletion src/cloudflare/resources/cache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.cache import CachePurgeResponse, cache_purge_params
from ...types.cache import cache_purge_params
from .cache_reserve import (
CacheReserveResource,
AsyncCacheReserveResource,
Expand Down Expand Up @@ -57,6 +57,7 @@
RegionalTieredCacheResourceWithStreamingResponse,
AsyncRegionalTieredCacheResourceWithStreamingResponse,
)
from ...types.cache.cache_purge_response import CachePurgeResponse

__all__ = ["Cache", "AsyncCache"]

Expand Down
Loading

0 comments on commit 9c065ca

Please sign in to comment.