Skip to content

Generator: Update SDK /services/dns #1347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 27, 2025
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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
## Release (2025-XX-YY)

- `dns`: [v0.4.0](services/dns/CHANGELOG.md#v040)
- **Feature:** Add new record set types
- **Feature:** Improve documentation for APEX records in `RecordSet` and `CreateRecordSetPayload` models
- `git`: [v0.2.0](services/git/CHANGELOG.md#v020)
- **Feature:** Add support for `Flavors` for STACKIT git instance
- **Improvement:** Error handling and documentation improved
- `ske` [v0.6.0](services/ske/CHANGELOG.md#v060)
- **Feature:** Add new `ClusterErrorCode` types: `CLUSTERERRORCODE_INFRA_SNA_NETWORK_NOT_FOUND`, `CLUSTERERRORCODE_FETCHING_ERRORS_NOT_POSSIBLE`
- `stackitmarketplace`: [v1.5.0](services/stackitmarketplace/CHANGELOG.md#v150)
- **Feature:** Add new `Assets` model for managing service certificate assets
- **Feature:** Add new `LocalizedVersion` model for localized content management
- **Feature:** Add new `NoticePeriod` model with types: `SAME_DAY`, `DAYS`, `MONTHS`
- **Feature:** Add new `ServiceCertificate` model for service certification
- `cdn`: [v1.2.0](services/cdn/CHANGELOG.md#v120)
- **Feature:** Add `default_cache_duration` attribute to `Config`, `ConfigPatch` and `CreateDistributionPayload` model
- Add `originUrlRelated` to available options given in `sort_by` description
Expand Down
4 changes: 4 additions & 0 deletions services/dns/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.4.0
- **Feature:** Add new record set types
- **Feature:** Improve documentation for APEX records in `RecordSet` and `CreateRecordSetPayload` models

## v0.3.2 (2025-05-09)
- **Feature:** Update user-agent header

Expand Down
2 changes: 1 addition & 1 deletion services/dns/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-dns"

[tool.poetry]
name = "stackit-dns"
version = "v0.3.2"
version = "v0.4.0"
authors = ["STACKIT Developer Tools <developer-tools@stackit.cloud>"]
description = "STACKIT DNS API"
readme = "README.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CreateRecordSetPayload(BaseModel):
default=None, description="user comment"
)
name: Annotated[str, Field(min_length=1, strict=True, max_length=253)] = Field(
description="name of the record which should be a valid domain according to rfc1035 Section 2.3.4"
description="name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here."
)
records: List[RecordPayload] = Field(description="records")
ttl: Optional[Annotated[int, Field(le=99999999, strict=True, ge=60)]] = Field(
Expand Down Expand Up @@ -68,10 +68,14 @@ def type_validate_enum(cls, value):
"URI",
"CERT",
"SVCB",
"TYPE",
"CSYNC",
"HINFO",
"HTTPS",
]
):
raise ValueError(
"must be one of enum values ('A', 'AAAA', 'SOA', 'CNAME', 'NS', 'MX', 'TXT', 'SRV', 'PTR', 'ALIAS', 'DNAME', 'CAA', 'DNSKEY', 'DS', 'LOC', 'NAPTR', 'SSHFP', 'TLSA', 'URI', 'CERT', 'SVCB')"
"must be one of enum values ('A', 'AAAA', 'SOA', 'CNAME', 'NS', 'MX', 'TXT', 'SRV', 'PTR', 'ALIAS', 'DNAME', 'CAA', 'DNSKEY', 'DS', 'LOC', 'NAPTR', 'SSHFP', 'TLSA', 'URI', 'CERT', 'SVCB', 'TYPE', 'CSYNC', 'HINFO', 'HTTPS')"
)
return value

Expand Down
34 changes: 31 additions & 3 deletions services/dns/src/stackit/dns/models/record_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class RecordSet(BaseModel):
)
id: StrictStr = Field(description="rr set id")
name: Annotated[str, Field(min_length=1, strict=True, max_length=253)] = Field(
description="name of the record which should be a valid domain according to rfc1035 Section 2.3.4"
description="name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here."
)
records: Annotated[List[Record], Field(min_length=1)] = Field(description="records")
state: StrictStr = Field(description="record set state")
Expand Down Expand Up @@ -93,9 +93,37 @@ def state_validate_enum(cls, value):
@field_validator("type")
def type_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(["A", "AAAA", "SOA", "CNAME", "NS", "MX", "TXT", "SRV", "PTR", "ALIAS", "DNAME", "CAA"]):
if value not in set(
[
"A",
"AAAA",
"SOA",
"CNAME",
"NS",
"MX",
"TXT",
"SRV",
"PTR",
"ALIAS",
"DNAME",
"CAA",
"DNSKEY",
"DS",
"LOC",
"NAPTR",
"SSHFP",
"TLSA",
"URI",
"CERT",
"SVCB",
"TYPE",
"CSYNC",
"HINFO",
"HTTPS",
]
):
raise ValueError(
"must be one of enum values ('A', 'AAAA', 'SOA', 'CNAME', 'NS', 'MX', 'TXT', 'SRV', 'PTR', 'ALIAS', 'DNAME', 'CAA')"
"must be one of enum values ('A', 'AAAA', 'SOA', 'CNAME', 'NS', 'MX', 'TXT', 'SRV', 'PTR', 'ALIAS', 'DNAME', 'CAA', 'DNSKEY', 'DS', 'LOC', 'NAPTR', 'SSHFP', 'TLSA', 'URI', 'CERT', 'SVCB', 'TYPE', 'CSYNC', 'HINFO', 'HTTPS')"
)
return value

Expand Down
4 changes: 4 additions & 0 deletions services/git/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.2.0
- **Feature:** Add support for `Flavors` for STACKIT git instance
- **Improvement:** Error handling and documentation improved

## v0.1.2 (2025-05-09)
- **Feature:** Update user-agent header

Expand Down
2 changes: 1 addition & 1 deletion services/git/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "stackit-git"

[tool.poetry]
name = "stackit-git"
version = "v0.1.2"
version = "v0.2.0"
authors = [
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
]
Expand Down
7 changes: 5 additions & 2 deletions services/git/src/stackit/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"""
STACKIT Git API

Manage STACKIT Git instances.
STACKIT Git management API.

The version of the OpenAPI document: 1beta.0.3
The version of the OpenAPI document: 1beta.0.4
Contact: git@stackit.cloud
Generated by OpenAPI Generator (https://openapi-generator.tech)

Expand Down Expand Up @@ -35,9 +35,12 @@

# import models into sdk package
from stackit.git.models.create_instance_payload import CreateInstancePayload
from stackit.git.models.flavor import Flavor
from stackit.git.models.generic_error_response import GenericErrorResponse
from stackit.git.models.instance import Instance
from stackit.git.models.internal_server_error_response import (
InternalServerErrorResponse,
)
from stackit.git.models.list_flavors import ListFlavors
from stackit.git.models.list_instances import ListInstances
from stackit.git.models.unauthorized_response import UnauthorizedResponse
Loading
Loading