stackit-dns 0.3.1__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/PKG-INFO +1 -1
  2. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/pyproject.toml +1 -1
  3. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/api_client.py +1 -1
  4. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/configuration.py +6 -2
  5. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/create_record_set_payload.py +6 -2
  6. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/record_set.py +31 -3
  7. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/LICENSE.md +0 -0
  8. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/NOTICE.txt +0 -0
  9. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/README.md +0 -0
  10. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/__init__.py +0 -0
  11. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/api/__init__.py +0 -0
  12. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/api/default_api.py +0 -0
  13. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/api_response.py +0 -0
  14. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/exceptions.py +0 -0
  15. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/__init__.py +0 -0
  16. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/clone_zone_payload.py +0 -0
  17. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/create_label_payload.py +0 -0
  18. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/create_label_response.py +0 -0
  19. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/create_zone_payload.py +0 -0
  20. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/delete_label_response.py +0 -0
  21. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/domain_extensions.py +0 -0
  22. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/domain_observability_extension.py +0 -0
  23. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/error_message.py +0 -0
  24. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/export_record_sets_payload.py +0 -0
  25. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/import_record_sets_payload.py +0 -0
  26. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/import_record_sets_response.py +0 -0
  27. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/import_summary.py +0 -0
  28. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/label.py +0 -0
  29. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/list_labels_response.py +0 -0
  30. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/list_record_sets_response.py +0 -0
  31. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/list_zones_response.py +0 -0
  32. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/message.py +0 -0
  33. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/move_code_response.py +0 -0
  34. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/move_zone_payload.py +0 -0
  35. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/partial_update_record_payload.py +0 -0
  36. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/partial_update_record_set_payload.py +0 -0
  37. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/partial_update_zone_payload.py +0 -0
  38. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/record.py +0 -0
  39. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/record_data_exchange.py +0 -0
  40. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/record_payload.py +0 -0
  41. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/record_set_response.py +0 -0
  42. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/validate_move_code_payload.py +0 -0
  43. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone.py +0 -0
  44. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone_data_exchange.py +0 -0
  45. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone_extensions.py +0 -0
  46. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone_models_import_record_model.py +0 -0
  47. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone_models_import_zone_json.py +0 -0
  48. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone_observability_extension.py +0 -0
  49. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/models/zone_response.py +0 -0
  50. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/py.typed +0 -0
  51. {stackit_dns-0.3.1 → stackit_dns-0.4.0}/src/stackit/dns/rest.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stackit-dns
3
- Version: 0.3.1
3
+ Version: 0.4.0
4
4
  Summary: STACKIT DNS API
5
5
  Author: STACKIT Developer Tools
6
6
  Author-email: developer-tools@stackit.cloud
@@ -3,7 +3,7 @@ name = "stackit-dns"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "stackit-dns"
6
- version = "v0.3.1"
6
+ version = "v0.4.0"
7
7
  authors = ["STACKIT Developer Tools <developer-tools@stackit.cloud>"]
8
8
  description = "STACKIT DNS API"
9
9
  readme = "README.md"
@@ -82,7 +82,7 @@ class ApiClient:
82
82
  self.default_headers[header_name] = header_value
83
83
  self.cookie = cookie
84
84
  # Set default User-Agent.
85
- self.user_agent = "OpenAPI-Generator/1.0.0/python"
85
+ self.user_agent = "stackit-sdk-python/dns"
86
86
 
87
87
  def __enter__(self):
88
88
  return self
@@ -1,5 +1,10 @@
1
1
  # coding: utf-8
2
2
 
3
+ import sys
4
+
5
+ import os
6
+
7
+
3
8
  """
4
9
  STACKIT DNS API
5
10
 
@@ -12,8 +17,6 @@
12
17
  Do not edit the class manually.
13
18
  """ # noqa: E501 docstring might be too long
14
19
 
15
- import os
16
-
17
20
 
18
21
  class HostConfiguration:
19
22
  def __init__(
@@ -30,6 +33,7 @@ class HostConfiguration:
30
33
  "as a function argument instead of being set in the client configuration.\n"
31
34
  "Once all services have migrated, the methods to specify the region in the client configuration "
32
35
  "will be removed.",
36
+ file=sys.stderr,
33
37
  )
34
38
  """Constructor
35
39
  """
@@ -33,7 +33,7 @@ class CreateRecordSetPayload(BaseModel):
33
33
  default=None, description="user comment"
34
34
  )
35
35
  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."
37
37
  )
38
38
  records: List[RecordPayload] = Field(description="records")
39
39
  ttl: Optional[Annotated[int, Field(le=99999999, strict=True, ge=60)]] = Field(
@@ -68,10 +68,14 @@ class CreateRecordSetPayload(BaseModel):
68
68
  "URI",
69
69
  "CERT",
70
70
  "SVCB",
71
+ "TYPE",
72
+ "CSYNC",
73
+ "HINFO",
74
+ "HTTPS",
71
75
  ]
72
76
  ):
73
77
  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')"
75
79
  )
76
80
  return value
77
81
 
@@ -45,7 +45,7 @@ class RecordSet(BaseModel):
45
45
  )
46
46
  id: StrictStr = Field(description="rr set id")
47
47
  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."
49
49
  )
50
50
  records: Annotated[List[Record], Field(min_length=1)] = Field(description="records")
51
51
  state: StrictStr = Field(description="record set state")
@@ -93,9 +93,37 @@ class RecordSet(BaseModel):
93
93
  @field_validator("type")
94
94
  def type_validate_enum(cls, value):
95
95
  """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
+ ):
97
125
  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')"
99
127
  )
100
128
  return value
101
129
 
File without changes
File without changes
File without changes