From c378d87dcafeadb7d2eb0fcfc81692af2ccbaa66 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:49:04 +0000 Subject: [PATCH] feat(api): Update verb on PATCH zone hold method --- .stats.yml | 2 +- api.md | 54 +- src/cloudflare/_client.py | 38 - src/cloudflare/resources/dns/records.py | 2462 +---------------- src/cloudflare/resources/workers/__init__.py | 14 + .../resources/{ => workers}/ai/__init__.py | 0 .../resources/{ => workers}/ai/ai.py | 18 +- .../{ => workers}/ai/models/__init__.py | 0 .../{ => workers}/ai/models/models.py | 4 +- .../{ => workers}/ai/models/schema.py | 16 +- src/cloudflare/resources/workers/workers.py | 32 + src/cloudflare/resources/zones/holds.py | 146 +- .../types/ai_gateway/log_delete_params.py | 5 - .../types/ai_gateway/log_list_params.py | 5 - src/cloudflare/types/dns/__init__.py | 1 - src/cloudflare/types/dns/a_record.py | 29 +- src/cloudflare/types/dns/a_record_param.py | 29 - src/cloudflare/types/dns/aaaa_record.py | 29 +- src/cloudflare/types/dns/aaaa_record_param.py | 29 - src/cloudflare/types/dns/caa_record.py | 29 +- src/cloudflare/types/dns/caa_record_param.py | 29 - src/cloudflare/types/dns/cert_record.py | 29 +- src/cloudflare/types/dns/cert_record_param.py | 29 - src/cloudflare/types/dns/cname_record.py | 29 +- .../types/dns/cname_record_param.py | 29 - src/cloudflare/types/dns/dnskey_record.py | 29 +- .../types/dns/dnskey_record_param.py | 29 - src/cloudflare/types/dns/ds_record.py | 29 +- src/cloudflare/types/dns/ds_record_param.py | 29 - src/cloudflare/types/dns/https_record.py | 29 +- .../types/dns/https_record_param.py | 29 - src/cloudflare/types/dns/loc_record.py | 29 +- src/cloudflare/types/dns/loc_record_param.py | 29 - src/cloudflare/types/dns/mx_record.py | 29 +- src/cloudflare/types/dns/mx_record_param.py | 29 - src/cloudflare/types/dns/naptr_record.py | 29 +- .../types/dns/naptr_record_param.py | 29 - src/cloudflare/types/dns/ns_record.py | 29 +- src/cloudflare/types/dns/ns_record_param.py | 29 - src/cloudflare/types/dns/ptr_record.py | 29 +- src/cloudflare/types/dns/ptr_record_param.py | 29 - .../types/dns/record_batch_response.py | 309 +-- .../types/dns/record_create_params.py | 530 +--- .../types/dns/record_create_response.py | 83 +- .../types/dns/record_edit_params.py | 530 +--- .../types/dns/record_edit_response.py | 83 +- .../types/dns/record_get_response.py | 83 +- .../types/dns/record_list_response.py | 83 +- src/cloudflare/types/dns/record_param.py | 35 +- .../types/dns/record_update_params.py | 530 +--- .../types/dns/record_update_response.py | 83 +- src/cloudflare/types/dns/smimea_record.py | 29 +- .../types/dns/smimea_record_param.py | 29 - src/cloudflare/types/dns/srv_record.py | 29 +- src/cloudflare/types/dns/srv_record_param.py | 29 - src/cloudflare/types/dns/sshfp_record.py | 29 +- .../types/dns/sshfp_record_param.py | 29 - src/cloudflare/types/dns/svcb_record.py | 29 +- src/cloudflare/types/dns/svcb_record_param.py | 29 - src/cloudflare/types/dns/tlsa_record.py | 29 +- src/cloudflare/types/dns/tlsa_record_param.py | 29 - src/cloudflare/types/dns/ttl.py | 8 - src/cloudflare/types/dns/txt_record.py | 29 +- src/cloudflare/types/dns/txt_record_param.py | 29 - src/cloudflare/types/dns/uri_record.py | 29 +- src/cloudflare/types/dns/uri_record_param.py | 29 - src/cloudflare/types/workers/__init__.py | 2 + .../types/{ => workers}/ai/__init__.py | 3 - .../types/{ => workers}/ai/models/__init__.py | 0 .../ai/models/schema_get_params.py | 0 .../types/{ai => workers}/ai_run_params.py | 0 .../types/{ai => workers}/ai_run_response.py | 0 src/cloudflare/types/zones/__init__.py | 2 +- ...d_update_params.py => hold_edit_params.py} | 4 +- tests/api_resources/ai_gateway/test_logs.py | 8 +- tests/api_resources/dns/test_records.py | 660 ----- .../{ => workers}/ai/__init__.py | 0 .../{ => workers}/ai/models/__init__.py | 0 .../{ => workers}/ai/models/test_schema.py | 16 +- tests/api_resources/{ => workers}/test_ai.py | 278 +- tests/api_resources/zones/test_holds.py | 92 +- 81 files changed, 658 insertions(+), 6721 deletions(-) rename src/cloudflare/resources/{ => workers}/ai/__init__.py (100%) rename src/cloudflare/resources/{ => workers}/ai/ai.py (99%) rename src/cloudflare/resources/{ => workers}/ai/models/__init__.py (100%) rename src/cloudflare/resources/{ => workers}/ai/models/models.py (97%) rename src/cloudflare/resources/{ => workers}/ai/models/schema.py (94%) delete mode 100644 src/cloudflare/types/dns/ttl.py rename src/cloudflare/types/{ => workers}/ai/__init__.py (51%) rename src/cloudflare/types/{ => workers}/ai/models/__init__.py (100%) rename src/cloudflare/types/{ => workers}/ai/models/schema_get_params.py (100%) rename src/cloudflare/types/{ai => workers}/ai_run_params.py (100%) rename src/cloudflare/types/{ai => workers}/ai_run_response.py (100%) rename src/cloudflare/types/zones/{hold_update_params.py => hold_edit_params.py} (92%) rename tests/api_resources/{ => workers}/ai/__init__.py (100%) rename tests/api_resources/{ => workers}/ai/models/__init__.py (100%) rename tests/api_resources/{ => workers}/ai/models/test_schema.py (85%) rename tests/api_resources/{ => workers}/test_ai.py (87%) diff --git a/.stats.yml b/.stats.yml index 0af34bafd24..5d7b2c16a46 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1462 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-df037996f4a1d35cf34bb8d9deeee63b60463bb6f8814caec9fa4c659073fb0d.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml diff --git a/api.md b/api.md index a999f0c501c..1d108198dc0 100644 --- a/api.md +++ b/api.md @@ -416,8 +416,8 @@ from cloudflare.types.zones import ZoneHold Methods: - client.zones.holds.create(\*, zone_id, \*\*params) -> ZoneHold -- client.zones.holds.update(\*, zone_id, \*\*params) -> ZoneHold - client.zones.holds.delete(\*, zone_id, \*\*params) -> ZoneHold +- client.zones.holds.edit(\*, zone_id, \*\*params) -> ZoneHold - client.zones.holds.get(\*, zone_id) -> ZoneHold ## Subscriptions @@ -2284,6 +2284,32 @@ from cloudflare.types.workers import ( ) ``` +## AI + +Types: + +```python +from cloudflare.types.workers import AIRunResponse +``` + +Methods: + +- client.workers.ai.run(model_name, \*, account_id, \*\*params) -> Optional[AIRunResponse] + +### Models + +#### Schema + +Types: + +```python +from cloudflare.types.workers.ai.models import SchemaGetResponse +``` + +Methods: + +- client.workers.ai.models.schema.get(\*, account_id, \*\*params) -> object + ## Assets ### Upload @@ -8389,29 +8415,3 @@ from cloudflare.types.abuse_reports import AbuseReportCreateResponse Methods: - client.abuse_reports.create(report_type, \*, account_id, \*\*params) -> str - -# AI - -Types: - -```python -from cloudflare.types.ai import AIRunResponse -``` - -Methods: - -- client.ai.run(model_name, \*, account_id, \*\*params) -> Optional[AIRunResponse] - -## Models - -### Schema - -Types: - -```python -from cloudflare.types.ai.models import SchemaGetResponse -``` - -Methods: - -- client.ai.models.schema.get(\*, account_id, \*\*params) -> object diff --git a/src/cloudflare/_client.py b/src/cloudflare/_client.py index f48b5ae2359..dd3986b403c 100644 --- a/src/cloudflare/_client.py +++ b/src/cloudflare/_client.py @@ -36,7 +36,6 @@ if TYPE_CHECKING: from .resources import ( - ai, d1, kv, r2, @@ -124,7 +123,6 @@ origin_post_quantum_encryption, ) from .resources.ips import IPsResource, AsyncIPsResource - from .resources.ai.ai import AIResource, AsyncAIResource from .resources.d1.d1 import D1Resource, AsyncD1Resource from .resources.kv.kv import KVResource, AsyncKVResource from .resources.r2.r2 import R2Resource, AsyncR2Resource @@ -826,12 +824,6 @@ def abuse_reports(self) -> AbuseReportsResource: return AbuseReportsResource(self) - @cached_property - def ai(self) -> AIResource: - from .resources.ai import AIResource - - return AIResource(self) - @cached_property def with_raw_response(self) -> CloudflareWithRawResponse: return CloudflareWithRawResponse(self) @@ -1597,12 +1589,6 @@ def abuse_reports(self) -> AsyncAbuseReportsResource: return AsyncAbuseReportsResource(self) - @cached_property - def ai(self) -> AsyncAIResource: - from .resources.ai import AsyncAIResource - - return AsyncAIResource(self) - @cached_property def with_raw_response(self) -> AsyncCloudflareWithRawResponse: return AsyncCloudflareWithRawResponse(self) @@ -2303,12 +2289,6 @@ def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse: return AbuseReportsResourceWithRawResponse(self._client.abuse_reports) - @cached_property - def ai(self) -> ai.AIResourceWithRawResponse: - from .resources.ai import AIResourceWithRawResponse - - return AIResourceWithRawResponse(self._client.ai) - class AsyncCloudflareWithRawResponse: _client: AsyncCloudflare @@ -2828,12 +2808,6 @@ def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawRespons return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports) - @cached_property - def ai(self) -> ai.AsyncAIResourceWithRawResponse: - from .resources.ai import AsyncAIResourceWithRawResponse - - return AsyncAIResourceWithRawResponse(self._client.ai) - class CloudflareWithStreamedResponse: _client: Cloudflare @@ -3353,12 +3327,6 @@ def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingRespon return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports) - @cached_property - def ai(self) -> ai.AIResourceWithStreamingResponse: - from .resources.ai import AIResourceWithStreamingResponse - - return AIResourceWithStreamingResponse(self._client.ai) - class AsyncCloudflareWithStreamedResponse: _client: AsyncCloudflare @@ -3888,12 +3856,6 @@ def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingR return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports) - @cached_property - def ai(self) -> ai.AsyncAIResourceWithStreamingResponse: - from .resources.ai import AsyncAIResourceWithStreamingResponse - - return AsyncAIResourceWithStreamingResponse(self._client.ai) - Client = Cloudflare diff --git a/src/cloudflare/resources/dns/records.py b/src/cloudflare/resources/dns/records.py index bc07a6ac91f..fbbf251cedb 100644 --- a/src/cloudflare/resources/dns/records.py +++ b/src/cloudflare/resources/dns/records.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Any, List, Type, Iterable, Optional, cast +from typing import Any, Type, Iterable, Optional, cast from typing_extensions import Literal, overload import httpx @@ -33,8 +33,6 @@ ) from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray from ..._base_client import AsyncPaginator, make_request_options -from ...types.dns.ttl_param import TTLParam -from ...types.dns.record_tags import RecordTags from ...types.dns.record_param import RecordParam from ...types.shared.sort_direction import SortDirection from ...types.dns.record_get_response import RecordGetResponse @@ -75,12 +73,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -102,22 +95,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv4 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -135,12 +114,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -162,22 +136,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv6 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -195,12 +155,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.CAARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -222,22 +177,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CAA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -255,12 +196,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.CERTRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -282,22 +218,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CERT record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -315,13 +237,8 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, settings: record_create_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CNAME"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -343,22 +260,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid hostname. Must not match the record's name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -376,12 +279,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -403,22 +301,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DNSKEY record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -436,12 +320,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.DSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -463,22 +342,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -496,12 +361,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.HTTPSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -523,22 +383,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a HTTPS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -556,12 +402,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.LOCRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -583,22 +424,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a LOC record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -616,13 +443,8 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -644,25 +466,11 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid mail server hostname. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -680,12 +488,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.NAPTRRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -707,22 +510,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a NAPTR record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -740,12 +529,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -767,22 +551,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid name server host name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -800,12 +570,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -827,22 +592,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -860,12 +611,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -887,22 +633,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Domain name pointing to the address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -920,12 +652,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SMIMEARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -947,22 +674,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SMIMEA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -980,12 +693,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SRVRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1007,22 +715,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SRV record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1040,12 +734,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SSHFPRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1067,22 +756,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SSHFP record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1100,12 +775,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SVCBRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1127,22 +797,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SVCB record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1160,12 +816,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.TLSARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1187,22 +838,8 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a TLSA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1220,12 +857,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1247,9 +879,6 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Text content for the record. The content must consist of quoted "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding this allowed maximum length are automatically split. @@ -1257,17 +886,6 @@ def create( Learn more at . - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1285,13 +903,8 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.URIRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1313,25 +926,11 @@ def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a URI record. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1349,12 +948,7 @@ def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | Literal["AAAA"] | Literal["CAA"] @@ -1406,12 +1000,7 @@ def create( f"/zones/{zone_id}/dns_records", body=maybe_transform( { - "comment": comment, "content": content, - "name": name, - "proxied": proxied, - "tags": tags, - "ttl": ttl, "type": type, "data": data, "settings": settings, @@ -1438,12 +1027,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1467,22 +1051,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv4 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1501,12 +1071,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1530,22 +1095,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv6 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1564,12 +1115,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.CAARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1593,22 +1139,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CAA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1627,12 +1159,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.CERTRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1656,22 +1183,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CERT record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1690,13 +1203,8 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, settings: record_update_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CNAME"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1720,22 +1228,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid hostname. Must not match the record's name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1754,12 +1248,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1783,22 +1272,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DNSKEY record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1817,12 +1292,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.DSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1846,22 +1316,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1880,12 +1336,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.HTTPSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1909,22 +1360,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a HTTPS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -1943,12 +1380,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.LOCRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -1972,22 +1404,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a LOC record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2006,13 +1424,8 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2036,25 +1449,11 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid mail server hostname. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2073,12 +1472,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.NAPTRRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2102,23 +1496,9 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a NAPTR record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - - type: Record type. + type: Record type. extra_headers: Send extra headers @@ -2136,12 +1516,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2165,22 +1540,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid name server host name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2199,12 +1560,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2228,22 +1584,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2262,12 +1604,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2291,22 +1628,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Domain name pointing to the address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2325,12 +1648,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SMIMEARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2354,22 +1672,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SMIMEA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2388,12 +1692,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SRVRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2417,22 +1716,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SRV record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2451,12 +1736,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SSHFPRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2480,22 +1760,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SSHFP record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2514,12 +1780,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SVCBRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2543,22 +1804,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SVCB record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2577,12 +1824,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.TLSARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2606,22 +1848,8 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a TLSA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2640,12 +1868,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2669,9 +1892,6 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Text content for the record. The content must consist of quoted "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding this allowed maximum length are automatically split. @@ -2679,17 +1899,6 @@ def update( Learn more at . - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2708,13 +1917,8 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.URIRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -2738,25 +1942,11 @@ def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a URI record. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -2775,12 +1965,7 @@ def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | Literal["AAAA"] | Literal["CAA"] @@ -2834,12 +2019,7 @@ def update( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=maybe_transform( { - "comment": comment, "content": content, - "name": name, - "proxied": proxied, - "tags": tags, - "ttl": ttl, "type": type, "data": data, "settings": settings, @@ -3100,12 +2280,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3129,22 +2304,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv4 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3163,12 +2324,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3192,22 +2348,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv6 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3226,12 +2368,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.CAARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3255,22 +2392,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CAA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3289,12 +2412,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.CERTRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3318,22 +2436,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CERT record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3352,13 +2456,8 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, settings: record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CNAME"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3382,22 +2481,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid hostname. Must not match the record's name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3416,12 +2501,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3445,22 +2525,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DNSKEY record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3479,12 +2545,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.DSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3508,22 +2569,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3542,12 +2589,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.HTTPSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3571,22 +2613,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a HTTPS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3605,12 +2633,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.LOCRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3634,22 +2657,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a LOC record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3668,13 +2677,8 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3698,25 +2702,11 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid mail server hostname. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3735,12 +2725,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.NAPTRRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3764,22 +2749,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a NAPTR record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3798,12 +2769,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3827,22 +2793,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid name server host name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3861,12 +2813,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3890,22 +2837,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3924,12 +2857,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -3953,22 +2881,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Domain name pointing to the address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -3987,12 +2901,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SMIMEARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4016,22 +2925,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SMIMEA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4050,12 +2945,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SRVRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4079,22 +2969,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SRV record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4113,12 +2989,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SSHFPRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4142,22 +3013,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SSHFP record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4176,12 +3033,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SVCBRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4205,22 +3057,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SVCB record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4239,12 +3077,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.TLSARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4268,22 +3101,8 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a TLSA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4302,12 +3121,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4331,9 +3145,6 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Text content for the record. The content must consist of quoted "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding this allowed maximum length are automatically split. @@ -4341,17 +3152,6 @@ def edit( Learn more at . - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4370,13 +3170,8 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.URIRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4400,26 +3195,12 @@ def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a URI record. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - - type: Record type. + type: Record type. extra_headers: Send extra headers @@ -4437,12 +3218,7 @@ def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | Literal["AAAA"] | Literal["CAA"] @@ -4496,12 +3272,7 @@ def edit( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=maybe_transform( { - "comment": comment, "content": content, - "name": name, - "proxied": proxied, - "tags": tags, - "ttl": ttl, "type": type, "data": data, "settings": settings, @@ -4750,12 +3521,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4777,22 +3543,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv4 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4810,12 +3562,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4837,22 +3584,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv6 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4870,12 +3603,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.CAARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4897,22 +3625,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CAA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4930,12 +3644,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.CERTRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -4957,22 +3666,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CERT record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -4990,13 +3685,8 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, settings: record_create_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CNAME"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5018,22 +3708,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid hostname. Must not match the record's name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5051,12 +3727,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5078,22 +3749,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DNSKEY record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5111,12 +3768,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.DSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5138,22 +3790,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5171,12 +3809,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.HTTPSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5198,22 +3831,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a HTTPS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5231,12 +3850,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.LOCRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5258,22 +3872,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a LOC record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5291,13 +3891,8 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5319,25 +3914,11 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid mail server hostname. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5355,12 +3936,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.NAPTRRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5382,22 +3958,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a NAPTR record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5415,12 +3977,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5442,22 +3999,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid name server host name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5475,12 +4018,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5502,22 +4040,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5535,12 +4059,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5562,22 +4081,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Domain name pointing to the address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5595,12 +4100,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SMIMEARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5622,22 +4122,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SMIMEA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5655,12 +4141,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SRVRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5682,22 +4163,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SRV record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5715,12 +4182,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SSHFPRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5742,22 +4204,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SSHFP record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5775,12 +4223,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.SVCBRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5802,22 +4245,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SVCB record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5835,12 +4264,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.TLSARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5862,22 +4286,8 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a TLSA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5895,12 +4305,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5922,9 +4327,6 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Text content for the record. The content must consist of quoted "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding this allowed maximum length are automatically split. @@ -5932,17 +4334,6 @@ async def create( Learn more at . - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -5960,13 +4351,8 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_create_params.URIRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -5988,25 +4374,11 @@ async def create( Args: zone_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a URI record. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6024,12 +4396,7 @@ async def create( self, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | Literal["AAAA"] | Literal["CAA"] @@ -6081,12 +4448,7 @@ async def create( f"/zones/{zone_id}/dns_records", body=await async_maybe_transform( { - "comment": comment, "content": content, - "name": name, - "proxied": proxied, - "tags": tags, - "ttl": ttl, "type": type, "data": data, "settings": settings, @@ -6113,12 +4475,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6142,22 +4499,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv4 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6176,12 +4519,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6205,22 +4543,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv6 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6239,12 +4563,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.CAARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6268,22 +4587,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CAA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6302,12 +4607,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.CERTRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6331,22 +4631,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CERT record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6365,13 +4651,8 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, settings: record_update_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CNAME"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6395,22 +4676,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid hostname. Must not match the record's name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6429,12 +4696,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6458,22 +4720,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DNSKEY record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6492,12 +4740,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.DSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6521,22 +4764,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6555,12 +4784,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.HTTPSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6584,22 +4808,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a HTTPS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6618,12 +4828,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.LOCRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6647,22 +4852,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a LOC record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6681,13 +4872,8 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6711,25 +4897,11 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid mail server hostname. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6748,12 +4920,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.NAPTRRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6777,22 +4944,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a NAPTR record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6811,12 +4964,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6840,22 +4988,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid name server host name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6874,12 +5008,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6903,22 +5032,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -6937,12 +5052,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -6966,22 +5076,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Domain name pointing to the address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7000,12 +5096,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SMIMEARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7029,22 +5120,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SMIMEA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7063,12 +5140,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SRVRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7092,22 +5164,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SRV record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7126,12 +5184,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SSHFPRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7155,22 +5208,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SSHFP record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7189,12 +5228,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.SVCBRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7218,22 +5252,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SVCB record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7252,12 +5272,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.TLSARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7281,22 +5296,8 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a TLSA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7315,12 +5316,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7344,9 +5340,6 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Text content for the record. The content must consist of quoted "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding this allowed maximum length are automatically split. @@ -7354,17 +5347,6 @@ async def update( Learn more at . - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7383,13 +5365,8 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_update_params.URIRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7413,25 +5390,11 @@ async def update( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a URI record. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7450,12 +5413,7 @@ async def update( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | Literal["AAAA"] | Literal["CAA"] @@ -7509,12 +5467,7 @@ async def update( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=await async_maybe_transform( { - "comment": comment, "content": content, - "name": name, - "proxied": proxied, - "tags": tags, - "ttl": ttl, "type": type, "data": data, "settings": settings, @@ -7775,12 +5728,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7804,22 +5752,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv4 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7838,12 +5772,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["AAAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7867,22 +5796,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid IPv6 address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7901,12 +5816,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.CAARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CAA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7930,22 +5840,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CAA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -7964,12 +5860,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.CERTRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CERT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -7993,22 +5884,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a CERT record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8027,13 +5904,8 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, settings: record_edit_params.CNAMERecordSettings | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["CNAME"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8057,22 +5929,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid hostname. Must not match the record's name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8091,12 +5949,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.DNSKEYRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DNSKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8120,22 +5973,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DNSKEY record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8154,12 +5993,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.DSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["DS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8183,22 +6017,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a DS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8217,12 +6037,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.HTTPSRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["HTTPS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8246,22 +6061,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a HTTPS record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8280,12 +6081,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.LOCRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["LOC"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8309,22 +6105,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a LOC record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8343,13 +6125,8 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["MX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8373,25 +6150,11 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid mail server hostname. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8410,12 +6173,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.NAPTRRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NAPTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8439,22 +6197,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a NAPTR record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8473,12 +6217,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["NS"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8502,22 +6241,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A valid name server host name. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8536,12 +6261,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["OPENPGPKEY"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8565,22 +6285,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1) - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8599,12 +6305,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["PTR"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8628,22 +6329,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Domain name pointing to the address. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8662,12 +6349,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SMIMEARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SMIMEA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8691,22 +6373,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SMIMEA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8725,12 +6393,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SRVRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SRV"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8754,22 +6417,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SRV record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8788,12 +6437,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SSHFPRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SSHFP"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8817,22 +6461,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SSHFP record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8851,12 +6481,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.SVCBRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["SVCB"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8880,22 +6505,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a SVCB record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8914,12 +6525,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.TLSARecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TLSA"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -8943,22 +6549,8 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a TLSA record. - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -8977,12 +6569,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["TXT"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -9006,9 +6593,6 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - content: Text content for the record. The content must consist of quoted "character strings" (RFC 1035), each with a length of up to 255 bytes. Strings exceeding this allowed maximum length are automatically split. @@ -9016,17 +6600,6 @@ async def edit( Learn more at . - name: DNS record name (or @ for the zone apex) in Punycode. - - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -9045,13 +6618,8 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, data: record_edit_params.URIRecordData | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, priority: float | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["URI"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -9075,25 +6643,11 @@ async def edit( dns_record_id: Identifier - comment: Comments or notes about the DNS record. This field has no effect on DNS - responses. - data: Components of a URI record. - name: DNS record name (or @ for the zone apex) in Punycode. - priority: Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. - proxied: Whether the record is receiving the performance and security benefits of - Cloudflare. - - tags: Custom tags for the DNS record. This field has no effect on DNS responses. - - ttl: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. - Value must be between 60 and 86400, with the minimum reduced to 30 for - Enterprise zones. - type: Record type. extra_headers: Send extra headers @@ -9112,12 +6666,7 @@ async def edit( dns_record_id: str, *, zone_id: str, - comment: str | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, - name: str | NotGiven = NOT_GIVEN, - proxied: bool | NotGiven = NOT_GIVEN, - tags: List[RecordTags] | NotGiven = NOT_GIVEN, - ttl: TTLParam | NotGiven = NOT_GIVEN, type: Literal["A"] | Literal["AAAA"] | Literal["CAA"] @@ -9171,12 +6720,7 @@ async def edit( f"/zones/{zone_id}/dns_records/{dns_record_id}", body=await async_maybe_transform( { - "comment": comment, "content": content, - "name": name, - "proxied": proxied, - "tags": tags, - "ttl": ttl, "type": type, "data": data, "settings": settings, diff --git a/src/cloudflare/resources/workers/__init__.py b/src/cloudflare/resources/workers/__init__.py index 581d9439279..dea7e3e0167 100644 --- a/src/cloudflare/resources/workers/__init__.py +++ b/src/cloudflare/resources/workers/__init__.py @@ -1,5 +1,13 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. +from .ai import ( + AIResource, + AsyncAIResource, + AIResourceWithRawResponse, + AsyncAIResourceWithRawResponse, + AIResourceWithStreamingResponse, + AsyncAIResourceWithStreamingResponse, +) from .assets import ( AssetsResource, AsyncAssetsResource, @@ -50,6 +58,12 @@ ) __all__ = [ + "AIResource", + "AsyncAIResource", + "AIResourceWithRawResponse", + "AsyncAIResourceWithRawResponse", + "AIResourceWithStreamingResponse", + "AsyncAIResourceWithStreamingResponse", "AssetsResource", "AsyncAssetsResource", "AssetsResourceWithRawResponse", diff --git a/src/cloudflare/resources/ai/__init__.py b/src/cloudflare/resources/workers/ai/__init__.py similarity index 100% rename from src/cloudflare/resources/ai/__init__.py rename to src/cloudflare/resources/workers/ai/__init__.py diff --git a/src/cloudflare/resources/ai/ai.py b/src/cloudflare/resources/workers/ai/ai.py similarity index 99% rename from src/cloudflare/resources/ai/ai.py rename to src/cloudflare/resources/workers/ai/ai.py index 09421073da3..91012966858 100644 --- a/src/cloudflare/resources/ai/ai.py +++ b/src/cloudflare/resources/workers/ai/ai.py @@ -7,22 +7,21 @@ import httpx -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ..._utils import ( +from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ...._utils import ( required_args, maybe_transform, async_maybe_transform, ) -from ..._compat import cached_property -from ...types.ai import ai_run_params -from ..._resource import SyncAPIResource, AsyncAPIResource -from ..._response import ( +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import ( to_raw_response_wrapper, to_streamed_response_wrapper, async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) -from ..._wrappers import ResultWrapper +from ...._wrappers import ResultWrapper from .models.models import ( ModelsResource, AsyncModelsResource, @@ -31,8 +30,9 @@ ModelsResourceWithStreamingResponse, AsyncModelsResourceWithStreamingResponse, ) -from ..._base_client import make_request_options -from ...types.ai.ai_run_response import AIRunResponse +from ...._base_client import make_request_options +from ....types.workers import ai_run_params +from ....types.workers.ai_run_response import AIRunResponse __all__ = ["AIResource", "AsyncAIResource"] diff --git a/src/cloudflare/resources/ai/models/__init__.py b/src/cloudflare/resources/workers/ai/models/__init__.py similarity index 100% rename from src/cloudflare/resources/ai/models/__init__.py rename to src/cloudflare/resources/workers/ai/models/__init__.py diff --git a/src/cloudflare/resources/ai/models/models.py b/src/cloudflare/resources/workers/ai/models/models.py similarity index 97% rename from src/cloudflare/resources/ai/models/models.py rename to src/cloudflare/resources/workers/ai/models/models.py index 84a4bfd662d..95e2e20f66f 100644 --- a/src/cloudflare/resources/ai/models/models.py +++ b/src/cloudflare/resources/workers/ai/models/models.py @@ -10,8 +10,8 @@ SchemaResourceWithStreamingResponse, AsyncSchemaResourceWithStreamingResponse, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource __all__ = ["ModelsResource", "AsyncModelsResource"] diff --git a/src/cloudflare/resources/ai/models/schema.py b/src/cloudflare/resources/workers/ai/models/schema.py similarity index 94% rename from src/cloudflare/resources/ai/models/schema.py rename to src/cloudflare/resources/workers/ai/models/schema.py index be4afa7007f..93f1363a597 100644 --- a/src/cloudflare/resources/ai/models/schema.py +++ b/src/cloudflare/resources/workers/ai/models/schema.py @@ -6,22 +6,22 @@ import httpx -from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven -from ...._utils import ( +from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven +from ....._utils import ( maybe_transform, async_maybe_transform, ) -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from ...._response import ( +from ....._compat import cached_property +from ....._resource import SyncAPIResource, AsyncAPIResource +from ....._response import ( to_raw_response_wrapper, to_streamed_response_wrapper, async_to_raw_response_wrapper, async_to_streamed_response_wrapper, ) -from ...._wrappers import ResultWrapper -from ...._base_client import make_request_options -from ....types.ai.models import schema_get_params +from ....._wrappers import ResultWrapper +from ....._base_client import make_request_options +from .....types.workers.ai.models import schema_get_params __all__ = ["SchemaResource", "AsyncSchemaResource"] diff --git a/src/cloudflare/resources/workers/workers.py b/src/cloudflare/resources/workers/workers.py index 57911025f5f..ed4da6b38d5 100644 --- a/src/cloudflare/resources/workers/workers.py +++ b/src/cloudflare/resources/workers/workers.py @@ -2,6 +2,14 @@ from __future__ import annotations +from .ai.ai import ( + AIResource, + AsyncAIResource, + AIResourceWithRawResponse, + AsyncAIResourceWithRawResponse, + AIResourceWithStreamingResponse, + AsyncAIResourceWithStreamingResponse, +) from .domains import ( DomainsResource, AsyncDomainsResource, @@ -49,6 +57,10 @@ class WorkersResource(SyncAPIResource): + @cached_property + def ai(self) -> AIResource: + return AIResource(self._client) + @cached_property def assets(self) -> AssetsResource: return AssetsResource(self._client) @@ -90,6 +102,10 @@ def with_streaming_response(self) -> WorkersResourceWithStreamingResponse: class AsyncWorkersResource(AsyncAPIResource): + @cached_property + def ai(self) -> AsyncAIResource: + return AsyncAIResource(self._client) + @cached_property def assets(self) -> AsyncAssetsResource: return AsyncAssetsResource(self._client) @@ -134,6 +150,10 @@ class WorkersResourceWithRawResponse: def __init__(self, workers: WorkersResource) -> None: self._workers = workers + @cached_property + def ai(self) -> AIResourceWithRawResponse: + return AIResourceWithRawResponse(self._workers.ai) + @cached_property def assets(self) -> AssetsResourceWithRawResponse: return AssetsResourceWithRawResponse(self._workers.assets) @@ -159,6 +179,10 @@ class AsyncWorkersResourceWithRawResponse: def __init__(self, workers: AsyncWorkersResource) -> None: self._workers = workers + @cached_property + def ai(self) -> AsyncAIResourceWithRawResponse: + return AsyncAIResourceWithRawResponse(self._workers.ai) + @cached_property def assets(self) -> AsyncAssetsResourceWithRawResponse: return AsyncAssetsResourceWithRawResponse(self._workers.assets) @@ -184,6 +208,10 @@ class WorkersResourceWithStreamingResponse: def __init__(self, workers: WorkersResource) -> None: self._workers = workers + @cached_property + def ai(self) -> AIResourceWithStreamingResponse: + return AIResourceWithStreamingResponse(self._workers.ai) + @cached_property def assets(self) -> AssetsResourceWithStreamingResponse: return AssetsResourceWithStreamingResponse(self._workers.assets) @@ -209,6 +237,10 @@ class AsyncWorkersResourceWithStreamingResponse: def __init__(self, workers: AsyncWorkersResource) -> None: self._workers = workers + @cached_property + def ai(self) -> AsyncAIResourceWithStreamingResponse: + return AsyncAIResourceWithStreamingResponse(self._workers.ai) + @cached_property def assets(self) -> AsyncAssetsResourceWithStreamingResponse: return AsyncAssetsResourceWithStreamingResponse(self._workers.assets) diff --git a/src/cloudflare/resources/zones/holds.py b/src/cloudflare/resources/zones/holds.py index 3a5e6854060..50ff188a172 100644 --- a/src/cloudflare/resources/zones/holds.py +++ b/src/cloudflare/resources/zones/holds.py @@ -20,7 +20,7 @@ async_to_streamed_response_wrapper, ) from ..._wrappers import ResultWrapper -from ...types.zones import hold_create_params, hold_delete_params, hold_update_params +from ...types.zones import hold_edit_params, hold_create_params, hold_delete_params from ..._base_client import make_request_options from ...types.zones.zone_hold import ZoneHold @@ -94,12 +94,11 @@ def create( cast_to=cast(Type[ZoneHold], ResultWrapper[ZoneHold]), ) - def update( + def delete( self, *, zone_id: str, hold_after: str | NotGiven = NOT_GIVEN, - include_subdomains: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -108,22 +107,15 @@ def update( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> ZoneHold: """ - Update the `hold_after` and/or `include_subdomains` values on an existing zone - hold. The hold is enabled if the `hold_after` date-time value is in the past. + Stop enforcement of a zone hold on the zone, permanently or temporarily, + allowing the creation and activation of zones with this zone's hostname. Args: zone_id: Identifier - hold_after: If `hold_after` is provided and future-dated, the hold will be temporarily - disabled, then automatically re-enabled by the system at the time specified in - this RFC3339-formatted timestamp. A past-dated `hold_after` value will have no - effect on an existing, enabled hold. Providing an empty string will set its - value to the current time. - - include_subdomains: If `true`, the zone hold will extend to block any subdomain of the given zone, - as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with - the hostname 'example.com' and include_subdomains=true will block 'example.com', - 'staging.example.com', 'api.staging.example.com', etc. + hold_after: If `hold_after` is provided, the hold will be temporarily disabled, then + automatically re-enabled by the system at the time specified in this + RFC3339-formatted timestamp. Otherwise, the hold will be disabled indefinitely. extra_headers: Send extra headers @@ -135,30 +127,25 @@ def update( """ if not zone_id: raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") - return self._patch( + return self._delete( f"/zones/{zone_id}/hold", - body=maybe_transform( - { - "hold_after": hold_after, - "include_subdomains": include_subdomains, - }, - hold_update_params.HoldUpdateParams, - ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, + query=maybe_transform({"hold_after": hold_after}, hold_delete_params.HoldDeleteParams), post_parser=ResultWrapper[ZoneHold]._unwrapper, ), cast_to=cast(Type[ZoneHold], ResultWrapper[ZoneHold]), ) - def delete( + def edit( self, *, zone_id: str, hold_after: str | NotGiven = NOT_GIVEN, + include_subdomains: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -167,15 +154,22 @@ def delete( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> ZoneHold: """ - Stop enforcement of a zone hold on the zone, permanently or temporarily, - allowing the creation and activation of zones with this zone's hostname. + Update the `hold_after` and/or `include_subdomains` values on an existing zone + hold. The hold is enabled if the `hold_after` date-time value is in the past. Args: zone_id: Identifier - hold_after: If `hold_after` is provided, the hold will be temporarily disabled, then - automatically re-enabled by the system at the time specified in this - RFC3339-formatted timestamp. Otherwise, the hold will be disabled indefinitely. + hold_after: If `hold_after` is provided and future-dated, the hold will be temporarily + disabled, then automatically re-enabled by the system at the time specified in + this RFC3339-formatted timestamp. A past-dated `hold_after` value will have no + effect on an existing, enabled hold. Providing an empty string will set its + value to the current time. + + include_subdomains: If `true`, the zone hold will extend to block any subdomain of the given zone, + as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with + the hostname 'example.com' and include_subdomains=true will block 'example.com', + 'staging.example.com', 'api.staging.example.com', etc. extra_headers: Send extra headers @@ -187,14 +181,20 @@ def delete( """ if not zone_id: raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") - return self._delete( + return self._patch( f"/zones/{zone_id}/hold", + body=maybe_transform( + { + "hold_after": hold_after, + "include_subdomains": include_subdomains, + }, + hold_edit_params.HoldEditParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"hold_after": hold_after}, hold_delete_params.HoldDeleteParams), post_parser=ResultWrapper[ZoneHold]._unwrapper, ), cast_to=cast(Type[ZoneHold], ResultWrapper[ZoneHold]), @@ -310,12 +310,11 @@ async def create( cast_to=cast(Type[ZoneHold], ResultWrapper[ZoneHold]), ) - async def update( + async def delete( self, *, zone_id: str, hold_after: str | NotGiven = NOT_GIVEN, - include_subdomains: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -324,22 +323,15 @@ async def update( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> ZoneHold: """ - Update the `hold_after` and/or `include_subdomains` values on an existing zone - hold. The hold is enabled if the `hold_after` date-time value is in the past. + Stop enforcement of a zone hold on the zone, permanently or temporarily, + allowing the creation and activation of zones with this zone's hostname. Args: zone_id: Identifier - hold_after: If `hold_after` is provided and future-dated, the hold will be temporarily - disabled, then automatically re-enabled by the system at the time specified in - this RFC3339-formatted timestamp. A past-dated `hold_after` value will have no - effect on an existing, enabled hold. Providing an empty string will set its - value to the current time. - - include_subdomains: If `true`, the zone hold will extend to block any subdomain of the given zone, - as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with - the hostname 'example.com' and include_subdomains=true will block 'example.com', - 'staging.example.com', 'api.staging.example.com', etc. + hold_after: If `hold_after` is provided, the hold will be temporarily disabled, then + automatically re-enabled by the system at the time specified in this + RFC3339-formatted timestamp. Otherwise, the hold will be disabled indefinitely. extra_headers: Send extra headers @@ -351,30 +343,25 @@ async def update( """ if not zone_id: raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") - return await self._patch( + return await self._delete( f"/zones/{zone_id}/hold", - body=await async_maybe_transform( - { - "hold_after": hold_after, - "include_subdomains": include_subdomains, - }, - hold_update_params.HoldUpdateParams, - ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, + query=await async_maybe_transform({"hold_after": hold_after}, hold_delete_params.HoldDeleteParams), post_parser=ResultWrapper[ZoneHold]._unwrapper, ), cast_to=cast(Type[ZoneHold], ResultWrapper[ZoneHold]), ) - async def delete( + async def edit( self, *, zone_id: str, hold_after: str | NotGiven = NOT_GIVEN, + include_subdomains: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -383,15 +370,22 @@ async def delete( timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, ) -> ZoneHold: """ - Stop enforcement of a zone hold on the zone, permanently or temporarily, - allowing the creation and activation of zones with this zone's hostname. + Update the `hold_after` and/or `include_subdomains` values on an existing zone + hold. The hold is enabled if the `hold_after` date-time value is in the past. Args: zone_id: Identifier - hold_after: If `hold_after` is provided, the hold will be temporarily disabled, then - automatically re-enabled by the system at the time specified in this - RFC3339-formatted timestamp. Otherwise, the hold will be disabled indefinitely. + hold_after: If `hold_after` is provided and future-dated, the hold will be temporarily + disabled, then automatically re-enabled by the system at the time specified in + this RFC3339-formatted timestamp. A past-dated `hold_after` value will have no + effect on an existing, enabled hold. Providing an empty string will set its + value to the current time. + + include_subdomains: If `true`, the zone hold will extend to block any subdomain of the given zone, + as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with + the hostname 'example.com' and include_subdomains=true will block 'example.com', + 'staging.example.com', 'api.staging.example.com', etc. extra_headers: Send extra headers @@ -403,14 +397,20 @@ async def delete( """ if not zone_id: raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}") - return await self._delete( + return await self._patch( f"/zones/{zone_id}/hold", + body=await async_maybe_transform( + { + "hold_after": hold_after, + "include_subdomains": include_subdomains, + }, + hold_edit_params.HoldEditParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=await async_maybe_transform({"hold_after": hold_after}, hold_delete_params.HoldDeleteParams), post_parser=ResultWrapper[ZoneHold]._unwrapper, ), cast_to=cast(Type[ZoneHold], ResultWrapper[ZoneHold]), @@ -464,12 +464,12 @@ def __init__(self, holds: HoldsResource) -> None: self.create = to_raw_response_wrapper( holds.create, ) - self.update = to_raw_response_wrapper( - holds.update, - ) self.delete = to_raw_response_wrapper( holds.delete, ) + self.edit = to_raw_response_wrapper( + holds.edit, + ) self.get = to_raw_response_wrapper( holds.get, ) @@ -482,12 +482,12 @@ def __init__(self, holds: AsyncHoldsResource) -> None: self.create = async_to_raw_response_wrapper( holds.create, ) - self.update = async_to_raw_response_wrapper( - holds.update, - ) self.delete = async_to_raw_response_wrapper( holds.delete, ) + self.edit = async_to_raw_response_wrapper( + holds.edit, + ) self.get = async_to_raw_response_wrapper( holds.get, ) @@ -500,12 +500,12 @@ def __init__(self, holds: HoldsResource) -> None: self.create = to_streamed_response_wrapper( holds.create, ) - self.update = to_streamed_response_wrapper( - holds.update, - ) self.delete = to_streamed_response_wrapper( holds.delete, ) + self.edit = to_streamed_response_wrapper( + holds.edit, + ) self.get = to_streamed_response_wrapper( holds.get, ) @@ -518,12 +518,12 @@ def __init__(self, holds: AsyncHoldsResource) -> None: self.create = async_to_streamed_response_wrapper( holds.create, ) - self.update = async_to_streamed_response_wrapper( - holds.update, - ) self.delete = async_to_streamed_response_wrapper( holds.delete, ) + self.edit = async_to_streamed_response_wrapper( + holds.edit, + ) self.get = async_to_streamed_response_wrapper( holds.get, ) diff --git a/src/cloudflare/types/ai_gateway/log_delete_params.py b/src/cloudflare/types/ai_gateway/log_delete_params.py index fcc8d1d6b54..4a6d76f27a0 100644 --- a/src/cloudflare/types/ai_gateway/log_delete_params.py +++ b/src/cloudflare/types/ai_gateway/log_delete_params.py @@ -35,7 +35,6 @@ class LogDeleteParams(TypedDict, total=False): class Filter(TypedDict, total=False): key: Required[ Literal[ - "id", "created_at", "request_content_type", "response_content_type", @@ -50,10 +49,6 @@ class Filter(TypedDict, total=False): "tokens_out", "duration", "feedback", - "event_id", - "request_type", - "metadata.key", - "metadata.value", ] ] diff --git a/src/cloudflare/types/ai_gateway/log_list_params.py b/src/cloudflare/types/ai_gateway/log_list_params.py index b4037dde51f..14365d3a489 100644 --- a/src/cloudflare/types/ai_gateway/log_list_params.py +++ b/src/cloudflare/types/ai_gateway/log_list_params.py @@ -74,7 +74,6 @@ class LogListParams(TypedDict, total=False): class Filter(TypedDict, total=False): key: Required[ Literal[ - "id", "created_at", "request_content_type", "response_content_type", @@ -89,10 +88,6 @@ class Filter(TypedDict, total=False): "tokens_out", "duration", "feedback", - "event_id", - "request_type", - "metadata.key", - "metadata.value", ] ] diff --git a/src/cloudflare/types/dns/__init__.py b/src/cloudflare/types/dns/__init__.py index 896ce3f6c10..ab56ab8892e 100644 --- a/src/cloudflare/types/dns/__init__.py +++ b/src/cloudflare/types/dns/__init__.py @@ -2,7 +2,6 @@ from __future__ import annotations -from .ttl import TTL as TTL from .dnssec import DNSSEC as DNSSEC from .a_record import ARecord as ARecord from .ds_record import DSRecord as DSRecord diff --git a/src/cloudflare/types/dns/a_record.py b/src/cloudflare/types/dns/a_record.py index 0e92b18aa87..effdaa8bb3c 100644 --- a/src/cloudflare/types/dns/a_record.py +++ b/src/cloudflare/types/dns/a_record.py @@ -1,43 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["ARecord"] class ARecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """A valid IPv4 address.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["A"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/a_record_param.py b/src/cloudflare/types/dns/a_record_param.py index a7b46b5a982..d0599531818 100644 --- a/src/cloudflare/types/dns/a_record_param.py +++ b/src/cloudflare/types/dns/a_record_param.py @@ -2,43 +2,14 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["ARecordParam"] class ARecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv4 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["A"] """Record type.""" diff --git a/src/cloudflare/types/dns/aaaa_record.py b/src/cloudflare/types/dns/aaaa_record.py index 12b4a80d50f..389da8c9d8d 100644 --- a/src/cloudflare/types/dns/aaaa_record.py +++ b/src/cloudflare/types/dns/aaaa_record.py @@ -1,43 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["AAAARecord"] class AAAARecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """A valid IPv6 address.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["AAAA"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/aaaa_record_param.py b/src/cloudflare/types/dns/aaaa_record_param.py index dda366f6e09..134dad1d3ff 100644 --- a/src/cloudflare/types/dns/aaaa_record_param.py +++ b/src/cloudflare/types/dns/aaaa_record_param.py @@ -2,43 +2,14 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["AAAARecordParam"] class AAAARecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv6 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["AAAA"] """Record type.""" diff --git a/src/cloudflare/types/dns/caa_record.py b/src/cloudflare/types/dns/caa_record.py index db52be5fb3d..9c297caf161 100644 --- a/src/cloudflare/types/dns/caa_record.py +++ b/src/cloudflare/types/dns/caa_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["CAARecord", "Data"] @@ -22,36 +20,11 @@ class Data(BaseModel): class CAARecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted CAA content. See 'data' to set CAA properties.""" data: Optional[Data] = None """Components of a CAA record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["CAA"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/caa_record_param.py b/src/cloudflare/types/dns/caa_record_param.py index f4607bff8a3..61f67b7d043 100644 --- a/src/cloudflare/types/dns/caa_record_param.py +++ b/src/cloudflare/types/dns/caa_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["CAARecordParam", "Data"] @@ -23,33 +19,8 @@ class Data(TypedDict, total=False): class CAARecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a CAA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CAA"] """Record type.""" diff --git a/src/cloudflare/types/dns/cert_record.py b/src/cloudflare/types/dns/cert_record.py index 773fc039929..146b7fd6536 100644 --- a/src/cloudflare/types/dns/cert_record.py +++ b/src/cloudflare/types/dns/cert_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["CERTRecord", "Data"] @@ -25,36 +23,11 @@ class Data(BaseModel): class CERTRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted CERT content. See 'data' to set CERT properties.""" data: Optional[Data] = None """Components of a CERT record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["CERT"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/cert_record_param.py b/src/cloudflare/types/dns/cert_record_param.py index ae6a63bf15f..a5723865221 100644 --- a/src/cloudflare/types/dns/cert_record_param.py +++ b/src/cloudflare/types/dns/cert_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["CERTRecordParam", "Data"] @@ -26,33 +22,8 @@ class Data(TypedDict, total=False): class CERTRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a CERT record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CERT"] """Record type.""" diff --git a/src/cloudflare/types/dns/cname_record.py b/src/cloudflare/types/dns/cname_record.py index fb32c1ca384..300fb022f02 100644 --- a/src/cloudflare/types/dns/cname_record.py +++ b/src/cloudflare/types/dns/cname_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["CNAMERecord", "Settings"] @@ -21,35 +19,10 @@ class Settings(BaseModel): class CNAMERecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """A valid hostname. Must not match the record's name.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - settings: Optional[Settings] = None - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["CNAME"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/cname_record_param.py b/src/cloudflare/types/dns/cname_record_param.py index 87006d1b36d..889ae02d71a 100644 --- a/src/cloudflare/types/dns/cname_record_param.py +++ b/src/cloudflare/types/dns/cname_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["CNAMERecordParam", "Settings"] @@ -22,35 +18,10 @@ class Settings(TypedDict, total=False): class CNAMERecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid hostname. Must not match the record's name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - settings: Settings - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CNAME"] """Record type.""" diff --git a/src/cloudflare/types/dns/dnskey_record.py b/src/cloudflare/types/dns/dnskey_record.py index 650e258205b..e7768878c41 100644 --- a/src/cloudflare/types/dns/dnskey_record.py +++ b/src/cloudflare/types/dns/dnskey_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["DNSKEYRecord", "Data"] @@ -25,36 +23,11 @@ class Data(BaseModel): class DNSKEYRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted DNSKEY content. See 'data' to set DNSKEY properties.""" data: Optional[Data] = None """Components of a DNSKEY record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["DNSKEY"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/dnskey_record_param.py b/src/cloudflare/types/dns/dnskey_record_param.py index daba9a3225e..2569d59759a 100644 --- a/src/cloudflare/types/dns/dnskey_record_param.py +++ b/src/cloudflare/types/dns/dnskey_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["DNSKEYRecordParam", "Data"] @@ -26,33 +22,8 @@ class Data(TypedDict, total=False): class DNSKEYRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a DNSKEY record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DNSKEY"] """Record type.""" diff --git a/src/cloudflare/types/dns/ds_record.py b/src/cloudflare/types/dns/ds_record.py index 2d13516a67e..2f5644c7a93 100644 --- a/src/cloudflare/types/dns/ds_record.py +++ b/src/cloudflare/types/dns/ds_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["DSRecord", "Data"] @@ -25,36 +23,11 @@ class Data(BaseModel): class DSRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted DS content. See 'data' to set DS properties.""" data: Optional[Data] = None """Components of a DS record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["DS"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/ds_record_param.py b/src/cloudflare/types/dns/ds_record_param.py index 14618b80a4b..0e6ef32a6e3 100644 --- a/src/cloudflare/types/dns/ds_record_param.py +++ b/src/cloudflare/types/dns/ds_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["DSRecordParam", "Data"] @@ -26,33 +22,8 @@ class Data(TypedDict, total=False): class DSRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a DS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DS"] """Record type.""" diff --git a/src/cloudflare/types/dns/https_record.py b/src/cloudflare/types/dns/https_record.py index 7fb87c4bcf3..1abe51a24fc 100644 --- a/src/cloudflare/types/dns/https_record.py +++ b/src/cloudflare/types/dns/https_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["HTTPSRecord", "Data"] @@ -22,36 +20,11 @@ class Data(BaseModel): class HTTPSRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted HTTPS content. See 'data' to set HTTPS properties.""" data: Optional[Data] = None """Components of a HTTPS record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["HTTPS"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/https_record_param.py b/src/cloudflare/types/dns/https_record_param.py index 250fbb445ee..35f84e96112 100644 --- a/src/cloudflare/types/dns/https_record_param.py +++ b/src/cloudflare/types/dns/https_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["HTTPSRecordParam", "Data"] @@ -23,33 +19,8 @@ class Data(TypedDict, total=False): class HTTPSRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a HTTPS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["HTTPS"] """Record type.""" diff --git a/src/cloudflare/types/dns/loc_record.py b/src/cloudflare/types/dns/loc_record.py index 0fa1b139124..a6ec91991a6 100644 --- a/src/cloudflare/types/dns/loc_record.py +++ b/src/cloudflare/types/dns/loc_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["LOCRecord", "Data"] @@ -49,36 +47,11 @@ class Data(BaseModel): class LOCRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted LOC content. See 'data' to set LOC properties.""" data: Optional[Data] = None """Components of a LOC record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["LOC"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/loc_record_param.py b/src/cloudflare/types/dns/loc_record_param.py index 15b31223784..1ad54efe68d 100644 --- a/src/cloudflare/types/dns/loc_record_param.py +++ b/src/cloudflare/types/dns/loc_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["LOCRecordParam", "Data"] @@ -50,33 +46,8 @@ class Data(TypedDict, total=False): class LOCRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a LOC record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["LOC"] """Record type.""" diff --git a/src/cloudflare/types/dns/mx_record.py b/src/cloudflare/types/dns/mx_record.py index ef6c49db053..f9b2541541d 100644 --- a/src/cloudflare/types/dns/mx_record.py +++ b/src/cloudflare/types/dns/mx_record.py @@ -1,49 +1,22 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["MXRecord"] class MXRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """A valid mail server hostname.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: Optional[float] = None """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["MX"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/mx_record_param.py b/src/cloudflare/types/dns/mx_record_param.py index 633211e4684..1b10131d295 100644 --- a/src/cloudflare/types/dns/mx_record_param.py +++ b/src/cloudflare/types/dns/mx_record_param.py @@ -2,49 +2,20 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["MXRecordParam"] class MXRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid mail server hostname.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["MX"] """Record type.""" diff --git a/src/cloudflare/types/dns/naptr_record.py b/src/cloudflare/types/dns/naptr_record.py index 909bdc97dad..844b4405591 100644 --- a/src/cloudflare/types/dns/naptr_record.py +++ b/src/cloudflare/types/dns/naptr_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["NAPTRRecord", "Data"] @@ -31,36 +29,11 @@ class Data(BaseModel): class NAPTRRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted NAPTR content. See 'data' to set NAPTR properties.""" data: Optional[Data] = None """Components of a NAPTR record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["NAPTR"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/naptr_record_param.py b/src/cloudflare/types/dns/naptr_record_param.py index 9511cbba68e..751121258d6 100644 --- a/src/cloudflare/types/dns/naptr_record_param.py +++ b/src/cloudflare/types/dns/naptr_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["NAPTRRecordParam", "Data"] @@ -32,33 +28,8 @@ class Data(TypedDict, total=False): class NAPTRRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a NAPTR record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NAPTR"] """Record type.""" diff --git a/src/cloudflare/types/dns/ns_record.py b/src/cloudflare/types/dns/ns_record.py index 76e5aaff7c1..3c417541bfa 100644 --- a/src/cloudflare/types/dns/ns_record.py +++ b/src/cloudflare/types/dns/ns_record.py @@ -1,43 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["NSRecord"] class NSRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """A valid name server host name.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["NS"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/ns_record_param.py b/src/cloudflare/types/dns/ns_record_param.py index f036a719ddf..2b1ff211cd0 100644 --- a/src/cloudflare/types/dns/ns_record_param.py +++ b/src/cloudflare/types/dns/ns_record_param.py @@ -2,43 +2,14 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["NSRecordParam"] class NSRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid name server host name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NS"] """Record type.""" diff --git a/src/cloudflare/types/dns/ptr_record.py b/src/cloudflare/types/dns/ptr_record.py index 3eee7c802d1..2ad8219aaec 100644 --- a/src/cloudflare/types/dns/ptr_record.py +++ b/src/cloudflare/types/dns/ptr_record.py @@ -1,43 +1,16 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["PTRRecord"] class PTRRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Domain name pointing to the address.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["PTR"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/ptr_record_param.py b/src/cloudflare/types/dns/ptr_record_param.py index d0390797c51..612dc727e0f 100644 --- a/src/cloudflare/types/dns/ptr_record_param.py +++ b/src/cloudflare/types/dns/ptr_record_param.py @@ -2,43 +2,14 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["PTRRecordParam"] class PTRRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Domain name pointing to the address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["PTR"] """Record type.""" diff --git a/src/cloudflare/types/dns/record_batch_response.py b/src/cloudflare/types/dns/record_batch_response.py index 71382fb420b..d9210070092 100644 --- a/src/cloudflare/types/dns/record_batch_response.py +++ b/src/cloudflare/types/dns/record_batch_response.py @@ -1,9 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing_extensions import Literal, Annotated, TypeAlias -from .ttl import TTL +from ..._utils import PropertyInfo from .a_record import ARecord from ..._models import BaseModel from .ds_record import DSRecord @@ -17,7 +17,6 @@ from .uri_record import URIRecord from .aaaa_record import AAAARecord from .cert_record import CERTRecord -from .record_tags import RecordTags from .svcb_record import SVCBRecord from .tlsa_record import TLSARecord from .cname_record import CNAMERecord @@ -30,245 +29,157 @@ __all__ = [ "RecordBatchResponse", "Delete", - "DeleteDNSRecordsOpenpgpkeyRecord", + "DeleteOpenpgpkey", "Patch", - "PatchDNSRecordsOpenpgpkeyRecord", + "PatchOpenpgpkey", "Post", - "PostDNSRecordsOpenpgpkeyRecord", + "PostOpenpgpkey", "Put", - "PutDNSRecordsOpenpgpkeyRecord", + "PutOpenpgpkey", ] -class DeleteDNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class DeleteOpenpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -Delete: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - DeleteDNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +Delete: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + DeleteOpenpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] -class PatchDNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class PatchOpenpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -Patch: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - PatchDNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +Patch: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PatchOpenpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] -class PostDNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class PostOpenpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -Post: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - PostDNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +Post: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PostOpenpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] -class PutDNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class PutOpenpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -Put: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - PutDNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +Put: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + PutOpenpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_create_params.py b/src/cloudflare/types/dns/record_create_params.py index b9ce9b46a95..81ebaf1568a 100644 --- a/src/cloudflare/types/dns/record_create_params.py +++ b/src/cloudflare/types/dns/record_create_params.py @@ -2,12 +2,9 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from typing_extensions import Literal, Required, TypeAlias, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = [ "RecordCreateParams", "ARecord", @@ -52,34 +49,9 @@ class ARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv4 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["A"] """Record type.""" @@ -88,34 +60,9 @@ class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv6 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["AAAA"] """Record type.""" @@ -124,34 +71,9 @@ class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: CAARecordData """Components of a CAA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CAA"] """Record type.""" @@ -171,34 +93,9 @@ class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: CERTRecordData """Components of a CERT record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CERT"] """Record type.""" @@ -221,36 +118,11 @@ class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid hostname. Must not match the record's name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - settings: CNAMERecordSettings - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CNAME"] """Record type.""" @@ -269,34 +141,9 @@ class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: DNSKEYRecordData """Components of a DNSKEY record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DNSKEY"] """Record type.""" @@ -319,34 +166,9 @@ class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: DSRecordData """Components of a DS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DS"] """Record type.""" @@ -369,34 +191,9 @@ class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: HTTPSRecordData """Components of a HTTPS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["HTTPS"] """Record type.""" @@ -416,34 +213,9 @@ class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: LOCRecordData """Components of a LOC record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["LOC"] """Record type.""" @@ -490,40 +262,15 @@ class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid mail server hostname.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["MX"] """Record type.""" @@ -532,34 +279,9 @@ class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: NAPTRRecordData """Components of a NAPTR record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NAPTR"] """Record type.""" @@ -588,34 +310,9 @@ class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid name server host name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NS"] """Record type.""" @@ -624,34 +321,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["OPENPGPKEY"] """Record type.""" @@ -660,34 +332,9 @@ class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Domain name pointing to the address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["PTR"] """Record type.""" @@ -696,34 +343,9 @@ class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SMIMEARecordData """Components of a SMIMEA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SMIMEA"] """Record type.""" @@ -746,34 +368,9 @@ class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SRVRecordData """Components of a SRV record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SRV"] """Record type.""" @@ -799,34 +396,9 @@ class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SSHFPRecordData """Components of a SSHFP record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SSHFP"] """Record type.""" @@ -846,34 +418,9 @@ class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SVCBRecordData """Components of a SVCB record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SVCB"] """Record type.""" @@ -893,34 +440,9 @@ class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: TLSARecordData """Components of a TLSA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TLSA"] """Record type.""" @@ -943,12 +465,6 @@ class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Text content for the record. @@ -960,25 +476,6 @@ class TXTRecord(TypedDict, total=False): . """ - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TXT"] """Record type.""" @@ -987,40 +484,15 @@ class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: URIRecordData """Components of a URI record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["URI"] """Record type.""" diff --git a/src/cloudflare/types/dns/record_create_response.py b/src/cloudflare/types/dns/record_create_response.py index 4daffd56f7f..e4ff8cffbd6 100644 --- a/src/cloudflare/types/dns/record_create_response.py +++ b/src/cloudflare/types/dns/record_create_response.py @@ -1,9 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias -from .ttl import TTL +from ..._utils import PropertyInfo from .a_record import ARecord from ..._models import BaseModel from .ds_record import DSRecord @@ -17,7 +17,6 @@ from .uri_record import URIRecord from .aaaa_record import AAAARecord from .cert_record import CERTRecord -from .record_tags import RecordTags from .svcb_record import SVCBRecord from .tlsa_record import TLSARecord from .cname_record import CNAMERecord @@ -27,62 +26,40 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordCreateResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordCreateResponse", "Openpgpkey"] -class DNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class Openpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -RecordCreateResponse: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - DNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +RecordCreateResponse: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + Openpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_edit_params.py b/src/cloudflare/types/dns/record_edit_params.py index 560790f1419..847c4b0e1e5 100644 --- a/src/cloudflare/types/dns/record_edit_params.py +++ b/src/cloudflare/types/dns/record_edit_params.py @@ -2,12 +2,9 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from typing_extensions import Literal, Required, TypeAlias, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = [ "RecordEditParams", "ARecord", @@ -52,34 +49,9 @@ class ARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv4 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["A"] """Record type.""" @@ -88,34 +60,9 @@ class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv6 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["AAAA"] """Record type.""" @@ -124,34 +71,9 @@ class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: CAARecordData """Components of a CAA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CAA"] """Record type.""" @@ -171,34 +93,9 @@ class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: CERTRecordData """Components of a CERT record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CERT"] """Record type.""" @@ -221,36 +118,11 @@ class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid hostname. Must not match the record's name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - settings: CNAMERecordSettings - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CNAME"] """Record type.""" @@ -269,34 +141,9 @@ class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: DNSKEYRecordData """Components of a DNSKEY record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DNSKEY"] """Record type.""" @@ -319,34 +166,9 @@ class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: DSRecordData """Components of a DS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DS"] """Record type.""" @@ -369,34 +191,9 @@ class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: HTTPSRecordData """Components of a HTTPS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["HTTPS"] """Record type.""" @@ -416,34 +213,9 @@ class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: LOCRecordData """Components of a LOC record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["LOC"] """Record type.""" @@ -490,40 +262,15 @@ class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid mail server hostname.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["MX"] """Record type.""" @@ -532,34 +279,9 @@ class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: NAPTRRecordData """Components of a NAPTR record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NAPTR"] """Record type.""" @@ -588,34 +310,9 @@ class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid name server host name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NS"] """Record type.""" @@ -624,34 +321,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["OPENPGPKEY"] """Record type.""" @@ -660,34 +332,9 @@ class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Domain name pointing to the address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["PTR"] """Record type.""" @@ -696,34 +343,9 @@ class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SMIMEARecordData """Components of a SMIMEA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SMIMEA"] """Record type.""" @@ -746,34 +368,9 @@ class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SRVRecordData """Components of a SRV record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SRV"] """Record type.""" @@ -799,34 +396,9 @@ class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SSHFPRecordData """Components of a SSHFP record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SSHFP"] """Record type.""" @@ -846,34 +418,9 @@ class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SVCBRecordData """Components of a SVCB record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SVCB"] """Record type.""" @@ -893,34 +440,9 @@ class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: TLSARecordData """Components of a TLSA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TLSA"] """Record type.""" @@ -943,12 +465,6 @@ class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Text content for the record. @@ -960,25 +476,6 @@ class TXTRecord(TypedDict, total=False): . """ - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TXT"] """Record type.""" @@ -987,40 +484,15 @@ class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: URIRecordData """Components of a URI record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["URI"] """Record type.""" diff --git a/src/cloudflare/types/dns/record_edit_response.py b/src/cloudflare/types/dns/record_edit_response.py index 9f6285bd2fc..0ccb58bc557 100644 --- a/src/cloudflare/types/dns/record_edit_response.py +++ b/src/cloudflare/types/dns/record_edit_response.py @@ -1,9 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias -from .ttl import TTL +from ..._utils import PropertyInfo from .a_record import ARecord from ..._models import BaseModel from .ds_record import DSRecord @@ -17,7 +17,6 @@ from .uri_record import URIRecord from .aaaa_record import AAAARecord from .cert_record import CERTRecord -from .record_tags import RecordTags from .svcb_record import SVCBRecord from .tlsa_record import TLSARecord from .cname_record import CNAMERecord @@ -27,62 +26,40 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordEditResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordEditResponse", "Openpgpkey"] -class DNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class Openpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -RecordEditResponse: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - DNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +RecordEditResponse: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + Openpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_get_response.py b/src/cloudflare/types/dns/record_get_response.py index 4e1ad042c71..906e5d6bf5f 100644 --- a/src/cloudflare/types/dns/record_get_response.py +++ b/src/cloudflare/types/dns/record_get_response.py @@ -1,9 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias -from .ttl import TTL +from ..._utils import PropertyInfo from .a_record import ARecord from ..._models import BaseModel from .ds_record import DSRecord @@ -17,7 +17,6 @@ from .uri_record import URIRecord from .aaaa_record import AAAARecord from .cert_record import CERTRecord -from .record_tags import RecordTags from .svcb_record import SVCBRecord from .tlsa_record import TLSARecord from .cname_record import CNAMERecord @@ -27,62 +26,40 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordGetResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordGetResponse", "Openpgpkey"] -class DNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class Openpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -RecordGetResponse: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - DNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +RecordGetResponse: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + Openpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_list_response.py b/src/cloudflare/types/dns/record_list_response.py index f4aa743e44b..e14114e58b2 100644 --- a/src/cloudflare/types/dns/record_list_response.py +++ b/src/cloudflare/types/dns/record_list_response.py @@ -1,9 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias -from .ttl import TTL +from ..._utils import PropertyInfo from .a_record import ARecord from ..._models import BaseModel from .ds_record import DSRecord @@ -17,7 +17,6 @@ from .uri_record import URIRecord from .aaaa_record import AAAARecord from .cert_record import CERTRecord -from .record_tags import RecordTags from .svcb_record import SVCBRecord from .tlsa_record import TLSARecord from .cname_record import CNAMERecord @@ -27,62 +26,40 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordListResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordListResponse", "Openpgpkey"] -class DNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class Openpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -RecordListResponse: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - DNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +RecordListResponse: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + Openpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_param.py b/src/cloudflare/types/dns/record_param.py index 86c91d8b874..e5d19c36bf6 100644 --- a/src/cloudflare/types/dns/record_param.py +++ b/src/cloudflare/types/dns/record_param.py @@ -2,11 +2,9 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from typing_extensions import Literal, TypeAlias, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags from .a_record_param import ARecordParam from .ds_record_param import DSRecordParam from .mx_record_param import MXRecordParam @@ -28,38 +26,13 @@ from .dnskey_record_param import DNSKEYRecordParam from .smimea_record_param import SMIMEARecordParam -__all__ = ["RecordParam", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordParam", "Openpgpkey"] -class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class Openpgpkey(TypedDict, total=False): content: str """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["OPENPGPKEY"] """Record type.""" @@ -77,7 +50,7 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): MXRecordParam, NAPTRRecordParam, NSRecordParam, - DNSRecordsOpenpgpkeyRecord, + Openpgpkey, PTRRecordParam, SMIMEARecordParam, SRVRecordParam, diff --git a/src/cloudflare/types/dns/record_update_params.py b/src/cloudflare/types/dns/record_update_params.py index d959b8c6e1e..fdea8ae1f41 100644 --- a/src/cloudflare/types/dns/record_update_params.py +++ b/src/cloudflare/types/dns/record_update_params.py @@ -2,12 +2,9 @@ from __future__ import annotations -from typing import List, Union +from typing import Union from typing_extensions import Literal, Required, TypeAlias, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = [ "RecordUpdateParams", "ARecord", @@ -52,34 +49,9 @@ class ARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv4 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["A"] """Record type.""" @@ -88,34 +60,9 @@ class AAAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid IPv6 address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["AAAA"] """Record type.""" @@ -124,34 +71,9 @@ class CAARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: CAARecordData """Components of a CAA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CAA"] """Record type.""" @@ -171,34 +93,9 @@ class CERTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: CERTRecordData """Components of a CERT record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CERT"] """Record type.""" @@ -221,36 +118,11 @@ class CNAMERecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid hostname. Must not match the record's name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - settings: CNAMERecordSettings - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["CNAME"] """Record type.""" @@ -269,34 +141,9 @@ class DNSKEYRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: DNSKEYRecordData """Components of a DNSKEY record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DNSKEY"] """Record type.""" @@ -319,34 +166,9 @@ class DSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: DSRecordData """Components of a DS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["DS"] """Record type.""" @@ -369,34 +191,9 @@ class HTTPSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: HTTPSRecordData """Components of a HTTPS record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["HTTPS"] """Record type.""" @@ -416,34 +213,9 @@ class LOCRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: LOCRecordData """Components of a LOC record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["LOC"] """Record type.""" @@ -490,40 +262,15 @@ class MXRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid mail server hostname.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["MX"] """Record type.""" @@ -532,34 +279,9 @@ class NAPTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: NAPTRRecordData """Components of a NAPTR record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NAPTR"] """Record type.""" @@ -588,34 +310,9 @@ class NSRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A valid name server host name.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["NS"] """Record type.""" @@ -624,34 +321,9 @@ class DNSRecordsOpenpgpkeyRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["OPENPGPKEY"] """Record type.""" @@ -660,34 +332,9 @@ class PTRRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Domain name pointing to the address.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["PTR"] """Record type.""" @@ -696,34 +343,9 @@ class SMIMEARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SMIMEARecordData """Components of a SMIMEA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SMIMEA"] """Record type.""" @@ -746,34 +368,9 @@ class SRVRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SRVRecordData """Components of a SRV record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SRV"] """Record type.""" @@ -799,34 +396,9 @@ class SSHFPRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SSHFPRecordData """Components of a SSHFP record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SSHFP"] """Record type.""" @@ -846,34 +418,9 @@ class SVCBRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: SVCBRecordData """Components of a SVCB record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SVCB"] """Record type.""" @@ -893,34 +440,9 @@ class TLSARecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: TLSARecordData """Components of a TLSA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TLSA"] """Record type.""" @@ -943,12 +465,6 @@ class TXTRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Text content for the record. @@ -960,25 +476,6 @@ class TXTRecord(TypedDict, total=False): . """ - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TXT"] """Record type.""" @@ -987,40 +484,15 @@ class URIRecord(TypedDict, total=False): zone_id: Required[str] """Identifier""" - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: URIRecordData """Components of a URI record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["URI"] """Record type.""" diff --git a/src/cloudflare/types/dns/record_update_response.py b/src/cloudflare/types/dns/record_update_response.py index 51c6afdfe49..52908351688 100644 --- a/src/cloudflare/types/dns/record_update_response.py +++ b/src/cloudflare/types/dns/record_update_response.py @@ -1,9 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Union, Optional -from typing_extensions import Literal, TypeAlias +from typing import Union, Optional +from typing_extensions import Literal, Annotated, TypeAlias -from .ttl import TTL +from ..._utils import PropertyInfo from .a_record import ARecord from ..._models import BaseModel from .ds_record import DSRecord @@ -17,7 +17,6 @@ from .uri_record import URIRecord from .aaaa_record import AAAARecord from .cert_record import CERTRecord -from .record_tags import RecordTags from .svcb_record import SVCBRecord from .tlsa_record import TLSARecord from .cname_record import CNAMERecord @@ -27,62 +26,40 @@ from .dnskey_record import DNSKEYRecord from .smimea_record import SMIMEARecord -__all__ = ["RecordUpdateResponse", "DNSRecordsOpenpgpkeyRecord"] +__all__ = ["RecordUpdateResponse", "Openpgpkey"] -class DNSRecordsOpenpgpkeyRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - +class Openpgpkey(BaseModel): content: Optional[str] = None """A single Base64-encoded OpenPGP Transferable Public Key (RFC 4880 Section 11.1)""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["OPENPGPKEY"]] = None """Record type.""" -RecordUpdateResponse: TypeAlias = Union[ - ARecord, - AAAARecord, - CAARecord, - CERTRecord, - CNAMERecord, - DNSKEYRecord, - DSRecord, - HTTPSRecord, - LOCRecord, - MXRecord, - NAPTRRecord, - NSRecord, - DNSRecordsOpenpgpkeyRecord, - PTRRecord, - SMIMEARecord, - SRVRecord, - SSHFPRecord, - SVCBRecord, - TLSARecord, - TXTRecord, - URIRecord, +RecordUpdateResponse: TypeAlias = Annotated[ + Union[ + ARecord, + AAAARecord, + CAARecord, + CERTRecord, + CNAMERecord, + DNSKEYRecord, + DSRecord, + HTTPSRecord, + LOCRecord, + MXRecord, + NAPTRRecord, + NSRecord, + Openpgpkey, + PTRRecord, + SMIMEARecord, + SRVRecord, + SSHFPRecord, + SVCBRecord, + TLSARecord, + TXTRecord, + URIRecord, + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/smimea_record.py b/src/cloudflare/types/dns/smimea_record.py index 7fae716400b..8a5afe6ebc9 100644 --- a/src/cloudflare/types/dns/smimea_record.py +++ b/src/cloudflare/types/dns/smimea_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["SMIMEARecord", "Data"] @@ -25,36 +23,11 @@ class Data(BaseModel): class SMIMEARecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted SMIMEA content. See 'data' to set SMIMEA properties.""" data: Optional[Data] = None """Components of a SMIMEA record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["SMIMEA"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/smimea_record_param.py b/src/cloudflare/types/dns/smimea_record_param.py index ce121a41674..a7cfcea5c18 100644 --- a/src/cloudflare/types/dns/smimea_record_param.py +++ b/src/cloudflare/types/dns/smimea_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["SMIMEARecordParam", "Data"] @@ -26,33 +22,8 @@ class Data(TypedDict, total=False): class SMIMEARecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a SMIMEA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SMIMEA"] """Record type.""" diff --git a/src/cloudflare/types/dns/srv_record.py b/src/cloudflare/types/dns/srv_record.py index 5be06e73406..6003dbe982b 100644 --- a/src/cloudflare/types/dns/srv_record.py +++ b/src/cloudflare/types/dns/srv_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["SRVRecord", "Data"] @@ -28,12 +26,6 @@ class Data(BaseModel): class SRVRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Priority, weight, port, and SRV target. @@ -43,24 +35,5 @@ class SRVRecord(BaseModel): data: Optional[Data] = None """Components of a SRV record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["SRV"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/srv_record_param.py b/src/cloudflare/types/dns/srv_record_param.py index 69812aa320e..916009bd26d 100644 --- a/src/cloudflare/types/dns/srv_record_param.py +++ b/src/cloudflare/types/dns/srv_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["SRVRecordParam", "Data"] @@ -29,33 +25,8 @@ class Data(TypedDict, total=False): class SRVRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a SRV record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SRV"] """Record type.""" diff --git a/src/cloudflare/types/dns/sshfp_record.py b/src/cloudflare/types/dns/sshfp_record.py index 855c412d9c6..ed9eafa5e7c 100644 --- a/src/cloudflare/types/dns/sshfp_record.py +++ b/src/cloudflare/types/dns/sshfp_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["SSHFPRecord", "Data"] @@ -22,36 +20,11 @@ class Data(BaseModel): class SSHFPRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted SSHFP content. See 'data' to set SSHFP properties.""" data: Optional[Data] = None """Components of a SSHFP record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["SSHFP"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/sshfp_record_param.py b/src/cloudflare/types/dns/sshfp_record_param.py index 90bced65ccd..f24b3e3698e 100644 --- a/src/cloudflare/types/dns/sshfp_record_param.py +++ b/src/cloudflare/types/dns/sshfp_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["SSHFPRecordParam", "Data"] @@ -23,33 +19,8 @@ class Data(TypedDict, total=False): class SSHFPRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a SSHFP record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SSHFP"] """Record type.""" diff --git a/src/cloudflare/types/dns/svcb_record.py b/src/cloudflare/types/dns/svcb_record.py index 57e4bfa4b62..30379e779a9 100644 --- a/src/cloudflare/types/dns/svcb_record.py +++ b/src/cloudflare/types/dns/svcb_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["SVCBRecord", "Data"] @@ -22,36 +20,11 @@ class Data(BaseModel): class SVCBRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted SVCB content. See 'data' to set SVCB properties.""" data: Optional[Data] = None """Components of a SVCB record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["SVCB"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/svcb_record_param.py b/src/cloudflare/types/dns/svcb_record_param.py index e96d13d1bf3..7194add1748 100644 --- a/src/cloudflare/types/dns/svcb_record_param.py +++ b/src/cloudflare/types/dns/svcb_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["SVCBRecordParam", "Data"] @@ -23,33 +19,8 @@ class Data(TypedDict, total=False): class SVCBRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a SVCB record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["SVCB"] """Record type.""" diff --git a/src/cloudflare/types/dns/tlsa_record.py b/src/cloudflare/types/dns/tlsa_record.py index a822b971be1..e14104a356f 100644 --- a/src/cloudflare/types/dns/tlsa_record.py +++ b/src/cloudflare/types/dns/tlsa_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["TLSARecord", "Data"] @@ -25,36 +23,11 @@ class Data(BaseModel): class TLSARecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted TLSA content. See 'data' to set TLSA properties.""" data: Optional[Data] = None """Components of a TLSA record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["TLSA"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/tlsa_record_param.py b/src/cloudflare/types/dns/tlsa_record_param.py index 9ee66f2ec8d..447816d0adb 100644 --- a/src/cloudflare/types/dns/tlsa_record_param.py +++ b/src/cloudflare/types/dns/tlsa_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["TLSARecordParam", "Data"] @@ -26,33 +22,8 @@ class Data(TypedDict, total=False): class TLSARecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a TLSA record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TLSA"] """Record type.""" diff --git a/src/cloudflare/types/dns/ttl.py b/src/cloudflare/types/dns/ttl.py deleted file mode 100644 index 693c9980bf0..00000000000 --- a/src/cloudflare/types/dns/ttl.py +++ /dev/null @@ -1,8 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Union -from typing_extensions import Literal, TypeAlias - -__all__ = ["TTL"] - -TTL: TypeAlias = Union[float, Literal[1]] diff --git a/src/cloudflare/types/dns/txt_record.py b/src/cloudflare/types/dns/txt_record.py index 065a97c8938..e89f4944d82 100644 --- a/src/cloudflare/types/dns/txt_record.py +++ b/src/cloudflare/types/dns/txt_record.py @@ -1,22 +1,14 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["TXTRecord"] class TXTRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Text content for the record. @@ -28,24 +20,5 @@ class TXTRecord(BaseModel): . """ - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["TXT"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/txt_record_param.py b/src/cloudflare/types/dns/txt_record_param.py index 4395ac4bcee..4095e6da09d 100644 --- a/src/cloudflare/types/dns/txt_record_param.py +++ b/src/cloudflare/types/dns/txt_record_param.py @@ -2,22 +2,12 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["TXTRecordParam"] class TXTRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: str """Text content for the record. @@ -29,24 +19,5 @@ class TXTRecordParam(TypedDict, total=False): . """ - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["TXT"] """Record type.""" diff --git a/src/cloudflare/types/dns/uri_record.py b/src/cloudflare/types/dns/uri_record.py index b3d45461850..417a9034308 100644 --- a/src/cloudflare/types/dns/uri_record.py +++ b/src/cloudflare/types/dns/uri_record.py @@ -1,11 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List, Optional +from typing import Optional from typing_extensions import Literal -from .ttl import TTL from ..._models import BaseModel -from .record_tags import RecordTags __all__ = ["URIRecord", "Data"] @@ -19,42 +17,17 @@ class Data(BaseModel): class URIRecord(BaseModel): - comment: Optional[str] = None - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - content: Optional[str] = None """Formatted URI content. See 'data' to set URI properties.""" data: Optional[Data] = None """Components of a URI record.""" - name: Optional[str] = None - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: Optional[float] = None """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: Optional[bool] = None - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: Optional[List[RecordTags]] = None - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: Optional[TTL] = None - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Optional[Literal["URI"]] = None """Record type.""" diff --git a/src/cloudflare/types/dns/uri_record_param.py b/src/cloudflare/types/dns/uri_record_param.py index 59aafdfd3bc..f6d1bc0bcec 100644 --- a/src/cloudflare/types/dns/uri_record_param.py +++ b/src/cloudflare/types/dns/uri_record_param.py @@ -2,12 +2,8 @@ from __future__ import annotations -from typing import List from typing_extensions import Literal, TypedDict -from .ttl_param import TTLParam -from .record_tags import RecordTags - __all__ = ["URIRecordParam", "Data"] @@ -20,39 +16,14 @@ class Data(TypedDict, total=False): class URIRecordParam(TypedDict, total=False): - comment: str - """Comments or notes about the DNS record. - - This field has no effect on DNS responses. - """ - data: Data """Components of a URI record.""" - name: str - """DNS record name (or @ for the zone apex) in Punycode.""" - priority: float """Required for MX, SRV and URI records; unused by other record types. Records with lower priorities are preferred. """ - proxied: bool - """ - Whether the record is receiving the performance and security benefits of - Cloudflare. - """ - - tags: List[RecordTags] - """Custom tags for the DNS record. This field has no effect on DNS responses.""" - - ttl: TTLParam - """Time To Live (TTL) of the DNS record in seconds. - - Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the - minimum reduced to 30 for Enterprise zones. - """ - type: Literal["URI"] """Record type.""" diff --git a/src/cloudflare/types/workers/__init__.py b/src/cloudflare/types/workers/__init__.py index 979106d4abf..57bde2d76cb 100644 --- a/src/cloudflare/types/workers/__init__.py +++ b/src/cloudflare/types/workers/__init__.py @@ -7,9 +7,11 @@ from .binding import Binding as Binding from .d1_binding import D1Binding as D1Binding from .r2_binding import R2Binding as R2Binding +from .ai_run_params import AIRunParams as AIRunParams from .binding_param import BindingParam as BindingParam from .migration_step import MigrationStep as MigrationStep from .script_setting import ScriptSetting as ScriptSetting +from .ai_run_response import AIRunResponse as AIRunResponse from .service_binding import ServiceBinding as ServiceBinding from .d1_binding_param import D1BindingParam as D1BindingParam from .r2_binding_param import R2BindingParam as R2BindingParam diff --git a/src/cloudflare/types/ai/__init__.py b/src/cloudflare/types/workers/ai/__init__.py similarity index 51% rename from src/cloudflare/types/ai/__init__.py rename to src/cloudflare/types/workers/ai/__init__.py index a79fe37e5b1..f8ee8b14b1c 100644 --- a/src/cloudflare/types/ai/__init__.py +++ b/src/cloudflare/types/workers/ai/__init__.py @@ -1,6 +1,3 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations - -from .ai_run_params import AIRunParams as AIRunParams -from .ai_run_response import AIRunResponse as AIRunResponse diff --git a/src/cloudflare/types/ai/models/__init__.py b/src/cloudflare/types/workers/ai/models/__init__.py similarity index 100% rename from src/cloudflare/types/ai/models/__init__.py rename to src/cloudflare/types/workers/ai/models/__init__.py diff --git a/src/cloudflare/types/ai/models/schema_get_params.py b/src/cloudflare/types/workers/ai/models/schema_get_params.py similarity index 100% rename from src/cloudflare/types/ai/models/schema_get_params.py rename to src/cloudflare/types/workers/ai/models/schema_get_params.py diff --git a/src/cloudflare/types/ai/ai_run_params.py b/src/cloudflare/types/workers/ai_run_params.py similarity index 100% rename from src/cloudflare/types/ai/ai_run_params.py rename to src/cloudflare/types/workers/ai_run_params.py diff --git a/src/cloudflare/types/ai/ai_run_response.py b/src/cloudflare/types/workers/ai_run_response.py similarity index 100% rename from src/cloudflare/types/ai/ai_run_response.py rename to src/cloudflare/types/workers/ai_run_response.py diff --git a/src/cloudflare/types/zones/__init__.py b/src/cloudflare/types/zones/__init__.py index 1147dc97203..63621e80433 100644 --- a/src/cloudflare/types/zones/__init__.py +++ b/src/cloudflare/types/zones/__init__.py @@ -49,6 +49,7 @@ from .websocket_param import WebsocketParam as WebsocketParam from .always_use_https import AlwaysUseHTTPS as AlwaysUseHTTPS from .development_mode import DevelopmentMode as DevelopmentMode +from .hold_edit_params import HoldEditParams as HoldEditParams from .orange_to_orange import OrangeToOrange as OrangeToOrange from .prefetch_preload import PrefetchPreload as PrefetchPreload from .security_headers import SecurityHeaders as SecurityHeaders @@ -62,7 +63,6 @@ from .pseudo_ipv4_param import PseudoIPV4Param as PseudoIPV4Param from .hold_create_params import HoldCreateParams as HoldCreateParams from .hold_delete_params import HoldDeleteParams as HoldDeleteParams -from .hold_update_params import HoldUpdateParams as HoldUpdateParams from .hotlink_protection import HotlinkProtection as HotlinkProtection from .proxy_read_timeout import ProxyReadTimeout as ProxyReadTimeout from .response_buffering import ResponseBuffering as ResponseBuffering diff --git a/src/cloudflare/types/zones/hold_update_params.py b/src/cloudflare/types/zones/hold_edit_params.py similarity index 92% rename from src/cloudflare/types/zones/hold_update_params.py rename to src/cloudflare/types/zones/hold_edit_params.py index 57a86834c97..fc5e878576f 100644 --- a/src/cloudflare/types/zones/hold_update_params.py +++ b/src/cloudflare/types/zones/hold_edit_params.py @@ -4,10 +4,10 @@ from typing_extensions import Required, TypedDict -__all__ = ["HoldUpdateParams"] +__all__ = ["HoldEditParams"] -class HoldUpdateParams(TypedDict, total=False): +class HoldEditParams(TypedDict, total=False): zone_id: Required[str] """Identifier""" diff --git a/tests/api_resources/ai_gateway/test_logs.py b/tests/api_resources/ai_gateway/test_logs.py index 4be76ce1282..44ff2500f24 100644 --- a/tests/api_resources/ai_gateway/test_logs.py +++ b/tests/api_resources/ai_gateway/test_logs.py @@ -42,7 +42,7 @@ def test_method_list_with_all_params(self, client: Cloudflare) -> None: feedback=0, filters=[ { - "key": "id", + "key": "created_at", "operator": "eq", "value": ["string"], } @@ -128,7 +128,7 @@ def test_method_delete_with_all_params(self, client: Cloudflare) -> None: account_id="0d37909e38d3e99c29fa2cd343ac421a", filters=[ { - "key": "id", + "key": "created_at", "operator": "eq", "value": ["string"], } @@ -454,7 +454,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) feedback=0, filters=[ { - "key": "id", + "key": "created_at", "operator": "eq", "value": ["string"], } @@ -540,7 +540,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare account_id="0d37909e38d3e99c29fa2cd343ac421a", filters=[ { - "key": "id", + "key": "created_at", "operator": "eq", "value": ["string"], } diff --git a/tests/api_resources/dns/test_records.py b/tests/api_resources/dns/test_records.py index 83d6b2e9b30..179c286950d 100644 --- a/tests/api_resources/dns/test_records.py +++ b/tests/api_resources/dns/test_records.py @@ -41,12 +41,7 @@ def test_method_create_overload_1(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="198.51.100.4", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="A", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -98,12 +93,7 @@ def test_method_create_overload_2(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_2(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="2400:cb00:2049::1", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="AAAA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -155,16 +145,11 @@ def test_method_create_overload_3(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": 1, "tag": "issue", "value": "value", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CAA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -216,17 +201,12 @@ def test_method_create_overload_4(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 8, "certificate": "certificate", "key_tag": 1, "type": 9, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CERT", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -278,13 +258,8 @@ def test_method_create_overload_5(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_5(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, settings={"flatten_cname": True}, - tags=["owner:dns-team"], - ttl=3600, type="CNAME", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -336,17 +311,12 @@ def test_method_create_overload_6(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_6(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 5, "flags": 1, "protocol": 3, "public_key": "public_key", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DNSKEY", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -398,17 +368,12 @@ def test_method_create_overload_7(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_7(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 3, "digest": "digest", "digest_type": 1, "key_tag": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DS", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -460,16 +425,11 @@ def test_method_create_overload_8(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_8(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="HTTPS", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -521,7 +481,6 @@ def test_method_create_overload_9(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "altitude": 0, "lat_degrees": 37, @@ -536,10 +495,6 @@ def test_method_create_with_all_params_overload_9(self, client: Cloudflare) -> N "precision_vert": 0, "size": 100, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="LOC", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -591,13 +546,8 @@ def test_method_create_overload_10(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_10(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="mx.example.com", - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="MX", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -649,7 +599,6 @@ def test_method_create_overload_11(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": "flags", "order": 100, @@ -658,10 +607,6 @@ def test_method_create_with_all_params_overload_11(self, client: Cloudflare) -> "replacement": "replacement", "service": "service", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NAPTR", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -713,12 +658,7 @@ def test_method_create_overload_12(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_12(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="ns1.example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NS", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -770,12 +710,7 @@ def test_method_create_overload_13(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_13(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="OPENPGPKEY", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -827,12 +762,7 @@ def test_method_create_overload_14(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_14(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="PTR", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -884,17 +814,12 @@ def test_method_create_overload_15(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_15(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 0, "selector": 0, "usage": 3, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SMIMEA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -946,17 +871,12 @@ def test_method_create_overload_16(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_16(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "port": 8806, "priority": 10, "target": "example.com", "weight": 5, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SRV", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -1008,16 +928,11 @@ def test_method_create_overload_17(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_17(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 2, "fingerprint": "fingerprint", "type": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SSHFP", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -1069,16 +984,11 @@ def test_method_create_overload_18(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_18(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SVCB", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -1130,17 +1040,12 @@ def test_method_create_overload_19(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_19(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 1, "selector": 0, "usage": 0, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TLSA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -1192,12 +1097,7 @@ def test_method_create_overload_20(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_20(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content='"v=spf1 include:example.com -all"', - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TXT", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -1249,16 +1149,11 @@ def test_method_create_overload_21(self, client: Cloudflare) -> None: def test_method_create_with_all_params_overload_21(self, client: Cloudflare) -> None: record = client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "target": "http://example.com/example.html", "weight": 20, }, - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="URI", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -1312,12 +1207,7 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="198.51.100.4", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="A", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1380,12 +1270,7 @@ def test_method_update_with_all_params_overload_2(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="2400:cb00:2049::1", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="AAAA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1448,16 +1333,11 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": 1, "tag": "issue", "value": "value", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CAA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1520,17 +1400,12 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 8, "certificate": "certificate", "key_tag": 1, "type": 9, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CERT", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1593,13 +1468,8 @@ def test_method_update_with_all_params_overload_5(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, settings={"flatten_cname": True}, - tags=["owner:dns-team"], - ttl=3600, type="CNAME", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1662,17 +1532,12 @@ def test_method_update_with_all_params_overload_6(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 5, "flags": 1, "protocol": 3, "public_key": "public_key", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DNSKEY", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1735,17 +1600,12 @@ def test_method_update_with_all_params_overload_7(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 3, "digest": "digest", "digest_type": 1, "key_tag": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DS", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1808,16 +1668,11 @@ def test_method_update_with_all_params_overload_8(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="HTTPS", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1880,7 +1735,6 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "altitude": 0, "lat_degrees": 37, @@ -1895,10 +1749,6 @@ def test_method_update_with_all_params_overload_9(self, client: Cloudflare) -> N "precision_vert": 0, "size": 100, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="LOC", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -1961,13 +1811,8 @@ def test_method_update_with_all_params_overload_10(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="mx.example.com", - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="MX", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2030,7 +1875,6 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": "flags", "order": 100, @@ -2039,10 +1883,6 @@ def test_method_update_with_all_params_overload_11(self, client: Cloudflare) -> "replacement": "replacement", "service": "service", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NAPTR", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2105,12 +1945,7 @@ def test_method_update_with_all_params_overload_12(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="ns1.example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NS", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2173,12 +2008,7 @@ def test_method_update_with_all_params_overload_13(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="OPENPGPKEY", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2241,12 +2071,7 @@ def test_method_update_with_all_params_overload_14(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="PTR", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2309,17 +2134,12 @@ def test_method_update_with_all_params_overload_15(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 0, "selector": 0, "usage": 3, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SMIMEA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2382,17 +2202,12 @@ def test_method_update_with_all_params_overload_16(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "port": 8806, "priority": 10, "target": "example.com", "weight": 5, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SRV", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2455,16 +2270,11 @@ def test_method_update_with_all_params_overload_17(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 2, "fingerprint": "fingerprint", "type": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SSHFP", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2527,16 +2337,11 @@ def test_method_update_with_all_params_overload_18(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SVCB", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2599,17 +2404,12 @@ def test_method_update_with_all_params_overload_19(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 1, "selector": 0, "usage": 0, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TLSA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2672,12 +2472,7 @@ def test_method_update_with_all_params_overload_20(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content='"v=spf1 include:example.com -all"', - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TXT", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2740,16 +2535,11 @@ def test_method_update_with_all_params_overload_21(self, client: Cloudflare) -> record = client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "target": "http://example.com/example.html", "weight": 20, }, - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="URI", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -2943,34 +2733,19 @@ def test_method_batch_with_all_params(self, client: Cloudflare) -> None: deletes=[{"id": "023e105f4ecef8ad9ca31a8372d0c353"}], patches=[ { - "comment": "Domain verification record", "content": "198.51.100.4", - "name": "example.com", - "proxied": True, - "tags": ["owner:dns-team"], - "ttl": 3600, "type": "A", } ], posts=[ { - "comment": "Domain verification record", "content": "198.51.100.4", - "name": "example.com", - "proxied": True, - "tags": ["owner:dns-team"], - "ttl": 3600, "type": "A", } ], puts=[ { - "comment": "Domain verification record", "content": "198.51.100.4", - "name": "example.com", - "proxied": True, - "tags": ["owner:dns-team"], - "ttl": 3600, "type": "A", } ], @@ -3026,12 +2801,7 @@ def test_method_edit_with_all_params_overload_1(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="198.51.100.4", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="A", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3094,12 +2864,7 @@ def test_method_edit_with_all_params_overload_2(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="2400:cb00:2049::1", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="AAAA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3162,16 +2927,11 @@ def test_method_edit_with_all_params_overload_3(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": 1, "tag": "issue", "value": "value", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CAA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3234,17 +2994,12 @@ def test_method_edit_with_all_params_overload_4(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 8, "certificate": "certificate", "key_tag": 1, "type": 9, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CERT", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3307,13 +3062,8 @@ def test_method_edit_with_all_params_overload_5(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, settings={"flatten_cname": True}, - tags=["owner:dns-team"], - ttl=3600, type="CNAME", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3376,17 +3126,12 @@ def test_method_edit_with_all_params_overload_6(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 5, "flags": 1, "protocol": 3, "public_key": "public_key", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DNSKEY", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3449,17 +3194,12 @@ def test_method_edit_with_all_params_overload_7(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 3, "digest": "digest", "digest_type": 1, "key_tag": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DS", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3522,16 +3262,11 @@ def test_method_edit_with_all_params_overload_8(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="HTTPS", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3594,7 +3329,6 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "altitude": 0, "lat_degrees": 37, @@ -3609,10 +3343,6 @@ def test_method_edit_with_all_params_overload_9(self, client: Cloudflare) -> Non "precision_vert": 0, "size": 100, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="LOC", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3675,13 +3405,8 @@ def test_method_edit_with_all_params_overload_10(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="mx.example.com", - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="MX", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3744,7 +3469,6 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": "flags", "order": 100, @@ -3753,10 +3477,6 @@ def test_method_edit_with_all_params_overload_11(self, client: Cloudflare) -> No "replacement": "replacement", "service": "service", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NAPTR", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3819,12 +3539,7 @@ def test_method_edit_with_all_params_overload_12(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="ns1.example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NS", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3887,12 +3602,7 @@ def test_method_edit_with_all_params_overload_13(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="OPENPGPKEY", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -3955,12 +3665,7 @@ def test_method_edit_with_all_params_overload_14(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="PTR", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4023,17 +3728,12 @@ def test_method_edit_with_all_params_overload_15(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 0, "selector": 0, "usage": 3, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SMIMEA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4096,17 +3796,12 @@ def test_method_edit_with_all_params_overload_16(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "port": 8806, "priority": 10, "target": "example.com", "weight": 5, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SRV", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4169,16 +3864,11 @@ def test_method_edit_with_all_params_overload_17(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 2, "fingerprint": "fingerprint", "type": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SSHFP", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4241,16 +3931,11 @@ def test_method_edit_with_all_params_overload_18(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SVCB", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4313,17 +3998,12 @@ def test_method_edit_with_all_params_overload_19(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 1, "selector": 0, "usage": 0, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TLSA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4386,12 +4066,7 @@ def test_method_edit_with_all_params_overload_20(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content='"v=spf1 include:example.com -all"', - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TXT", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4454,16 +4129,11 @@ def test_method_edit_with_all_params_overload_21(self, client: Cloudflare) -> No record = client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "target": "http://example.com/example.html", "weight": 20, }, - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="URI", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -4712,12 +4382,7 @@ async def test_method_create_overload_1(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_1(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="198.51.100.4", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="A", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -4769,12 +4434,7 @@ async def test_method_create_overload_2(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="2400:cb00:2049::1", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="AAAA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -4826,16 +4486,11 @@ async def test_method_create_overload_3(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_3(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": 1, "tag": "issue", "value": "value", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CAA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -4887,17 +4542,12 @@ async def test_method_create_overload_4(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_4(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 8, "certificate": "certificate", "key_tag": 1, "type": 9, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CERT", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -4949,13 +4599,8 @@ async def test_method_create_overload_5(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_5(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, settings={"flatten_cname": True}, - tags=["owner:dns-team"], - ttl=3600, type="CNAME", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5007,17 +4652,12 @@ async def test_method_create_overload_6(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_6(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 5, "flags": 1, "protocol": 3, "public_key": "public_key", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DNSKEY", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5069,17 +4709,12 @@ async def test_method_create_overload_7(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_7(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 3, "digest": "digest", "digest_type": 1, "key_tag": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DS", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5131,16 +4766,11 @@ async def test_method_create_overload_8(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_8(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="HTTPS", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5192,7 +4822,6 @@ async def test_method_create_overload_9(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_9(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "altitude": 0, "lat_degrees": 37, @@ -5207,10 +4836,6 @@ async def test_method_create_with_all_params_overload_9(self, async_client: Asyn "precision_vert": 0, "size": 100, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="LOC", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5262,13 +4887,8 @@ async def test_method_create_overload_10(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_10(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="mx.example.com", - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="MX", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5320,7 +4940,6 @@ async def test_method_create_overload_11(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_11(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": "flags", "order": 100, @@ -5329,10 +4948,6 @@ async def test_method_create_with_all_params_overload_11(self, async_client: Asy "replacement": "replacement", "service": "service", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NAPTR", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5384,12 +4999,7 @@ async def test_method_create_overload_12(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_12(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="ns1.example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NS", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5441,12 +5051,7 @@ async def test_method_create_overload_13(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_13(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="OPENPGPKEY", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5498,12 +5103,7 @@ async def test_method_create_overload_14(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_14(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="PTR", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5555,17 +5155,12 @@ async def test_method_create_overload_15(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_15(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 0, "selector": 0, "usage": 3, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SMIMEA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5617,17 +5212,12 @@ async def test_method_create_overload_16(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_16(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "port": 8806, "priority": 10, "target": "example.com", "weight": 5, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SRV", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5679,16 +5269,11 @@ async def test_method_create_overload_17(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_17(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 2, "fingerprint": "fingerprint", "type": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SSHFP", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5740,16 +5325,11 @@ async def test_method_create_overload_18(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_18(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SVCB", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5801,17 +5381,12 @@ async def test_method_create_overload_19(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_19(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 1, "selector": 0, "usage": 0, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TLSA", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5863,12 +5438,7 @@ async def test_method_create_overload_20(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_20(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content='"v=spf1 include:example.com -all"', - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TXT", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5920,16 +5490,11 @@ async def test_method_create_overload_21(self, async_client: AsyncCloudflare) -> async def test_method_create_with_all_params_overload_21(self, async_client: AsyncCloudflare) -> None: record = await async_client.dns.records.create( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "target": "http://example.com/example.html", "weight": 20, }, - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="URI", ) assert_matches_type(Optional[RecordCreateResponse], record, path=["response"]) @@ -5983,12 +5548,7 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="198.51.100.4", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="A", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6051,12 +5611,7 @@ async def test_method_update_with_all_params_overload_2(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="2400:cb00:2049::1", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="AAAA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6119,16 +5674,11 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": 1, "tag": "issue", "value": "value", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CAA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6191,17 +5741,12 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 8, "certificate": "certificate", "key_tag": 1, "type": 9, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CERT", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6264,13 +5809,8 @@ async def test_method_update_with_all_params_overload_5(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, settings={"flatten_cname": True}, - tags=["owner:dns-team"], - ttl=3600, type="CNAME", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6333,17 +5873,12 @@ async def test_method_update_with_all_params_overload_6(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 5, "flags": 1, "protocol": 3, "public_key": "public_key", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DNSKEY", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6406,17 +5941,12 @@ async def test_method_update_with_all_params_overload_7(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 3, "digest": "digest", "digest_type": 1, "key_tag": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DS", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6479,16 +6009,11 @@ async def test_method_update_with_all_params_overload_8(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="HTTPS", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6551,7 +6076,6 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "altitude": 0, "lat_degrees": 37, @@ -6566,10 +6090,6 @@ async def test_method_update_with_all_params_overload_9(self, async_client: Asyn "precision_vert": 0, "size": 100, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="LOC", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6632,13 +6152,8 @@ async def test_method_update_with_all_params_overload_10(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="mx.example.com", - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="MX", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6701,7 +6216,6 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": "flags", "order": 100, @@ -6710,10 +6224,6 @@ async def test_method_update_with_all_params_overload_11(self, async_client: Asy "replacement": "replacement", "service": "service", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NAPTR", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6776,12 +6286,7 @@ async def test_method_update_with_all_params_overload_12(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="ns1.example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NS", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6844,12 +6349,7 @@ async def test_method_update_with_all_params_overload_13(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="OPENPGPKEY", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6912,12 +6412,7 @@ async def test_method_update_with_all_params_overload_14(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="PTR", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -6980,17 +6475,12 @@ async def test_method_update_with_all_params_overload_15(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 0, "selector": 0, "usage": 3, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SMIMEA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7053,17 +6543,12 @@ async def test_method_update_with_all_params_overload_16(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "port": 8806, "priority": 10, "target": "example.com", "weight": 5, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SRV", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7126,16 +6611,11 @@ async def test_method_update_with_all_params_overload_17(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 2, "fingerprint": "fingerprint", "type": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SSHFP", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7198,16 +6678,11 @@ async def test_method_update_with_all_params_overload_18(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SVCB", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7270,17 +6745,12 @@ async def test_method_update_with_all_params_overload_19(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 1, "selector": 0, "usage": 0, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TLSA", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7343,12 +6813,7 @@ async def test_method_update_with_all_params_overload_20(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content='"v=spf1 include:example.com -all"', - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TXT", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7411,16 +6876,11 @@ async def test_method_update_with_all_params_overload_21(self, async_client: Asy record = await async_client.dns.records.update( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "target": "http://example.com/example.html", "weight": 20, }, - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="URI", ) assert_matches_type(Optional[RecordUpdateResponse], record, path=["response"]) @@ -7614,34 +7074,19 @@ async def test_method_batch_with_all_params(self, async_client: AsyncCloudflare) deletes=[{"id": "023e105f4ecef8ad9ca31a8372d0c353"}], patches=[ { - "comment": "Domain verification record", "content": "198.51.100.4", - "name": "example.com", - "proxied": True, - "tags": ["owner:dns-team"], - "ttl": 3600, "type": "A", } ], posts=[ { - "comment": "Domain verification record", "content": "198.51.100.4", - "name": "example.com", - "proxied": True, - "tags": ["owner:dns-team"], - "ttl": 3600, "type": "A", } ], puts=[ { - "comment": "Domain verification record", "content": "198.51.100.4", - "name": "example.com", - "proxied": True, - "tags": ["owner:dns-team"], - "ttl": 3600, "type": "A", } ], @@ -7697,12 +7142,7 @@ async def test_method_edit_with_all_params_overload_1(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="198.51.100.4", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="A", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -7765,12 +7205,7 @@ async def test_method_edit_with_all_params_overload_2(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="2400:cb00:2049::1", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="AAAA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -7833,16 +7268,11 @@ async def test_method_edit_with_all_params_overload_3(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": 1, "tag": "issue", "value": "value", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CAA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -7905,17 +7335,12 @@ async def test_method_edit_with_all_params_overload_4(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 8, "certificate": "certificate", "key_tag": 1, "type": 9, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="CERT", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -7978,13 +7403,8 @@ async def test_method_edit_with_all_params_overload_5(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, settings={"flatten_cname": True}, - tags=["owner:dns-team"], - ttl=3600, type="CNAME", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8047,17 +7467,12 @@ async def test_method_edit_with_all_params_overload_6(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 5, "flags": 1, "protocol": 3, "public_key": "public_key", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DNSKEY", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8120,17 +7535,12 @@ async def test_method_edit_with_all_params_overload_7(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 3, "digest": "digest", "digest_type": 1, "key_tag": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="DS", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8193,16 +7603,11 @@ async def test_method_edit_with_all_params_overload_8(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="HTTPS", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8265,7 +7670,6 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "altitude": 0, "lat_degrees": 37, @@ -8280,10 +7684,6 @@ async def test_method_edit_with_all_params_overload_9(self, async_client: AsyncC "precision_vert": 0, "size": 100, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="LOC", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8346,13 +7746,8 @@ async def test_method_edit_with_all_params_overload_10(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="mx.example.com", - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="MX", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8415,7 +7810,6 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "flags": "flags", "order": 100, @@ -8424,10 +7818,6 @@ async def test_method_edit_with_all_params_overload_11(self, async_client: Async "replacement": "replacement", "service": "service", }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NAPTR", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8490,12 +7880,7 @@ async def test_method_edit_with_all_params_overload_12(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="ns1.example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="NS", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8558,12 +7943,7 @@ async def test_method_edit_with_all_params_overload_13(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="content", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="OPENPGPKEY", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8626,12 +8006,7 @@ async def test_method_edit_with_all_params_overload_14(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content="example.com", - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="PTR", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8694,17 +8069,12 @@ async def test_method_edit_with_all_params_overload_15(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 0, "selector": 0, "usage": 3, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SMIMEA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8767,17 +8137,12 @@ async def test_method_edit_with_all_params_overload_16(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "port": 8806, "priority": 10, "target": "example.com", "weight": 5, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SRV", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8840,16 +8205,11 @@ async def test_method_edit_with_all_params_overload_17(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "algorithm": 2, "fingerprint": "fingerprint", "type": 1, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SSHFP", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8912,16 +8272,11 @@ async def test_method_edit_with_all_params_overload_18(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "priority": 1, "target": ".", "value": 'alpn="h3,h2" ipv4hint="127.0.0.1" ipv6hint="::1"', }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="SVCB", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -8984,17 +8339,12 @@ async def test_method_edit_with_all_params_overload_19(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "certificate": "certificate", "matching_type": 1, "selector": 0, "usage": 0, }, - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TLSA", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -9057,12 +8407,7 @@ async def test_method_edit_with_all_params_overload_20(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", content='"v=spf1 include:example.com -all"', - name="example.com", - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="TXT", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) @@ -9125,16 +8470,11 @@ async def test_method_edit_with_all_params_overload_21(self, async_client: Async record = await async_client.dns.records.edit( dns_record_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", - comment="Domain verification record", data={ "target": "http://example.com/example.html", "weight": 20, }, - name="example.com", priority=10, - proxied=True, - tags=["owner:dns-team"], - ttl=3600, type="URI", ) assert_matches_type(Optional[RecordEditResponse], record, path=["response"]) diff --git a/tests/api_resources/ai/__init__.py b/tests/api_resources/workers/ai/__init__.py similarity index 100% rename from tests/api_resources/ai/__init__.py rename to tests/api_resources/workers/ai/__init__.py diff --git a/tests/api_resources/ai/models/__init__.py b/tests/api_resources/workers/ai/models/__init__.py similarity index 100% rename from tests/api_resources/ai/models/__init__.py rename to tests/api_resources/workers/ai/models/__init__.py diff --git a/tests/api_resources/ai/models/test_schema.py b/tests/api_resources/workers/ai/models/test_schema.py similarity index 85% rename from tests/api_resources/ai/models/test_schema.py rename to tests/api_resources/workers/ai/models/test_schema.py index c2592b98979..a815dc1f7c1 100644 --- a/tests/api_resources/ai/models/test_schema.py +++ b/tests/api_resources/workers/ai/models/test_schema.py @@ -18,7 +18,7 @@ class TestSchema: @parametrize def test_method_get(self, client: Cloudflare) -> None: - schema = client.ai.models.schema.get( + schema = client.workers.ai.models.schema.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", model="model", ) @@ -26,7 +26,7 @@ def test_method_get(self, client: Cloudflare) -> None: @parametrize def test_raw_response_get(self, client: Cloudflare) -> None: - response = client.ai.models.schema.with_raw_response.get( + response = client.workers.ai.models.schema.with_raw_response.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", model="model", ) @@ -38,7 +38,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_get(self, client: Cloudflare) -> None: - with client.ai.models.schema.with_streaming_response.get( + with client.workers.ai.models.schema.with_streaming_response.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", model="model", ) as response: @@ -53,7 +53,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None: @parametrize def test_path_params_get(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.models.schema.with_raw_response.get( + client.workers.ai.models.schema.with_raw_response.get( account_id="", model="model", ) @@ -64,7 +64,7 @@ class TestAsyncSchema: @parametrize async def test_method_get(self, async_client: AsyncCloudflare) -> None: - schema = await async_client.ai.models.schema.get( + schema = await async_client.workers.ai.models.schema.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", model="model", ) @@ -72,7 +72,7 @@ async def test_method_get(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.models.schema.with_raw_response.get( + response = await async_client.workers.ai.models.schema.with_raw_response.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", model="model", ) @@ -84,7 +84,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None: @parametrize async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.models.schema.with_streaming_response.get( + async with async_client.workers.ai.models.schema.with_streaming_response.get( account_id="023e105f4ecef8ad9ca31a8372d0c353", model="model", ) as response: @@ -99,7 +99,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No @parametrize async def test_path_params_get(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.models.schema.with_raw_response.get( + await async_client.workers.ai.models.schema.with_raw_response.get( account_id="", model="model", ) diff --git a/tests/api_resources/test_ai.py b/tests/api_resources/workers/test_ai.py similarity index 87% rename from tests/api_resources/test_ai.py rename to tests/api_resources/workers/test_ai.py index ab8fa8cc49c..4f9e0996455 100644 --- a/tests/api_resources/test_ai.py +++ b/tests/api_resources/workers/test_ai.py @@ -9,7 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type -from cloudflare.types.ai import AIRunResponse +from cloudflare.types.workers import AIRunResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -19,7 +19,7 @@ class TestAI: @parametrize def test_method_run_overload_1(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -28,7 +28,7 @@ def test_method_run_overload_1(self, client: Cloudflare) -> None: @parametrize def test_raw_response_run_overload_1(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -41,7 +41,7 @@ def test_raw_response_run_overload_1(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_1(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -57,14 +57,14 @@ def test_streaming_response_run_overload_1(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_1(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", text="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -72,7 +72,7 @@ def test_path_params_run_overload_1(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_2(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -81,7 +81,7 @@ def test_method_run_overload_2(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_2(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -100,7 +100,7 @@ def test_method_run_with_all_params_overload_2(self, client: Cloudflare) -> None @parametrize def test_raw_response_run_overload_2(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -113,7 +113,7 @@ def test_raw_response_run_overload_2(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_2(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -129,14 +129,14 @@ def test_streaming_response_run_overload_2(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_2(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", prompt="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -144,7 +144,7 @@ def test_path_params_run_overload_2(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_3(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -153,7 +153,7 @@ def test_method_run_overload_3(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_3(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -163,7 +163,7 @@ def test_method_run_with_all_params_overload_3(self, client: Cloudflare) -> None @parametrize def test_raw_response_run_overload_3(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -176,7 +176,7 @@ def test_raw_response_run_overload_3(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_3(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -192,14 +192,14 @@ def test_streaming_response_run_overload_3(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_3(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", prompt="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -207,7 +207,7 @@ def test_path_params_run_overload_3(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_4(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -216,7 +216,7 @@ def test_method_run_overload_4(self, client: Cloudflare) -> None: @parametrize def test_raw_response_run_overload_4(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -229,7 +229,7 @@ def test_raw_response_run_overload_4(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_4(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -245,14 +245,14 @@ def test_streaming_response_run_overload_4(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_4(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", text="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -260,7 +260,7 @@ def test_path_params_run_overload_4(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_5(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -269,7 +269,7 @@ def test_method_run_overload_5(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_5(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -280,7 +280,7 @@ def test_method_run_with_all_params_overload_5(self, client: Cloudflare) -> None @parametrize def test_raw_response_run_overload_5(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -293,7 +293,7 @@ def test_raw_response_run_overload_5(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_5(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -309,14 +309,14 @@ def test_streaming_response_run_overload_5(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_5(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", audio=[0], ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -324,7 +324,7 @@ def test_path_params_run_overload_5(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_6(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -333,7 +333,7 @@ def test_method_run_overload_6(self, client: Cloudflare) -> None: @parametrize def test_raw_response_run_overload_6(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -346,7 +346,7 @@ def test_raw_response_run_overload_6(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_6(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -362,14 +362,14 @@ def test_streaming_response_run_overload_6(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_6(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", image=[0], ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -377,7 +377,7 @@ def test_path_params_run_overload_6(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_7(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -385,7 +385,7 @@ def test_method_run_overload_7(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_7(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -394,7 +394,7 @@ def test_method_run_with_all_params_overload_7(self, client: Cloudflare) -> None @parametrize def test_raw_response_run_overload_7(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -406,7 +406,7 @@ def test_raw_response_run_overload_7(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_7(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: @@ -421,20 +421,20 @@ def test_streaming_response_run_overload_7(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_7(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @parametrize def test_method_run_overload_8(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -443,7 +443,7 @@ def test_method_run_overload_8(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_8(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -463,7 +463,7 @@ def test_method_run_with_all_params_overload_8(self, client: Cloudflare) -> None @parametrize def test_raw_response_run_overload_8(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -476,7 +476,7 @@ def test_raw_response_run_overload_8(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_8(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -492,14 +492,14 @@ def test_streaming_response_run_overload_8(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_8(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", prompt="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -507,7 +507,7 @@ def test_path_params_run_overload_8(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_9(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -521,7 +521,7 @@ def test_method_run_overload_9(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_9(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -566,7 +566,7 @@ def test_method_run_with_all_params_overload_9(self, client: Cloudflare) -> None @parametrize def test_raw_response_run_overload_9(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -584,7 +584,7 @@ def test_raw_response_run_overload_9(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_9(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -605,7 +605,7 @@ def test_streaming_response_run_overload_9(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_9(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", messages=[ @@ -617,7 +617,7 @@ def test_path_params_run_overload_9(self, client: Cloudflare) -> None: ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -630,7 +630,7 @@ def test_path_params_run_overload_9(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_10(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -640,7 +640,7 @@ def test_method_run_overload_10(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_10(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -651,7 +651,7 @@ def test_method_run_with_all_params_overload_10(self, client: Cloudflare) -> Non @parametrize def test_raw_response_run_overload_10(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -665,7 +665,7 @@ def test_raw_response_run_overload_10(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_10(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -682,7 +682,7 @@ def test_streaming_response_run_overload_10(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_10(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", target_lang="target_lang", @@ -690,7 +690,7 @@ def test_path_params_run_overload_10(self, client: Cloudflare) -> None: ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -699,7 +699,7 @@ def test_path_params_run_overload_10(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_11(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -708,7 +708,7 @@ def test_method_run_overload_11(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_11(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -718,7 +718,7 @@ def test_method_run_with_all_params_overload_11(self, client: Cloudflare) -> Non @parametrize def test_raw_response_run_overload_11(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -731,7 +731,7 @@ def test_raw_response_run_overload_11(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_11(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -747,14 +747,14 @@ def test_streaming_response_run_overload_11(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_11(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", input_text="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -762,7 +762,7 @@ def test_path_params_run_overload_11(self, client: Cloudflare) -> None: @parametrize def test_method_run_overload_12(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -771,7 +771,7 @@ def test_method_run_overload_12(self, client: Cloudflare) -> None: @parametrize def test_method_run_with_all_params_overload_12(self, client: Cloudflare) -> None: - ai = client.ai.run( + ai = client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -784,7 +784,7 @@ def test_method_run_with_all_params_overload_12(self, client: Cloudflare) -> Non @parametrize def test_raw_response_run_overload_12(self, client: Cloudflare) -> None: - response = client.ai.with_raw_response.run( + response = client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -797,7 +797,7 @@ def test_raw_response_run_overload_12(self, client: Cloudflare) -> None: @parametrize def test_streaming_response_run_overload_12(self, client: Cloudflare) -> None: - with client.ai.with_streaming_response.run( + with client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -813,14 +813,14 @@ def test_streaming_response_run_overload_12(self, client: Cloudflare) -> None: @parametrize def test_path_params_run_overload_12(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", image=[0], ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - client.ai.with_raw_response.run( + client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -832,7 +832,7 @@ class TestAsyncAI: @parametrize async def test_method_run_overload_1(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -841,7 +841,7 @@ async def test_method_run_overload_1(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_raw_response_run_overload_1(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -854,7 +854,7 @@ async def test_raw_response_run_overload_1(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_1(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -870,14 +870,14 @@ async def test_streaming_response_run_overload_1(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_1(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", text="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -885,7 +885,7 @@ async def test_path_params_run_overload_1(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_2(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -894,7 +894,7 @@ async def test_method_run_overload_2(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_method_run_with_all_params_overload_2(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -913,7 +913,7 @@ async def test_method_run_with_all_params_overload_2(self, async_client: AsyncCl @parametrize async def test_raw_response_run_overload_2(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -926,7 +926,7 @@ async def test_raw_response_run_overload_2(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_2(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -942,14 +942,14 @@ async def test_streaming_response_run_overload_2(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_2(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", prompt="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -957,7 +957,7 @@ async def test_path_params_run_overload_2(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_3(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -966,7 +966,7 @@ async def test_method_run_overload_3(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_method_run_with_all_params_overload_3(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -976,7 +976,7 @@ async def test_method_run_with_all_params_overload_3(self, async_client: AsyncCl @parametrize async def test_raw_response_run_overload_3(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -989,7 +989,7 @@ async def test_raw_response_run_overload_3(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_3(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1005,14 +1005,14 @@ async def test_streaming_response_run_overload_3(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_3(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", prompt="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1020,7 +1020,7 @@ async def test_path_params_run_overload_3(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_4(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -1029,7 +1029,7 @@ async def test_method_run_overload_4(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_raw_response_run_overload_4(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -1042,7 +1042,7 @@ async def test_raw_response_run_overload_4(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_4(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -1058,14 +1058,14 @@ async def test_streaming_response_run_overload_4(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_4(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", text="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", text="x", @@ -1073,7 +1073,7 @@ async def test_path_params_run_overload_4(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_5(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -1082,7 +1082,7 @@ async def test_method_run_overload_5(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_method_run_with_all_params_overload_5(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -1093,7 +1093,7 @@ async def test_method_run_with_all_params_overload_5(self, async_client: AsyncCl @parametrize async def test_raw_response_run_overload_5(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -1106,7 +1106,7 @@ async def test_raw_response_run_overload_5(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_5(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -1122,14 +1122,14 @@ async def test_streaming_response_run_overload_5(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_5(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", audio=[0], ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", audio=[0], @@ -1137,7 +1137,7 @@ async def test_path_params_run_overload_5(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_6(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1146,7 +1146,7 @@ async def test_method_run_overload_6(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_raw_response_run_overload_6(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1159,7 +1159,7 @@ async def test_raw_response_run_overload_6(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_6(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1175,14 +1175,14 @@ async def test_streaming_response_run_overload_6(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_6(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", image=[0], ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1190,7 +1190,7 @@ async def test_path_params_run_overload_6(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_7(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -1198,7 +1198,7 @@ async def test_method_run_overload_7(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_method_run_with_all_params_overload_7(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1207,7 +1207,7 @@ async def test_method_run_with_all_params_overload_7(self, async_client: AsyncCl @parametrize async def test_raw_response_run_overload_7(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -1219,7 +1219,7 @@ async def test_raw_response_run_overload_7(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_7(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: @@ -1234,20 +1234,20 @@ async def test_streaming_response_run_overload_7(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_7(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) @parametrize async def test_method_run_overload_8(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1256,7 +1256,7 @@ async def test_method_run_overload_8(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_method_run_with_all_params_overload_8(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1276,7 +1276,7 @@ async def test_method_run_with_all_params_overload_8(self, async_client: AsyncCl @parametrize async def test_raw_response_run_overload_8(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1289,7 +1289,7 @@ async def test_raw_response_run_overload_8(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_8(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1305,14 +1305,14 @@ async def test_streaming_response_run_overload_8(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_8(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", prompt="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", prompt="x", @@ -1320,7 +1320,7 @@ async def test_path_params_run_overload_8(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_9(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -1334,7 +1334,7 @@ async def test_method_run_overload_9(self, async_client: AsyncCloudflare) -> Non @parametrize async def test_method_run_with_all_params_overload_9(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -1379,7 +1379,7 @@ async def test_method_run_with_all_params_overload_9(self, async_client: AsyncCl @parametrize async def test_raw_response_run_overload_9(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -1397,7 +1397,7 @@ async def test_raw_response_run_overload_9(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_9(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -1418,7 +1418,7 @@ async def test_streaming_response_run_overload_9(self, async_client: AsyncCloudf @parametrize async def test_path_params_run_overload_9(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", messages=[ @@ -1430,7 +1430,7 @@ async def test_path_params_run_overload_9(self, async_client: AsyncCloudflare) - ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", messages=[ @@ -1443,7 +1443,7 @@ async def test_path_params_run_overload_9(self, async_client: AsyncCloudflare) - @parametrize async def test_method_run_overload_10(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -1453,7 +1453,7 @@ async def test_method_run_overload_10(self, async_client: AsyncCloudflare) -> No @parametrize async def test_method_run_with_all_params_overload_10(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -1464,7 +1464,7 @@ async def test_method_run_with_all_params_overload_10(self, async_client: AsyncC @parametrize async def test_raw_response_run_overload_10(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -1478,7 +1478,7 @@ async def test_raw_response_run_overload_10(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_10(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -1495,7 +1495,7 @@ async def test_streaming_response_run_overload_10(self, async_client: AsyncCloud @parametrize async def test_path_params_run_overload_10(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", target_lang="target_lang", @@ -1503,7 +1503,7 @@ async def test_path_params_run_overload_10(self, async_client: AsyncCloudflare) ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", target_lang="target_lang", @@ -1512,7 +1512,7 @@ async def test_path_params_run_overload_10(self, async_client: AsyncCloudflare) @parametrize async def test_method_run_overload_11(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -1521,7 +1521,7 @@ async def test_method_run_overload_11(self, async_client: AsyncCloudflare) -> No @parametrize async def test_method_run_with_all_params_overload_11(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -1531,7 +1531,7 @@ async def test_method_run_with_all_params_overload_11(self, async_client: AsyncC @parametrize async def test_raw_response_run_overload_11(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -1544,7 +1544,7 @@ async def test_raw_response_run_overload_11(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_11(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -1560,14 +1560,14 @@ async def test_streaming_response_run_overload_11(self, async_client: AsyncCloud @parametrize async def test_path_params_run_overload_11(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", input_text="x", ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", input_text="x", @@ -1575,7 +1575,7 @@ async def test_path_params_run_overload_11(self, async_client: AsyncCloudflare) @parametrize async def test_method_run_overload_12(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1584,7 +1584,7 @@ async def test_method_run_overload_12(self, async_client: AsyncCloudflare) -> No @parametrize async def test_method_run_with_all_params_overload_12(self, async_client: AsyncCloudflare) -> None: - ai = await async_client.ai.run( + ai = await async_client.workers.ai.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1597,7 +1597,7 @@ async def test_method_run_with_all_params_overload_12(self, async_client: AsyncC @parametrize async def test_raw_response_run_overload_12(self, async_client: AsyncCloudflare) -> None: - response = await async_client.ai.with_raw_response.run( + response = await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1610,7 +1610,7 @@ async def test_raw_response_run_overload_12(self, async_client: AsyncCloudflare) @parametrize async def test_streaming_response_run_overload_12(self, async_client: AsyncCloudflare) -> None: - async with async_client.ai.with_streaming_response.run( + async with async_client.workers.ai.with_streaming_response.run( model_name="model_name", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], @@ -1626,14 +1626,14 @@ async def test_streaming_response_run_overload_12(self, async_client: AsyncCloud @parametrize async def test_path_params_run_overload_12(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="model_name", account_id="", image=[0], ) with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_name` but received ''"): - await async_client.ai.with_raw_response.run( + await async_client.workers.ai.with_raw_response.run( model_name="", account_id="023e105f4ecef8ad9ca31a8372d0c353", image=[0], diff --git a/tests/api_resources/zones/test_holds.py b/tests/api_resources/zones/test_holds.py index 31e1de2ef30..b34e5066342 100644 --- a/tests/api_resources/zones/test_holds.py +++ b/tests/api_resources/zones/test_holds.py @@ -64,24 +64,23 @@ def test_path_params_create(self, client: Cloudflare) -> None: ) @parametrize - def test_method_update(self, client: Cloudflare) -> None: - hold = client.zones.holds.update( + def test_method_delete(self, client: Cloudflare) -> None: + hold = client.zones.holds.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - def test_method_update_with_all_params(self, client: Cloudflare) -> None: - hold = client.zones.holds.update( + def test_method_delete_with_all_params(self, client: Cloudflare) -> None: + hold = client.zones.holds.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - hold_after="2023-01-31T15:56:36+00:00", - include_subdomains=True, + hold_after="hold_after", ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - def test_raw_response_update(self, client: Cloudflare) -> None: - response = client.zones.holds.with_raw_response.update( + def test_raw_response_delete(self, client: Cloudflare) -> None: + response = client.zones.holds.with_raw_response.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -91,8 +90,8 @@ def test_raw_response_update(self, client: Cloudflare) -> None: assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - def test_streaming_response_update(self, client: Cloudflare) -> None: - with client.zones.holds.with_streaming_response.update( + def test_streaming_response_delete(self, client: Cloudflare) -> None: + with client.zones.holds.with_streaming_response.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -104,30 +103,31 @@ def test_streaming_response_update(self, client: Cloudflare) -> None: assert cast(Any, response.is_closed) is True @parametrize - def test_path_params_update(self, client: Cloudflare) -> None: + def test_path_params_delete(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): - client.zones.holds.with_raw_response.update( + client.zones.holds.with_raw_response.delete( zone_id="", ) @parametrize - def test_method_delete(self, client: Cloudflare) -> None: - hold = client.zones.holds.delete( + def test_method_edit(self, client: Cloudflare) -> None: + hold = client.zones.holds.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - def test_method_delete_with_all_params(self, client: Cloudflare) -> None: - hold = client.zones.holds.delete( + def test_method_edit_with_all_params(self, client: Cloudflare) -> None: + hold = client.zones.holds.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - hold_after="hold_after", + hold_after="2023-01-31T15:56:36+00:00", + include_subdomains=True, ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - def test_raw_response_delete(self, client: Cloudflare) -> None: - response = client.zones.holds.with_raw_response.delete( + def test_raw_response_edit(self, client: Cloudflare) -> None: + response = client.zones.holds.with_raw_response.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -137,8 +137,8 @@ def test_raw_response_delete(self, client: Cloudflare) -> None: assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - def test_streaming_response_delete(self, client: Cloudflare) -> None: - with client.zones.holds.with_streaming_response.delete( + def test_streaming_response_edit(self, client: Cloudflare) -> None: + with client.zones.holds.with_streaming_response.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -150,9 +150,9 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None: assert cast(Any, response.is_closed) is True @parametrize - def test_path_params_delete(self, client: Cloudflare) -> None: + def test_path_params_edit(self, client: Cloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): - client.zones.holds.with_raw_response.delete( + client.zones.holds.with_raw_response.edit( zone_id="", ) @@ -245,24 +245,23 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None: ) @parametrize - async def test_method_update(self, async_client: AsyncCloudflare) -> None: - hold = await async_client.zones.holds.update( + async def test_method_delete(self, async_client: AsyncCloudflare) -> None: + hold = await async_client.zones.holds.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - async def test_method_update_with_all_params(self, async_client: AsyncCloudflare) -> None: - hold = await async_client.zones.holds.update( + async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare) -> None: + hold = await async_client.zones.holds.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - hold_after="2023-01-31T15:56:36+00:00", - include_subdomains=True, + hold_after="hold_after", ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None: - response = await async_client.zones.holds.with_raw_response.update( + async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: + response = await async_client.zones.holds.with_raw_response.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -272,8 +271,8 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None: assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> None: - async with async_client.zones.holds.with_streaming_response.update( + async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None: + async with async_client.zones.holds.with_streaming_response.delete( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -285,30 +284,31 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) -> assert cast(Any, response.is_closed) is True @parametrize - async def test_path_params_update(self, async_client: AsyncCloudflare) -> None: + async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): - await async_client.zones.holds.with_raw_response.update( + await async_client.zones.holds.with_raw_response.delete( zone_id="", ) @parametrize - async def test_method_delete(self, async_client: AsyncCloudflare) -> None: - hold = await async_client.zones.holds.delete( + async def test_method_edit(self, async_client: AsyncCloudflare) -> None: + hold = await async_client.zones.holds.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - async def test_method_delete_with_all_params(self, async_client: AsyncCloudflare) -> None: - hold = await async_client.zones.holds.delete( + async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None: + hold = await async_client.zones.holds.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", - hold_after="hold_after", + hold_after="2023-01-31T15:56:36+00:00", + include_subdomains=True, ) assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: - response = await async_client.zones.holds.with_raw_response.delete( + async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None: + response = await async_client.zones.holds.with_raw_response.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) @@ -318,8 +318,8 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None: assert_matches_type(ZoneHold, hold, path=["response"]) @parametrize - async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None: - async with async_client.zones.holds.with_streaming_response.delete( + async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None: + async with async_client.zones.holds.with_streaming_response.edit( zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) as response: assert not response.is_closed @@ -331,9 +331,9 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> assert cast(Any, response.is_closed) is True @parametrize - async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None: + async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `zone_id` but received ''"): - await async_client.zones.holds.with_raw_response.delete( + await async_client.zones.holds.with_raw_response.edit( zone_id="", )