Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): OpenAPI spec update via Stainless API #1175

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1254
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-839a21fba61f217a19e79a3596f508a40fa93cf14c0e03493f961e496ce3873b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-095c75ce419923a8f7a92dc55b139890dfd0ad55f642c1abe42f63bc124a047c.yml
5 changes: 1 addition & 4 deletions src/cloudflare/resources/accounts/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.accounts import account_list_params, account_update_params

__all__ = ["AccountsResource", "AsyncAccountsResource"]
Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/accounts/members.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.accounts import member_list_params, member_create_params, member_update_params
from ...types.accounts.member_get_response import MemberGetResponse
from ...types.accounts.member_list_response import MemberListResponse
Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/accounts/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.shared.role import Role

__all__ = ["RolesResource", "AsyncRolesResource"]
Expand Down
4 changes: 1 addition & 3 deletions src/cloudflare/resources/acm/total_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
)
from ..._wrappers import ResultWrapper
from ...types.acm import CertificateAuthority, total_tls_create_params
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.acm.certificate_authority import CertificateAuthority
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
from ...types.acm.total_tls_create_response import TotalTLSCreateResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
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
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
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
Expand Down
4 changes: 1 addition & 3 deletions src/cloudflare/resources/addressing/address_maps/ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
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
4 changes: 1 addition & 3 deletions src/cloudflare/resources/addressing/address_maps/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
async_to_custom_raw_response_wrapper,
async_to_custom_streamed_response_wrapper,
)
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options

__all__ = ["DownloadsResource", "AsyncDownloadsResource"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.addressing import loa_document_create_params
from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
from ....._base_client import (
AsyncPaginator,
make_request_options,
)
from ....._base_client import AsyncPaginator, make_request_options
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
from ....._base_client import (
AsyncPaginator,
make_request_options,
)
from ....._base_client import AsyncPaginator, make_request_options
from .....types.addressing.prefixes.bgp import prefix_edit_params
from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
from ....._base_client import (
make_request_options,
)
from ....._base_client import make_request_options
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
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
5 changes: 1 addition & 4 deletions src/cloudflare/resources/addressing/prefixes/prefixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing import regional_hostname_edit_params, regional_hostname_create_params
from ....types.addressing.regional_hostname_get_response import RegionalHostnameGetResponse
from ....types.addressing.regional_hostname_edit_response import RegionalHostnameEditResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse

__all__ = ["RegionsResource", "AsyncRegionsResource"]
Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/addressing/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.addressing.service_list_response import ServiceListResponse

__all__ = ["ServicesResource", "AsyncServicesResource"]
Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/ai_gateway/ai_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.ai_gateway import ai_gateway_list_params, ai_gateway_create_params, ai_gateway_update_params
from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse
from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse
Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/ai_gateway/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.ai_gateway import log_list_params
from ...types.ai_gateway.log_list_response import LogListResponse

Expand Down
4 changes: 1 addition & 3 deletions src/cloudflare/resources/alerting/available_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.alerting.available_alert_list_response import AvailableAlertListResponse

__all__ = ["AvailableAlertsResource", "AsyncAvailableAlertsResource"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse

__all__ = ["EligibleResource", "AsyncEligibleResource"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.alerting.destinations import webhook_create_params, webhook_update_params
from ....types.alerting.destinations.webhooks import Webhooks
from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse
Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/alerting/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
async_to_streamed_response_wrapper,
)
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.alerting import history_list_params
from ...types.alerting.history import History

Expand Down
5 changes: 1 addition & 4 deletions src/cloudflare/resources/alerting/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import (
AsyncPaginator,
make_request_options,
)
from ..._base_client import AsyncPaginator, make_request_options
from ...types.alerting import policy_create_params, policy_update_params
from ...types.alerting.policy import Policy
from ...types.alerting.mechanism_param import MechanismParam
Expand Down
4 changes: 1 addition & 3 deletions src/cloudflare/resources/api_gateway/configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.api_gateway import configuration_get_params, configuration_update_params
from ...types.api_gateway.configuration import Configuration
from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse

__all__ = ["DiscoveryResource", "AsyncDiscoveryResource"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway.discovery import operation_edit_params, operation_list_params
from ....types.api_gateway.discovery_operation import DiscoveryOperation
from ....types.api_gateway.discovery.operation_edit_response import OperationEditResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.api_gateway.operations import (
SettingsMultipleRequest,
schema_validation_edit_params,
Expand Down
4 changes: 1 addition & 3 deletions src/cloudflare/resources/api_gateway/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ..._base_client import (
make_request_options,
)
from ..._base_client import make_request_options
from ...types.api_gateway import schema_list_params
from ...types.api_gateway.schema_list_response import SchemaListResponse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._base_client import (
make_request_options,
)
from ...._base_client import make_request_options
from ....types.api_gateway.settings import schema_validation_edit_params, schema_validation_update_params
from ....types.api_gateway.settings.settings import Settings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
async_to_streamed_response_wrapper,
)
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import (
AsyncPaginator,
make_request_options,
)
from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway.user_schemas import operation_list_params
from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse

Expand Down
Loading