diff --git a/CHANGELOG.md b/CHANGELOG.md index d0af20569..26ed0f6d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,8 @@ - **Feature:** Add attribute `total_quantity_decimal` to `DetailedServiceCost` model class - **Feature:** Add attribute `quantity_decimal` to `ReportData` model class - `dns` + - [v0.8.0](services/dns/CHANGELOG.md#v080) + - **Breaking Change:** `Value` field of `Label`/`CreateLabelPayload` is no longer required. - [v0.7.0](services/dns/CHANGELOG.md#v070) - **Chore:** Bump minimum Python version to 3.10 - **Chore:** Update dependencies diff --git a/services/dns/CHANGELOG.md b/services/dns/CHANGELOG.md index 5a8447612..4bc59a581 100644 --- a/services/dns/CHANGELOG.md +++ b/services/dns/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.8.0 +- **Breaking Change:** `Value` field of `Label`/`CreateLabelPayload` is no longer required. + ## v0.7.0 - **Chore:** Bump minimum Python version to 3.10 - **Chore:** Update dependencies diff --git a/services/dns/oas_commit b/services/dns/oas_commit index e3713dde3..fd8ff3e68 100644 --- a/services/dns/oas_commit +++ b/services/dns/oas_commit @@ -1 +1 @@ -0e64886dd0847341800d7191ed193b75413be998 +c09e232a83532c75ca1041153e3ebc7ce2d50eb6 diff --git a/services/dns/pyproject.toml b/services/dns/pyproject.toml index f9ec67ee0..2c3c49c2a 100644 --- a/services/dns/pyproject.toml +++ b/services/dns/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stackit-dns" -version = "v0.7.0" +version = "v0.8.0" description = "STACKIT DNS API" authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }] requires-python = ">=3.10,<4.0" diff --git a/services/dns/src/stackit/dns/models/create_label_payload.py b/services/dns/src/stackit/dns/models/create_label_payload.py index 7dcfeda64..f9bb77a29 100644 --- a/services/dns/src/stackit/dns/models/create_label_payload.py +++ b/services/dns/src/stackit/dns/models/create_label_payload.py @@ -29,7 +29,7 @@ class CreateLabelPayload(BaseModel): """ # noqa: E501 key: Annotated[str, Field(min_length=1, strict=True, max_length=63)] - value: Annotated[str, Field(min_length=1, strict=True, max_length=63)] + value: Optional[Annotated[str, Field(strict=True, max_length=63)]] = None __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/services/dns/src/stackit/dns/models/create_zone_payload.py b/services/dns/src/stackit/dns/models/create_zone_payload.py index d56ed93fc..442d4fcc6 100644 --- a/services/dns/src/stackit/dns/models/create_zone_payload.py +++ b/services/dns/src/stackit/dns/models/create_zone_payload.py @@ -38,7 +38,8 @@ class CreateZonePayload(BaseModel): """ # noqa: E501 acl: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field( - default="0.0.0.0/0,::/0", description="access control list" + default="0.0.0.0/0,::/0", + description="the access control list (note: this field currently has no effect and does not enforce any access restrictions on the DNS zone)", ) contact_email: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default="hostmaster@stackit.cloud", description="contact e-mail for the zone", alias="contactEmail" diff --git a/services/dns/src/stackit/dns/models/label.py b/services/dns/src/stackit/dns/models/label.py index bedffcc1a..d5a477dba 100644 --- a/services/dns/src/stackit/dns/models/label.py +++ b/services/dns/src/stackit/dns/models/label.py @@ -29,7 +29,7 @@ class Label(BaseModel): """ # noqa: E501 key: Annotated[str, Field(min_length=1, strict=True, max_length=63)] - value: Annotated[str, Field(min_length=1, strict=True, max_length=63)] + value: Optional[Annotated[str, Field(strict=True, max_length=63)]] = None __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/services/dns/src/stackit/dns/models/partial_update_zone_payload.py b/services/dns/src/stackit/dns/models/partial_update_zone_payload.py index 8d418d763..bbc9baab2 100644 --- a/services/dns/src/stackit/dns/models/partial_update_zone_payload.py +++ b/services/dns/src/stackit/dns/models/partial_update_zone_payload.py @@ -31,7 +31,8 @@ class PartialUpdateZonePayload(BaseModel): """ # noqa: E501 acl: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field( - default="0.0.0.0/0,::/0", description="access control list" + default="0.0.0.0/0,::/0", + description="the access control list (note: this field currently has no effect and does not enforce any access restrictions on the DNS zone)", ) contact_email: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default="hostmaster@stackit.cloud", description="contact e-mail for the zone", alias="contactEmail"