Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 15, 2024
1 parent 90ce238 commit cf972bb
Showing 1 changed file with 12 additions and 12 deletions.
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

0 comments on commit cf972bb

Please sign in to comment.