diff --git a/services/vpn/oas_commit b/services/vpn/oas_commit index 3bdcef578..307f4ed51 100644 --- a/services/vpn/oas_commit +++ b/services/vpn/oas_commit @@ -1 +1 @@ -5e44a8a3aa0447f4f0511f53cc4eead9b6e6384e +70847894cb6ea9710b211ca07f7ec9fde58c63ac diff --git a/services/vpn/src/stackit/vpn/models/create_gateway_connection_payload.py b/services/vpn/src/stackit/vpn/models/create_gateway_connection_payload.py index d938507e0..d13799b9a 100644 --- a/services/vpn/src/stackit/vpn/models/create_gateway_connection_payload.py +++ b/services/vpn/src/stackit/vpn/models/create_gateway_connection_payload.py @@ -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( @@ -58,6 +62,7 @@ class CreateGatewayConnectionPayload(BaseModel): __properties: ClassVar[List[str]] = [ "displayName", "enabled", + "labels", "localSubnets", "remoteSubnets", "staticRoutes", @@ -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"), diff --git a/services/vpn/src/stackit/vpn/models/update_gateway_connection_payload.py b/services/vpn/src/stackit/vpn/models/update_gateway_connection_payload.py index 469c9220a..81a183f65 100644 --- a/services/vpn/src/stackit/vpn/models/update_gateway_connection_payload.py +++ b/services/vpn/src/stackit/vpn/models/update_gateway_connection_payload.py @@ -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( @@ -58,6 +62,7 @@ class UpdateGatewayConnectionPayload(BaseModel): __properties: ClassVar[List[str]] = [ "displayName", "enabled", + "labels", "localSubnets", "remoteSubnets", "staticRoutes", @@ -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"),