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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
- `ConfigPatch`
- `CreateDistributionPayload`
- `certificates`:
- [v1.5.0](services/certificates/CHANGELOG.md#v150)
- **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
3 changes: 3 additions & 0 deletions services/certificates/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.5.0
- **Feature:** Add new optional attribute `labels` to `CreateCertificatePayload` and `GetCertificateResponse

## v1.4.0
- **Feature:** regenerate with openapi-generator v7.22.0

Expand Down
2 changes: 1 addition & 1 deletion services/certificates/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
87a3ad63dec0a953ff5c6072ad9a15fddd8ec5f8
8ccf08fdae6320251259ca695f1e7180eeb21275
2 changes: 1 addition & 1 deletion services/certificates/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "stackit-certificates"
version = "v1.4.0"
version = "v1.5.0"
description = "Load Balancer Certificates 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 @@ -29,6 +29,10 @@ class CreateCertificatePayload(BaseModel):
Uploads a PEM encoded X509 public/private key pair
""" # noqa: E501

labels: Optional[Dict[str, StrictStr]] = Field(
default=None,
description="Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. ",
)
name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="TLS certificate name")
private_key: Optional[StrictStr] = Field(
default=None, description="The PEM encoded private key part", alias="privateKey"
Expand All @@ -38,7 +42,7 @@ class CreateCertificatePayload(BaseModel):
default=None, description="The PEM encoded public key part", alias="publicKey"
)
region: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Region")
__properties: ClassVar[List[str]] = ["name", "privateKey", "projectId", "publicKey", "region"]
__properties: ClassVar[List[str]] = ["labels", "name", "privateKey", "projectId", "publicKey", "region"]

@field_validator("name")
def name_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -138,6 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:

_obj = cls.model_validate(
{
"labels": obj.get("labels"),
"name": obj.get("name"),
"privateKey": obj.get("privateKey"),
"projectId": obj.get("projectId"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ class GetCertificateResponse(BaseModel):
""" # noqa: E501

id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="The certificates resource id")
labels: Optional[Dict[str, StrictStr]] = Field(
default=None,
description="Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. ",
)
name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="TLS certificate name")
public_key: Optional[StrictStr] = Field(
default=None, description="The PEM encoded public key part", alias="publicKey"
)
region: Optional[StrictStr] = Field(default=None, description="Region of the LoadBalancer")
__properties: ClassVar[List[str]] = ["id", "name", "publicKey", "region"]
__properties: ClassVar[List[str]] = ["id", "labels", "name", "publicKey", "region"]

@field_validator("id")
def id_validate_regular_expression(cls, value):
Expand Down Expand Up @@ -113,6 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate(
{
"id": obj.get("id"),
"labels": obj.get("labels"),
"name": obj.get("name"),
"publicKey": obj.get("publicKey"),
"region": obj.get("region"),
Expand Down
Loading