Skip to content

Commit a6f9daf

Browse files
Generator: Update SDK /services/vpn (#4456)
Co-authored-by: Manuel Vaas <manuel.vaas@stackit.cloud>
1 parent 4f6569a commit a6f9daf

6 files changed

Lines changed: 20 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
- `CreateDistributionPayload`
137137
- `certificates`:
138138
- [v1.5.0](services/certificates/CHANGELOG.md#v150)
139-
- **Feature:** Add new optional attribute `labels` to `CreateCertificatePayload` and `GetCertificateResponse
139+
- **Feature:** Add new optional attribute `labels` to `CreateCertificatePayload` and `GetCertificateResponse`
140140
- [v1.4.0](services/certificates/CHANGELOG.md#v140)
141141
- **Feature:** regenerate with openapi-generator v7.22.0
142142
- [v1.3.1](services/certificates/CHANGELOG.md#v131)
@@ -175,6 +175,8 @@
175175
- [v0.14.0](services/observability/CHANGELOG.md#v0140)
176176
- **Feature:** Add attribute `otlp_http_logs_url` to `InstanceSensitiveData` model class
177177
- `vpn`:
178+
- [v0.4.0](services/vpn/CHANGELOG.md#v040)
179+
- **Feature:** Add new optional attribute `labels` to `CreateGatewayConnectionPayload` and `UpdateGatewayConnectionPayload`
178180
- [v0.3.0](services/vpn/CHANGELOG.md#v030)
179181
- **Breaking Change:** switch from `v1beta` version to `v1` version of the API
180182
- [v0.2.0](services/vpn/CHANGELOG.md#v020)

services/vpn/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.4.0
2+
- **Feature:** Add new optional attribute `labels` to `CreateGatewayConnectionPayload` and `UpdateGatewayConnectionPayload`
3+
14
## v0.3.0
25
- **Breaking Change:** switch from `v1beta` version to `v1` version of the API
36

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/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stackit-vpn"
3-
version = "v0.3.0"
3+
version = "v0.4.0"
44
description = "STACKIT VPN API"
55
authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}]
66
requires-python = ">=3.9,<4.0"

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)