Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #1189

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions src/cloudflare/types/zero_trust/gateway/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@
__all__ = [
"Location",
"Endpoints",
"EndpointsDoh",
"EndpointsDohNetwork",
"EndpointsDot",
"EndpointsDotNetwork",
"EndpointsDOH",
"EndpointsDOHNetwork",
"EndpointsDOT",
"EndpointsDOTNetwork",
"EndpointsIPV4",
"EndpointsIPV6",
"EndpointsIPV6Network",
"Network",
]


class EndpointsDohNetwork(BaseModel):
class EndpointsDOHNetwork(BaseModel):
network: str
"""The IP address or IP CIDR."""


class EndpointsDoh(BaseModel):
class EndpointsDOH(BaseModel):
enabled: Optional[bool] = None
"""True if the endpoint is enabled for this location."""

networks: Optional[List[EndpointsDohNetwork]] = None
networks: Optional[List[EndpointsDOHNetwork]] = None
"""A list of allowed source IP network ranges for this endpoint.

When empty, all source IPs are allowed. A non-empty list is only effective if
Expand All @@ -43,16 +43,16 @@ class EndpointsDoh(BaseModel):
"""


class EndpointsDotNetwork(BaseModel):
class EndpointsDOTNetwork(BaseModel):
network: str
"""The IP address or IP CIDR."""


class EndpointsDot(BaseModel):
class EndpointsDOT(BaseModel):
enabled: Optional[bool] = None
"""True if the endpoint is enabled for this location."""

networks: Optional[List[EndpointsDotNetwork]] = None
networks: Optional[List[EndpointsDOTNetwork]] = None
"""A list of allowed source IP network ranges for this endpoint.

When empty, all source IPs are allowed. A non-empty list is only effective if
Expand Down Expand Up @@ -83,9 +83,9 @@ class EndpointsIPV6(BaseModel):


class Endpoints(BaseModel):
doh: Optional[EndpointsDoh] = None
doh: Optional[EndpointsDOH] = None

dot: Optional[EndpointsDot] = None
dot: Optional[EndpointsDOT] = None

ipv4: Optional[EndpointsIPV4] = None

Expand Down