Skip to content

Commit fa54504

Browse files
Generator: Update SDK /services/dns (#1347)
* Generate dns * Add changelogs Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Generate git * Generate ske * Generate stackitmarketplace * Add changelogs Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent b500c1f commit fa54504

36 files changed

+1207
-214
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
## Release (2025-XX-YY)
2+
3+
- `dns`: [v0.4.0](services/dns/CHANGELOG.md#v040)
4+
- **Feature:** Add new record set types
5+
- **Feature:** Improve documentation for APEX records in `RecordSet` and `CreateRecordSetPayload` models
6+
- `git`: [v0.2.0](services/git/CHANGELOG.md#v020)
7+
- **Feature:** Add support for `Flavors` for STACKIT git instance
8+
- **Improvement:** Error handling and documentation improved
9+
- `ske` [v0.6.0](services/ske/CHANGELOG.md#v060)
10+
- **Feature:** Add new `ClusterErrorCode` types: `CLUSTERERRORCODE_INFRA_SNA_NETWORK_NOT_FOUND`, `CLUSTERERRORCODE_FETCHING_ERRORS_NOT_POSSIBLE`
11+
- `stackitmarketplace`: [v1.5.0](services/stackitmarketplace/CHANGELOG.md#v150)
12+
- **Feature:** Add new `Assets` model for managing service certificate assets
13+
- **Feature:** Add new `LocalizedVersion` model for localized content management
14+
- **Feature:** Add new `NoticePeriod` model with types: `SAME_DAY`, `DAYS`, `MONTHS`
15+
- **Feature:** Add new `ServiceCertificate` model for service certification
216
- `cdn`: [v1.2.0](services/cdn/CHANGELOG.md#v120)
317
- **Feature:** Add `default_cache_duration` attribute to `Config`, `ConfigPatch` and `CreateDistributionPayload` model
418
- Add `originUrlRelated` to available options given in `sort_by` description

services/dns/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.4.0
2+
- **Feature:** Add new record set types
3+
- **Feature:** Improve documentation for APEX records in `RecordSet` and `CreateRecordSetPayload` models
4+
15
## v0.3.2 (2025-05-09)
26
- **Feature:** Update user-agent header
37

services/dns/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-dns"
33

44
[tool.poetry]
55
name = "stackit-dns"
6-
version = "v0.3.2"
6+
version = "v0.4.0"
77
authors = ["STACKIT Developer Tools <developer-tools@stackit.cloud>"]
88
description = "STACKIT DNS API"
99
readme = "README.md"

services/dns/src/stackit/dns/models/create_record_set_payload.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CreateRecordSetPayload(BaseModel):
3333
default=None, description="user comment"
3434
)
3535
name: Annotated[str, Field(min_length=1, strict=True, max_length=253)] = Field(
36-
description="name of the record which should be a valid domain according to rfc1035 Section 2.3.4"
36+
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."
3737
)
3838
records: List[RecordPayload] = Field(description="records")
3939
ttl: Optional[Annotated[int, Field(le=99999999, strict=True, ge=60)]] = Field(
@@ -68,10 +68,14 @@ def type_validate_enum(cls, value):
6868
"URI",
6969
"CERT",
7070
"SVCB",
71+
"TYPE",
72+
"CSYNC",
73+
"HINFO",
74+
"HTTPS",
7175
]
7276
):
7377
raise ValueError(
74-
"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')"
78+
"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')"
7579
)
7680
return value
7781

services/dns/src/stackit/dns/models/record_set.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class RecordSet(BaseModel):
4545
)
4646
id: StrictStr = Field(description="rr set id")
4747
name: Annotated[str, Field(min_length=1, strict=True, max_length=253)] = Field(
48-
description="name of the record which should be a valid domain according to rfc1035 Section 2.3.4"
48+
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."
4949
)
5050
records: Annotated[List[Record], Field(min_length=1)] = Field(description="records")
5151
state: StrictStr = Field(description="record set state")
@@ -93,9 +93,37 @@ def state_validate_enum(cls, value):
9393
@field_validator("type")
9494
def type_validate_enum(cls, value):
9595
"""Validates the enum"""
96-
if value not in set(["A", "AAAA", "SOA", "CNAME", "NS", "MX", "TXT", "SRV", "PTR", "ALIAS", "DNAME", "CAA"]):
96+
if value not in set(
97+
[
98+
"A",
99+
"AAAA",
100+
"SOA",
101+
"CNAME",
102+
"NS",
103+
"MX",
104+
"TXT",
105+
"SRV",
106+
"PTR",
107+
"ALIAS",
108+
"DNAME",
109+
"CAA",
110+
"DNSKEY",
111+
"DS",
112+
"LOC",
113+
"NAPTR",
114+
"SSHFP",
115+
"TLSA",
116+
"URI",
117+
"CERT",
118+
"SVCB",
119+
"TYPE",
120+
"CSYNC",
121+
"HINFO",
122+
"HTTPS",
123+
]
124+
):
97125
raise ValueError(
98-
"must be one of enum values ('A', 'AAAA', 'SOA', 'CNAME', 'NS', 'MX', 'TXT', 'SRV', 'PTR', 'ALIAS', 'DNAME', 'CAA')"
126+
"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')"
99127
)
100128
return value
101129

services/git/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.2.0
2+
- **Feature:** Add support for `Flavors` for STACKIT git instance
3+
- **Improvement:** Error handling and documentation improved
4+
15
## v0.1.2 (2025-05-09)
26
- **Feature:** Update user-agent header
37

services/git/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-git"
33

44
[tool.poetry]
55
name = "stackit-git"
6-
version = "v0.1.2"
6+
version = "v0.2.0"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

services/git/src/stackit/git/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"""
66
STACKIT Git API
77
8-
Manage STACKIT Git instances.
8+
STACKIT Git management API.
99
10-
The version of the OpenAPI document: 1beta.0.3
10+
The version of the OpenAPI document: 1beta.0.4
1111
Contact: git@stackit.cloud
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
@@ -35,9 +35,12 @@
3535

3636
# import models into sdk package
3737
from stackit.git.models.create_instance_payload import CreateInstancePayload
38+
from stackit.git.models.flavor import Flavor
39+
from stackit.git.models.generic_error_response import GenericErrorResponse
3840
from stackit.git.models.instance import Instance
3941
from stackit.git.models.internal_server_error_response import (
4042
InternalServerErrorResponse,
4143
)
44+
from stackit.git.models.list_flavors import ListFlavors
4245
from stackit.git.models.list_instances import ListInstances
4346
from stackit.git.models.unauthorized_response import UnauthorizedResponse

0 commit comments

Comments
 (0)