From 383c2db34c982c44b251aba76a02c9b852549df2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:29:07 +0000 Subject: [PATCH] feat: OpenAPI spec update via Stainless API (#122) --- src/cloudflare/types/dns/record_create_response.py | 10 +++++++--- src/cloudflare/types/dns/record_edit_response.py | 10 +++++++--- src/cloudflare/types/dns/record_get_response.py | 10 +++++++--- src/cloudflare/types/dns/record_list_response.py | 10 +++++++--- src/cloudflare/types/dns/record_update_response.py | 10 +++++++--- 5 files changed, 35 insertions(+), 15 deletions(-) diff --git a/src/cloudflare/types/dns/record_create_response.py b/src/cloudflare/types/dns/record_create_response.py index dea2fdfec..479812947 100644 --- a/src/cloudflare/types/dns/record_create_response.py +++ b/src/cloudflare/types/dns/record_create_response.py @@ -2,8 +2,9 @@ from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, Annotated +from ..._utils import PropertyInfo from ..._models import BaseModel __all__ = [ @@ -1659,6 +1660,9 @@ class URI(BaseModel): """The domain of the record.""" -RecordCreateResponse = Union[ - A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI +RecordCreateResponse = Annotated[ + Union[ + A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_edit_response.py b/src/cloudflare/types/dns/record_edit_response.py index 1dcdcef89..64dd4cc3e 100644 --- a/src/cloudflare/types/dns/record_edit_response.py +++ b/src/cloudflare/types/dns/record_edit_response.py @@ -2,8 +2,9 @@ from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, Annotated +from ..._utils import PropertyInfo from ..._models import BaseModel __all__ = [ @@ -1659,6 +1660,9 @@ class URI(BaseModel): """The domain of the record.""" -RecordEditResponse = Union[ - A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI +RecordEditResponse = Annotated[ + Union[ + A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_get_response.py b/src/cloudflare/types/dns/record_get_response.py index 74472b039..6e97689b4 100644 --- a/src/cloudflare/types/dns/record_get_response.py +++ b/src/cloudflare/types/dns/record_get_response.py @@ -2,8 +2,9 @@ from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, Annotated +from ..._utils import PropertyInfo from ..._models import BaseModel __all__ = [ @@ -1659,6 +1660,9 @@ class URI(BaseModel): """The domain of the record.""" -RecordGetResponse = Union[ - A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI +RecordGetResponse = Annotated[ + Union[ + A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_list_response.py b/src/cloudflare/types/dns/record_list_response.py index 360a9eef2..c081ab405 100644 --- a/src/cloudflare/types/dns/record_list_response.py +++ b/src/cloudflare/types/dns/record_list_response.py @@ -2,8 +2,9 @@ from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, Annotated +from ..._utils import PropertyInfo from ..._models import BaseModel __all__ = [ @@ -1659,6 +1660,9 @@ class URI(BaseModel): """The domain of the record.""" -RecordListResponse = Union[ - A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI +RecordListResponse = Annotated[ + Union[ + A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI + ], + PropertyInfo(discriminator="type"), ] diff --git a/src/cloudflare/types/dns/record_update_response.py b/src/cloudflare/types/dns/record_update_response.py index 5a7a94246..124ea147c 100644 --- a/src/cloudflare/types/dns/record_update_response.py +++ b/src/cloudflare/types/dns/record_update_response.py @@ -2,8 +2,9 @@ from typing import List, Union, Optional from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, Annotated +from ..._utils import PropertyInfo from ..._models import BaseModel __all__ = [ @@ -1659,6 +1660,9 @@ class URI(BaseModel): """The domain of the record.""" -RecordUpdateResponse = Union[ - A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI +RecordUpdateResponse = Annotated[ + Union[ + A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI + ], + PropertyInfo(discriminator="type"), ]