Skip to content

Commit 0180839

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#122)
1 parent fe420e5 commit 0180839

File tree

5 files changed

+35
-15
lines changed

5 files changed

+35
-15
lines changed

src/cloudflare/types/dns/record_create_response.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
from typing import List, Union, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
5+
from typing_extensions import Literal, Annotated
66

7+
from ..._utils import PropertyInfo
78
from ..._models import BaseModel
89

910
__all__ = [
@@ -1659,6 +1660,9 @@ class URI(BaseModel):
16591660
"""The domain of the record."""
16601661

16611662

1662-
RecordCreateResponse = Union[
1663-
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1663+
RecordCreateResponse = Annotated[
1664+
Union[
1665+
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1666+
],
1667+
PropertyInfo(discriminator="type"),
16641668
]

src/cloudflare/types/dns/record_edit_response.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
from typing import List, Union, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
5+
from typing_extensions import Literal, Annotated
66

7+
from ..._utils import PropertyInfo
78
from ..._models import BaseModel
89

910
__all__ = [
@@ -1659,6 +1660,9 @@ class URI(BaseModel):
16591660
"""The domain of the record."""
16601661

16611662

1662-
RecordEditResponse = Union[
1663-
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1663+
RecordEditResponse = Annotated[
1664+
Union[
1665+
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1666+
],
1667+
PropertyInfo(discriminator="type"),
16641668
]

src/cloudflare/types/dns/record_get_response.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
from typing import List, Union, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
5+
from typing_extensions import Literal, Annotated
66

7+
from ..._utils import PropertyInfo
78
from ..._models import BaseModel
89

910
__all__ = [
@@ -1659,6 +1660,9 @@ class URI(BaseModel):
16591660
"""The domain of the record."""
16601661

16611662

1662-
RecordGetResponse = Union[
1663-
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1663+
RecordGetResponse = Annotated[
1664+
Union[
1665+
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1666+
],
1667+
PropertyInfo(discriminator="type"),
16641668
]

src/cloudflare/types/dns/record_list_response.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
from typing import List, Union, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
5+
from typing_extensions import Literal, Annotated
66

7+
from ..._utils import PropertyInfo
78
from ..._models import BaseModel
89

910
__all__ = [
@@ -1659,6 +1660,9 @@ class URI(BaseModel):
16591660
"""The domain of the record."""
16601661

16611662

1662-
RecordListResponse = Union[
1663-
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1663+
RecordListResponse = Annotated[
1664+
Union[
1665+
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1666+
],
1667+
PropertyInfo(discriminator="type"),
16641668
]

src/cloudflare/types/dns/record_update_response.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
from typing import List, Union, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
5+
from typing_extensions import Literal, Annotated
66

7+
from ..._utils import PropertyInfo
78
from ..._models import BaseModel
89

910
__all__ = [
@@ -1659,6 +1660,9 @@ class URI(BaseModel):
16591660
"""The domain of the record."""
16601661

16611662

1662-
RecordUpdateResponse = Union[
1663-
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1663+
RecordUpdateResponse = Annotated[
1664+
Union[
1665+
A, AAAA, CAA, Cert, CNAME, DNSKEY, DS, HTTPS, LOC, MX, NAPTR, NS, PTR, Smimea, SRV, SSHFP, SVCB, TLSA, TXT, URI
1666+
],
1667+
PropertyInfo(discriminator="type"),
16641668
]

0 commit comments

Comments
 (0)