Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion services/vpn/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5e44a8a3aa0447f4f0511f53cc4eead9b6e6384e
70847894cb6ea9710b211ca07f7ec9fde58c63ac
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class CreateGatewayConnectionPayload(BaseModel):
enabled: Optional[StrictBool] = Field(
default=None, description="This flag decides whether this connection should be enabled or disabled"
)
labels: Optional[Dict[str, Annotated[str, Field(strict=True, max_length=63)]]] = Field(
default=None,
description="Map of custom labels. Key and values must be a string with max 63 chars, start/end with alphanumeric. The key of a label follows the same rules as the `LabelValue` except that it cannot be empty. ",
)
local_subnets: Optional[
Annotated[List[Annotated[str, Field(strict=True)]], Field(min_length=1, max_length=100)]
] = Field(
Expand All @@ -58,6 +62,7 @@ class CreateGatewayConnectionPayload(BaseModel):
__properties: ClassVar[List[str]] = [
"displayName",
"enabled",
"labels",
"localSubnets",
"remoteSubnets",
"staticRoutes",
Expand Down Expand Up @@ -133,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
{
"displayName": obj.get("displayName"),
"enabled": obj.get("enabled"),
"labels": obj.get("labels"),
"localSubnets": obj.get("localSubnets"),
"remoteSubnets": obj.get("remoteSubnets"),
"staticRoutes": obj.get("staticRoutes"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class UpdateGatewayConnectionPayload(BaseModel):
enabled: Optional[StrictBool] = Field(
default=None, description="This flag decides whether this connection should be enabled or disabled"
)
labels: Optional[Dict[str, Annotated[str, Field(strict=True, max_length=63)]]] = Field(
default=None,
description="Map of custom labels. Key and values must be a string with max 63 chars, start/end with alphanumeric. The key of a label follows the same rules as the `LabelValue` except that it cannot be empty. ",
)
local_subnets: Optional[
Annotated[List[Annotated[str, Field(strict=True)]], Field(min_length=1, max_length=100)]
] = Field(
Expand All @@ -58,6 +62,7 @@ class UpdateGatewayConnectionPayload(BaseModel):
__properties: ClassVar[List[str]] = [
"displayName",
"enabled",
"labels",
"localSubnets",
"remoteSubnets",
"staticRoutes",
Expand Down Expand Up @@ -133,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
{
"displayName": obj.get("displayName"),
"enabled": obj.get("enabled"),
"labels": obj.get("labels"),
"localSubnets": obj.get("localSubnets"),
"remoteSubnets": obj.get("remoteSubnets"),
"staticRoutes": obj.get("staticRoutes"),
Expand Down
Loading