Skip to content

Commit 5c405ce

Browse files
feat(access_settings): add CRUD support
1 parent 1788a72 commit 5c405ce

File tree

11 files changed

+818
-2
lines changed

11 files changed

+818
-2
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1711
1+
configured_endpoints: 1713
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ecd33718055a881f934a11ead007f2b0cfc65df9bae35bf1616e3a3c32bd6705.yml
33
openapi_spec_hash: e863852213e01c0f1e48d9557a2888d8
4-
config_hash: 161785081308d4246057a8723ae7d7e2
4+
config_hash: 4a6de620bf46745e17466ceac26f41d4

api.md

+16
Original file line numberDiff line numberDiff line change
@@ -5777,6 +5777,22 @@ Methods:
57775777

57785778
- <code title="get /accounts/{account_id}/access/policy-tests/{policy_test_id}/users">client.zero_trust.access.applications.policy_tests.users.<a href="./src/cloudflare/resources/zero_trust/access/applications/policy_tests/users.py">list</a>(policy_test_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/access/applications/policy_tests/user_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/applications/policy_tests/user_list_response.py">SyncV4PagePaginationArray[UserListResponse]</a></code>
57795779

5780+
#### Settings
5781+
5782+
Types:
5783+
5784+
```python
5785+
from cloudflare.types.zero_trust.access.applications import (
5786+
SettingUpdateResponse,
5787+
SettingEditResponse,
5788+
)
5789+
```
5790+
5791+
Methods:
5792+
5793+
- <code title="put /{accounts_or_zones}/{account_or_zone_id}/access/apps/{app_id}/settings">client.zero_trust.access.applications.settings.<a href="./src/cloudflare/resources/zero_trust/access/applications/settings.py">update</a>(app_id, \*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/applications/setting_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/applications/setting_update_response.py">Optional[SettingUpdateResponse]</a></code>
5794+
- <code title="patch /{accounts_or_zones}/{account_or_zone_id}/access/apps/{app_id}/settings">client.zero_trust.access.applications.settings.<a href="./src/cloudflare/resources/zero_trust/access/applications/settings.py">edit</a>(app_id, \*, account_id, zone_id, \*\*<a href="src/cloudflare/types/zero_trust/access/applications/setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/access/applications/setting_edit_response.py">Optional[SettingEditResponse]</a></code>
5795+
57805796
### Certificates
57815797

57825798
Types:

src/cloudflare/resources/zero_trust/access/applications/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
PoliciesResourceWithStreamingResponse,
1717
AsyncPoliciesResourceWithStreamingResponse,
1818
)
19+
from .settings import (
20+
SettingsResource,
21+
AsyncSettingsResource,
22+
SettingsResourceWithRawResponse,
23+
AsyncSettingsResourceWithRawResponse,
24+
SettingsResourceWithStreamingResponse,
25+
AsyncSettingsResourceWithStreamingResponse,
26+
)
1927
from .applications import (
2028
ApplicationsResource,
2129
AsyncApplicationsResource,
@@ -66,6 +74,12 @@
6674
"AsyncPolicyTestsResourceWithRawResponse",
6775
"PolicyTestsResourceWithStreamingResponse",
6876
"AsyncPolicyTestsResourceWithStreamingResponse",
77+
"SettingsResource",
78+
"AsyncSettingsResource",
79+
"SettingsResourceWithRawResponse",
80+
"AsyncSettingsResourceWithRawResponse",
81+
"SettingsResourceWithStreamingResponse",
82+
"AsyncSettingsResourceWithStreamingResponse",
6983
"ApplicationsResource",
7084
"AsyncApplicationsResource",
7185
"ApplicationsResourceWithRawResponse",

src/cloudflare/resources/zero_trust/access/applications/applications.py

+32
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
PoliciesResourceWithStreamingResponse,
2424
AsyncPoliciesResourceWithStreamingResponse,
2525
)
26+
from .settings import (
27+
SettingsResource,
28+
AsyncSettingsResource,
29+
SettingsResourceWithRawResponse,
30+
AsyncSettingsResourceWithRawResponse,
31+
SettingsResourceWithStreamingResponse,
32+
AsyncSettingsResourceWithStreamingResponse,
33+
)
2634
from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
2735
from ....._utils import maybe_transform, async_maybe_transform
2836
from ....._compat import cached_property
@@ -90,6 +98,10 @@ def policies(self) -> PoliciesResource:
9098
def policy_tests(self) -> PolicyTestsResource:
9199
return PolicyTestsResource(self._client)
92100

101+
@cached_property
102+
def settings(self) -> SettingsResource:
103+
return SettingsResource(self._client)
104+
93105
@cached_property
94106
def with_raw_response(self) -> ApplicationsResourceWithRawResponse:
95107
"""
@@ -2575,6 +2587,10 @@ def policies(self) -> AsyncPoliciesResource:
25752587
def policy_tests(self) -> AsyncPolicyTestsResource:
25762588
return AsyncPolicyTestsResource(self._client)
25772589

2590+
@cached_property
2591+
def settings(self) -> AsyncSettingsResource:
2592+
return AsyncSettingsResource(self._client)
2593+
25782594
@cached_property
25792595
def with_raw_response(self) -> AsyncApplicationsResourceWithRawResponse:
25802596
"""
@@ -5082,6 +5098,10 @@ def policies(self) -> PoliciesResourceWithRawResponse:
50825098
def policy_tests(self) -> PolicyTestsResourceWithRawResponse:
50835099
return PolicyTestsResourceWithRawResponse(self._applications.policy_tests)
50845100

5101+
@cached_property
5102+
def settings(self) -> SettingsResourceWithRawResponse:
5103+
return SettingsResourceWithRawResponse(self._applications.settings)
5104+
50855105

50865106
class AsyncApplicationsResourceWithRawResponse:
50875107
def __init__(self, applications: AsyncApplicationsResource) -> None:
@@ -5122,6 +5142,10 @@ def policies(self) -> AsyncPoliciesResourceWithRawResponse:
51225142
def policy_tests(self) -> AsyncPolicyTestsResourceWithRawResponse:
51235143
return AsyncPolicyTestsResourceWithRawResponse(self._applications.policy_tests)
51245144

5145+
@cached_property
5146+
def settings(self) -> AsyncSettingsResourceWithRawResponse:
5147+
return AsyncSettingsResourceWithRawResponse(self._applications.settings)
5148+
51255149

51265150
class ApplicationsResourceWithStreamingResponse:
51275151
def __init__(self, applications: ApplicationsResource) -> None:
@@ -5162,6 +5186,10 @@ def policies(self) -> PoliciesResourceWithStreamingResponse:
51625186
def policy_tests(self) -> PolicyTestsResourceWithStreamingResponse:
51635187
return PolicyTestsResourceWithStreamingResponse(self._applications.policy_tests)
51645188

5189+
@cached_property
5190+
def settings(self) -> SettingsResourceWithStreamingResponse:
5191+
return SettingsResourceWithStreamingResponse(self._applications.settings)
5192+
51655193

51665194
class AsyncApplicationsResourceWithStreamingResponse:
51675195
def __init__(self, applications: AsyncApplicationsResource) -> None:
@@ -5201,3 +5229,7 @@ def policies(self) -> AsyncPoliciesResourceWithStreamingResponse:
52015229
@cached_property
52025230
def policy_tests(self) -> AsyncPolicyTestsResourceWithStreamingResponse:
52035231
return AsyncPolicyTestsResourceWithStreamingResponse(self._applications.policy_tests)
5232+
5233+
@cached_property
5234+
def settings(self) -> AsyncSettingsResourceWithStreamingResponse:
5235+
return AsyncSettingsResourceWithStreamingResponse(self._applications.settings)

0 commit comments

Comments
 (0)