Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 22, 2024
1 parent 0de118b commit a0562cc
Show file tree
Hide file tree
Showing 30 changed files with 3,398 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 1275
configured_endpoints: 1290
42 changes: 41 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,19 @@ Methods:

- <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>

## DNSSettings

Types:

```python
from cloudflare.types.zones import DNSSettingEditResponse, DNSSettingGetResponse
```

Methods:

- <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>
- <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>

## Settings

Types:
Expand Down Expand Up @@ -3938,14 +3951,37 @@ Types:
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMConfig
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>

### Full

Methods:

- <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>

## Rules

Types:

```python
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMRule
from cloudflare.types.magic_network_monitoring import MagicVisibilityMNMRule, RuleListResponse
```

Methods:

- <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>
- <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>
- <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>
- <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>
- <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>
- <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>

### Advertisements

Types:
Expand All @@ -3954,6 +3990,10 @@ Types:
from cloudflare.types.magic_network_monitoring.rules import MagicVisibilityMNMRuleAdvertisable
```

Methods:

- <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>

# MTLSCertificates

Types:
Expand Down
14 changes: 14 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class Cloudflare(SyncAPIClient):
images: resources.Images
intel: resources.Intel
magic_transit: resources.MagicTransit
magic_network_monitoring: resources.MagicNetworkMonitoring
mtls_certificates: resources.MTLSCertificates
pages: resources.Pages
pcaps: resources.PCAPs
Expand Down Expand Up @@ -250,6 +251,7 @@ def __init__(
self.images = resources.Images(self)
self.intel = resources.Intel(self)
self.magic_transit = resources.MagicTransit(self)
self.magic_network_monitoring = resources.MagicNetworkMonitoring(self)
self.mtls_certificates = resources.MTLSCertificates(self)
self.pages = resources.Pages(self)
self.pcaps = resources.PCAPs(self)
Expand Down Expand Up @@ -507,6 +509,7 @@ class AsyncCloudflare(AsyncAPIClient):
images: resources.AsyncImages
intel: resources.AsyncIntel
magic_transit: resources.AsyncMagicTransit
magic_network_monitoring: resources.AsyncMagicNetworkMonitoring
mtls_certificates: resources.AsyncMTLSCertificates
pages: resources.AsyncPages
pcaps: resources.AsyncPCAPs
Expand Down Expand Up @@ -659,6 +662,7 @@ def __init__(
self.images = resources.AsyncImages(self)
self.intel = resources.AsyncIntel(self)
self.magic_transit = resources.AsyncMagicTransit(self)
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoring(self)
self.mtls_certificates = resources.AsyncMTLSCertificates(self)
self.pages = resources.AsyncPages(self)
self.pcaps = resources.AsyncPCAPs(self)
Expand Down Expand Up @@ -917,6 +921,7 @@ def __init__(self, client: Cloudflare) -> None:
self.images = resources.ImagesWithRawResponse(client.images)
self.intel = resources.IntelWithRawResponse(client.intel)
self.magic_transit = resources.MagicTransitWithRawResponse(client.magic_transit)
self.magic_network_monitoring = resources.MagicNetworkMonitoringWithRawResponse(client.magic_network_monitoring)
self.mtls_certificates = resources.MTLSCertificatesWithRawResponse(client.mtls_certificates)
self.pages = resources.PagesWithRawResponse(client.pages)
self.pcaps = resources.PCAPsWithRawResponse(client.pcaps)
Expand Down Expand Up @@ -1004,6 +1009,9 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.images = resources.AsyncImagesWithRawResponse(client.images)
self.intel = resources.AsyncIntelWithRawResponse(client.intel)
self.magic_transit = resources.AsyncMagicTransitWithRawResponse(client.magic_transit)
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithRawResponse(
client.magic_network_monitoring
)
self.mtls_certificates = resources.AsyncMTLSCertificatesWithRawResponse(client.mtls_certificates)
self.pages = resources.AsyncPagesWithRawResponse(client.pages)
self.pcaps = resources.AsyncPCAPsWithRawResponse(client.pcaps)
Expand Down Expand Up @@ -1091,6 +1099,9 @@ def __init__(self, client: Cloudflare) -> None:
self.images = resources.ImagesWithStreamingResponse(client.images)
self.intel = resources.IntelWithStreamingResponse(client.intel)
self.magic_transit = resources.MagicTransitWithStreamingResponse(client.magic_transit)
self.magic_network_monitoring = resources.MagicNetworkMonitoringWithStreamingResponse(
client.magic_network_monitoring
)
self.mtls_certificates = resources.MTLSCertificatesWithStreamingResponse(client.mtls_certificates)
self.pages = resources.PagesWithStreamingResponse(client.pages)
self.pcaps = resources.PCAPsWithStreamingResponse(client.pcaps)
Expand Down Expand Up @@ -1182,6 +1193,9 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.images = resources.AsyncImagesWithStreamingResponse(client.images)
self.intel = resources.AsyncIntelWithStreamingResponse(client.intel)
self.magic_transit = resources.AsyncMagicTransitWithStreamingResponse(client.magic_transit)
self.magic_network_monitoring = resources.AsyncMagicNetworkMonitoringWithStreamingResponse(
client.magic_network_monitoring
)
self.mtls_certificates = resources.AsyncMTLSCertificatesWithStreamingResponse(client.mtls_certificates)
self.pages = resources.AsyncPagesWithStreamingResponse(client.pages)
self.pcaps = resources.AsyncPCAPsWithStreamingResponse(client.pcaps)
Expand Down
14 changes: 14 additions & 0 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,14 @@
CertificateAuthoritiesWithStreamingResponse,
AsyncCertificateAuthoritiesWithStreamingResponse,
)
from .magic_network_monitoring import (
MagicNetworkMonitoring,
AsyncMagicNetworkMonitoring,
MagicNetworkMonitoringWithRawResponse,
AsyncMagicNetworkMonitoringWithRawResponse,
MagicNetworkMonitoringWithStreamingResponse,
AsyncMagicNetworkMonitoringWithStreamingResponse,
)
from .origin_post_quantum_encryption import (
OriginPostQuantumEncryption,
AsyncOriginPostQuantumEncryption,
Expand Down Expand Up @@ -940,6 +948,12 @@
"AsyncMagicTransitWithRawResponse",
"MagicTransitWithStreamingResponse",
"AsyncMagicTransitWithStreamingResponse",
"MagicNetworkMonitoring",
"AsyncMagicNetworkMonitoring",
"MagicNetworkMonitoringWithRawResponse",
"AsyncMagicNetworkMonitoringWithRawResponse",
"MagicNetworkMonitoringWithStreamingResponse",
"AsyncMagicNetworkMonitoringWithStreamingResponse",
"MTLSCertificates",
"AsyncMTLSCertificates",
"MTLSCertificatesWithRawResponse",
Expand Down
47 changes: 47 additions & 0 deletions src/cloudflare/resources/magic_network_monitoring/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .rules import (
Rules,
AsyncRules,
RulesWithRawResponse,
AsyncRulesWithRawResponse,
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
from .configs import (
Configs,
AsyncConfigs,
ConfigsWithRawResponse,
AsyncConfigsWithRawResponse,
ConfigsWithStreamingResponse,
AsyncConfigsWithStreamingResponse,
)
from .magic_network_monitoring import (
MagicNetworkMonitoring,
AsyncMagicNetworkMonitoring,
MagicNetworkMonitoringWithRawResponse,
AsyncMagicNetworkMonitoringWithRawResponse,
MagicNetworkMonitoringWithStreamingResponse,
AsyncMagicNetworkMonitoringWithStreamingResponse,
)

__all__ = [
"Configs",
"AsyncConfigs",
"ConfigsWithRawResponse",
"AsyncConfigsWithRawResponse",
"ConfigsWithStreamingResponse",
"AsyncConfigsWithStreamingResponse",
"Rules",
"AsyncRules",
"RulesWithRawResponse",
"AsyncRulesWithRawResponse",
"RulesWithStreamingResponse",
"AsyncRulesWithStreamingResponse",
"MagicNetworkMonitoring",
"AsyncMagicNetworkMonitoring",
"MagicNetworkMonitoringWithRawResponse",
"AsyncMagicNetworkMonitoringWithRawResponse",
"MagicNetworkMonitoringWithStreamingResponse",
"AsyncMagicNetworkMonitoringWithStreamingResponse",
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .full import (
Full,
AsyncFull,
FullWithRawResponse,
AsyncFullWithRawResponse,
FullWithStreamingResponse,
AsyncFullWithStreamingResponse,
)
from .configs import (
Configs,
AsyncConfigs,
ConfigsWithRawResponse,
AsyncConfigsWithRawResponse,
ConfigsWithStreamingResponse,
AsyncConfigsWithStreamingResponse,
)

__all__ = [
"Full",
"AsyncFull",
"FullWithRawResponse",
"AsyncFullWithRawResponse",
"FullWithStreamingResponse",
"AsyncFullWithStreamingResponse",
"Configs",
"AsyncConfigs",
"ConfigsWithRawResponse",
"AsyncConfigsWithRawResponse",
"ConfigsWithStreamingResponse",
"AsyncConfigsWithStreamingResponse",
]
Loading

0 comments on commit a0562cc

Please sign in to comment.