feat(api): rename reserved model_type keyword (#1579)

This commit is contained in:
stainless-app[bot] 2024-09-09 04:42:22 +00:00 committed by stainless-bot
parent 86bc62eccc
commit 3d0dedae63
3637 changed files with 22147 additions and 47586 deletions

View file

@ -1,2 +1,2 @@
configured_endpoints: 1332
configured_endpoints: 1330
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60169622cdb93defdefea93ffc7d048f623611bd2220fbd0274f79e3e7bda5f0.yml

View file

@ -33,9 +33,7 @@ client = Cloudflare(
)
zone = client.zones.create(
account={
"id": "023e105f4ecef8ad9ca31a8372d0c353"
},
account={"id": "023e105f4ecef8ad9ca31a8372d0c353"},
name="example.com",
type="full",
)
@ -63,15 +61,15 @@ client = AsyncCloudflare(
api_key=os.environ.get("CLOUDFLARE_API_KEY"),
)
async def main() -> None:
zone = await client.zones.create(
account={
"id": "023e105f4ecef8ad9ca31a8372d0c353"
},
name="example.com",
type="full",
)
print(zone.id)
zone = await client.zones.create(
account={"id": "023e105f4ecef8ad9ca31a8372d0c353"},
name="example.com",
type="full",
)
print(zone.id)
asyncio.run(main())
```
@ -114,6 +112,7 @@ from cloudflare import AsyncCloudflare
client = AsyncCloudflare()
async def main() -> None:
all_accounts = []
# Iterate through items across all pages, issuing requests as needed.
@ -121,6 +120,7 @@ async def main() -> None:
all_accounts.append(account)
print(all_accounts)
asyncio.run(main())
```
@ -167,7 +167,7 @@ try:
)
except cloudflare.APIConnectionError as e:
print("The server could not be reached")
print(e.__cause__) # an underlying Exception, likely raised within httpx.
print(e.__cause__) # an underlying Exception, likely raised within httpx.
except cloudflare.RateLimitError as e:
print("A 429 status code was received; we should back off a bit.")
except cloudflare.APIStatusError as e:
@ -207,7 +207,7 @@ client = Cloudflare(
)
# Or, configure per-request:
client.with_options(max_retries = 5).zones.get(
client.with_options(max_retries=5).zones.get(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
```
@ -232,7 +232,7 @@ client = Cloudflare(
)
# Override per-request:
client.with_options(timeout = 5.0).zones.edit(
client.with_options(timeout=5.0).zones.edit(
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
)
```
@ -298,16 +298,14 @@ To stream the response body, use `.with_streaming_response` instead, which requi
```python
with client.zones.with_streaming_response.create(
account={
"id": "023e105f4ecef8ad9ca31a8372d0c353"
},
account={"id": "023e105f4ecef8ad9ca31a8372d0c353"},
name="example.com",
type="full",
) as response :
print(response.headers.get('X-My-Header'))
) as response:
print(response.headers.get("X-My-Header"))
for line in response.iter_lines():
print(line)
print(line)
```
The context manager is required so that the response will reliably be closed.
@ -361,7 +359,10 @@ from cloudflare import Cloudflare, DefaultHttpxClient
client = Cloudflare(
# Or use the `CLOUDFLARE_BASE_URL` env var
base_url="http://my.test.server.example.com:8083",
http_client=DefaultHttpxClient(proxies="http://my.test.proxy.example.com", transport=httpx.HTTPTransport(local_address="0.0.0.0")),
http_client=DefaultHttpxClient(
proxies="http://my.test.proxy.example.com",
transport=httpx.HTTPTransport(local_address="0.0.0.0"),
),
)
```

1431
api.md

File diff suppressed because it is too large Load diff

View file

@ -1,41 +1,41 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from . import types
from ._version import __version__, __title__
from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes
from ._utils import file_from_path
from ._client import (
Client,
Stream,
Timeout,
Transport,
RequestOptions,
Client,
AsyncClient,
Stream,
AsyncStream,
Cloudflare,
AsyncClient,
AsyncStream,
RequestOptions,
AsyncCloudflare,
)
from ._exceptions import (
CloudflareError,
APIError,
APIStatusError,
APITimeoutError,
APIConnectionError,
APIResponseValidationError,
BadRequestError,
AuthenticationError,
PermissionDeniedError,
NotFoundError,
ConflictError,
UnprocessableEntityError,
RateLimitError,
InternalServerError,
)
from ._types import NoneType, Transport, ProxiesTypes, NotGiven, NOT_GIVEN
from ._utils import file_from_path
from ._models import BaseModel
from ._version import __title__, __version__
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
from ._exceptions import (
APIError,
ConflictError,
NotFoundError,
APIStatusError,
RateLimitError,
APITimeoutError,
BadRequestError,
CloudflareError,
APIConnectionError,
AuthenticationError,
InternalServerError,
PermissionDeniedError,
UnprocessableEntityError,
APIResponseValidationError,
)
from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
from ._utils._logs import setup_logging as _setup_logging
from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
__all__ = [
"types",
@ -87,7 +87,7 @@ __locals = locals()
for __name in __all__:
if not __name.startswith("__"):
try:
setattr(__locals[__name], "__module__", "cloudflare")
__locals[__name].__module__ = "cloudflare"
except (TypeError, AttributeError):
# Some of our exported symbols are builtins which we can't set attributes for.
pass

View file

@ -87,7 +87,6 @@ from ._exceptions import (
APIConnectionError,
APIResponseValidationError,
)
from ._legacy_response import LegacyAPIResponse
log: logging.Logger = logging.getLogger(__name__)

View file

@ -2,67 +2,36 @@
from __future__ import annotations
import httpx
import os
from ._streaming import AsyncStream as AsyncStream, Stream as Stream
from typing_extensions import override, Self
from typing import Any
from ._exceptions import APIStatusError
from ._utils import get_async_library
from . import _exceptions
import os
import asyncio
import warnings
from typing import Optional, Union, Dict, Any, Mapping, overload, cast
from typing_extensions import Literal
from typing import Any, Union, Mapping
from typing_extensions import Self, override
import httpx
from ._version import __version__
from . import resources, _exceptions
from ._qs import Querystring
from ._utils import (
extract_files,
maybe_transform,
required_args,
deepcopy_minimal,
maybe_coerce_integer,
maybe_coerce_float,
maybe_coerce_boolean,
is_given,
)
from ._types import (
NOT_GIVEN,
Omit,
NotGiven,
Headers,
Timeout,
NotGiven,
Transport,
ProxiesTypes,
RequestOptions,
Headers,
NoneType,
Query,
Body,
NOT_GIVEN,
)
from ._utils import (
is_given,
get_async_library,
)
from ._version import __version__
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
from ._exceptions import APIStatusError
from ._base_client import (
DEFAULT_CONNECTION_LIMITS,
DEFAULT_TIMEOUT,
DEFAULT_MAX_RETRIES,
ResponseT,
SyncHttpxClientWrapper,
AsyncHttpxClientWrapper,
SyncAPIClient,
AsyncAPIClient,
make_request_options,
)
from . import resources
__all__ = [
"Timeout",

View file

@ -2,19 +2,14 @@
from __future__ import annotations
import httpx
from typing import List, Any
from .types.shared.error_data import ErrorData
from ._utils import is_dict
from ._models import construct_type
from typing import Any, List, cast
from typing_extensions import Literal
from typing import cast
import httpx
from ._utils import is_dict
from ._models import construct_type
from .types.shared.error_data import ErrorData
__all__ = [
"BadRequestError",

View file

@ -3,9 +3,10 @@
from __future__ import annotations
import time
import anyio
from typing import TYPE_CHECKING
import anyio
if TYPE_CHECKING:
from ._client import Cloudflare, AsyncCloudflare

View file

@ -18,7 +18,7 @@ from typing import (
cast,
overload,
)
from typing_extensions import Awaitable, ParamSpec, TypeGuard, override, get_origin
from typing_extensions import Awaitable, ParamSpec, override, get_origin
import anyio
import httpx
@ -26,7 +26,6 @@ import pydantic
from ._types import NoneType
from ._utils import is_given, extract_type_arg, is_annotated_type, extract_type_var_from_base
from ._streaming import extract_stream_chunk_type
from ._models import BaseModel, is_basemodel
from ._constants import RAW_RESPONSE_HEADER, OVERRIDE_CAST_TO_HEADER
from ._streaming import Stream, AsyncStream, is_stream_class_type, extract_stream_chunk_type

View file

@ -9,9 +9,7 @@ from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, r
import httpx
from ._utils import is_mapping, is_dict, extract_type_var_from_base
from ._exceptions import APIError
from ._response import APIResponse, AsyncAPIResponse
from ._utils import extract_type_var_from_base
if TYPE_CHECKING:
from ._client import Cloudflare, AsyncCloudflare

View file

@ -1,7 +1,6 @@
from __future__ import annotations
from os import PathLike
from abc import ABC, abstractmethod
from typing import (
IO,
TYPE_CHECKING,
@ -14,10 +13,8 @@ from typing import (
Mapping,
TypeVar,
Callable,
Iterator,
Optional,
Sequence,
AsyncIterator,
)
from typing_extensions import Literal, Protocol, TypeAlias, TypedDict, override, runtime_checkable
@ -28,7 +25,6 @@ from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTranspo
if TYPE_CHECKING:
from ._models import BaseModel
from ._response import APIResponse, AsyncAPIResponse
from ._legacy_response import HttpxBinaryResponseContent
Transport = BaseTransport
AsyncTransport = AsyncBaseTransport

View file

@ -1,6 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Generic, TypeVar
from ._models import GenericModel
__all__ = ["ResultWrapper"]

View file

@ -1,21 +1,10 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from ._models import GenericModel, BaseModel
from typing import Generic, Optional, List
from typing import List, Generic, TypeVar, Optional, cast
from typing_extensions import override
import re
from typing import Optional, TypeVar, List, Generic, Dict, Any, Type, Mapping, cast
from typing_extensions import TypedDict, Literal, Annotated, Protocol, runtime_checkable
from httpx import URL, Response
from pydantic import Field as FieldInfo
from ._models import BaseModel
from ._utils import PropertyInfo, is_mapping
from ._base_client import BasePage, BaseSyncPage, BaseAsyncPage, PageInfo
from ._models import BaseModel, GenericModel
from ._base_client import BasePage, PageInfo, BaseSyncPage, BaseAsyncPage
__all__ = [
"V4PagePaginationResult",

File diff suppressed because it is too large Load diff

View file

@ -1,21 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .members import MembersResource, AsyncMembersResource
from .members import (
MembersResourceWithRawResponse,
AsyncMembersResourceWithRawResponse,
MembersResourceWithStreamingResponse,
AsyncMembersResourceWithStreamingResponse,
)
from .roles import RolesResource, AsyncRolesResource
from .roles import (
RolesResource,
AsyncRolesResource,
RolesResourceWithRawResponse,
AsyncRolesResourceWithRawResponse,
RolesResourceWithStreamingResponse,
AsyncRolesResourceWithStreamingResponse,
)
from .accounts import AccountsResource, AsyncAccountsResource
from .members import (
MembersResource,
AsyncMembersResource,
MembersResourceWithRawResponse,
AsyncMembersResourceWithRawResponse,
MembersResourceWithStreamingResponse,
AsyncMembersResourceWithStreamingResponse,
)
from .accounts import (
AccountsResource,
AsyncAccountsResource,
AccountsResourceWithRawResponse,
AsyncAccountsResourceWithRawResponse,
AccountsResourceWithStreamingResponse,

View file

@ -2,57 +2,11 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from .members import MembersResource, AsyncMembersResource
from ..._compat import cached_property
from .roles import RolesResource, AsyncRolesResource
from ...types.accounts.account import Account
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options, AsyncPaginator
from typing_extensions import Literal
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...types.accounts.account_delete_response import AccountDeleteResponse
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...types.accounts import account_create_params, account_update_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.accounts import account_create_params
from ...types.accounts import account_update_params
from ...types.accounts import account_list_params
from .members import (
MembersResource,
AsyncMembersResource,
MembersResourceWithRawResponse,
AsyncMembersResourceWithRawResponse,
MembersResourceWithStreamingResponse,
AsyncMembersResourceWithStreamingResponse,
)
from .roles import (
RolesResource,
AsyncRolesResource,
@ -61,14 +15,33 @@ from .roles import (
RolesResourceWithStreamingResponse,
AsyncRolesResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from .members import (
MembersResource,
AsyncMembersResource,
MembersResourceWithRawResponse,
AsyncMembersResourceWithRawResponse,
MembersResourceWithStreamingResponse,
AsyncMembersResourceWithStreamingResponse,
)
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import AsyncPaginator, make_request_options
from ...types.accounts import account_list_params, account_create_params, account_update_params
from ...types.accounts.account import Account
from ...types.accounts.account_delete_response import AccountDeleteResponse
__all__ = ["AccountsResource", "AsyncAccountsResource"]

View file

@ -2,59 +2,34 @@
from __future__ import annotations
from typing import List, Type, Iterable, Optional, cast, overload
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from typing import List, Optional, Iterable, Type
from typing_extensions import Literal
from ...types.accounts.member_create_response import MemberCreateResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from ..._base_client import make_request_options, AsyncPaginator
from ...types.accounts.member_update_response import MemberUpdateResponse
from ...types.accounts.member_list_response import MemberListResponse
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...types.accounts.member_delete_response import MemberDeleteResponse
from ...types.accounts.member_get_response import MemberGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...types.accounts import member_create_params, member_update_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.accounts import member_create_params
from ...types.accounts import member_update_params
from ...types.accounts import member_list_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
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
from ...types.accounts.member_create_response import MemberCreateResponse
from ...types.accounts.member_delete_response import MemberDeleteResponse
from ...types.accounts.member_update_response import MemberUpdateResponse
__all__ = ["MembersResource", "AsyncMembersResource"]

View file

@ -2,36 +2,23 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._compat import cached_property
from ...types.shared.role import Role
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import make_request_options, AsyncPaginator
from ..._wrappers import ResultWrapper
from typing import Optional, Type
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import AsyncPaginator, make_request_options
from ...types.shared.role import Role
__all__ = ["RolesResource", "AsyncRolesResource"]

View file

@ -1,19 +1,21 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .total_tls import TotalTLSResource, AsyncTotalTLSResource
from .total_tls import (
TotalTLSResourceWithRawResponse,
AsyncTotalTLSResourceWithRawResponse,
TotalTLSResourceWithStreamingResponse,
AsyncTotalTLSResourceWithStreamingResponse,
)
from .acm import ACMResource, AsyncACMResource
from .acm import (
ACMResource,
AsyncACMResource,
ACMResourceWithRawResponse,
AsyncACMResourceWithRawResponse,
ACMResourceWithStreamingResponse,
AsyncACMResourceWithStreamingResponse,
)
from .total_tls import (
TotalTLSResource,
AsyncTotalTLSResource,
TotalTLSResourceWithRawResponse,
AsyncTotalTLSResourceWithRawResponse,
TotalTLSResourceWithStreamingResponse,
AsyncTotalTLSResourceWithStreamingResponse,
)
__all__ = [
"TotalTLSResource",

View file

@ -2,17 +2,7 @@
from __future__ import annotations
from .total_tls import TotalTLSResource, AsyncTotalTLSResource
from ..._compat import cached_property
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .total_tls import (
TotalTLSResource,
AsyncTotalTLSResource,
@ -21,6 +11,7 @@ from .total_tls import (
TotalTLSResourceWithStreamingResponse,
AsyncTotalTLSResourceWithStreamingResponse,
)
from ..._resource import SyncAPIResource, AsyncAPIResource
__all__ = ["ACMResource", "AsyncACMResource"]

View file

@ -2,44 +2,29 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.acm.total_tls_create_response import TotalTLSCreateResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options
from ...types.acm.certificate_authority import CertificateAuthority
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.acm import total_tls_create_params
from ...types.acm import CertificateAuthority
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ...types.acm import CertificateAuthority, total_tls_create_params
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
__all__ = ["TotalTLSResource", "AsyncTotalTLSResource"]

View file

@ -1,47 +1,53 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource
from .regional_hostnames import (
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,
AsyncRegionalHostnamesResourceWithStreamingResponse,
)
from .services import ServicesResource, AsyncServicesResource
from .services import (
ServicesResourceWithRawResponse,
AsyncServicesResourceWithRawResponse,
ServicesResourceWithStreamingResponse,
AsyncServicesResourceWithStreamingResponse,
)
from .address_maps import AddressMapsResource, AsyncAddressMapsResource
from .address_maps import (
AddressMapsResourceWithRawResponse,
AsyncAddressMapsResourceWithRawResponse,
AddressMapsResourceWithStreamingResponse,
AsyncAddressMapsResourceWithStreamingResponse,
)
from .loa_documents import LOADocumentsResource, AsyncLOADocumentsResource
from .loa_documents import (
LOADocumentsResourceWithRawResponse,
AsyncLOADocumentsResourceWithRawResponse,
LOADocumentsResourceWithStreamingResponse,
AsyncLOADocumentsResourceWithStreamingResponse,
)
from .prefixes import PrefixesResource, AsyncPrefixesResource
from .prefixes import (
PrefixesResource,
AsyncPrefixesResource,
PrefixesResourceWithRawResponse,
AsyncPrefixesResourceWithRawResponse,
PrefixesResourceWithStreamingResponse,
AsyncPrefixesResourceWithStreamingResponse,
)
from .addressing import AddressingResource, AsyncAddressingResource
from .services import (
ServicesResource,
AsyncServicesResource,
ServicesResourceWithRawResponse,
AsyncServicesResourceWithRawResponse,
ServicesResourceWithStreamingResponse,
AsyncServicesResourceWithStreamingResponse,
)
from .addressing import (
AddressingResource,
AsyncAddressingResource,
AddressingResourceWithRawResponse,
AsyncAddressingResourceWithRawResponse,
AddressingResourceWithStreamingResponse,
AsyncAddressingResourceWithStreamingResponse,
)
from .address_maps import (
AddressMapsResource,
AsyncAddressMapsResource,
AddressMapsResourceWithRawResponse,
AsyncAddressMapsResourceWithRawResponse,
AddressMapsResourceWithStreamingResponse,
AsyncAddressMapsResourceWithStreamingResponse,
)
from .loa_documents import (
LOADocumentsResource,
AsyncLOADocumentsResource,
LOADocumentsResourceWithRawResponse,
AsyncLOADocumentsResourceWithRawResponse,
LOADocumentsResourceWithStreamingResponse,
AsyncLOADocumentsResourceWithStreamingResponse,
)
from .regional_hostnames import (
RegionalHostnamesResource,
AsyncRegionalHostnamesResource,
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,
AsyncRegionalHostnamesResourceWithStreamingResponse,
)
__all__ = [
"RegionalHostnamesResource",

View file

@ -1,28 +1,32 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .accounts import AccountsResource, AsyncAccountsResource
from .accounts import (
AccountsResourceWithRawResponse,
AsyncAccountsResourceWithRawResponse,
AccountsResourceWithStreamingResponse,
AsyncAccountsResourceWithStreamingResponse,
)
from .ips import IPsResource, AsyncIPsResource
from .ips import (
IPsResource,
AsyncIPsResource,
IPsResourceWithRawResponse,
AsyncIPsResourceWithRawResponse,
IPsResourceWithStreamingResponse,
AsyncIPsResourceWithStreamingResponse,
)
from .zones import ZonesResource, AsyncZonesResource
from .zones import (
ZonesResource,
AsyncZonesResource,
ZonesResourceWithRawResponse,
AsyncZonesResourceWithRawResponse,
ZonesResourceWithStreamingResponse,
AsyncZonesResourceWithStreamingResponse,
)
from .address_maps import AddressMapsResource, AsyncAddressMapsResource
from .accounts import (
AccountsResource,
AsyncAccountsResource,
AccountsResourceWithRawResponse,
AsyncAccountsResourceWithRawResponse,
AccountsResourceWithStreamingResponse,
AsyncAccountsResourceWithStreamingResponse,
)
from .address_maps import (
AddressMapsResource,
AsyncAddressMapsResource,
AddressMapsResourceWithRawResponse,
AsyncAddressMapsResourceWithRawResponse,
AddressMapsResourceWithStreamingResponse,

View file

@ -4,31 +4,23 @@ from __future__ import annotations
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options
from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
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
__all__ = ["AccountsResource", "AsyncAccountsResource"]

View file

@ -2,60 +2,10 @@
from __future__ import annotations
from typing import List, Type, Iterable, Optional, cast
import httpx
from .accounts import AccountsResource, AsyncAccountsResource
from ...._compat import cached_property
from .ips import IPsResource, AsyncIPsResource
from .zones import ZonesResource, AsyncZonesResource
from ....types.addressing.address_map_create_response import AddressMapCreateResponse
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type, List, Iterable
from ...._base_client import make_request_options, AsyncPaginator
from ....types.addressing.address_map import AddressMap
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.addressing.address_map_delete_response import AddressMapDeleteResponse
from ....types.addressing.address_map_get_response import AddressMapGetResponse
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
from ....types.addressing import address_map_create_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.addressing import address_map_create_params
from ....types.addressing import address_map_edit_params
from .accounts import (
AccountsResource,
AsyncAccountsResource,
AccountsResourceWithRawResponse,
AsyncAccountsResourceWithRawResponse,
AccountsResourceWithStreamingResponse,
AsyncAccountsResourceWithStreamingResponse,
)
from .ips import (
IPsResource,
AsyncIPsResource,
@ -72,12 +22,35 @@ from .zones import (
ZonesResourceWithStreamingResponse,
AsyncZonesResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from .accounts import (
AccountsResource,
AsyncAccountsResource,
AccountsResourceWithRawResponse,
AsyncAccountsResourceWithRawResponse,
AccountsResourceWithStreamingResponse,
AsyncAccountsResourceWithStreamingResponse,
)
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
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
from ....types.addressing.address_map_create_response import AddressMapCreateResponse
from ....types.addressing.address_map_delete_response import AddressMapDeleteResponse
__all__ = ["AddressMapsResource", "AsyncAddressMapsResource"]

View file

@ -4,31 +4,23 @@ from __future__ import annotations
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options
from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
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
__all__ = ["IPsResource", "AsyncIPsResource"]

View file

@ -4,31 +4,23 @@ from __future__ import annotations
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options
from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
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
__all__ = ["ZonesResource", "AsyncZonesResource"]

View file

@ -2,32 +2,13 @@
from __future__ import annotations
from .regional_hostnames.regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource
from ..._compat import cached_property
from .services import ServicesResource, AsyncServicesResource
from .address_maps.address_maps import AddressMapsResource, AsyncAddressMapsResource
from .loa_documents.loa_documents import LOADocumentsResource, AsyncLOADocumentsResource
from .prefixes.prefixes import PrefixesResource, AsyncPrefixesResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .regional_hostnames import (
RegionalHostnamesResource,
AsyncRegionalHostnamesResource,
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,
AsyncRegionalHostnamesResourceWithStreamingResponse,
from .prefixes import (
PrefixesResource,
AsyncPrefixesResource,
PrefixesResourceWithRawResponse,
AsyncPrefixesResourceWithRawResponse,
PrefixesResourceWithStreamingResponse,
AsyncPrefixesResourceWithStreamingResponse,
)
from .services import (
ServicesResource,
@ -37,6 +18,8 @@ from .services import (
ServicesResourceWithStreamingResponse,
AsyncServicesResourceWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .address_maps import (
AddressMapsResource,
AsyncAddressMapsResource,
@ -53,14 +36,18 @@ from .loa_documents import (
LOADocumentsResourceWithStreamingResponse,
AsyncLOADocumentsResourceWithStreamingResponse,
)
from .prefixes import (
PrefixesResource,
AsyncPrefixesResource,
PrefixesResourceWithRawResponse,
AsyncPrefixesResourceWithRawResponse,
PrefixesResourceWithStreamingResponse,
AsyncPrefixesResourceWithStreamingResponse,
from .prefixes.prefixes import PrefixesResource, AsyncPrefixesResource
from .regional_hostnames import (
RegionalHostnamesResource,
AsyncRegionalHostnamesResource,
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,
AsyncRegionalHostnamesResourceWithStreamingResponse,
)
from .address_maps.address_maps import AddressMapsResource, AsyncAddressMapsResource
from .loa_documents.loa_documents import LOADocumentsResource, AsyncLOADocumentsResource
from .regional_hostnames.regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource
__all__ = ["AddressingResource", "AsyncAddressingResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .downloads import DownloadsResource, AsyncDownloadsResource
from .downloads import (
DownloadsResource,
AsyncDownloadsResource,
DownloadsResourceWithRawResponse,
AsyncDownloadsResourceWithRawResponse,
DownloadsResourceWithStreamingResponse,
AsyncDownloadsResourceWithStreamingResponse,
)
from .loa_documents import LOADocumentsResource, AsyncLOADocumentsResource
from .loa_documents import (
LOADocumentsResource,
AsyncLOADocumentsResource,
LOADocumentsResourceWithRawResponse,
AsyncLOADocumentsResourceWithRawResponse,
LOADocumentsResourceWithStreamingResponse,

View file

@ -2,33 +2,25 @@
from __future__ import annotations
from typing import Optional
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
BinaryAPIResponse,
AsyncBinaryAPIResponse,
to_custom_raw_response_wrapper,
async_to_custom_raw_response_wrapper,
to_custom_streamed_response_wrapper,
StreamedBinaryAPIResponse,
async_to_custom_streamed_response_wrapper,
AsyncStreamedBinaryAPIResponse,
to_custom_raw_response_wrapper,
to_custom_streamed_response_wrapper,
async_to_custom_raw_response_wrapper,
async_to_custom_streamed_response_wrapper,
)
from ...._base_client import make_request_options
from typing import Optional
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
__all__ = ["DownloadsResource", "AsyncDownloadsResource"]

View file

@ -2,37 +2,15 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from .downloads import DownloadsResource, AsyncDownloadsResource
from ...._compat import cached_property
from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ...._base_client import make_request_options
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.addressing import loa_document_create_params
from .downloads import (
DownloadsResource,
AsyncDownloadsResource,
@ -41,8 +19,18 @@ from .downloads import (
DownloadsResourceWithStreamingResponse,
AsyncDownloadsResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import make_request_options
from ....types.addressing import loa_document_create_params
from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse
__all__ = ["LOADocumentsResource", "AsyncLOADocumentsResource"]

View file

@ -1,26 +1,29 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .bgp import BGPResource, AsyncBGPResource
from .bgp import (
BGPResource,
AsyncBGPResource,
BGPResourceWithRawResponse,
AsyncBGPResourceWithRawResponse,
BGPResourceWithStreamingResponse,
AsyncBGPResourceWithStreamingResponse,
)
from .delegations import DelegationsResource, AsyncDelegationsResource
from .delegations import (
DelegationsResourceWithRawResponse,
AsyncDelegationsResourceWithRawResponse,
DelegationsResourceWithStreamingResponse,
AsyncDelegationsResourceWithStreamingResponse,
)
from .prefixes import PrefixesResource, AsyncPrefixesResource
from .prefixes import (
PrefixesResource,
AsyncPrefixesResource,
PrefixesResourceWithRawResponse,
AsyncPrefixesResourceWithRawResponse,
PrefixesResourceWithStreamingResponse,
AsyncPrefixesResourceWithStreamingResponse,
)
from .delegations import (
DelegationsResource,
AsyncDelegationsResource,
DelegationsResourceWithRawResponse,
AsyncDelegationsResourceWithRawResponse,
DelegationsResourceWithStreamingResponse,
AsyncDelegationsResourceWithStreamingResponse,
)
__all__ = [
"BGPResource",

View file

@ -1,33 +1,37 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .bindings import BindingsResource, AsyncBindingsResource
from .bgp import (
BGPResource,
AsyncBGPResource,
BGPResourceWithRawResponse,
AsyncBGPResourceWithRawResponse,
BGPResourceWithStreamingResponse,
AsyncBGPResourceWithStreamingResponse,
)
from .bindings import (
BindingsResource,
AsyncBindingsResource,
BindingsResourceWithRawResponse,
AsyncBindingsResourceWithRawResponse,
BindingsResourceWithStreamingResponse,
AsyncBindingsResourceWithStreamingResponse,
)
from .prefixes import PrefixesResource, AsyncPrefixesResource
from .prefixes import (
PrefixesResource,
AsyncPrefixesResource,
PrefixesResourceWithRawResponse,
AsyncPrefixesResourceWithRawResponse,
PrefixesResourceWithStreamingResponse,
AsyncPrefixesResourceWithStreamingResponse,
)
from .statuses import StatusesResource, AsyncStatusesResource
from .statuses import (
StatusesResource,
AsyncStatusesResource,
StatusesResourceWithRawResponse,
AsyncStatusesResourceWithRawResponse,
StatusesResourceWithStreamingResponse,
AsyncStatusesResourceWithStreamingResponse,
)
from .bgp import BGPResource, AsyncBGPResource
from .bgp import (
BGPResourceWithRawResponse,
AsyncBGPResourceWithRawResponse,
BGPResourceWithStreamingResponse,
AsyncBGPResourceWithStreamingResponse,
)
__all__ = [
"BindingsResource",

View file

@ -2,21 +2,6 @@
from __future__ import annotations
from .bindings import BindingsResource, AsyncBindingsResource
from ....._compat import cached_property
from .prefixes import PrefixesResource, AsyncPrefixesResource
from .statuses import StatusesResource, AsyncStatusesResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ....._resource import SyncAPIResource, AsyncAPIResource
from .....types import shared_params
from .bindings import (
BindingsResource,
AsyncBindingsResource,
@ -41,6 +26,8 @@ from .statuses import (
StatusesResourceWithStreamingResponse,
AsyncStatusesResourceWithStreamingResponse,
)
from ....._compat import cached_property
from ....._resource import SyncAPIResource, AsyncAPIResource
__all__ = ["BGPResource", "AsyncBGPResource"]

View file

@ -2,43 +2,29 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ....._utils import (
maybe_transform,
async_maybe_transform,
)
from ....._compat import cached_property
from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding
from ....._wrappers import ResultWrapper
from ....._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ....._base_client import make_request_options, AsyncPaginator
from .....pagination import SyncSinglePage, AsyncSinglePage
from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse
from ....._resource import SyncAPIResource, AsyncAPIResource
from ....._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ....._resource import SyncAPIResource, AsyncAPIResource
from .....types import shared_params
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
from ....._base_client import AsyncPaginator, make_request_options
from .....types.addressing.prefixes.bgp import binding_create_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding
from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse
__all__ = ["BindingsResource", "AsyncBindingsResource"]

View file

@ -2,43 +2,28 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ....._utils import (
maybe_transform,
async_maybe_transform,
)
from ....._compat import cached_property
from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix
from .....pagination import SyncSinglePage, AsyncSinglePage
from ....._base_client import make_request_options, AsyncPaginator
from ....._wrappers import ResultWrapper
from ....._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ....._resource import SyncAPIResource, AsyncAPIResource
from ....._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ....._wrappers import ResultWrapper
from .....pagination import SyncSinglePage, AsyncSinglePage
from ....._base_client import AsyncPaginator, make_request_options
from .....types.addressing.prefixes.bgp import prefix_edit_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ....._resource import SyncAPIResource, AsyncAPIResource
from .....types import shared_params
from .....types.addressing.prefixes.bgp import prefix_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix
__all__ = ["PrefixesResource", "AsyncPrefixesResource"]

View file

@ -2,41 +2,28 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ....._utils import (
maybe_transform,
async_maybe_transform,
)
from ....._compat import cached_property
from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse
from ....._wrappers import ResultWrapper
from ....._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ....._base_client import make_request_options
from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse
from ....._resource import SyncAPIResource, AsyncAPIResource
from ....._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ....._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ....._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ....._resource import SyncAPIResource, AsyncAPIResource
from .....types import shared_params
from ....._wrappers import ResultWrapper
from ....._base_client import make_request_options
from .....types.addressing.prefixes.bgp import status_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse
from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse
__all__ = ["StatusesResource", "AsyncStatusesResource"]

View file

@ -2,43 +2,29 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.addressing.prefixes.delegations import Delegations
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ...._base_client import make_request_options, AsyncPaginator
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing.prefixes import delegation_create_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ....types.addressing.prefixes.delegations import Delegations
from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse
__all__ = ["DelegationsResource", "AsyncDelegationsResource"]

View file

@ -2,44 +2,10 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from .bgp.bgp import BGPResource, AsyncBGPResource
from ...._compat import cached_property
from .delegations import DelegationsResource, AsyncDelegationsResource
from ....types.addressing.prefix import Prefix
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ...._base_client import make_request_options, AsyncPaginator
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.addressing.prefix_delete_response import PrefixDeleteResponse
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.addressing import prefix_create_params
from ....types.addressing import prefix_edit_params
from .bgp import (
BGPResource,
AsyncBGPResource,
@ -48,6 +14,13 @@ from .bgp import (
BGPResourceWithStreamingResponse,
AsyncBGPResourceWithStreamingResponse,
)
from .bgp.bgp import BGPResource, AsyncBGPResource
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from .delegations import (
DelegationsResource,
AsyncDelegationsResource,
@ -56,12 +29,19 @@ from .delegations import (
DelegationsResourceWithStreamingResponse,
AsyncDelegationsResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
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
__all__ = ["PrefixesResource", "AsyncPrefixesResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .regions import RegionsResource, AsyncRegionsResource
from .regions import (
RegionsResource,
AsyncRegionsResource,
RegionsResourceWithRawResponse,
AsyncRegionsResourceWithRawResponse,
RegionsResourceWithStreamingResponse,
AsyncRegionsResourceWithStreamingResponse,
)
from .regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource
from .regional_hostnames import (
RegionalHostnamesResource,
AsyncRegionalHostnamesResource,
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,

View file

@ -2,48 +2,10 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from .regions import RegionsResource, AsyncRegionsResource
from ...._compat import cached_property
from ....types.addressing.regional_hostname_create_response import RegionalHostnameCreateResponse
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ...._base_client import make_request_options, AsyncPaginator
from ....types.addressing.regional_hostname_list_response import RegionalHostnameListResponse
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.addressing.regional_hostname_delete_response import RegionalHostnameDeleteResponse
from ....types.addressing.regional_hostname_edit_response import RegionalHostnameEditResponse
from ....types.addressing.regional_hostname_get_response import RegionalHostnameGetResponse
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.addressing import regional_hostname_create_params
from ....types.addressing import regional_hostname_edit_params
from .regions import (
RegionsResource,
AsyncRegionsResource,
@ -52,12 +14,28 @@ from .regions import (
RegionsResourceWithStreamingResponse,
AsyncRegionsResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
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
from ....types.addressing.regional_hostname_list_response import RegionalHostnameListResponse
from ....types.addressing.regional_hostname_create_response import RegionalHostnameCreateResponse
from ....types.addressing.regional_hostname_delete_response import RegionalHostnameDeleteResponse
__all__ = ["RegionalHostnamesResource", "AsyncRegionalHostnamesResource"]

View file

@ -4,28 +4,18 @@ from __future__ import annotations
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import make_request_options, AsyncPaginator
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import AsyncPaginator, make_request_options
from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse
__all__ = ["RegionsResource", "AsyncRegionsResource"]

View file

@ -4,28 +4,18 @@ from __future__ import annotations
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._compat import cached_property
from ...types.addressing.service_list_response import ServiceListResponse
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import make_request_options, AsyncPaginator
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...pagination import SyncSinglePage, AsyncSinglePage
from ..._base_client import AsyncPaginator, make_request_options
from ...types.addressing.service_list_response import ServiceListResponse
__all__ = ["ServicesResource", "AsyncServicesResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .logs import LogsResource, AsyncLogsResource
from .logs import (
LogsResource,
AsyncLogsResource,
LogsResourceWithRawResponse,
AsyncLogsResourceWithRawResponse,
LogsResourceWithStreamingResponse,
AsyncLogsResourceWithStreamingResponse,
)
from .ai_gateway import AIGatewayResource, AsyncAIGatewayResource
from .ai_gateway import (
AIGatewayResource,
AsyncAIGatewayResource,
AIGatewayResourceWithRawResponse,
AsyncAIGatewayResourceWithRawResponse,
AIGatewayResourceWithStreamingResponse,

View file

@ -2,51 +2,11 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from .logs import LogsResource, AsyncLogsResource
from ..._compat import cached_property
from ...types.ai_gateway.ai_gateway_create_response import AIGatewayCreateResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from ..._base_client import make_request_options, AsyncPaginator
from typing import Type, Optional
from typing_extensions import Literal
from ...types.ai_gateway.ai_gateway_update_response import AIGatewayUpdateResponse
from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...types.ai_gateway.ai_gateway_delete_response import AIGatewayDeleteResponse
from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.ai_gateway import ai_gateway_create_params
from ...types.ai_gateway import ai_gateway_update_params
from ...types.ai_gateway import ai_gateway_list_params
from .logs import (
LogsResource,
AsyncLogsResource,
@ -55,14 +15,28 @@ from .logs import (
LogsResourceWithStreamingResponse,
AsyncLogsResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
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
from ...types.ai_gateway.ai_gateway_create_response import AIGatewayCreateResponse
from ...types.ai_gateway.ai_gateway_delete_response import AIGatewayDeleteResponse
from ...types.ai_gateway.ai_gateway_update_response import AIGatewayUpdateResponse
__all__ = ["AIGatewayResource", "AsyncAIGatewayResource"]

View file

@ -2,39 +2,26 @@
from __future__ import annotations
from typing import Union
from datetime import datetime
from typing_extensions import Literal
import httpx
from ..._compat import cached_property
from ...types.ai_gateway.log_list_response import LogListResponse
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import maybe_transform
from ..._base_client import make_request_options, AsyncPaginator
from typing_extensions import Literal
from typing import Union
from datetime import datetime
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
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
__all__ = ["LogsResource", "AsyncLogsResource"]

View file

@ -1,39 +1,44 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .available_alerts import AvailableAlertsResource, AsyncAvailableAlertsResource
from .available_alerts import (
AvailableAlertsResourceWithRawResponse,
AsyncAvailableAlertsResourceWithRawResponse,
AvailableAlertsResourceWithStreamingResponse,
AsyncAvailableAlertsResourceWithStreamingResponse,
)
from .destinations import DestinationsResource, AsyncDestinationsResource
from .destinations import (
DestinationsResourceWithRawResponse,
AsyncDestinationsResourceWithRawResponse,
DestinationsResourceWithStreamingResponse,
AsyncDestinationsResourceWithStreamingResponse,
)
from .history import HistoryResource, AsyncHistoryResource
from .history import (
HistoryResource,
AsyncHistoryResource,
HistoryResourceWithRawResponse,
AsyncHistoryResourceWithRawResponse,
HistoryResourceWithStreamingResponse,
AsyncHistoryResourceWithStreamingResponse,
)
from .policies import PoliciesResource, AsyncPoliciesResource
from .alerting import (
AlertingResource,
AsyncAlertingResource,
AlertingResourceWithRawResponse,
AsyncAlertingResourceWithRawResponse,
AlertingResourceWithStreamingResponse,
AsyncAlertingResourceWithStreamingResponse,
)
from .policies import (
PoliciesResource,
AsyncPoliciesResource,
PoliciesResourceWithRawResponse,
AsyncPoliciesResourceWithRawResponse,
PoliciesResourceWithStreamingResponse,
AsyncPoliciesResourceWithStreamingResponse,
)
from .alerting import AlertingResource, AsyncAlertingResource
from .alerting import (
AlertingResourceWithRawResponse,
AsyncAlertingResourceWithRawResponse,
AlertingResourceWithStreamingResponse,
AsyncAlertingResourceWithStreamingResponse,
from .destinations import (
DestinationsResource,
AsyncDestinationsResource,
DestinationsResourceWithRawResponse,
AsyncDestinationsResourceWithRawResponse,
DestinationsResourceWithStreamingResponse,
AsyncDestinationsResourceWithStreamingResponse,
)
from .available_alerts import (
AvailableAlertsResource,
AsyncAvailableAlertsResource,
AvailableAlertsResourceWithRawResponse,
AsyncAvailableAlertsResourceWithRawResponse,
AvailableAlertsResourceWithStreamingResponse,
AsyncAvailableAlertsResourceWithStreamingResponse,
)
__all__ = [

View file

@ -2,39 +2,6 @@
from __future__ import annotations
from .available_alerts import AvailableAlertsResource, AsyncAvailableAlertsResource
from ..._compat import cached_property
from .destinations.destinations import DestinationsResource, AsyncDestinationsResource
from .history import HistoryResource, AsyncHistoryResource
from .policies import PoliciesResource, AsyncPoliciesResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .available_alerts import (
AvailableAlertsResource,
AsyncAvailableAlertsResource,
AvailableAlertsResourceWithRawResponse,
AsyncAvailableAlertsResourceWithRawResponse,
AvailableAlertsResourceWithStreamingResponse,
AsyncAvailableAlertsResourceWithStreamingResponse,
)
from .destinations import (
DestinationsResource,
AsyncDestinationsResource,
DestinationsResourceWithRawResponse,
AsyncDestinationsResourceWithRawResponse,
DestinationsResourceWithStreamingResponse,
AsyncDestinationsResourceWithStreamingResponse,
)
from .history import (
HistoryResource,
AsyncHistoryResource,
@ -51,6 +18,25 @@ from .policies import (
PoliciesResourceWithStreamingResponse,
AsyncPoliciesResourceWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .destinations import (
DestinationsResource,
AsyncDestinationsResource,
DestinationsResourceWithRawResponse,
AsyncDestinationsResourceWithRawResponse,
DestinationsResourceWithStreamingResponse,
AsyncDestinationsResourceWithStreamingResponse,
)
from .available_alerts import (
AvailableAlertsResource,
AsyncAvailableAlertsResource,
AvailableAlertsResourceWithRawResponse,
AsyncAvailableAlertsResourceWithRawResponse,
AvailableAlertsResourceWithStreamingResponse,
AsyncAvailableAlertsResourceWithStreamingResponse,
)
from .destinations.destinations import DestinationsResource, AsyncDestinationsResource
__all__ = ["AlertingResource", "AsyncAlertingResource"]

View file

@ -2,34 +2,22 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._compat import cached_property
from ...types.alerting.available_alert_list_response import AvailableAlertListResponse
from ..._wrappers import ResultWrapper
from typing import Optional, Type
from ..._base_client import make_request_options
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ..._base_client import make_request_options
from ...types.alerting.available_alert_list_response import AvailableAlertListResponse
__all__ = ["AvailableAlertsResource", "AsyncAvailableAlertsResource"]

View file

@ -1,28 +1,32 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .eligible import EligibleResource, AsyncEligibleResource
from .eligible import (
EligibleResource,
AsyncEligibleResource,
EligibleResourceWithRawResponse,
AsyncEligibleResourceWithRawResponse,
EligibleResourceWithStreamingResponse,
AsyncEligibleResourceWithStreamingResponse,
)
from .pagerduty import PagerdutyResource, AsyncPagerdutyResource
from .pagerduty import (
PagerdutyResourceWithRawResponse,
AsyncPagerdutyResourceWithRawResponse,
PagerdutyResourceWithStreamingResponse,
AsyncPagerdutyResourceWithStreamingResponse,
)
from .webhooks import WebhooksResource, AsyncWebhooksResource
from .webhooks import (
WebhooksResource,
AsyncWebhooksResource,
WebhooksResourceWithRawResponse,
AsyncWebhooksResourceWithRawResponse,
WebhooksResourceWithStreamingResponse,
AsyncWebhooksResourceWithStreamingResponse,
)
from .destinations import DestinationsResource, AsyncDestinationsResource
from .pagerduty import (
PagerdutyResource,
AsyncPagerdutyResource,
PagerdutyResourceWithRawResponse,
AsyncPagerdutyResourceWithRawResponse,
PagerdutyResourceWithStreamingResponse,
AsyncPagerdutyResourceWithStreamingResponse,
)
from .destinations import (
DestinationsResource,
AsyncDestinationsResource,
DestinationsResourceWithRawResponse,
AsyncDestinationsResourceWithRawResponse,
DestinationsResourceWithStreamingResponse,

View file

@ -2,21 +2,6 @@
from __future__ import annotations
from .eligible import EligibleResource, AsyncEligibleResource
from ...._compat import cached_property
from .pagerduty import PagerdutyResource, AsyncPagerdutyResource
from .webhooks import WebhooksResource, AsyncWebhooksResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from .eligible import (
EligibleResource,
AsyncEligibleResource,
@ -25,14 +10,6 @@ from .eligible import (
EligibleResourceWithStreamingResponse,
AsyncEligibleResourceWithStreamingResponse,
)
from .pagerduty import (
PagerdutyResource,
AsyncPagerdutyResource,
PagerdutyResourceWithRawResponse,
AsyncPagerdutyResourceWithRawResponse,
PagerdutyResourceWithStreamingResponse,
AsyncPagerdutyResourceWithStreamingResponse,
)
from .webhooks import (
WebhooksResource,
AsyncWebhooksResource,
@ -41,6 +18,16 @@ from .webhooks import (
WebhooksResourceWithStreamingResponse,
AsyncWebhooksResourceWithStreamingResponse,
)
from .pagerduty import (
PagerdutyResource,
AsyncPagerdutyResource,
PagerdutyResourceWithRawResponse,
AsyncPagerdutyResourceWithRawResponse,
PagerdutyResourceWithStreamingResponse,
AsyncPagerdutyResourceWithStreamingResponse,
)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
__all__ = ["DestinationsResource", "AsyncDestinationsResource"]

View file

@ -2,34 +2,22 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse
from ...._wrappers import ResultWrapper
from typing import Optional, Type
from ...._base_client import make_request_options
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
from ...._base_client import make_request_options
from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse
__all__ = ["EligibleResource", "AsyncEligibleResource"]

View file

@ -2,44 +2,25 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ....types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse
from ...._wrappers import ResultWrapper
from typing import Optional, Type
from ...._base_client import make_request_options
from ....types.alerting.destinations.pagerduty_delete_response import PagerdutyDeleteResponse
from ....types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse
from ....types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
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
from ....types.alerting.destinations.pagerduty_delete_response import PagerdutyDeleteResponse
__all__ = ["PagerdutyResource", "AsyncPagerdutyResource"]

View file

@ -2,50 +2,31 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ...._base_client import make_request_options, AsyncPaginator
from ....types.alerting.destinations.webhook_update_response import WebhookUpdateResponse
from ....types.alerting.destinations.webhooks import Webhooks
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.alerting.destinations import webhook_create_params
from ....types.alerting.destinations import webhook_update_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
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
from ....types.alerting.destinations.webhook_delete_response import WebhookDeleteResponse
from ....types.alerting.destinations.webhook_update_response import WebhookUpdateResponse
__all__ = ["WebhooksResource", "AsyncWebhooksResource"]

View file

@ -2,37 +2,25 @@
from __future__ import annotations
import httpx
from ..._compat import cached_property
from ...types.alerting.history import History
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._utils import maybe_transform
from ..._base_client import make_request_options, AsyncPaginator
from typing import Union
from datetime import datetime
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import maybe_transform
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ..._base_client import AsyncPaginator, make_request_options
from ...types.alerting import history_list_params
from ...types.alerting.history import History
__all__ = ["HistoryResource", "AsyncHistoryResource"]

View file

@ -2,60 +2,34 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.alerting.policy_create_response import PolicyCreateResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options, AsyncPaginator
from typing_extensions import Literal
from ...types.alerting.mechanism_param import MechanismParam
from ...types.alerting.policy_filter_param import PolicyFilterParam
from ...types.alerting.policy_update_response import PolicyUpdateResponse
from ...types.alerting.policy import Policy
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.alerting.policy_delete_response import PolicyDeleteResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.alerting import policy_create_params
from ...types.alerting import policy_update_params
from ...types.alerting import Mechanism
from ...types.alerting import PolicyFilter
from ...types.alerting import PolicyFilter
from ...types.alerting import Mechanism
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
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
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__ = ["PoliciesResource", "AsyncPoliciesResource"]

View file

@ -1,53 +1,60 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .configurations import ConfigurationsResource, AsyncConfigurationsResource
from .configurations import (
ConfigurationsResourceWithRawResponse,
AsyncConfigurationsResourceWithRawResponse,
ConfigurationsResourceWithStreamingResponse,
AsyncConfigurationsResourceWithStreamingResponse,
)
from .discovery import DiscoveryResource, AsyncDiscoveryResource
from .discovery import (
DiscoveryResourceWithRawResponse,
AsyncDiscoveryResourceWithRawResponse,
DiscoveryResourceWithStreamingResponse,
AsyncDiscoveryResourceWithStreamingResponse,
)
from .operations import OperationsResource, AsyncOperationsResource
from .operations import (
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from .schemas import SchemasResource, AsyncSchemasResource
from .schemas import (
SchemasResource,
AsyncSchemasResource,
SchemasResourceWithRawResponse,
AsyncSchemasResourceWithRawResponse,
SchemasResourceWithStreamingResponse,
AsyncSchemasResourceWithStreamingResponse,
)
from .settings import SettingsResource, AsyncSettingsResource
from .settings import (
SettingsResource,
AsyncSettingsResource,
SettingsResourceWithRawResponse,
AsyncSettingsResourceWithRawResponse,
SettingsResourceWithStreamingResponse,
AsyncSettingsResourceWithStreamingResponse,
)
from .user_schemas import UserSchemasResource, AsyncUserSchemasResource
from .discovery import (
DiscoveryResource,
AsyncDiscoveryResource,
DiscoveryResourceWithRawResponse,
AsyncDiscoveryResourceWithRawResponse,
DiscoveryResourceWithStreamingResponse,
AsyncDiscoveryResourceWithStreamingResponse,
)
from .operations import (
OperationsResource,
AsyncOperationsResource,
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from .api_gateway import (
APIGatewayResource,
AsyncAPIGatewayResource,
APIGatewayResourceWithRawResponse,
AsyncAPIGatewayResourceWithRawResponse,
APIGatewayResourceWithStreamingResponse,
AsyncAPIGatewayResourceWithStreamingResponse,
)
from .user_schemas import (
UserSchemasResource,
AsyncUserSchemasResource,
UserSchemasResourceWithRawResponse,
AsyncUserSchemasResourceWithRawResponse,
UserSchemasResourceWithStreamingResponse,
AsyncUserSchemasResourceWithStreamingResponse,
)
from .api_gateway import APIGatewayResource, AsyncAPIGatewayResource
from .api_gateway import (
APIGatewayResourceWithRawResponse,
AsyncAPIGatewayResourceWithRawResponse,
APIGatewayResourceWithStreamingResponse,
AsyncAPIGatewayResourceWithStreamingResponse,
from .configurations import (
ConfigurationsResource,
AsyncConfigurationsResource,
ConfigurationsResourceWithRawResponse,
AsyncConfigurationsResourceWithRawResponse,
ConfigurationsResourceWithStreamingResponse,
AsyncConfigurationsResourceWithStreamingResponse,
)
__all__ = [

View file

@ -2,51 +2,6 @@
from __future__ import annotations
from .configurations import ConfigurationsResource, AsyncConfigurationsResource
from ..._compat import cached_property
from .discovery.discovery import DiscoveryResource, AsyncDiscoveryResource
from .operations.operations import OperationsResource, AsyncOperationsResource
from .schemas import SchemasResource, AsyncSchemasResource
from .settings.settings import SettingsResource, AsyncSettingsResource
from .user_schemas.user_schemas import UserSchemasResource, AsyncUserSchemasResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .configurations import (
ConfigurationsResource,
AsyncConfigurationsResource,
ConfigurationsResourceWithRawResponse,
AsyncConfigurationsResourceWithRawResponse,
ConfigurationsResourceWithStreamingResponse,
AsyncConfigurationsResourceWithStreamingResponse,
)
from .discovery import (
DiscoveryResource,
AsyncDiscoveryResource,
DiscoveryResourceWithRawResponse,
AsyncDiscoveryResourceWithRawResponse,
DiscoveryResourceWithStreamingResponse,
AsyncDiscoveryResourceWithStreamingResponse,
)
from .operations import (
OperationsResource,
AsyncOperationsResource,
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from .schemas import (
SchemasResource,
AsyncSchemasResource,
@ -63,6 +18,24 @@ from .settings import (
SettingsResourceWithStreamingResponse,
AsyncSettingsResourceWithStreamingResponse,
)
from ..._compat import cached_property
from .discovery import (
DiscoveryResource,
AsyncDiscoveryResource,
DiscoveryResourceWithRawResponse,
AsyncDiscoveryResourceWithRawResponse,
DiscoveryResourceWithStreamingResponse,
AsyncDiscoveryResourceWithStreamingResponse,
)
from .operations import (
OperationsResource,
AsyncOperationsResource,
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from ..._resource import SyncAPIResource, AsyncAPIResource
from .user_schemas import (
UserSchemasResource,
AsyncUserSchemasResource,
@ -71,6 +44,18 @@ from .user_schemas import (
UserSchemasResourceWithStreamingResponse,
AsyncUserSchemasResourceWithStreamingResponse,
)
from .configurations import (
ConfigurationsResource,
AsyncConfigurationsResource,
ConfigurationsResourceWithRawResponse,
AsyncConfigurationsResourceWithRawResponse,
ConfigurationsResourceWithStreamingResponse,
AsyncConfigurationsResourceWithStreamingResponse,
)
from .settings.settings import SettingsResource, AsyncSettingsResource
from .discovery.discovery import DiscoveryResource, AsyncDiscoveryResource
from .operations.operations import OperationsResource, AsyncOperationsResource
from .user_schemas.user_schemas import UserSchemasResource, AsyncUserSchemasResource
__all__ = ["APIGatewayResource", "AsyncAPIGatewayResource"]

View file

@ -2,44 +2,29 @@
from __future__ import annotations
from typing import List, Type, Iterable, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse
from ..._utils import maybe_transform, async_maybe_transform
from ..._base_client import make_request_options
from typing import Iterable, Type, List
from ...types.api_gateway.configuration import Configuration
from ..._wrappers import ResultWrapper
from typing_extensions import Literal
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...types.api_gateway import configuration_update_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.api_gateway import configuration_update_params
from ...types.api_gateway import configuration_get_params
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
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
__all__ = ["ConfigurationsResource", "AsyncConfigurationsResource"]

View file

@ -1,19 +1,21 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .operations import OperationsResource, AsyncOperationsResource
from .operations import (
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from .discovery import DiscoveryResource, AsyncDiscoveryResource
from .discovery import (
DiscoveryResource,
AsyncDiscoveryResource,
DiscoveryResourceWithRawResponse,
AsyncDiscoveryResourceWithRawResponse,
DiscoveryResourceWithStreamingResponse,
AsyncDiscoveryResourceWithStreamingResponse,
)
from .operations import (
OperationsResource,
AsyncOperationsResource,
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
__all__ = [
"OperationsResource",

View file

@ -2,34 +2,12 @@
from __future__ import annotations
from typing import Type, cast
import httpx
from .operations import OperationsResource, AsyncOperationsResource
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse
from ...._wrappers import ResultWrapper
from ...._base_client import make_request_options
from typing import Type
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from .operations import (
OperationsResource,
AsyncOperationsResource,
@ -38,8 +16,16 @@ from .operations import (
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ...._base_client import make_request_options
from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse
__all__ = ["DiscoveryResource", "AsyncDiscoveryResource"]

View file

@ -2,44 +2,30 @@
from __future__ import annotations
from typing import List, Type, cast
from typing_extensions import Literal
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.api_gateway.discovery_operation import DiscoveryOperation
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options, AsyncPaginator
from typing_extensions import Literal
from typing import List, Type
from ....types.api_gateway.discovery.operation_edit_response import OperationEditResponse
from ...._wrappers import ResultWrapper
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.api_gateway.discovery import operation_list_params
from ....types.api_gateway.discovery import operation_edit_params
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
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
__all__ = ["OperationsResource", "AsyncOperationsResource"]

View file

@ -1,19 +1,21 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource
from .schema_validation import (
SchemaValidationResourceWithRawResponse,
AsyncSchemaValidationResourceWithRawResponse,
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)
from .operations import OperationsResource, AsyncOperationsResource
from .operations import (
OperationsResource,
AsyncOperationsResource,
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
SchemaValidationResourceWithRawResponse,
AsyncSchemaValidationResourceWithRawResponse,
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)
__all__ = [
"SchemaValidationResource",

View file

@ -2,51 +2,27 @@
from __future__ import annotations
from typing import List, Type, Iterable, cast
from typing_extensions import Literal
import httpx
from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.api_gateway.operation_create_response import OperationCreateResponse
from ...._wrappers import ResultWrapper
from typing import Iterable, Type, List
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options, AsyncPaginator
from ....types.api_gateway.operation_list_response import OperationListResponse
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from typing_extensions import Literal
from ....types.api_gateway.operation_delete_response import OperationDeleteResponse
from ....types.api_gateway.operation_get_response import OperationGetResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ....types.api_gateway import operation_create_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.api_gateway import operation_create_params
from ....types.api_gateway import operation_list_params
from ....types.api_gateway import operation_get_params
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...._base_client import AsyncPaginator, make_request_options
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
@ -55,10 +31,11 @@ from .schema_validation import (
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ....types.api_gateway import operation_get_params, operation_list_params, operation_create_params
from ....types.api_gateway.operation_get_response import OperationGetResponse
from ....types.api_gateway.operation_list_response import OperationListResponse
from ....types.api_gateway.operation_create_response import OperationCreateResponse
from ....types.api_gateway.operation_delete_response import OperationDeleteResponse
__all__ = ["OperationsResource", "AsyncOperationsResource"]

View file

@ -2,47 +2,35 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.api_gateway.operations.schema_validation_update_response import SchemaValidationUpdateResponse
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options
from typing import Optional, Type
from typing_extensions import Literal
from ....types.api_gateway.operations.settings_multiple_request import SettingsMultipleRequest
from ...._wrappers import ResultWrapper
from ....types.api_gateway.operations.settings_multiple_request_param import SettingsMultipleRequestParam
from ....types.api_gateway.operations.schema_validation_get_response import SchemaValidationGetResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.api_gateway.operations import schema_validation_update_params
from ....types.api_gateway.operations import schema_validation_edit_params
from ....types.api_gateway.operations import SettingsMultipleRequest
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
from ...._base_client import make_request_options
from ....types.api_gateway.operations import (
SettingsMultipleRequest,
schema_validation_edit_params,
schema_validation_update_params,
)
from ....types.api_gateway.operations.settings_multiple_request import SettingsMultipleRequest
from ....types.api_gateway.operations.schema_validation_get_response import SchemaValidationGetResponse
from ....types.api_gateway.operations.settings_multiple_request_param import SettingsMultipleRequestParam
from ....types.api_gateway.operations.schema_validation_update_response import SchemaValidationUpdateResponse
__all__ = ["SchemaValidationResource", "AsyncSchemaValidationResource"]

View file

@ -2,39 +2,28 @@
from __future__ import annotations
from typing import List, Type, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.api_gateway.schema_list_response import SchemaListResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from ..._base_client import make_request_options
from typing import Type, List
from typing_extensions import Literal
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ..._wrappers import ResultWrapper
from ..._base_client import make_request_options
from ...types.api_gateway import schema_list_params
from typing import cast
from typing import cast
from ...types.api_gateway.schema_list_response import SchemaListResponse
__all__ = ["SchemasResource", "AsyncSchemasResource"]

View file

@ -1,19 +1,21 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource
from .schema_validation import (
SchemaValidationResourceWithRawResponse,
AsyncSchemaValidationResourceWithRawResponse,
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)
from .settings import SettingsResource, AsyncSettingsResource
from .settings import (
SettingsResource,
AsyncSettingsResource,
SettingsResourceWithRawResponse,
AsyncSettingsResourceWithRawResponse,
SettingsResourceWithStreamingResponse,
AsyncSettingsResourceWithStreamingResponse,
)
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,
SchemaValidationResourceWithRawResponse,
AsyncSchemaValidationResourceWithRawResponse,
SchemaValidationResourceWithStreamingResponse,
AsyncSchemaValidationResourceWithStreamingResponse,
)
__all__ = [
"SchemaValidationResource",

View file

@ -2,36 +2,27 @@
from __future__ import annotations
from typing import Optional
from typing_extensions import Literal
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.api_gateway.settings.settings import Settings
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options
from typing_extensions import Literal
from typing import Optional
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.api_gateway.settings import schema_validation_update_params
from ....types.api_gateway.settings import schema_validation_edit_params
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
__all__ = ["SchemaValidationResource", "AsyncSchemaValidationResource"]

View file

@ -2,17 +2,8 @@
from __future__ import annotations
from .schema_validation import SchemaValidationResource, AsyncSchemaValidationResource
from ...._compat import cached_property
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from .schema_validation import (
SchemaValidationResource,
AsyncSchemaValidationResource,

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .operations import OperationsResource, AsyncOperationsResource
from .operations import (
OperationsResource,
AsyncOperationsResource,
OperationsResourceWithRawResponse,
AsyncOperationsResourceWithRawResponse,
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from .user_schemas import UserSchemasResource, AsyncUserSchemasResource
from .user_schemas import (
UserSchemasResource,
AsyncUserSchemasResource,
UserSchemasResourceWithRawResponse,
AsyncUserSchemasResourceWithRawResponse,
UserSchemasResourceWithStreamingResponse,

View file

@ -2,39 +2,25 @@
from __future__ import annotations
from typing import Any, List, cast
from typing_extensions import Literal
import httpx
from ...._compat import cached_property
from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import maybe_transform
from ...._base_client import make_request_options, AsyncPaginator
from typing import List
from typing_extensions import Literal
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway.user_schemas import operation_list_params
from typing import cast
from typing import cast
from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse
__all__ = ["OperationsResource", "AsyncOperationsResource"]

View file

@ -2,50 +2,19 @@
from __future__ import annotations
from typing import Type, Mapping, cast
from typing_extensions import Literal
import httpx
from .operations import OperationsResource, AsyncOperationsResource
from ...._compat import cached_property
from ....types.api_gateway.schema_upload import SchemaUpload
from ...._wrappers import ResultWrapper
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options, AsyncPaginator
from typing import Type
from ...._types import FileTypes
from typing_extensions import Literal
from ....types.api_gateway.public_schema import PublicSchema
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ....types.api_gateway.user_schema_delete_response import UserSchemaDeleteResponse
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven, FileTypes
from ...._utils import (
extract_files,
maybe_transform,
deepcopy_minimal,
async_maybe_transform,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.api_gateway import user_schema_create_params
from ....types.api_gateway import user_schema_list_params
from ....types.api_gateway import user_schema_edit_params
from ....types.api_gateway import user_schema_get_params
from ...._compat import cached_property
from .operations import (
OperationsResource,
AsyncOperationsResource,
@ -54,12 +23,25 @@ from .operations import (
OperationsResourceWithStreamingResponse,
AsyncOperationsResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...._wrappers import ResultWrapper
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from ...._base_client import AsyncPaginator, make_request_options
from ....types.api_gateway import (
user_schema_get_params,
user_schema_edit_params,
user_schema_list_params,
user_schema_create_params,
)
from ....types.api_gateway.public_schema import PublicSchema
from ....types.api_gateway.schema_upload import SchemaUpload
from ....types.api_gateway.user_schema_delete_response import UserSchemaDeleteResponse
__all__ = ["UserSchemasResource", "AsyncUserSchemasResource"]

View file

@ -1,26 +1,29 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .smart_routing import SmartRoutingResource, AsyncSmartRoutingResource
from .argo import (
ArgoResource,
AsyncArgoResource,
ArgoResourceWithRawResponse,
AsyncArgoResourceWithRawResponse,
ArgoResourceWithStreamingResponse,
AsyncArgoResourceWithStreamingResponse,
)
from .smart_routing import (
SmartRoutingResource,
AsyncSmartRoutingResource,
SmartRoutingResourceWithRawResponse,
AsyncSmartRoutingResourceWithRawResponse,
SmartRoutingResourceWithStreamingResponse,
AsyncSmartRoutingResourceWithStreamingResponse,
)
from .tiered_caching import TieredCachingResource, AsyncTieredCachingResource
from .tiered_caching import (
TieredCachingResource,
AsyncTieredCachingResource,
TieredCachingResourceWithRawResponse,
AsyncTieredCachingResourceWithRawResponse,
TieredCachingResourceWithStreamingResponse,
AsyncTieredCachingResourceWithStreamingResponse,
)
from .argo import ArgoResource, AsyncArgoResource
from .argo import (
ArgoResourceWithRawResponse,
AsyncArgoResourceWithRawResponse,
ArgoResourceWithStreamingResponse,
AsyncArgoResourceWithStreamingResponse,
)
__all__ = [
"SmartRoutingResource",

View file

@ -2,19 +2,8 @@
from __future__ import annotations
from .smart_routing import SmartRoutingResource, AsyncSmartRoutingResource
from ..._compat import cached_property
from .tiered_caching import TieredCachingResource, AsyncTieredCachingResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .smart_routing import (
SmartRoutingResource,
AsyncSmartRoutingResource,

View file

@ -2,45 +2,29 @@
from __future__ import annotations
from typing import Any, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from ..._base_client import make_request_options
from typing_extensions import Literal
from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ..._wrappers import ResultWrapper
from ...types.argo import smart_routing_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
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__ = ["SmartRoutingResource", "AsyncSmartRoutingResource"]

View file

@ -2,43 +2,29 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options
from typing_extensions import Literal
from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ..._wrappers import ResultWrapper
from ...types.argo import tiered_caching_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
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__ = ["TieredCachingResource", "AsyncTieredCachingResource"]

View file

@ -2,41 +2,26 @@
from __future__ import annotations
from typing import Union
from datetime import datetime
from typing_extensions import Literal
import httpx
from .._compat import cached_property
from ..types.shared.audit_log import AuditLog
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform
from .._base_client import make_request_options, AsyncPaginator
from typing import Union
from datetime import datetime
from typing_extensions import Literal
from .._compat import cached_property
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..types.audit_logs import audit_log_list_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from .._resource import SyncAPIResource, AsyncAPIResource
from ..types import shared_params
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
from .._base_client import AsyncPaginator, make_request_options
from ..types.audit_logs import audit_log_list_params
from ..types.shared.audit_log import AuditLog
__all__ = ["AuditLogsResource", "AsyncAuditLogsResource"]

View file

@ -1,19 +1,21 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .profiles import ProfilesResource, AsyncProfilesResource
from .profiles import (
ProfilesResourceWithRawResponse,
AsyncProfilesResourceWithRawResponse,
ProfilesResourceWithStreamingResponse,
AsyncProfilesResourceWithStreamingResponse,
)
from .billing import BillingResource, AsyncBillingResource
from .billing import (
BillingResource,
AsyncBillingResource,
BillingResourceWithRawResponse,
AsyncBillingResourceWithRawResponse,
BillingResourceWithStreamingResponse,
AsyncBillingResourceWithStreamingResponse,
)
from .profiles import (
ProfilesResource,
AsyncProfilesResource,
ProfilesResourceWithRawResponse,
AsyncProfilesResourceWithRawResponse,
ProfilesResourceWithStreamingResponse,
AsyncProfilesResourceWithStreamingResponse,
)
__all__ = [
"ProfilesResource",

View file

@ -2,17 +2,6 @@
from __future__ import annotations
from .profiles import ProfilesResource, AsyncProfilesResource
from ..._compat import cached_property
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .profiles import (
ProfilesResource,
AsyncProfilesResource,
@ -21,6 +10,8 @@ from .profiles import (
ProfilesResourceWithStreamingResponse,
AsyncProfilesResourceWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
__all__ = ["BillingResource", "AsyncBillingResource"]

View file

@ -2,34 +2,22 @@
from __future__ import annotations
from typing import Type, cast
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._compat import cached_property
from ...types.billing.profile_get_response import ProfileGetResponse
from ..._wrappers import ResultWrapper
from ..._base_client import make_request_options
from typing import Type
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ..._base_client import make_request_options
from ...types.billing.profile_get_response import ProfileGetResponse
__all__ = ["ProfilesResource", "AsyncProfilesResource"]

View file

@ -2,47 +2,30 @@
from __future__ import annotations
from typing import Any, Optional, cast, overload
from typing_extensions import Literal
import httpx
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
required_args,
maybe_transform,
async_maybe_transform,
)
from .._compat import cached_property
from typing_extensions import Literal
from typing import Optional
from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse
from .._wrappers import ResultWrapper
from .._utils import maybe_transform, async_maybe_transform
from .._base_client import make_request_options
from ..types.bot_management.bot_management_get_response import BotManagementGetResponse
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from .._resource import SyncAPIResource, AsyncAPIResource
from ..types import shared_params
from .._wrappers import ResultWrapper
from .._base_client import make_request_options
from ..types.bot_management import bot_management_update_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..types.bot_management.bot_management_get_response import BotManagementGetResponse
from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse
__all__ = ["BotManagementResource", "AsyncBotManagementResource"]

View file

@ -1,21 +1,24 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .asn import ASNResource, AsyncASNResource
from .asn import (
ASNResource,
AsyncASNResource,
ASNResourceWithRawResponse,
AsyncASNResourceWithRawResponse,
ASNResourceWithStreamingResponse,
AsyncASNResourceWithStreamingResponse,
)
from .configs import ConfigsResource, AsyncConfigsResource
from .configs import (
ConfigsResource,
AsyncConfigsResource,
ConfigsResourceWithRawResponse,
AsyncConfigsResourceWithRawResponse,
ConfigsResourceWithStreamingResponse,
AsyncConfigsResourceWithStreamingResponse,
)
from .botnet_feed import BotnetFeedResource, AsyncBotnetFeedResource
from .botnet_feed import (
BotnetFeedResource,
AsyncBotnetFeedResource,
BotnetFeedResourceWithRawResponse,
AsyncBotnetFeedResourceWithRawResponse,
BotnetFeedResourceWithStreamingResponse,

View file

@ -2,43 +2,29 @@
from __future__ import annotations
import httpx
from ..._compat import cached_property
from ...types.botnet_feed.asn_day_report_response import ASNDayReportResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type, Union
from ..._base_client import make_request_options
from typing import Type, Union, Optional, cast
from datetime import datetime
from ...types.botnet_feed.asn_full_report_response import ASNFullReportResponse
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ..._wrappers import ResultWrapper
from ..._base_client import make_request_options
from ...types.botnet_feed import asn_day_report_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...types.botnet_feed.asn_day_report_response import ASNDayReportResponse
from ...types.botnet_feed.asn_full_report_response import ASNFullReportResponse
__all__ = ["ASNResource", "AsyncASNResource"]

View file

@ -2,19 +2,6 @@
from __future__ import annotations
from .asn import ASNResource, AsyncASNResource
from ..._compat import cached_property
from .configs.configs import ConfigsResource, AsyncConfigsResource
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from .asn import (
ASNResource,
AsyncASNResource,
@ -31,6 +18,9 @@ from .configs import (
ConfigsResourceWithStreamingResponse,
AsyncConfigsResourceWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .configs.configs import ConfigsResource, AsyncConfigsResource
__all__ = ["BotnetFeedResource", "AsyncBotnetFeedResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .asn import ASNResource, AsyncASNResource
from .asn import (
ASNResource,
AsyncASNResource,
ASNResourceWithRawResponse,
AsyncASNResourceWithRawResponse,
ASNResourceWithStreamingResponse,
AsyncASNResourceWithStreamingResponse,
)
from .configs import ConfigsResource, AsyncConfigsResource
from .configs import (
ConfigsResource,
AsyncConfigsResource,
ConfigsResourceWithRawResponse,
AsyncConfigsResourceWithRawResponse,
ConfigsResourceWithStreamingResponse,

View file

@ -2,38 +2,23 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ....types.botnet_feed.configs.asn_delete_response import ASNDeleteResponse
from ...._wrappers import ResultWrapper
from typing import Optional, Type
from ...._base_client import make_request_options
from ....types.botnet_feed.configs.asn_get_response import ASNGetResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
from ...._base_client import make_request_options
from ....types.botnet_feed.configs.asn_get_response import ASNGetResponse
from ....types.botnet_feed.configs.asn_delete_response import ASNDeleteResponse
__all__ = ["ASNResource", "AsyncASNResource"]

View file

@ -2,17 +2,6 @@
from __future__ import annotations
from .asn import ASNResource, AsyncASNResource
from ...._compat import cached_property
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from .asn import (
ASNResource,
AsyncASNResource,
@ -21,6 +10,8 @@ from .asn import (
ASNResourceWithStreamingResponse,
AsyncASNResourceWithStreamingResponse,
)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
__all__ = ["ConfigsResource", "AsyncConfigsResource"]

View file

@ -2,42 +2,28 @@
from __future__ import annotations
from typing import List, Type, Iterable, Optional, cast
import httpx
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import (
maybe_transform,
async_maybe_transform,
)
from .._compat import cached_property
from ..types.brand_protection.submit import Submit
from .._wrappers import ResultWrapper
from .._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type, List, Iterable
from .._base_client import make_request_options
from ..types.brand_protection.info import Info
from .._resource import SyncAPIResource, AsyncAPIResource
from .._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from .._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from .._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from .._resource import SyncAPIResource, AsyncAPIResource
from ..types import shared_params
from ..types.brand_protection import brand_protection_submit_params
from ..types.brand_protection import brand_protection_url_info_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from .._wrappers import ResultWrapper
from .._base_client import make_request_options
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__ = ["BrandProtectionResource", "AsyncBrandProtectionResource"]

View file

@ -1,40 +1,45 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .cache_reserve import CacheReserveResource, AsyncCacheReserveResource
from .cache_reserve import (
CacheReserveResourceWithRawResponse,
AsyncCacheReserveResourceWithRawResponse,
CacheReserveResourceWithStreamingResponse,
AsyncCacheReserveResourceWithStreamingResponse,
from .cache import (
CacheResource,
AsyncCacheResource,
CacheResourceWithRawResponse,
AsyncCacheResourceWithRawResponse,
CacheResourceWithStreamingResponse,
AsyncCacheResourceWithStreamingResponse,
)
from .smart_tiered_cache import SmartTieredCacheResource, AsyncSmartTieredCacheResource
from .smart_tiered_cache import (
SmartTieredCacheResourceWithRawResponse,
AsyncSmartTieredCacheResourceWithRawResponse,
SmartTieredCacheResourceWithStreamingResponse,
AsyncSmartTieredCacheResourceWithStreamingResponse,
)
from .variants import VariantsResource, AsyncVariantsResource
from .variants import (
VariantsResource,
AsyncVariantsResource,
VariantsResourceWithRawResponse,
AsyncVariantsResourceWithRawResponse,
VariantsResourceWithStreamingResponse,
AsyncVariantsResourceWithStreamingResponse,
)
from .regional_tiered_cache import RegionalTieredCacheResource, AsyncRegionalTieredCacheResource
from .cache_reserve import (
CacheReserveResource,
AsyncCacheReserveResource,
CacheReserveResourceWithRawResponse,
AsyncCacheReserveResourceWithRawResponse,
CacheReserveResourceWithStreamingResponse,
AsyncCacheReserveResourceWithStreamingResponse,
)
from .smart_tiered_cache import (
SmartTieredCacheResource,
AsyncSmartTieredCacheResource,
SmartTieredCacheResourceWithRawResponse,
AsyncSmartTieredCacheResourceWithRawResponse,
SmartTieredCacheResourceWithStreamingResponse,
AsyncSmartTieredCacheResourceWithStreamingResponse,
)
from .regional_tiered_cache import (
RegionalTieredCacheResource,
AsyncRegionalTieredCacheResource,
RegionalTieredCacheResourceWithRawResponse,
AsyncRegionalTieredCacheResourceWithRawResponse,
RegionalTieredCacheResourceWithStreamingResponse,
AsyncRegionalTieredCacheResourceWithStreamingResponse,
)
from .cache import CacheResource, AsyncCacheResource
from .cache import (
CacheResourceWithRawResponse,
AsyncCacheResourceWithRawResponse,
CacheResourceWithStreamingResponse,
AsyncCacheResourceWithStreamingResponse,
)
__all__ = [
"CacheReserveResource",

View file

@ -2,60 +2,15 @@
from __future__ import annotations
from typing import List, Type, Iterable, Optional, cast, overload
import httpx
from .cache_reserve import CacheReserveResource, AsyncCacheReserveResource
from ..._compat import cached_property
from .smart_tiered_cache import SmartTieredCacheResource, AsyncSmartTieredCacheResource
from .variants import VariantsResource, AsyncVariantsResource
from .regional_tiered_cache import RegionalTieredCacheResource, AsyncRegionalTieredCacheResource
from typing import List, Optional, Iterable, Type
from ...types.cache.cache_purge_response import CachePurgeResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from ..._base_client import make_request_options
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
from ...types.cache import cache_purge_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.cache import cache_purge_params
from .cache_reserve import (
CacheReserveResource,
AsyncCacheReserveResource,
CacheReserveResourceWithRawResponse,
AsyncCacheReserveResourceWithRawResponse,
CacheReserveResourceWithStreamingResponse,
AsyncCacheReserveResourceWithStreamingResponse,
)
from .smart_tiered_cache import (
SmartTieredCacheResource,
AsyncSmartTieredCacheResource,
SmartTieredCacheResourceWithRawResponse,
AsyncSmartTieredCacheResourceWithRawResponse,
SmartTieredCacheResourceWithStreamingResponse,
AsyncSmartTieredCacheResourceWithStreamingResponse,
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
required_args,
maybe_transform,
async_maybe_transform,
)
from .variants import (
VariantsResource,
@ -65,6 +20,33 @@ from .variants import (
VariantsResourceWithStreamingResponse,
AsyncVariantsResourceWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.cache import cache_purge_params
from .cache_reserve import (
CacheReserveResource,
AsyncCacheReserveResource,
CacheReserveResourceWithRawResponse,
AsyncCacheReserveResourceWithRawResponse,
CacheReserveResourceWithStreamingResponse,
AsyncCacheReserveResourceWithStreamingResponse,
)
from ..._base_client import make_request_options
from .smart_tiered_cache import (
SmartTieredCacheResource,
AsyncSmartTieredCacheResource,
SmartTieredCacheResourceWithRawResponse,
AsyncSmartTieredCacheResourceWithRawResponse,
SmartTieredCacheResourceWithStreamingResponse,
AsyncSmartTieredCacheResourceWithStreamingResponse,
)
from .regional_tiered_cache import (
RegionalTieredCacheResource,
AsyncRegionalTieredCacheResource,
@ -73,8 +55,7 @@ from .regional_tiered_cache import (
RegionalTieredCacheResourceWithStreamingResponse,
AsyncRegionalTieredCacheResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from ...types.cache.cache_purge_response import CachePurgeResponse
__all__ = ["CacheResource", "AsyncCacheResource"]

View file

@ -2,52 +2,31 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.cache.cache_reserve_clear_response import CacheReserveClearResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options
from ...types.cache.cache_reserve_edit_response import CacheReserveEditResponse
from typing_extensions import Literal
from ...types.cache.cache_reserve_get_response import CacheReserveGetResponse
from ...types.cache.cache_reserve_status_response import CacheReserveStatusResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.cache import cache_reserve_clear_params
from ...types.cache import cache_reserve_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._wrappers import ResultWrapper
from ...types.cache import cache_reserve_edit_params, cache_reserve_clear_params
from ..._base_client import make_request_options
from ...types.cache.cache_reserve_get_response import CacheReserveGetResponse
from ...types.cache.cache_reserve_edit_response import CacheReserveEditResponse
from ...types.cache.cache_reserve_clear_response import CacheReserveClearResponse
from ...types.cache.cache_reserve_status_response import CacheReserveStatusResponse
__all__ = ["CacheReserveResource", "AsyncCacheReserveResource"]

View file

@ -2,43 +2,29 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options
from typing_extensions import Literal
from ...types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ..._wrappers import ResultWrapper
from ...types.cache import regional_tiered_cache_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._base_client import make_request_options
from ...types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse
from ...types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse
__all__ = ["RegionalTieredCacheResource", "AsyncRegionalTieredCacheResource"]

View file

@ -2,47 +2,30 @@
from __future__ import annotations
from typing import Type, Optional, cast
from typing_extensions import Literal
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse
from ..._wrappers import ResultWrapper
from typing import Optional, Type
from ..._base_client import make_request_options
from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse
from ..._utils import maybe_transform, async_maybe_transform
from typing_extensions import Literal
from ...types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ..._wrappers import ResultWrapper
from ...types.cache import smart_tiered_cache_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._base_client import make_request_options
from ...types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse
from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse
from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse
__all__ = ["SmartTieredCacheResource", "AsyncSmartTieredCacheResource"]

View file

@ -2,47 +2,29 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from ...types.cache.cache_variant import CacheVariant
from ..._wrappers import ResultWrapper
from typing import Optional, Type
from ..._base_client import make_request_options
from ...types.cache.variant_edit_response import VariantEditResponse
from ..._utils import maybe_transform, async_maybe_transform
from ...types.cache.variant_get_response import VariantGetResponse
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...types.cache import variant_edit_params
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.cache import variant_edit_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._base_client import make_request_options
from ...types.cache.cache_variant import CacheVariant
from ...types.cache.variant_get_response import VariantGetResponse
from ...types.cache.variant_edit_response import VariantEditResponse
__all__ = ["VariantsResource", "AsyncVariantsResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .turn import TURNResource, AsyncTURNResource
from .turn import (
TURNResource,
AsyncTURNResource,
TURNResourceWithRawResponse,
AsyncTURNResourceWithRawResponse,
TURNResourceWithStreamingResponse,
AsyncTURNResourceWithStreamingResponse,
)
from .calls import CallsResource, AsyncCallsResource
from .calls import (
CallsResource,
AsyncCallsResource,
CallsResourceWithRawResponse,
AsyncCallsResourceWithRawResponse,
CallsResourceWithStreamingResponse,

View file

@ -2,44 +2,10 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from .turn.turn import TURNResource, AsyncTURNResource
from ..._compat import cached_property
from ...types.calls.calls_app_with_secret import CallsAppWithSecret
from ..._wrappers import ResultWrapper
from ..._utils import maybe_transform, async_maybe_transform
from typing import Optional, Type
from ..._base_client import make_request_options, AsyncPaginator
from ...types.calls.calls_app import CallsApp
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.calls.call_list_response import CallListResponse
from ..._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ..._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ..._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ..._resource import SyncAPIResource, AsyncAPIResource
from ...types import shared_params
from ...types.calls import call_create_params
from ...types.calls import call_update_params
from .turn import (
TURNResource,
AsyncTURNResource,
@ -48,14 +14,27 @@ from .turn import (
TURNResourceWithStreamingResponse,
AsyncTURNResourceWithStreamingResponse,
)
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._utils import (
maybe_transform,
async_maybe_transform,
)
from ..._compat import cached_property
from .turn.turn import TURNResource, AsyncTURNResource
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import (
to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
from ..._wrappers import ResultWrapper
from ...pagination import SyncSinglePage, AsyncSinglePage
from ...types.calls import call_create_params, call_update_params
from ..._base_client import AsyncPaginator, make_request_options
from ...types.calls.calls_app import CallsApp
from ...types.calls.call_list_response import CallListResponse
from ...types.calls.calls_app_with_secret import CallsAppWithSecret
__all__ = ["CallsResource", "AsyncCallsResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .keys import KeysResource, AsyncKeysResource
from .keys import (
KeysResource,
AsyncKeysResource,
KeysResourceWithRawResponse,
AsyncKeysResourceWithRawResponse,
KeysResourceWithStreamingResponse,
AsyncKeysResourceWithStreamingResponse,
)
from .turn import TURNResource, AsyncTURNResource
from .turn import (
TURNResource,
AsyncTURNResource,
TURNResourceWithRawResponse,
AsyncTURNResourceWithRawResponse,
TURNResourceWithStreamingResponse,

View file

@ -2,52 +2,32 @@
from __future__ import annotations
from typing import Type, Optional, cast
import httpx
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._utils import (
maybe_transform,
async_maybe_transform,
)
from ...._compat import cached_property
from ....types.calls.turn.key_create_response import KeyCreateResponse
from ...._utils import maybe_transform, async_maybe_transform
from ...._base_client import make_request_options, AsyncPaginator
from ...._wrappers import ResultWrapper
from typing import Optional, Type
from ....types.calls.turn.key_update_response import KeyUpdateResponse
from ....pagination import SyncSinglePage, AsyncSinglePage
from ....types.calls.turn.key_list_response import KeyListResponse
from ....types.calls.turn.key_delete_response import KeyDeleteResponse
from ....types.calls.turn.key_get_response import KeyGetResponse
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import (
to_raw_response_wrapper,
async_to_raw_response_wrapper,
to_streamed_response_wrapper,
async_to_raw_response_wrapper,
async_to_streamed_response_wrapper,
)
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from ....types.calls.turn import key_create_params
from ....types.calls.turn import key_update_params
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from typing import cast
from ...._wrappers import ResultWrapper
from ....pagination import SyncSinglePage, AsyncSinglePage
from ...._base_client import AsyncPaginator, make_request_options
from ....types.calls.turn import key_create_params, key_update_params
from ....types.calls.turn.key_get_response import KeyGetResponse
from ....types.calls.turn.key_list_response import KeyListResponse
from ....types.calls.turn.key_create_response import KeyCreateResponse
from ....types.calls.turn.key_delete_response import KeyDeleteResponse
from ....types.calls.turn.key_update_response import KeyUpdateResponse
__all__ = ["KeysResource", "AsyncKeysResource"]

View file

@ -2,17 +2,6 @@
from __future__ import annotations
from .keys import KeysResource, AsyncKeysResource
from ...._compat import cached_property
import warnings
from typing import TYPE_CHECKING, Optional, Union, List, Dict, Any, Mapping, cast, overload
from typing_extensions import Literal
from ...._utils import extract_files, maybe_transform, required_args, deepcopy_minimal, strip_not_given
from ...._types import NotGiven, Timeout, Headers, NoneType, Query, Body, NOT_GIVEN, FileTypes, BinaryResponseContent
from ...._resource import SyncAPIResource, AsyncAPIResource
from ....types import shared_params
from .keys import (
KeysResource,
AsyncKeysResource,
@ -21,6 +10,8 @@ from .keys import (
KeysResourceWithStreamingResponse,
AsyncKeysResourceWithStreamingResponse,
)
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
__all__ = ["TURNResource", "AsyncTURNResource"]

View file

@ -1,14 +1,16 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from .hostname_associations import HostnameAssociationsResource, AsyncHostnameAssociationsResource
from .hostname_associations import (
HostnameAssociationsResource,
AsyncHostnameAssociationsResource,
HostnameAssociationsResourceWithRawResponse,
AsyncHostnameAssociationsResourceWithRawResponse,
HostnameAssociationsResourceWithStreamingResponse,
AsyncHostnameAssociationsResourceWithStreamingResponse,
)
from .certificate_authorities import CertificateAuthoritiesResource, AsyncCertificateAuthoritiesResource
from .certificate_authorities import (
CertificateAuthoritiesResource,
AsyncCertificateAuthoritiesResource,
CertificateAuthoritiesResourceWithRawResponse,
AsyncCertificateAuthoritiesResourceWithRawResponse,
CertificateAuthoritiesResourceWithStreamingResponse,

Some files were not shown because too many files have changed in this diff Show more