Skip to content

Commit a0562cc

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#168)
1 parent 0de118b commit a0562cc

30 files changed

+3398
-2
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 1275
1+
configured_endpoints: 1290

api.md

+41-1
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,19 @@ Methods:
387387

388388
- <code title="put /zones/{zone_id}/activation_check">client.zones.activation_check.<a href="./src/cloudflare/resources/zones/activation_check.py">trigger</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/activation_check_trigger_response.py">ActivationCheckTriggerResponse</a></code>
389389

390+
## DNSSettings
391+
392+
Types:
393+
394+
```python
395+
from cloudflare.types.zones import DNSSettingEditResponse, DNSSettingGetResponse
396+
```
397+
398+
Methods:
399+
400+
- <code title="patch /zones/{zone_id}/dns_settings">client.zones.dns_settings.<a href="./src/cloudflare/resources/zones/dns_settings.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/dns_setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/dns_setting_edit_response.py">DNSSettingEditResponse</a></code>
401+
- <code title="get /zones/{zone_id}/dns_settings">client.zones.dns_settings.<a href="./src/cloudflare/resources/zones/dns_settings.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/dns_setting_get_response.py">DNSSettingGetResponse</a></code>
402+
390403
## Settings
391404

392405
Types:
@@ -3938,14 +3951,37 @@ Types:
39383951
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMConfig
39393952
```
39403953

3954+
Methods:
3955+
3956+
- <code title="post /accounts/{account_id}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">create</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3957+
- <code title="put /accounts/{account_id}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">update</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3958+
- <code title="delete /accounts/{account_id}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">delete</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3959+
- <code title="patch /accounts/{account_id}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">edit</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3960+
- <code title="get /accounts/{account_id}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3961+
3962+
### Full
3963+
3964+
Methods:
3965+
3966+
- <code title="get /accounts/{account_id}/mnm/config/full">client.magic_network_monitoring.configs.full.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/full.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3967+
39413968
## Rules
39423969

39433970
Types:
39443971

39453972
```python
3946-
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMRule
3973+
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMRule, RuleListResponse
39473974
```
39483975

3976+
Methods:
3977+
3978+
- <code title="post /accounts/{account_id}/mnm/rules">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">create</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3979+
- <code title="put /accounts/{account_id}/mnm/rules">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">update</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3980+
- <code title="get /accounts/{account_id}/mnm/rules">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/rule_list_response.py">Optional</a></code>
3981+
- <code title="delete /accounts/{account_id}/mnm/rules/{rule_id}">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">delete</a>(rule_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3982+
- <code title="patch /accounts/{account_id}/mnm/rules/{rule_id}">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">edit</a>(rule_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3983+
- <code title="get /accounts/{account_id}/mnm/rules/{rule_id}">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">get</a>(rule_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3984+
39493985
### Advertisements
39503986

39513987
Types:
@@ -3954,6 +3990,10 @@ Types:
39543990
from cloudflare.types.magic_network_monitoring.rules import MagicVisibilityMNMRuleAdvertisable
39553991
```
39563992

3993+
Methods:
3994+
3995+
- <code title="patch /accounts/{account_id}/mnm/rules/{rule_id}/advertisement">client.magic_network_monitoring.rules.advertisements.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py">edit</a>(rule_id, \*, account_id) -> <a href="./src/cloudflare/types/magic_network_monitoring/rules/magic_visibility_mnm_rule_advertisable.py">Optional</a></code>
3996+
39573997
# MTLSCertificates
39583998

39593999
Types:

src/cloudflare/_client.py

