-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(internal): add cleaner handling of DNS unions (#2270)
- Loading branch information
1 parent
90d0608
commit 582142f
Showing
55 changed files
with
6,352 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 1462 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37230321c38d72a0921e2d9712bc4217c53bcfd91530bd043118800b83570891.yml |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,43 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import Optional | ||
from typing import List, 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.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,43 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import Optional | ||
from typing import List, 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.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.