mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
feat(api): update via SDK Studio (#143)
This commit is contained in:
parent
d4d9e55eb2
commit
2bae762927
5 changed files with 22 additions and 50 deletions
|
|
@ -5,14 +5,7 @@ from __future__ import annotations
|
|||
from typing import List, Union
|
||||
from typing_extensions import Literal, Required, TypedDict
|
||||
|
||||
__all__ = [
|
||||
"AppCreateParams",
|
||||
"DNS",
|
||||
"OriginDNS",
|
||||
"EdgeIPs",
|
||||
"EdgeIPsSpectrumEdgeIPEyeballIPs",
|
||||
"EdgeIPsSpectrumEdgeIPCustomerOwnedIPs",
|
||||
]
|
||||
__all__ = ["AppCreateParams", "DNS", "OriginDNS", "EdgeIPs", "EdgeIPsEyeballIPs", "EdgeIPsCustomerOwnedIPs"]
|
||||
|
||||
|
||||
class AppCreateParams(TypedDict, total=False):
|
||||
|
|
@ -98,7 +91,7 @@ class OriginDNS(TypedDict, total=False):
|
|||
"""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPEyeballIPs(TypedDict, total=False):
|
||||
class EdgeIPsEyeballIPs(TypedDict, total=False):
|
||||
connectivity: Literal["all", "ipv4", "ipv6"]
|
||||
"""The IP versions supported for inbound connections on Spectrum anycast IPs."""
|
||||
|
||||
|
|
@ -110,7 +103,7 @@ class EdgeIPsSpectrumEdgeIPEyeballIPs(TypedDict, total=False):
|
|||
"""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(TypedDict, total=False):
|
||||
class EdgeIPsCustomerOwnedIPs(TypedDict, total=False):
|
||||
ips: List[str]
|
||||
"""
|
||||
The array of customer owned IPs we broadcast via anycast for this hostname and
|
||||
|
|
@ -125,4 +118,4 @@ class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(TypedDict, total=False):
|
|||
"""
|
||||
|
||||
|
||||
EdgeIPs = Union[EdgeIPsSpectrumEdgeIPEyeballIPs, EdgeIPsSpectrumEdgeIPCustomerOwnedIPs]
|
||||
EdgeIPs = Union[EdgeIPsEyeballIPs, EdgeIPsCustomerOwnedIPs]
|
||||
|
|
|
|||
|
|
@ -6,14 +6,7 @@ from typing_extensions import Literal
|
|||
|
||||
from ..._models import BaseModel
|
||||
|
||||
__all__ = [
|
||||
"AppCreateResponse",
|
||||
"DNS",
|
||||
"EdgeIPs",
|
||||
"EdgeIPsSpectrumEdgeIPEyeballIPs",
|
||||
"EdgeIPsSpectrumEdgeIPCustomerOwnedIPs",
|
||||
"OriginDNS",
|
||||
]
|
||||
__all__ = ["AppCreateResponse", "DNS", "EdgeIPs", "EdgeIPsEyeballIPs", "EdgeIPsCustomerOwnedIPs", "OriginDNS"]
|
||||
|
||||
|
||||
class DNS(BaseModel):
|
||||
|
|
@ -24,7 +17,7 @@ class DNS(BaseModel):
|
|||
"""The type of DNS record associated with the application."""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPEyeballIPs(BaseModel):
|
||||
class EdgeIPsEyeballIPs(BaseModel):
|
||||
connectivity: Optional[Literal["all", "ipv4", "ipv6"]] = None
|
||||
"""The IP versions supported for inbound connections on Spectrum anycast IPs."""
|
||||
|
||||
|
|
@ -36,7 +29,7 @@ class EdgeIPsSpectrumEdgeIPEyeballIPs(BaseModel):
|
|||
"""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(BaseModel):
|
||||
class EdgeIPsCustomerOwnedIPs(BaseModel):
|
||||
ips: Optional[List[str]] = None
|
||||
"""
|
||||
The array of customer owned IPs we broadcast via anycast for this hostname and
|
||||
|
|
@ -51,7 +44,7 @@ class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(BaseModel):
|
|||
"""
|
||||
|
||||
|
||||
EdgeIPs = Union[EdgeIPsSpectrumEdgeIPEyeballIPs, EdgeIPsSpectrumEdgeIPCustomerOwnedIPs]
|
||||
EdgeIPs = Union[EdgeIPsEyeballIPs, EdgeIPsCustomerOwnedIPs]
|
||||
|
||||
|
||||
class OriginDNS(BaseModel):
|
||||
|
|
|
|||
|
|
@ -5,14 +5,7 @@ from __future__ import annotations
|
|||
from typing import List, Union
|
||||
from typing_extensions import Literal, Required, TypedDict
|
||||
|
||||
__all__ = [
|
||||
"AppUpdateParams",
|
||||
"DNS",
|
||||
"OriginDNS",
|
||||
"EdgeIPs",
|
||||
"EdgeIPsSpectrumEdgeIPEyeballIPs",
|
||||
"EdgeIPsSpectrumEdgeIPCustomerOwnedIPs",
|
||||
]
|
||||
__all__ = ["AppUpdateParams", "DNS", "OriginDNS", "EdgeIPs", "EdgeIPsEyeballIPs", "EdgeIPsCustomerOwnedIPs"]
|
||||
|
||||
|
||||
class AppUpdateParams(TypedDict, total=False):
|
||||
|
|
@ -101,7 +94,7 @@ class OriginDNS(TypedDict, total=False):
|
|||
"""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPEyeballIPs(TypedDict, total=False):
|
||||
class EdgeIPsEyeballIPs(TypedDict, total=False):
|
||||
connectivity: Literal["all", "ipv4", "ipv6"]
|
||||
"""The IP versions supported for inbound connections on Spectrum anycast IPs."""
|
||||
|
||||
|
|
@ -113,7 +106,7 @@ class EdgeIPsSpectrumEdgeIPEyeballIPs(TypedDict, total=False):
|
|||
"""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(TypedDict, total=False):
|
||||
class EdgeIPsCustomerOwnedIPs(TypedDict, total=False):
|
||||
ips: List[str]
|
||||
"""
|
||||
The array of customer owned IPs we broadcast via anycast for this hostname and
|
||||
|
|
@ -128,4 +121,4 @@ class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(TypedDict, total=False):
|
|||
"""
|
||||
|
||||
|
||||
EdgeIPs = Union[EdgeIPsSpectrumEdgeIPEyeballIPs, EdgeIPsSpectrumEdgeIPCustomerOwnedIPs]
|
||||
EdgeIPs = Union[EdgeIPsEyeballIPs, EdgeIPsCustomerOwnedIPs]
|
||||
|
|
|
|||
|
|
@ -6,14 +6,7 @@ from typing_extensions import Literal
|
|||
|
||||
from ..._models import BaseModel
|
||||
|
||||
__all__ = [
|
||||
"AppUpdateResponse",
|
||||
"DNS",
|
||||
"EdgeIPs",
|
||||
"EdgeIPsSpectrumEdgeIPEyeballIPs",
|
||||
"EdgeIPsSpectrumEdgeIPCustomerOwnedIPs",
|
||||
"OriginDNS",
|
||||
]
|
||||
__all__ = ["AppUpdateResponse", "DNS", "EdgeIPs", "EdgeIPsEyeballIPs", "EdgeIPsCustomerOwnedIPs", "OriginDNS"]
|
||||
|
||||
|
||||
class DNS(BaseModel):
|
||||
|
|
@ -24,7 +17,7 @@ class DNS(BaseModel):
|
|||
"""The type of DNS record associated with the application."""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPEyeballIPs(BaseModel):
|
||||
class EdgeIPsEyeballIPs(BaseModel):
|
||||
connectivity: Optional[Literal["all", "ipv4", "ipv6"]] = None
|
||||
"""The IP versions supported for inbound connections on Spectrum anycast IPs."""
|
||||
|
||||
|
|
@ -36,7 +29,7 @@ class EdgeIPsSpectrumEdgeIPEyeballIPs(BaseModel):
|
|||
"""
|
||||
|
||||
|
||||
class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(BaseModel):
|
||||
class EdgeIPsCustomerOwnedIPs(BaseModel):
|
||||
ips: Optional[List[str]] = None
|
||||
"""
|
||||
The array of customer owned IPs we broadcast via anycast for this hostname and
|
||||
|
|
@ -51,7 +44,7 @@ class EdgeIPsSpectrumEdgeIPCustomerOwnedIPs(BaseModel):
|
|||
"""
|
||||
|
||||
|
||||
EdgeIPs = Union[EdgeIPsSpectrumEdgeIPEyeballIPs, EdgeIPsSpectrumEdgeIPCustomerOwnedIPs]
|
||||
EdgeIPs = Union[EdgeIPsEyeballIPs, EdgeIPsCustomerOwnedIPs]
|
||||
|
||||
|
||||
class OriginDNS(BaseModel):
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ __all__ = [
|
|||
"BodySentenceSimilarity",
|
||||
"BodyTextEmbeddings",
|
||||
"BodyAudio",
|
||||
"BodyWorkersAIImageClassification",
|
||||
"BodyWorkersAIBodyDetection",
|
||||
"BodyImageClassification",
|
||||
"BodyObjectDetection",
|
||||
"BodyUnionMember10",
|
||||
"BodyUnionMember11",
|
||||
"BodyUnionMember11Message",
|
||||
|
|
@ -64,11 +64,11 @@ class BodyAudio(TypedDict, total=False):
|
|||
audio: Iterable[float]
|
||||
|
||||
|
||||
class BodyWorkersAIImageClassification(TypedDict, total=False):
|
||||
class BodyImageClassification(TypedDict, total=False):
|
||||
image: Iterable[float]
|
||||
|
||||
|
||||
class BodyWorkersAIBodyDetection(TypedDict, total=False):
|
||||
class BodyObjectDetection(TypedDict, total=False):
|
||||
image: Iterable[float]
|
||||
|
||||
|
||||
|
|
@ -126,9 +126,9 @@ Body = Union[
|
|||
FileTypes,
|
||||
BodyAudio,
|
||||
FileTypes,
|
||||
BodyWorkersAIImageClassification,
|
||||
BodyImageClassification,
|
||||
FileTypes,
|
||||
BodyWorkersAIBodyDetection,
|
||||
BodyObjectDetection,
|
||||
BodyUnionMember10,
|
||||
BodyUnionMember11,
|
||||
BodyTranslation,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue