Skip to content

Commit 46898b8

Browse files
feat: feat: add resource library endpoints inside zero trust
* feat: add resource library endpoints inside zero trust * fix: configure resource library endpoints as data sources only in terraform * feat: add terraform resource names for zero trust resource library endpoints * feat: restructure resource library endpoints to nest applications under subresources * fix: standardize account_id parameter naming in resource library endpoints * feat: add resource library endpoints inside zero trust
1 parent a92f9ef commit 46898b8

18 files changed

Lines changed: 1550 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: 2204
1+
configured_endpoints: 2208
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
33
openapi_spec_hash: e722ad1f58e3dfb3a928cf9890d48da4
4-
config_hash: ff549978909de2badc92845fea964f4b
4+
config_hash: 20574d7a53e0349a3337a121a46638d4

src/cloudflare/resources/zero_trust/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@
8888
OrganizationsResourceWithStreamingResponse,
8989
AsyncOrganizationsResourceWithStreamingResponse,
9090
)
91+
from .resource_library import (
92+
ResourceLibraryResource,
93+
AsyncResourceLibraryResource,
94+
ResourceLibraryResourceWithRawResponse,
95+
AsyncResourceLibraryResourceWithRawResponse,
96+
ResourceLibraryResourceWithStreamingResponse,
97+
AsyncResourceLibraryResourceWithStreamingResponse,
98+
)
9199
from .identity_providers import (
92100
IdentityProvidersResource,
93101
AsyncIdentityProvidersResource,
@@ -178,6 +186,12 @@
178186
"AsyncRiskScoringResourceWithRawResponse",
179187
"RiskScoringResourceWithStreamingResponse",
180188
"AsyncRiskScoringResourceWithStreamingResponse",
189+
"ResourceLibraryResource",
190+
"AsyncResourceLibraryResource",
191+
"ResourceLibraryResourceWithRawResponse",
192+
"AsyncResourceLibraryResourceWithRawResponse",
193+
"ResourceLibraryResourceWithStreamingResponse",
194+
"AsyncResourceLibraryResourceWithStreamingResponse",
181195
"ZeroTrustResource",
182196
"AsyncZeroTrustResource",
183197
"ZeroTrustResourceWithRawResponse",

src/cloudflare/resources/zero_trust/api.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1978,3 +1978,34 @@ from cloudflare.types.zero_trust.risk_scoring.integrations import ReferenceGetRe
19781978
Methods:
19791979

19801980
- <code title="get /accounts/{account_id}/zt_risk_scoring/integrations/reference_id/{reference_id}">client.zero_trust.risk_scoring.integrations.references.<a href="./src/cloudflare/resources/zero_trust/risk_scoring/integrations/references.py">get</a>(reference_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/risk_scoring/integrations/reference_get_response.py">Optional[ReferenceGetResponse]</a></code>
1981+
1982+
## ResourceLibrary
1983+
1984+
### Applications
1985+
1986+
Types:
1987+
1988+
```python
1989+
from cloudflare.types.zero_trust.resource_library import (
1990+
ApplicationListResponse,
1991+
ApplicationGetResponse,
1992+
)
1993+
```
1994+
1995+
Methods:
1996+
1997+
- <code title="get /accounts/{account_id}/resource-library/applications">client.zero_trust.resource_library.applications.<a href="./src/cloudflare/resources/zero_trust/resource_library/applications.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/resource_library/application_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/resource_library/application_list_response.py">SyncSinglePage[ApplicationListResponse]</a></code>
1998+
- <code title="get /accounts/{account_id}/resource-library/applications/{id}">client.zero_trust.resource_library.applications.<a href="./src/cloudflare/resources/zero_trust/resource_library/applications.py">get</a>(id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/resource_library/application_get_response.py">Optional[ApplicationGetResponse]</a></code>
1999+
2000+
### Categories
2001+
2002+
Types:
2003+
2004+
```python
2005+
from cloudflare.types.zero_trust.resource_library import CategoryListResponse, CategoryGetResponse
2006+
```
2007+
2008+
Methods:
2009+
2010+
- <code title="get /accounts/{account_id}/resource-library/categories">client.zero_trust.resource_library.categories.<a href="./src/cloudflare/resources/zero_trust/resource_library/categories.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/resource_library/category_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/resource_library/category_list_response.py">SyncSinglePage[CategoryListResponse]</a></code>
2011+
- <code title="get /accounts/{account_id}/resource-library/categories/{id}">client.zero_trust.resource_library.categories.<a href="./src/cloudflare/resources/zero_trust/resource_library/categories.py">get</a>(id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/resource_library/category_get_response.py">Optional[CategoryGetResponse]</a></code>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .categories import (
4+
CategoriesResource,
5+
AsyncCategoriesResource,
6+
CategoriesResourceWithRawResponse,
7+
AsyncCategoriesResourceWithRawResponse,
8+
CategoriesResourceWithStreamingResponse,
9+
AsyncCategoriesResourceWithStreamingResponse,
10+
)
11+
from .applications import (
12+
ApplicationsResource,
13+
AsyncApplicationsResource,
14+
ApplicationsResourceWithRawResponse,
15+
AsyncApplicationsResourceWithRawResponse,
16+
ApplicationsResourceWithStreamingResponse,
17+
AsyncApplicationsResourceWithStreamingResponse,
18+
)
19+
from .resource_library import (
20+
ResourceLibraryResource,
21+
AsyncResourceLibraryResource,
22+
ResourceLibraryResourceWithRawResponse,
23+
AsyncResourceLibraryResourceWithRawResponse,
24+
ResourceLibraryResourceWithStreamingResponse,
25+
AsyncResourceLibraryResourceWithStreamingResponse,
26+
)
27+
28+
__all__ = [
29+
"ApplicationsResource",
30+
"AsyncApplicationsResource",
31+
"ApplicationsResourceWithRawResponse",
32+
"AsyncApplicationsResourceWithRawResponse",
33+
"ApplicationsResourceWithStreamingResponse",
34+
"AsyncApplicationsResourceWithStreamingResponse",
35+
"CategoriesResource",
36+
"AsyncCategoriesResource",
37+
"CategoriesResourceWithRawResponse",
38+
"AsyncCategoriesResourceWithRawResponse",
39+
"CategoriesResourceWithStreamingResponse",
40+
"AsyncCategoriesResourceWithStreamingResponse",
41+
"ResourceLibraryResource",
42+
"AsyncResourceLibraryResource",
43+
"ResourceLibraryResourceWithRawResponse",
44+
"AsyncResourceLibraryResourceWithRawResponse",
45+
"ResourceLibraryResourceWithStreamingResponse",
46+
"AsyncResourceLibraryResourceWithStreamingResponse",
47+
]

0 commit comments

Comments
 (0)