Skip to content

Commit 2ee1300

Browse files
feat(api): OpenAPI spec update via Stainless API (#160)
1 parent 336f847 commit 2ee1300

22 files changed

+2
-2804
lines changed

.stats.yml

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

api.md

+1-28
Original file line numberDiff line numberDiff line change
@@ -3938,37 +3938,14 @@ Types:
39383938
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMConfig
39393939
```
39403940

3941-
Methods:
3942-
3943-
- <code title="post /accounts/{account_identifier}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">create</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3944-
- <code title="put /accounts/{account_identifier}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">update</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3945-
- <code title="delete /accounts/{account_identifier}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">delete</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3946-
- <code title="patch /accounts/{account_identifier}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">edit</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3947-
- <code title="get /accounts/{account_identifier}/mnm/config">client.magic_network_monitoring.configs.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/configs.py">get</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3948-
3949-
### Full
3950-
3951-
Methods:
3952-
3953-
- <code title="get /accounts/{account_identifier}/mnm/config/full">client.magic_network_monitoring.configs.full.<a href="./src/cloudflare/resources/magic_network_monitoring/configs/full.py">get</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_config.py">MagicVisibilityMNMConfig</a></code>
3954-
39553941
## Rules
39563942

39573943
Types:
39583944

39593945
```python
3960-
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMRule, RuleListResponse
3946+
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMRule
39613947
```
39623948

3963-
Methods:
3964-
3965-
- <code title="post /accounts/{account_identifier}/mnm/rules">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">create</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3966-
- <code title="put /accounts/{account_identifier}/mnm/rules">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">update</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3967-
- <code title="get /accounts/{account_identifier}/mnm/rules">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">list</a>(account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/rule_list_response.py">Optional</a></code>
3968-
- <code title="delete /accounts/{account_identifier}/mnm/rules/{rule_identifier}">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">delete</a>(rule_identifier, \*, account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3969-
- <code title="patch /accounts/{account_identifier}/mnm/rules/{rule_identifier}">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">edit</a>(rule_identifier, \*, account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3970-
- <code title="get /accounts/{account_identifier}/mnm/rules/{rule_identifier}">client.magic_network_monitoring.rules.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/rules.py">get</a>(rule_identifier, \*, account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/magic_visibility_mnm_rule.py">Optional</a></code>
3971-
39723949
### Advertisements
39733950

39743951
Types:
@@ -3977,10 +3954,6 @@ Types:
39773954
from cloudflare.types.magic_network_monitoring.rules import MagicVisibilityMNMRuleAdvertisable
39783955
```
39793956

3980-
Methods:
3981-
3982-
- <code title="patch /accounts/{account_identifier}/mnm/rules/{rule_identifier}/advertisement">client.magic_network_monitoring.rules.advertisements.<a href="./src/cloudflare/resources/magic_network_monitoring/rules/advertisements.py">edit</a>(rule_identifier, \*, account_identifier) -> <a href="./src/cloudflare/types/magic_network_monitoring/rules/magic_visibility_mnm_rule_advertisable.py">Optional</a></code>
3983-
39843957
# MTLSCertificates
39853958

39863959
Types:

src/cloudflare/_client.py

-14
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class Cloudflare(SyncAPIClient):
9898
images: resources.Images
9999
intel: resources.Intel
100100
magic_transit: resources.MagicTransit
101-
magic_network_monitoring: resources.MagicNetworkMonitoring
102101
mtls_certificates: resources.MTLSCertificates
103102
pages: resources.Pages
104103
pcaps: resources.PCAPs
@@ -251,7 +250,6 @@ def __init__(
251250
self.images = resources.Images(self)
252251
self.intel = resources.Intel(self)
253252
self.magic_transit = resources.MagicTransit(self)
254-
self.magic_network_monitoring = resources.MagicNetworkMonitoring(self)
255253
self.mtls_certificates = resources.MTLSCertificates(self)
256254
self.pages = resources.Pages(self)
257255
self.pcaps = resources.PCAPs(self)
@@ -509,7 +507,6 @@ class AsyncCloudflare(AsyncAPIClient):
509507
images: resources.AsyncImages
510508
intel: resources.AsyncIntel
511509
magic_transit: resources.AsyncMagicTransit
512-
magic_network_monitoring: resources.AsyncMagicNetworkMonitoring
513510
mtls_certificates: resources.AsyncMTLSCertificates
514511
pages: resources.AsyncPages
515512
pcaps: resources.AsyncPCAPs
@@ -662,7 +659,6 @@ def __init__(
662659
self.images = resources.AsyncImages(self)
663660
self.intel = resources.AsyncIntel(self)
664661
self.magic_transit = resources.AsyncMagicTransit(self)
665-
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoring(self)
666662
self.mtls_certificates = resources.AsyncMTLSCertificates(self)
667663
self.pages = resources.AsyncPages(self)
668664
self.pcaps = resources.AsyncPCAPs(self)
@@ -921,7 +917,6 @@ def __init__(self, client: Cloudflare) -> None:
921917
self.images = resources.ImagesWithRawResponse(client.images)
922918
self.intel = resources.IntelWithRawResponse(client.intel)
923919
self.magic_transit = resources.MagicTransitWithRawResponse(client.magic_transit)
924-
self.magic_network_monitoring = resources.MagicNetworkMonitoringWithRawResponse(client.magic_network_monitoring)
925920
self.mtls_certificates = resources.MTLSCertificatesWithRawResponse(client.mtls_certificates)
926921
self.pages = resources.PagesWithRawResponse(client.pages)
927922
self.pcaps = resources.PCAPsWithRawResponse(client.pcaps)
@@ -1009,9 +1004,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
10091004
self.images = resources.AsyncImagesWithRawResponse(client.images)
10101005
self.intel = resources.AsyncIntelWithRawResponse(client.intel)
10111006
self.magic_transit = resources.AsyncMagicTransitWithRawResponse(client.magic_transit)
1012-
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithRawResponse(
1013-
client.magic_network_monitoring
1014-
)
10151007
self.mtls_certificates = resources.AsyncMTLSCertificatesWithRawResponse(client.mtls_certificates)
10161008
self.pages = resources.AsyncPagesWithRawResponse(client.pages)
10171009
self.pcaps = resources.AsyncPCAPsWithRawResponse(client.pcaps)
@@ -1099,9 +1091,6 @@ def __init__(self, client: Cloudflare) -> None:
10991091
self.images = resources.ImagesWithStreamingResponse(client.images)
11001092
self.intel = resources.IntelWithStreamingResponse(client.intel)
11011093
self.magic_transit = resources.MagicTransitWithStreamingResponse(client.magic_transit)
1102-
self.magic_network_monitoring = resources.MagicNetworkMonitoringWithStreamingResponse(
1103-
client.magic_network_monitoring
1104-
)
11051094
self.mtls_certificates = resources.MTLSCertificatesWithStreamingResponse(client.mtls_certificates)
11061095
self.pages = resources.PagesWithStreamingResponse(client.pages)
11071096
self.pcaps = resources.PCAPsWithStreamingResponse(client.pcaps)
@@ -1193,9 +1182,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
11931182
self.images = resources.AsyncImagesWithStreamingResponse(client.images)
11941183
self.intel = resources.AsyncIntelWithStreamingResponse(client.intel)
11951184
self.magic_transit = resources.AsyncMagicTransitWithStreamingResponse(client.magic_transit)
1196-
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithStreamingResponse(
1197-
client.magic_network_monitoring
1198-
)
11991185
self.mtls_certificates = resources.AsyncMTLSCertificatesWithStreamingResponse(client.mtls_certificates)
12001186
self.pages = resources.AsyncPagesWithStreamingResponse(client.pages)
12011187
self.pcaps = resources.AsyncPCAPsWithStreamingResponse(client.pcaps)

src/cloudflare/resources/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -624,14 +624,6 @@
624624
CertificateAuthoritiesWithStreamingResponse,
625625
AsyncCertificateAuthoritiesWithStreamingResponse,
626626
)
627-
from .magic_network_monitoring import (
628-
MagicNetworkMonitoring,
629-
AsyncMagicNetworkMonitoring,
630-
MagicNetworkMonitoringWithRawResponse,
631-
AsyncMagicNetworkMonitoringWithRawResponse,
632-
MagicNetworkMonitoringWithStreamingResponse,
633-
AsyncMagicNetworkMonitoringWithStreamingResponse,
634-
)
635627
from .origin_post_quantum_encryption import (
636628
OriginPostQuantumEncryption,
637629
AsyncOriginPostQuantumEncryption,
@@ -948,12 +940,6 @@
948940
"AsyncMagicTransitWithRawResponse",
949941
"MagicTransitWithStreamingResponse",
950942
"AsyncMagicTransitWithStreamingResponse",
951-
"MagicNetworkMonitoring",
952-
"AsyncMagicNetworkMonitoring",
953-
"MagicNetworkMonitoringWithRawResponse",
954-
"AsyncMagicNetworkMonitoringWithRawResponse",
955-
"MagicNetworkMonitoringWithStreamingResponse",
956-
"AsyncMagicNetworkMonitoringWithStreamingResponse",
957943
"MTLSCertificates",
958944
"AsyncMTLSCertificates",
959945
"MTLSCertificatesWithRawResponse",

src/cloudflare/resources/magic_network_monitoring/__init__.py

-47
This file was deleted.

src/cloudflare/resources/magic_network_monitoring/configs/__init__.py

-33
This file was deleted.

0 commit comments

Comments
 (0)