+14
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class Cloudflare(SyncAPIClient):
9898
images: resources.Images
9999
intel: resources.Intel
100100
magic_transit: resources.MagicTransit
101+
magic_network_monitoring: resources.MagicNetworkMonitoring
101102
mtls_certificates: resources.MTLSCertificates
102103
pages: resources.Pages
103104
pcaps: resources.PCAPs
@@ -250,6 +251,7 @@ def __init__(
250251
self.images = resources.Images(self)
251252
self.intel = resources.Intel(self)
252253
self.magic_transit = resources.MagicTransit(self)
254+
self.magic_network_monitoring = resources.MagicNetworkMonitoring(self)
253255
self.mtls_certificates = resources.MTLSCertificates(self)
254256
self.pages = resources.Pages(self)
255257
self.pcaps = resources.PCAPs(self)
@@ -507,6 +509,7 @@ class AsyncCloudflare(AsyncAPIClient):
507509
images: resources.AsyncImages
508510
intel: resources.AsyncIntel
509511
magic_transit: resources.AsyncMagicTransit
512+
magic_network_monitoring: resources.AsyncMagicNetworkMonitoring
510513
mtls_certificates: resources.AsyncMTLSCertificates
511514
pages: resources.AsyncPages
512515
pcaps: resources.AsyncPCAPs
@@ -659,6 +662,7 @@ def __init__(
659662
self.images = resources.AsyncImages(self)
660663
self.intel = resources.AsyncIntel(self)
661664
self.magic_transit = resources.AsyncMagicTransit(self)
665+
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoring(self)
662666
self.mtls_certificates = resources.AsyncMTLSCertificates(self)
663667
self.pages = resources.AsyncPages(self)
664668
self.pcaps = resources.AsyncPCAPs(self)
@@ -917,6 +921,7 @@ def __init__(self, client: Cloudflare) -> None:
917921
self.images = resources.ImagesWithRawResponse(client.images)
918922
self.intel = resources.IntelWithRawResponse(client.intel)
919923
self.magic_transit = resources.MagicTransitWithRawResponse(client.magic_transit)
924+
self.magic_network_monitoring = resources.MagicNetworkMonitoringWithRawResponse(client.magic_network_monitoring)
920925
self.mtls_certificates = resources.MTLSCertificatesWithRawResponse(client.mtls_certificates)
921926
self.pages = resources.PagesWithRawResponse(client.pages)
922927
self.pcaps = resources.PCAPsWithRawResponse(client.pcaps)
@@ -1004,6 +1009,9 @@ def __init__(self, client: AsyncCloudflare) -> None:
10041009
self.images = resources.AsyncImagesWithRawResponse(client.images)
10051010
self.intel = resources.AsyncIntelWithRawResponse(client.intel)
10061011
self.magic_transit = resources.AsyncMagicTransitWithRawResponse(client.magic_transit)
1012+
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithRawResponse(
1013+
client.magic_network_monitoring
1014+
)
10071015
self.mtls_certificates = resources.AsyncMTLSCertificatesWithRawResponse(client.mtls_certificates)
10081016
self.pages = resources.AsyncPagesWithRawResponse(client.pages)
10091017
self.pcaps = resources.AsyncPCAPsWithRawResponse(client.pcaps)
@@ -1091,6 +1099,9 @@ def __init__(self, client: Cloudflare) -> None:
10911099
self.images = resources.ImagesWithStreamingResponse(client.images)
10921100
self.intel = resources.IntelWithStreamingResponse(client.intel)
10931101
self.magic_transit = resources.MagicTransitWithStreamingResponse(client.magic_transit)
1102+
self.magic_network_monitoring = resources.MagicNetworkMonitoringWithStreamingResponse(
1103+
client.magic_network_monitoring
1104+
)
10941105
self.mtls_certificates = resources.MTLSCertificatesWithStreamingResponse(client.mtls_certificates)
10951106
self.pages = resources.PagesWithStreamingResponse(client.pages)
10961107
self.pcaps = resources.PCAPsWithStreamingResponse(client.pcaps)
@@ -1182,6 +1193,9 @@ def __init__(self, client: AsyncCloudflare) -> None:
11821193
self.images = resources.AsyncImagesWithStreamingResponse(client.images)
11831194
self.intel = resources.AsyncIntelWithStreamingResponse(client.intel)
11841195
self.magic_transit = resources.AsyncMagicTransitWithStreamingResponse(client.magic_transit)
1196+
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithStreamingResponse(
1197+
client.magic_network_monitoring
1198+
)
11851199
self.mtls_certificates = resources.AsyncMTLSCertificatesWithStreamingResponse(client.mtls_certificates)
11861200
self.pages = resources.AsyncPagesWithStreamingResponse(client.pages)
11871201
self.pcaps = resources.AsyncPCAPsWithStreamingResponse(client.pcaps)

src/cloudflare/resources/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,14 @@
624624
CertificateAuthoritiesWithStreamingResponse,
625625
AsyncCertificateAuthoritiesWithStreamingResponse,
626626
)
627+
from .magic_network_monitoring import (
628+
MagicNetworkMonitoring,
629+
AsyncMagicNetworkMonitoring,
630+
MagicNetworkMonitoringWithRawResponse,
631+
AsyncMagicNetworkMonitoringWithRawResponse,
632+
MagicNetworkMonitoringWithStreamingResponse,
633+
AsyncMagicNetworkMonitoringWithStreamingResponse,
634+
)
627635
from .origin_post_quantum_encryption import (
628636
OriginPostQuantumEncryption,
629637
AsyncOriginPostQuantumEncryption,
@@ -940,6 +948,12 @@
940948
"AsyncMagicTransitWithRawResponse",
941949
"MagicTransitWithStreamingResponse",
942950
"AsyncMagicTransitWithStreamingResponse",
951+
"MagicNetworkMonitoring",
952+
"AsyncMagicNetworkMonitoring",
953+
"MagicNetworkMonitoringWithRawResponse",
954+
"AsyncMagicNetworkMonitoringWithRawResponse",
955+
"MagicNetworkMonitoringWithStreamingResponse",
956+
"AsyncMagicNetworkMonitoringWithStreamingResponse",
943957
"MTLSCertificates",
944958
"AsyncMTLSCertificates",
945959
"MTLSCertificatesWithRawResponse",
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 .rules import (
4+
Rules,
5+
AsyncRules,
6+
RulesWithRawResponse,
7+
AsyncRulesWithRawResponse,
8+
RulesWithStreamingResponse,
9+
AsyncRulesWithStreamingResponse,
10+
)
11+
from .configs import (
12+
Configs,
13+
AsyncConfigs,
14+
ConfigsWithRawResponse,
15+
AsyncConfigsWithRawResponse,
16+
ConfigsWithStreamingResponse,
17+
AsyncConfigsWithStreamingResponse,
18+
)
19+
from .magic_network_monitoring import (
20+
MagicNetworkMonitoring,
21+
AsyncMagicNetworkMonitoring,
22+
MagicNetworkMonitoringWithRawResponse,
23+
AsyncMagicNetworkMonitoringWithRawResponse,
24+
MagicNetworkMonitoringWithStreamingResponse,
25+
AsyncMagicNetworkMonitoringWithStreamingResponse,
26+
)
27+
28+
__all__ = [
29+
"Configs",
30+
"AsyncConfigs",
31+
"ConfigsWithRawResponse",
32+
"AsyncConfigsWithRawResponse",
33+
"ConfigsWithStreamingResponse",
34+
"AsyncConfigsWithStreamingResponse",
35+
"Rules",
36+
"AsyncRules",
37+
"RulesWithRawResponse",
38+
"AsyncRulesWithRawResponse",
39+
"RulesWithStreamingResponse",
40+
"AsyncRulesWithStreamingResponse",
41+
"MagicNetworkMonitoring",
42+
"AsyncMagicNetworkMonitoring",
43+
"MagicNetworkMonitoringWithRawResponse",
44+
"AsyncMagicNetworkMonitoringWithRawResponse",
45+
"MagicNetworkMonitoringWithStreamingResponse",
46+
"AsyncMagicNetworkMonitoringWithStreamingResponse",
47+
]
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 .full import (
4+
Full,
5+
AsyncFull,
6+
FullWithRawResponse,
7+
AsyncFullWithRawResponse,
8+
FullWithStreamingResponse,
9+
AsyncFullWithStreamingResponse,
10+
)
11+
from .configs import (
12+
Configs,
13+
AsyncConfigs,
14+
ConfigsWithRawResponse,
15+
AsyncConfigsWithRawResponse,
16+
ConfigsWithStreamingResponse,
17+
AsyncConfigsWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"Full",
22+
"AsyncFull",
23+
"FullWithRawResponse",
24+
"AsyncFullWithRawResponse",
25+
"FullWithStreamingResponse",
26+
"AsyncFullWithStreamingResponse",
27+
"Configs",
28+
"AsyncConfigs",
29+
"ConfigsWithRawResponse",
30+
"AsyncConfigsWithRawResponse",
31+
"ConfigsWithStreamingResponse",
32+
"AsyncConfigsWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)