Skip to content
Merged
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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
- `CreateDistributionPayload`
- `certificates`:
- [v1.5.0](services/certificates/CHANGELOG.md#v150)
- **Feature:** Add new optional attribute `labels` to `CreateCertificatePayload` and `GetCertificateResponse
- **Feature:** Add new optional attribute `labels` to `CreateCertificatePayload` and `GetCertificateResponse`
- [v1.4.0](services/certificates/CHANGELOG.md#v140)
- **Feature:** regenerate with openapi-generator v7.22.0
- [v1.3.1](services/certificates/CHANGELOG.md#v131)
Expand Down Expand Up @@ -175,6 +175,8 @@
- [v0.14.0](services/observability/CHANGELOG.md#v0140)
- **Feature:** Add attribute `otlp_http_logs_url` to `InstanceSensitiveData` model class
- `vpn`:
- [v0.4.0](services/vpn/CHANGELOG.md#v040)
- **Feature:** Add new optional attribute `labels` to `CreateGatewayConnectionPayload` and `UpdateGatewayConnectionPayload`
- [v0.3.0](services/vpn/CHANGELOG.md#v030)
- **Breaking Change:** switch from `v1beta` version to `v1` version of the API
- [v0.2.0](services/vpn/CHANGELOG.md#v020)
Expand Down
3 changes: 3 additions & 0 deletions services/vpn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.4.0
- **Feature:** Add new optional attribute `labels` to `CreateGatewayConnectionPayload` and `UpdateGatewayConnectionPayload`

## v0.3.0
- **Breaking Change:** switch from `v1beta` version to `v1` version of the API

Expand Down
2 changes: 1 addition & 1 deletion services/vpn/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5e44a8a3aa0447f4f0511f53cc4eead9b6e6384e
91111d4871a604207235ce0835c7840677bda134
2 changes: 1 addition & 1 deletion services/vpn/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "stackit-vpn"
version = "v0.3.0"
version = "v0.4.0"
description = "STACKIT VPN API"
authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}]
requires-python = ">=3.9,<4.0"
Expand Down
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