Skip to content

Commit 68556f6

Browse files
Generate vpn
1 parent 4f6569a commit 68556f6

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

services/vpn/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5e44a8a3aa0447f4f0511f53cc4eead9b6e6384e
1+
91111d4871a604207235ce0835c7840677bda134

services/vpn/src/stackit/vpn/models/create_gateway_connection_payload.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class CreateGatewayConnectionPayload(BaseModel):
3636
enabled: Optional[StrictBool] = Field(
3737
default=None, description="This flag decides whether this connection should be enabled or disabled"
3838
)
39+
labels: Optional[Dict[str, Annotated[str, Field(strict=True, max_length=63)]]] = Field(
40+
default=None,
41+
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. ",
42+
)
3943
local_subnets: Optional[
4044
Annotated[List[Annotated[str, Field(strict=True)]], Field(min_length=1, max_length=100)]
4145
] = Field(
@@ -58,6 +62,7 @@ class CreateGatewayConnectionPayload(BaseModel):
5862
__properties: ClassVar[List[str]] = [
5963
"displayName",
6064
"enabled",
65+
"labels",
6166
"localSubnets",
6267
"remoteSubnets",
6368
"staticRoutes",
@@ -133,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
133138
{
134139
"displayName": obj.get("displayName"),
135140
"enabled": obj.get("enabled"),
141+
"labels": obj.get("labels"),
136142
"localSubnets": obj.get("localSubnets"),
137143
"remoteSubnets": obj.get("remoteSubnets"),
138144
"staticRoutes": obj.get("staticRoutes"),

services/vpn/src/stackit/vpn/models/update_gateway_connection_payload.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class UpdateGatewayConnectionPayload(BaseModel):
3636
enabled: Optional[StrictBool] = Field(
3737
default=None, description="This flag decides whether this connection should be enabled or disabled"
3838
)
39+
labels: Optional[Dict[str, Annotated[str, Field(strict=True, max_length=63)]]] = Field(
40+
default=None,
41+
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. ",
42+
)
3943
local_subnets: Optional[
4044
Annotated[List[Annotated[str, Field(strict=True)]], Field(min_length=1, max_length=100)]
4145
] = Field(
@@ -58,6 +62,7 @@ class UpdateGatewayConnectionPayload(BaseModel):
5862
__properties: ClassVar[List[str]] = [
5963
"displayName",
6064
"enabled",
65+
"labels",
6166
"localSubnets",
6267
"remoteSubnets",
6368
"staticRoutes",
@@ -133,6 +138,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
133138
{
134139
"displayName": obj.get("displayName"),
135140
"enabled": obj.get("enabled"),
141+
"labels": obj.get("labels"),
136142
"localSubnets": obj.get("localSubnets"),
137143
"remoteSubnets": obj.get("remoteSubnets"),
138144
"staticRoutes": obj.get("staticRoutes"),

0 commit comments

Comments
 (0)