Skip to content

Commit fc06837

Browse files
feat: feat: add connectivity directory service APIs to openapi.stainless.yml
* fix: add proper terraform annotations to connectivity_directory_service * feat: add connectivity directory service APIs to openapi.stainless.yml
1 parent 3c18fd3 commit fc06837

17 files changed

Lines changed: 1659 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1815
1+
configured_endpoints: 1820
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
33
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
4-
config_hash: e3e634649e3d70e58e153b878d29e446
4+
config_hash: ced339c69004cc06854b37a59f5d270a

api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6396,6 +6396,20 @@ Methods:
63966396
- <code title="patch /accounts/{account_id}/zerotrust/connectivity_settings">client.zero_trust.connectivity_settings.<a href="./src/cloudflare/resources/zero_trust/connectivity_settings.py">edit</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/connectivity_setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/connectivity_setting_edit_response.py">ConnectivitySettingEditResponse</a></code>
63976397
- <code title="get /accounts/{account_id}/zerotrust/connectivity_settings">client.zero_trust.connectivity_settings.<a href="./src/cloudflare/resources/zero_trust/connectivity_settings.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/connectivity_setting_get_response.py">ConnectivitySettingGetResponse</a></code>
63986398

6399+
## Connectivity
6400+
6401+
### Directory
6402+
6403+
#### Services
6404+
6405+
Methods:
6406+
6407+
- <code title="post /accounts/{account_id}/connectivity/directory/services">client.zero_trust.connectivity.directory.services.<a href="./src/cloudflare/resources/zero_trust/connectivity/directory/services.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/connectivity/directory/service_create_params.py">params</a>) -> None</code>
6408+
- <code title="put /accounts/{account_id}/connectivity/directory/services/{service_id}">client.zero_trust.connectivity.directory.services.<a href="./src/cloudflare/resources/zero_trust/connectivity/directory/services.py">update</a>(service_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/connectivity/directory/service_update_params.py">params</a>) -> None</code>
6409+
- <code title="get /accounts/{account_id}/connectivity/directory/services">client.zero_trust.connectivity.directory.services.<a href="./src/cloudflare/resources/zero_trust/connectivity/directory/services.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/connectivity/directory/service_list_params.py">params</a>) -> None</code>
6410+
- <code title="delete /accounts/{account_id}/connectivity/directory/services/{service_id}">client.zero_trust.connectivity.directory.services.<a href="./src/cloudflare/resources/zero_trust/connectivity/directory/services.py">delete</a>(service_id, \*, account_id) -> None</code>
6411+
- <code title="get /accounts/{account_id}/connectivity/directory/services/{service_id}">client.zero_trust.connectivity.directory.services.<a href="./src/cloudflare/resources/zero_trust/connectivity/directory/services.py">get</a>(service_id, \*, account_id) -> None</code>
6412+
63996413
## DLP
64006414

64016415
### Datasets

