mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): update via SDK Studio (#997)
This commit is contained in:
parent
04b79faf41
commit
f583ec8acf
13 changed files with 1 additions and 2821 deletions
|
|
@ -1,2 +1,2 @@
|
|||
configured_endpoints: 1352
|
||||
configured_endpoints: 1348
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e3875d4464358c7aee5cbb9a4e0e39f0e400536dfadb684e8f217a2800897d0e.yml
|
||||
|
|
|
|||
20
api.md
20
api.md
|
|
@ -4095,26 +4095,6 @@ Methods:
|
|||
- <code title="patch /accounts/{account_id}/magic/sites/{site_id}">client.magic_transit.sites.<a href="./src/cloudflare/resources/magic_transit/sites/sites.py">edit</a>(site_id, \*, account_id, \*\*<a href="src/cloudflare/types/magic_transit/site_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/site.py">Site</a></code>
|
||||
- <code title="get /accounts/{account_id}/magic/sites/{site_id}">client.magic_transit.sites.<a href="./src/cloudflare/resources/magic_transit/sites/sites.py">get</a>(site_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_transit/site.py">Site</a></code>
|
||||
|
||||
### AppConfiguration
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.magic_transit.sites import (
|
||||
AppConfigurationCreateResponse,
|
||||
AppConfigurationUpdateResponse,
|
||||
AppConfigurationListResponse,
|
||||
AppConfigurationDeleteResponse,
|
||||
)
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="post /accounts/{account_id}/magic/sites/{site_id}/app_configs">client.magic_transit.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/app_configuration.py">create</a>(site_id, \*, account_id, \*\*<a href="src/cloudflare/types/magic_transit/sites/app_configuration_create_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/sites/app_configuration_create_response.py">Optional</a></code>
|
||||
- <code title="put /accounts/{account_id}/magic/sites/{site_id}/app_configs/{app_config_id}">client.magic_transit.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/app_configuration.py">update</a>(app_config_id, \*, account_id, site_id, \*\*<a href="src/cloudflare/types/magic_transit/sites/app_configuration_update_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/sites/app_configuration_update_response.py">Optional</a></code>
|
||||
- <code title="get /accounts/{account_id}/magic/sites/{site_id}/app_configs">client.magic_transit.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/app_configuration.py">list</a>(site_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_transit/sites/app_configuration_list_response.py">SyncSinglePage[AppConfigurationListResponse]</a></code>
|
||||
- <code title="delete /accounts/{account_id}/magic/sites/{site_id}/app_configs/{app_config_id}">client.magic_transit.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/app_configuration.py">delete</a>(app_config_id, \*, account_id, site_id) -> <a href="./src/cloudflare/types/magic_transit/sites/app_configuration_delete_response.py">Optional</a></code>
|
||||
|
||||
### ACLs
|
||||
|
||||
Types:
|
||||
|
|
|
|||
|
|
@ -32,22 +32,8 @@ from .sites import (
|
|||
SitesResourceWithStreamingResponse,
|
||||
AsyncSitesResourceWithStreamingResponse,
|
||||
)
|
||||
from .app_configuration import (
|
||||
AppConfigurationResource,
|
||||
AsyncAppConfigurationResource,
|
||||
AppConfigurationResourceWithRawResponse,
|
||||
AsyncAppConfigurationResourceWithRawResponse,
|
||||
AppConfigurationResourceWithStreamingResponse,
|
||||
AsyncAppConfigurationResourceWithStreamingResponse,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"AppConfigurationResource",
|
||||
"AsyncAppConfigurationResource",
|
||||
"AppConfigurationResourceWithRawResponse",
|
||||
"AsyncAppConfigurationResourceWithRawResponse",
|
||||
"AppConfigurationResourceWithStreamingResponse",
|
||||
"AsyncAppConfigurationResourceWithStreamingResponse",
|
||||
"ACLsResource",
|
||||
"AsyncACLsResource",
|
||||
"ACLsResourceWithRawResponse",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -49,14 +49,6 @@ from ...._base_client import (
|
|||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from .app_configuration import (
|
||||
AppConfigurationResource,
|
||||
AsyncAppConfigurationResource,
|
||||
AppConfigurationResourceWithRawResponse,
|
||||
AsyncAppConfigurationResourceWithRawResponse,
|
||||
AppConfigurationResourceWithStreamingResponse,
|
||||
AsyncAppConfigurationResourceWithStreamingResponse,
|
||||
)
|
||||
from ....types.magic_transit import (
|
||||
site_edit_params,
|
||||
site_list_params,
|
||||
|
|
@ -70,10 +62,6 @@ __all__ = ["SitesResource", "AsyncSitesResource"]
|
|||
|
||||
|
||||
class SitesResource(SyncAPIResource):
|
||||
@cached_property
|
||||
def app_configuration(self) -> AppConfigurationResource:
|
||||
return AppConfigurationResource(self._client)
|
||||
|
||||
@cached_property
|
||||
def acls(self) -> ACLsResource:
|
||||
return ACLsResource(self._client)
|
||||
|
|
@ -431,10 +419,6 @@ class SitesResource(SyncAPIResource):
|
|||
|
||||
|
||||
class AsyncSitesResource(AsyncAPIResource):
|
||||
@cached_property
|
||||
def app_configuration(self) -> AsyncAppConfigurationResource:
|
||||
return AsyncAppConfigurationResource(self._client)
|
||||
|
||||
@cached_property
|
||||
def acls(self) -> AsyncACLsResource:
|
||||
return AsyncACLsResource(self._client)
|
||||
|
|
@ -814,10 +798,6 @@ class SitesResourceWithRawResponse:
|
|||
sites.get,
|
||||
)
|
||||
|
||||
@cached_property
|
||||
def app_configuration(self) -> AppConfigurationResourceWithRawResponse:
|
||||
return AppConfigurationResourceWithRawResponse(self._sites.app_configuration)
|
||||
|
||||
@cached_property
|
||||
def acls(self) -> ACLsResourceWithRawResponse:
|
||||
return ACLsResourceWithRawResponse(self._sites.acls)
|
||||
|
|
@ -854,10 +834,6 @@ class AsyncSitesResourceWithRawResponse:
|
|||
sites.get,
|
||||
)
|
||||
|
||||
@cached_property
|
||||
def app_configuration(self) -> AsyncAppConfigurationResourceWithRawResponse:
|
||||
return AsyncAppConfigurationResourceWithRawResponse(self._sites.app_configuration)
|
||||
|
||||
@cached_property
|
||||
def acls(self) -> AsyncACLsResourceWithRawResponse:
|
||||
return AsyncACLsResourceWithRawResponse(self._sites.acls)
|
||||
|
|
@ -894,10 +870,6 @@ class SitesResourceWithStreamingResponse:
|
|||
sites.get,
|
||||
)
|
||||
|
||||
@cached_property
|
||||
def app_configuration(self) -> AppConfigurationResourceWithStreamingResponse:
|
||||
return AppConfigurationResourceWithStreamingResponse(self._sites.app_configuration)
|
||||
|
||||
@cached_property
|
||||
def acls(self) -> ACLsResourceWithStreamingResponse:
|
||||
return ACLsResourceWithStreamingResponse(self._sites.acls)
|
||||
|
|
@ -934,10 +906,6 @@ class AsyncSitesResourceWithStreamingResponse:
|
|||
sites.get,
|
||||
)
|
||||
|
||||
@cached_property
|
||||
def app_configuration(self) -> AsyncAppConfigurationResourceWithStreamingResponse:
|
||||
return AsyncAppConfigurationResourceWithStreamingResponse(self._sites.app_configuration)
|
||||
|
||||
@cached_property
|
||||
def acls(self) -> AsyncACLsResourceWithStreamingResponse:
|
||||
return AsyncACLsResourceWithStreamingResponse(self._sites.acls)
|
||||
|
|
|
|||
|
|
@ -33,9 +33,3 @@ from .wan_static_addressing import WANStaticAddressing as WANStaticAddressing
|
|||
from .acl_configuration_param import ACLConfigurationParam as ACLConfigurationParam
|
||||
from .lan_static_addressing_param import LANStaticAddressingParam as LANStaticAddressingParam
|
||||
from .wan_static_addressing_param import WANStaticAddressingParam as WANStaticAddressingParam
|
||||
from .app_configuration_create_params import AppConfigurationCreateParams as AppConfigurationCreateParams
|
||||
from .app_configuration_list_response import AppConfigurationListResponse as AppConfigurationListResponse
|
||||
from .app_configuration_update_params import AppConfigurationUpdateParams as AppConfigurationUpdateParams
|
||||
from .app_configuration_create_response import AppConfigurationCreateResponse as AppConfigurationCreateResponse
|
||||
from .app_configuration_delete_response import AppConfigurationDeleteResponse as AppConfigurationDeleteResponse
|
||||
from .app_configuration_update_response import AppConfigurationUpdateResponse as AppConfigurationUpdateResponse
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Union
|
||||
from typing_extensions import Required, TypedDict
|
||||
|
||||
__all__ = ["AppConfigurationCreateParams", "AccountApp", "ManagedApp"]
|
||||
|
||||
|
||||
class AccountApp(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
account_app_id: Required[str]
|
||||
"""Magic account app ID."""
|
||||
|
||||
|
||||
class ManagedApp(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
managed_app_id: Required[str]
|
||||
"""Managed app ID."""
|
||||
|
||||
|
||||
AppConfigurationCreateParams = Union[AccountApp, ManagedApp]
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from ...._models import BaseModel
|
||||
|
||||
__all__ = ["AppConfigurationCreateResponse"]
|
||||
|
||||
|
||||
class AppConfigurationCreateResponse(BaseModel):
|
||||
id: str
|
||||
"""Identifier"""
|
||||
|
||||
site_id: str
|
||||
"""Identifier"""
|
||||
|
||||
breakout: Optional[bool] = None
|
||||
"""Whether to breakout traffic to the app's endpoints directly.
|
||||
|
||||
Null preserves default behavior.
|
||||
"""
|
||||
|
||||
priority: Optional[int] = None
|
||||
"""Priority of traffic.
|
||||
|
||||
0 is default, anything greater is prioritized. (Currently only 0 and 1 are
|
||||
supported)
|
||||
"""
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from ...._models import BaseModel
|
||||
|
||||
__all__ = ["AppConfigurationDeleteResponse"]
|
||||
|
||||
|
||||
class AppConfigurationDeleteResponse(BaseModel):
|
||||
id: str
|
||||
"""Identifier"""
|
||||
|
||||
site_id: str
|
||||
"""Identifier"""
|
||||
|
||||
breakout: Optional[bool] = None
|
||||
"""Whether to breakout traffic to the app's endpoints directly.
|
||||
|
||||
Null preserves default behavior.
|
||||
"""
|
||||
|
||||
priority: Optional[int] = None
|
||||
"""Priority of traffic.
|
||||
|
||||
0 is default, anything greater is prioritized. (Currently only 0 and 1 are
|
||||
supported)
|
||||
"""
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from ...._models import BaseModel
|
||||
|
||||
__all__ = ["AppConfigurationListResponse"]
|
||||
|
||||
|
||||
class AppConfigurationListResponse(BaseModel):
|
||||
id: str
|
||||
"""Identifier"""
|
||||
|
||||
site_id: str
|
||||
"""Identifier"""
|
||||
|
||||
breakout: Optional[bool] = None
|
||||
"""Whether to breakout traffic to the app's endpoints directly.
|
||||
|
||||
Null preserves default behavior.
|
||||
"""
|
||||
|
||||
priority: Optional[int] = None
|
||||
"""Priority of traffic.
|
||||
|
||||
0 is default, anything greater is prioritized. (Currently only 0 and 1 are
|
||||
supported)
|
||||
"""
|
||||
|
|
@ -1,96 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Union, Optional
|
||||
from typing_extensions import Required, TypedDict
|
||||
|
||||
__all__ = [
|
||||
"AppConfigurationUpdateParams",
|
||||
"ChangeBreakoutBehavior",
|
||||
"ChangePriority",
|
||||
"UpdateAccountAppID",
|
||||
"UpdateManagedAppID",
|
||||
"AccountAppManagedApp",
|
||||
"ManagedAppAccountApp",
|
||||
]
|
||||
|
||||
|
||||
class ChangeBreakoutBehavior(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
site_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
body: Required[object]
|
||||
|
||||
|
||||
class ChangePriority(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
site_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
body: Required[object]
|
||||
|
||||
|
||||
class UpdateAccountAppID(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
site_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
account_app_id: Required[str]
|
||||
"""Magic account app ID."""
|
||||
|
||||
|
||||
class UpdateManagedAppID(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
site_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
managed_app_id: Required[str]
|
||||
"""Managed app ID."""
|
||||
|
||||
|
||||
class AccountAppManagedApp(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
site_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
account_app_id: Required[str]
|
||||
"""Magic account app ID."""
|
||||
|
||||
managed_app_id: Required[Optional[str]]
|
||||
"""**Must be set to null**"""
|
||||
|
||||
|
||||
class ManagedAppAccountApp(TypedDict, total=False):
|
||||
account_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
site_id: Required[str]
|
||||
"""Identifier"""
|
||||
|
||||
account_app_id: Required[Optional[str]]
|
||||
"""**Must be set to null**"""
|
||||
|
||||
managed_app_id: Required[str]
|
||||
"""Managed app ID."""
|
||||
|
||||
|
||||
AppConfigurationUpdateParams = Union[
|
||||
ChangeBreakoutBehavior,
|
||||
ChangePriority,
|
||||
UpdateAccountAppID,
|
||||
UpdateManagedAppID,
|
||||
AccountAppManagedApp,
|
||||
ManagedAppAccountApp,
|
||||
]
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from ...._models import BaseModel
|
||||
|
||||
__all__ = ["AppConfigurationUpdateResponse"]
|
||||
|
||||
|
||||
class AppConfigurationUpdateResponse(BaseModel):
|
||||
id: str
|
||||
"""Identifier"""
|
||||
|
||||
site_id: str
|
||||
"""Identifier"""
|
||||
|
||||
breakout: Optional[bool] = None
|
||||
"""Whether to breakout traffic to the app's endpoints directly.
|
||||
|
||||
Null preserves default behavior.
|
||||
"""
|
||||
|
||||
priority: Optional[int] = None
|
||||
"""Priority of traffic.
|
||||
|
||||
0 is default, anything greater is prioritized. (Currently only 0 and 1 are
|
||||
supported)
|
||||
"""
|
||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue