Skip to content

Commit c8f72ed

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#775)
1 parent be4677a commit c8f72ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+6216
-2
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1321
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e83b5eb5706ca8b525141f506338cd1d465eb133815b9ddc53df612ea4a2ecef.yml
1+
configured_endpoints: 1335
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ac33a501d722d88a0ebf590d74e32c77066a57b327cb3a2fae156558b6e7b75c.yml

api.md

+76
Original file line numberDiff line numberDiff line change
@@ -3361,6 +3361,40 @@ Methods:
33613361

33623362
# Addressing
33633363

3364+
## RegionalHostnames
3365+
3366+
Types:
3367+
3368+
```python
3369+
from cloudflare.types.addressing import (
3370+
RegionalHostnameCreateResponse,
3371+
RegionalHostnameListResponse,
3372+
RegionalHostnameDeleteResponse,
3373+
RegionalHostnameEditResponse,
3374+
RegionalHostnameGetResponse,
3375+
)
3376+
```
3377+
3378+
Methods:
3379+
3380+
- <code title="post /zones/{zone_id}/addressing/regional_hostnames">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/addressing/regional_hostname_create_params.py">params</a>) -> <a href="./src/cloudflare/types/addressing/regional_hostname_create_response.py">Optional</a></code>
3381+
- <code title="get /zones/{zone_id}/addressing/regional_hostnames">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/addressing/regional_hostname_list_response.py">SyncSinglePage[RegionalHostnameListResponse]</a></code>
3382+
- <code title="delete /zones/{zone_id}/addressing/regional_hostnames/{hostname}">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">delete</a>(hostname, \*, zone_id) -> <a href="./src/cloudflare/types/addressing/regional_hostname_delete_response.py">RegionalHostnameDeleteResponse</a></code>
3383+
- <code title="patch /zones/{zone_id}/addressing/regional_hostnames/{hostname}">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">edit</a>(hostname, \*, zone_id, \*\*<a href="src/cloudflare/types/addressing/regional_hostname_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/addressing/regional_hostname_edit_response.py">Optional</a></code>
3384+
- <code title="get /zones/{zone_id}/addressing/regional_hostnames/{hostname}">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">get</a>(hostname, \*, zone_id) -> <a href="./src/cloudflare/types/addressing/regional_hostname_get_response.py">Optional</a></code>
3385+
3386+
### Regions
3387+
3388+
Types:
3389+
3390+
```python
3391+
from cloudflare.types.addressing.regional_hostnames import RegionListResponse
3392+
```
3393+
3394+
Methods:
3395+
3396+
- <code title="get /accounts/{account_id}/addressing/regional_hostnames/regions">client.addressing.regional_hostnames.regions.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regions.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/addressing/regional_hostnames/region_list_response.py">SyncSinglePage[RegionListResponse]</a></code>
3397+
33643398
## Services
33653399

33663400
Types:
@@ -3907,6 +3941,26 @@ Types:
39073941
from cloudflare.types.magic_transit import HealthCheck, HealthCheckRate, HealthCheckType
39083942
```
39093943

3944+
## Apps
3945+
3946+
Types:
3947+
3948+
```python
3949+
from cloudflare.types.magic_transit import (
3950+
AppCreateResponse,
3951+
AppUpdateResponse,
3952+
AppListResponse,
3953+
AppDeleteResponse,
3954+
)
3955+
```
3956+
3957+
Methods:
3958+
3959+
- <code title="post /accounts/{account_id}/magic/apps">client.magic_transit.apps.<a href="./src/cloudflare/resources/magic_transit/apps.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/magic_transit/app_create_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/app_create_response.py">Optional</a></code>
3960+
- <code title="put /accounts/{account_id}/magic/apps/{account_app_id}">client.magic_transit.apps.<a href="./src/cloudflare/resources/magic_transit/apps.py">update</a>(account_app_id, \*, account_id, \*\*<a href="src/cloudflare/types/magic_transit/app_update_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/app_update_response.py">Optional</a></code>
3961+
- <code title="get /accounts/{account_id}/magic/apps">client.magic_transit.apps.<a href="./src/cloudflare/resources/magic_transit/apps.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_transit/app_list_response.py">SyncSinglePage[AppListResponse]</a></code>
3962+
- <code title="delete /accounts/{account_id}/magic/apps/{account_app_id}">client.magic_transit.apps.<a href="./src/cloudflare/resources/magic_transit/apps.py">delete</a>(account_app_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_transit/app_delete_response.py">Optional</a></code>
3963+
39103964
## CfInterconnects
39113965

39123966
Types:
@@ -4073,6 +4127,28 @@ Methods:
40734127
- <code title="patch /accounts/{account_id}/magic/sites/{site_id}/wans/{wan_id}">client.magic_transit.sites.wans.<a href="./src/cloudflare/resources/magic_transit/sites/wans.py">edit</a>(wan_id, \*, account_id, site_id, \*\*<a href="src/cloudflare/types/magic_transit/sites/wan_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/sites/wan.py">WAN</a></code>
40744128
- <code title="get /accounts/{account_id}/magic/sites/{site_id}/wans/{wan_id}">client.magic_transit.sites.wans.<a href="./src/cloudflare/resources/magic_transit/sites/wans.py">get</a>(wan_id, \*, account_id, site_id) -> <a href="./src/cloudflare/types/magic_transit/sites/wan.py">WAN</a></code>
40754129

4130+
### Sites
4131+
4132+
#### AppConfiguration
4133+
4134+
Types:
4135+
4136+
```python
4137+
from cloudflare.types.magic_transit.sites.sites import (
4138+
AppConfigurationCreateResponse,
4139+
AppConfigurationUpdateResponse,
4140+
AppConfigurationListResponse,
4141+
AppConfigurationDeleteResponse,
4142+
)
4143+
```
4144+
4145+
Methods:
4146+
4147+
- <code title="post /accounts/{account_id}/magic/sites/{site_id}/app_configs">client.magic_transit.sites.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py">create</a>(site_id, \*, account_id, \*\*<a href="src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/sites/sites/app_configuration_create_response.py">Optional</a></code>
4148+
- <code title="put /accounts/{account_id}/magic/sites/{site_id}/app_configs/{app_config_id}">client.magic_transit.sites.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py">update</a>(app_config_id, \*, account_id, site_id, \*\*<a href="src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_params.py">params</a>) -> <a href="./src/cloudflare/types/magic_transit/sites/sites/app_configuration_update_response.py">Optional</a></code>
4149+
- <code title="get /accounts/{account_id}/magic/sites/{site_id}/app_configs">client.magic_transit.sites.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py">list</a>(site_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_transit/sites/sites/app_configuration_list_response.py">SyncSinglePage[AppConfigurationListResponse]</a></code>
4150+
- <code title="delete /accounts/{account_id}/magic/sites/{site_id}/app_configs/{app_config_id}">client.magic_transit.sites.sites.app_configuration.<a href="./src/cloudflare/resources/magic_transit/sites/sites/app_configuration.py">delete</a>(app_config_id, \*, account_id, site_id) -> <a href="./src/cloudflare/types/magic_transit/sites/sites/app_configuration_delete_response.py">Optional</a></code>
4151+
40764152
## Connectors
40774153

40784154
Types:

src/cloudflare/resources/addressing/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,22 @@
4040
LOADocumentsResourceWithStreamingResponse,
4141
AsyncLOADocumentsResourceWithStreamingResponse,
4242
)
43+
from .regional_hostnames import (
44+
RegionalHostnamesResource,
45+
AsyncRegionalHostnamesResource,
46+
RegionalHostnamesResourceWithRawResponse,
47+
AsyncRegionalHostnamesResourceWithRawResponse,
48+
RegionalHostnamesResourceWithStreamingResponse,
49+
AsyncRegionalHostnamesResourceWithStreamingResponse,
50+
)
4351

4452
__all__ = [
53+
"RegionalHostnamesResource",
54+
"AsyncRegionalHostnamesResource",
55+
"RegionalHostnamesResourceWithRawResponse",
56+
"AsyncRegionalHostnamesResourceWithRawResponse",
57+
"RegionalHostnamesResourceWithStreamingResponse",
58+
"AsyncRegionalHostnamesResourceWithStreamingResponse",
4559
"ServicesResource",
4660
"AsyncServicesResource",
4761
"ServicesResourceWithRawResponse",

src/cloudflare/resources/addressing/addressing.py

+33
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,26 @@
3737
AsyncLOADocumentsResourceWithStreamingResponse,
3838
)
3939
from .prefixes.prefixes import PrefixesResource, AsyncPrefixesResource
40+
from .regional_hostnames import (
41+
RegionalHostnamesResource,
42+
AsyncRegionalHostnamesResource,
43+
RegionalHostnamesResourceWithRawResponse,
44+
AsyncRegionalHostnamesResourceWithRawResponse,
45+
RegionalHostnamesResourceWithStreamingResponse,
46+
AsyncRegionalHostnamesResourceWithStreamingResponse,
47+
)
4048
from .address_maps.address_maps import AddressMapsResource, AsyncAddressMapsResource
4149
from .loa_documents.loa_documents import LOADocumentsResource, AsyncLOADocumentsResource
50+
from .regional_hostnames.regional_hostnames import RegionalHostnamesResource, AsyncRegionalHostnamesResource
4251

4352
__all__ = ["AddressingResource", "AsyncAddressingResource"]
4453

4554

4655
class AddressingResource(SyncAPIResource):
56+
@cached_property
57+
def regional_hostnames(self) -> RegionalHostnamesResource:
58+
return RegionalHostnamesResource(self._client)
59+
4760
@cached_property
4861
def services(self) -> ServicesResource:
4962
return ServicesResource(self._client)
@@ -70,6 +83,10 @@ def with_streaming_response(self) -> AddressingResourceWithStreamingResponse:
7083

7184

7285
class AsyncAddressingResource(AsyncAPIResource):
86+
@cached_property
87+
def regional_hostnames(self) -> AsyncRegionalHostnamesResource:
88+
return AsyncRegionalHostnamesResource(self._client)
89+
7390
@cached_property
7491
def services(self) -> AsyncServicesResource:
7592
return AsyncServicesResource(self._client)
@@ -99,6 +116,10 @@ class AddressingResourceWithRawResponse:
99116
def __init__(self, addressing: AddressingResource) -> None:
100117
self._addressing = addressing
101118

119+
@cached_property
120+
def regional_hostnames(self) -> RegionalHostnamesResourceWithRawResponse:
121+
return RegionalHostnamesResourceWithRawResponse(self._addressing.regional_hostnames)
122+
102123
@cached_property
103124
def services(self) -> ServicesResourceWithRawResponse:
104125
return ServicesResourceWithRawResponse(self._addressing.services)
@@ -120,6 +141,10 @@ class AsyncAddressingResourceWithRawResponse:
120141
def __init__(self, addressing: AsyncAddressingResource) -> None:
121142
self._addressing = addressing
122143

144+
@cached_property
145+
def regional_hostnames(self) -> AsyncRegionalHostnamesResourceWithRawResponse:
146+
return AsyncRegionalHostnamesResourceWithRawResponse(self._addressing.regional_hostnames)
147+
123148
@cached_property
124149
def services(self) -> AsyncServicesResourceWithRawResponse:
125150
return AsyncServicesResourceWithRawResponse(self._addressing.services)
@@ -141,6 +166,10 @@ class AddressingResourceWithStreamingResponse:
141166
def __init__(self, addressing: AddressingResource) -> None:
142167
self._addressing = addressing
143168

169+
@cached_property
170+
def regional_hostnames(self) -> RegionalHostnamesResourceWithStreamingResponse:
171+
return RegionalHostnamesResourceWithStreamingResponse(self._addressing.regional_hostnames)
172+
144173
@cached_property
145174
def services(self) -> ServicesResourceWithStreamingResponse:
146175
return ServicesResourceWithStreamingResponse(self._addressing.services)
@@ -162,6 +191,10 @@ class AsyncAddressingResourceWithStreamingResponse:
162191
def __init__(self, addressing: AsyncAddressingResource) -> None:
163192
self._addressing = addressing
164193

194+
@cached_property
195+
def regional_hostnames(self) -> AsyncRegionalHostnamesResourceWithStreamingResponse:
196+
return AsyncRegionalHostnamesResourceWithStreamingResponse(self._addressing.regional_hostnames)
197+
165198
@cached_property
166199
def services(self) -> AsyncServicesResourceWithStreamingResponse:
167200
return AsyncServicesResourceWithStreamingResponse(self._addressing.services)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .regions import (
4+
RegionsResource,
5+
AsyncRegionsResource,
6+
RegionsResourceWithRawResponse,
7+
AsyncRegionsResourceWithRawResponse,
8+
RegionsResourceWithStreamingResponse,
9+
AsyncRegionsResourceWithStreamingResponse,
10+
)
11+
from .regional_hostnames import (
12+
RegionalHostnamesResource,
13+
AsyncRegionalHostnamesResource,
14+
RegionalHostnamesResourceWithRawResponse,
15+
AsyncRegionalHostnamesResourceWithRawResponse,
16+
RegionalHostnamesResourceWithStreamingResponse,
17+
AsyncRegionalHostnamesResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"RegionsResource",
22+
"AsyncRegionsResource",
23+
"RegionsResourceWithRawResponse",
24+
"AsyncRegionsResourceWithRawResponse",
25+
"RegionsResourceWithStreamingResponse",
26+
"AsyncRegionsResourceWithStreamingResponse",
27+
"RegionalHostnamesResource",
28+
"AsyncRegionalHostnamesResource",
29+
"RegionalHostnamesResourceWithRawResponse",
30+
"AsyncRegionalHostnamesResourceWithRawResponse",
31+
"RegionalHostnamesResourceWithStreamingResponse",
32+
"AsyncRegionalHostnamesResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)