src/cloudflare/resources/zero_trust/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272
ZeroTrustResourceWithStreamingResponse,
7373
AsyncZeroTrustResourceWithStreamingResponse,
7474
)
75+
from .connectivity import (
76+
ConnectivityResource,
77+
AsyncConnectivityResource,
78+
ConnectivityResourceWithRawResponse,
79+
AsyncConnectivityResourceWithRawResponse,
80+
ConnectivityResourceWithStreamingResponse,
81+
AsyncConnectivityResourceWithStreamingResponse,
82+
)
7583
from .risk_scoring import (
7684
RiskScoringResource,
7785
AsyncRiskScoringResource,
@@ -154,6 +162,12 @@
154162
"AsyncConnectivitySettingsResourceWithRawResponse",
155163
"ConnectivitySettingsResourceWithStreamingResponse",
156164
"AsyncConnectivitySettingsResourceWithStreamingResponse",
165+
"ConnectivityResource",
166+
"AsyncConnectivityResource",
167+
"ConnectivityResourceWithRawResponse",
168+
"AsyncConnectivityResourceWithRawResponse",
169+
"ConnectivityResourceWithStreamingResponse",
170+
"AsyncConnectivityResourceWithStreamingResponse",
157171
"DLPResource",
158172
"AsyncDLPResource",
159173
"DLPResourceWithRawResponse",
Lines changed: 33 additions & 0 deletions
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 .directory import (
4+
DirectoryResource,
5+
AsyncDirectoryResource,
6+
DirectoryResourceWithRawResponse,
7+
AsyncDirectoryResourceWithRawResponse,
8+
DirectoryResourceWithStreamingResponse,
9+
AsyncDirectoryResourceWithStreamingResponse,
10+
)
11+
from .connectivity import (
12+
ConnectivityResource,
13+
AsyncConnectivityResource,
14+
ConnectivityResourceWithRawResponse,
15+
AsyncConnectivityResourceWithRawResponse,
16+
ConnectivityResourceWithStreamingResponse,
17+
AsyncConnectivityResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"DirectoryResource",
22+
"AsyncDirectoryResource",
23+
"DirectoryResourceWithRawResponse",
24+
"AsyncDirectoryResourceWithRawResponse",
25+
"DirectoryResourceWithStreamingResponse",
26+
"AsyncDirectoryResourceWithStreamingResponse",
27+
"ConnectivityResource",
28+
"AsyncConnectivityResource",
29+
"ConnectivityResourceWithRawResponse",
30+
"AsyncConnectivityResourceWithRawResponse",
31+
"ConnectivityResourceWithStreamingResponse",
32+
"AsyncConnectivityResourceWithStreamingResponse",
33+
]
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from ...._compat import cached_property
6+
from ...._resource import SyncAPIResource, AsyncAPIResource
7+
from .directory.directory import (
8+
DirectoryResource,
9+
AsyncDirectoryResource,
10+
DirectoryResourceWithRawResponse,
11+
AsyncDirectoryResourceWithRawResponse,
12+
DirectoryResourceWithStreamingResponse,
13+
AsyncDirectoryResourceWithStreamingResponse,
14+
)
15+
16+
__all__ = ["ConnectivityResource", "AsyncConnectivityResource"]
17+
18+
19+
class ConnectivityResource(SyncAPIResource):
20+
@cached_property
21+
def directory(self) -> DirectoryResource:
22+
return DirectoryResource(self._client)
23+
24+
@cached_property
25+
def with_raw_response(self) -> ConnectivityResourceWithRawResponse:
26+
"""
27+
This property can be used as a prefix for any HTTP method call to return
28+
the raw response object instead of the parsed content.
29+
30+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
31+
"""
32+
return ConnectivityResourceWithRawResponse(self)
33+
34+
@cached_property
35+
def with_streaming_response(self) -> ConnectivityResourceWithStreamingResponse:
36+
"""
37+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38+
39+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
40+
"""
41+
return ConnectivityResourceWithStreamingResponse(self)
42+
43+
44+
class AsyncConnectivityResource(AsyncAPIResource):
45+
@cached_property
46+
def directory(self) -> AsyncDirectoryResource:
47+
return AsyncDirectoryResource(self._client)
48+
49+
@cached_property
50+
def with_raw_response(self) -> AsyncConnectivityResourceWithRawResponse:
51+
"""
52+
This property can be used as a prefix for any HTTP method call to return
53+
the raw response object instead of the parsed content.
54+
55+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
56+
"""
57+
return AsyncConnectivityResourceWithRawResponse(self)
58+
59+
@cached_property
60+
def with_streaming_response(self) -> AsyncConnectivityResourceWithStreamingResponse:
61+
"""
62+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63+
64+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
65+
"""
66+
return AsyncConnectivityResourceWithStreamingResponse(self)
67+
68+
69+
class ConnectivityResourceWithRawResponse:
70+
def __init__(self, connectivity: ConnectivityResource) -> None:
71+
self._connectivity = connectivity
72+
73+
@cached_property
74+
def directory(self) -> DirectoryResourceWithRawResponse:
75+
return DirectoryResourceWithRawResponse(self._connectivity.directory)
76+
77+
78+
class AsyncConnectivityResourceWithRawResponse:
79+
def __init__(self, connectivity: AsyncConnectivityResource) -> None:
80+
self._connectivity = connectivity
81+
82+
@cached_property
83+
def directory(self) -> AsyncDirectoryResourceWithRawResponse:
84+
return AsyncDirectoryResourceWithRawResponse(self._connectivity.directory)
85+
86+
87+
class ConnectivityResourceWithStreamingResponse:
88+
def __init__(self, connectivity: ConnectivityResource) -> None:
89+
self._connectivity = connectivity
90+
91+
@cached_property
92+
def directory(self) -> DirectoryResourceWithStreamingResponse:
93+
return DirectoryResourceWithStreamingResponse(self._connectivity.directory)
94+
95+
96+
class AsyncConnectivityResourceWithStreamingResponse:
97+
def __init__(self, connectivity: AsyncConnectivityResource) -> None:
98+
self._connectivity = connectivity
99+
100+
@cached_property
101+
def directory(self) -> AsyncDirectoryResourceWithStreamingResponse:
102+
return AsyncDirectoryResourceWithStreamingResponse(self._connectivity.directory)
Lines changed: 33 additions & 0 deletions
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 .services import (
4+
ServicesResource,
5+
AsyncServicesResource,
6+
ServicesResourceWithRawResponse,
7+
AsyncServicesResourceWithRawResponse,
8+
ServicesResourceWithStreamingResponse,
9+
AsyncServicesResourceWithStreamingResponse,
10+
)
11+
from .directory import (
12+
DirectoryResource,
13+
AsyncDirectoryResource,
14+
DirectoryResourceWithRawResponse,
15+
AsyncDirectoryResourceWithRawResponse,
16+
DirectoryResourceWithStreamingResponse,
17+
AsyncDirectoryResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"ServicesResource",
22+
"AsyncServicesResource",
23+
"ServicesResourceWithRawResponse",
24+
"AsyncServicesResourceWithRawResponse",
25+
"ServicesResourceWithStreamingResponse",
26+
"AsyncServicesResourceWithStreamingResponse",
27+
"DirectoryResource",
28+
"AsyncDirectoryResource",
29+
"DirectoryResourceWithRawResponse",
30+
"AsyncDirectoryResourceWithRawResponse",
31+
"DirectoryResourceWithStreamingResponse",
32+
"AsyncDirectoryResourceWithStreamingResponse",
33+
]
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from .services import (
6+
ServicesResource,
7+
AsyncServicesResource,
8+
ServicesResourceWithRawResponse,
9+
AsyncServicesResourceWithRawResponse,
10+
ServicesResourceWithStreamingResponse,
11+
AsyncServicesResourceWithStreamingResponse,
12+
)
13+
from ....._compat import cached_property
14+
from ....._resource import SyncAPIResource, AsyncAPIResource
15+
16+
__all__ = ["DirectoryResource", "AsyncDirectoryResource"]
17+
18+
19+
class DirectoryResource(SyncAPIResource):
20+
@cached_property
21+
def services(self) -> ServicesResource:
22+
return ServicesResource(self._client)
23+
24+
@cached_property
25+
def with_raw_response(self) -> DirectoryResourceWithRawResponse:
26+
"""
27+
This property can be used as a prefix for any HTTP method call to return
28+
the raw response object instead of the parsed content.
29+
30+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
31+
"""
32+
return DirectoryResourceWithRawResponse(self)
33+
34+
@cached_property
35+
def with_streaming_response(self) -> DirectoryResourceWithStreamingResponse:
36+
"""
37+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38+
39+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
40+
"""
41+
return DirectoryResourceWithStreamingResponse(self)
42+
43+
44+
class AsyncDirectoryResource(AsyncAPIResource):
45+
@cached_property
46+
def services(self) -> AsyncServicesResource:
47+
return AsyncServicesResource(self._client)
48+
49+
@cached_property
50+
def with_raw_response(self) -> AsyncDirectoryResourceWithRawResponse:
51+
"""
52+
This property can be used as a prefix for any HTTP method call to return
53+
the raw response object instead of the parsed content.
54+
55+
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers
56+
"""
57+
return AsyncDirectoryResourceWithRawResponse(self)
58+
59+
@cached_property
60+
def with_streaming_response(self) -> AsyncDirectoryResourceWithStreamingResponse:
61+
"""
62+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63+
64+
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response
65+
"""
66+
return AsyncDirectoryResourceWithStreamingResponse(self)
67+
68+
69+
class DirectoryResourceWithRawResponse:
70+
def __init__(self, directory: DirectoryResource) -> None:
71+
self._directory = directory
72+
73+
@cached_property
74+
def services(self) -> ServicesResourceWithRawResponse:
75+
return ServicesResourceWithRawResponse(self._directory.services)
76+
77+
78+
class AsyncDirectoryResourceWithRawResponse:
79+
def __init__(self, directory: AsyncDirectoryResource) -> None:
80+
self._directory = directory
81+
82+
@cached_property
83+
def services(self) -> AsyncServicesResourceWithRawResponse:
84+
return AsyncServicesResourceWithRawResponse(self._directory.services)
85+
86+
87+
class DirectoryResourceWithStreamingResponse:
88+
def __init__(self, directory: DirectoryResource) -> None:
89+
self._directory = directory
90+
91+
@cached_property
92+
def services(self) -> ServicesResourceWithStreamingResponse:
93+
return ServicesResourceWithStreamingResponse(self._directory.services)
94+
95+
96+
class AsyncDirectoryResourceWithStreamingResponse:
97+
def __init__(self, directory: AsyncDirectoryResource) -> None:
98+
self._directory = directory
99+
100+
@cached_property
101+
def services(self) -> AsyncServicesResourceWithStreamingResponse:
102+
return AsyncServicesResourceWithStreamingResponse(self._directory.services)

0 commit comments

Comments
 (0)