Skip to content

Commit 1ff0ab5

Browse files
Generator: Update SDK /services/dremio (#10541)
* Generate dremio * chore(dremio): 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 11298e1 commit 1ff0ab5

9 files changed

Lines changed: 46 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
- **Improvement:** `list_record_sets`/`list_zones` docs clarify that records/zones in the `DELETE_SUCCEEDED` state are excluded by default; pass `state[eq]=DELETE_SUCCEEDED` to retrieve them
2020
- **Improvement:** `Label.key`/`CreateLabelPayload.key` now accepts up to 314 characters (previously 63), supporting prefixed label keys (e.g. `example.com/environment`)
2121
- **Breaking Change:** `PartialUpdateZonePayload.extensions` type changed from `ZoneExtensions` to `DomainExtensions`, now also exposing `observability_extension.state`
22+
- `dremio`:
23+
- [v0.2.0](services/dremio/CHANGELOG.md#v020)
24+
- **Feature:** Add `acl` field to models `CreateDremioInstancePayload`, `DremioResponse`, and `UpdateDremioInstancePayload`
25+
- **Breaking Change:** `DremioResponse` now requires an `acl` field; constructing an instance without it will raise a validation error
2226
- `iaas`:
2327
- [v1.7.0](services/iaas/CHANGELOG.md#v170)
2428
- **Docs:** Update documentation for `labels` field constraints across models.

‎services/dremio/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v0.2.0
2+
3+
- **Feature:** Add `acl` field to models `CreateDremioInstancePayload`, `DremioResponse`, and `UpdateDremioInstancePayload`
4+
- **Breaking Change:** `DremioResponse` now requires an `acl` field; constructing an instance without it will raise a validation error
5+
16
## v0.1.0
27

38
- **New**: STACKIT Dremio module can be used to manage STACKIT Dremio instances and users.

‎services/dremio/oas_commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
da4701b7dbe20e984aef89711bb9ba716e19fcba
1+
7f06203ae1280163695cd27b7f353dca0d2d04b8

‎services/dremio/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stackit-dremio"
3-
version = "v0.1.0"
3+
version = "v0.2.0"
44
description = "STACKIT Dremio API"
55
authors = [{name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud"}]
66
requires-python = ">=3.10,<4.0"

‎services/dremio/src/stackit/dremio/api/default_api.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def create_dremio_instance(
116116
"400": "Error",
117117
"401": "Error",
118118
"409": None,
119+
"422": None,
119120
"500": None,
120121
}
121122
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -188,6 +189,7 @@ def create_dremio_instance_with_http_info(
188189
"400": "Error",
189190
"401": "Error",
190191
"409": None,
192+
"422": None,
191193
"500": None,
192194
}
193195
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -260,6 +262,7 @@ def create_dremio_instance_without_preload_content(
260262
"400": "Error",
261263
"401": "Error",
262264
"409": None,
265+
"422": None,
263266
"500": None,
264267
}
265268
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -396,6 +399,7 @@ def create_dremio_user(
396399
"400": "Error",
397400
"401": "Error",
398401
"409": None,
402+
"422": None,
399403
"500": None,
400404
}
401405
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -472,6 +476,7 @@ def create_dremio_user_with_http_info(
472476
"400": "Error",
473477
"401": "Error",
474478
"409": None,
479+
"422": None,
475480
"500": None,
476481
}
477482
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -548,6 +553,7 @@ def create_dremio_user_without_preload_content(
548553
"400": "Error",
549554
"401": "Error",
550555
"409": None,
556+
"422": None,
551557
"500": None,
552558
}
553559
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -684,6 +690,7 @@ def delete_dremio_instance(
684690
"401": "Error",
685691
"404": None,
686692
"409": None,
693+
"422": None,
687694
"500": None,
688695
}
689696
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -757,6 +764,7 @@ def delete_dremio_instance_with_http_info(
757764
"401": "Error",
758765
"404": None,
759766
"409": None,
767+
"422": None,
760768
"500": None,
761769
}
762770
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -830,6 +838,7 @@ def delete_dremio_instance_without_preload_content(
830838
"401": "Error",
831839
"404": None,
832840
"409": None,
841+
"422": None,
833842
"500": None,
834843
}
835844
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -959,6 +968,7 @@ def delete_dremio_user(
959968
"401": "Error",
960969
"404": None,
961970
"409": None,
971+
"422": None,
962972
"500": None,
963973
}
964974
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1036,6 +1046,7 @@ def delete_dremio_user_with_http_info(
10361046
"401": "Error",
10371047
"404": None,
10381048
"409": None,
1049+
"422": None,
10391050
"500": None,
10401051
}
10411052
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -1113,6 +1124,7 @@ def delete_dremio_user_without_preload_content(
11131124
"401": "Error",
11141125
"404": None,
11151126
"409": None,
1127+
"422": None,
11161128
"500": None,
11171129
}
11181130
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2415,6 +2427,7 @@ def update_dremio_instance(
24152427
"401": "Error",
24162428
"404": None,
24172429
"409": None,
2430+
"422": None,
24182431
"500": None,
24192432
}
24202433
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2492,6 +2505,7 @@ def update_dremio_instance_with_http_info(
24922505
"401": "Error",
24932506
"404": None,
24942507
"409": None,
2508+
"422": None,
24952509
"500": None,
24962510
}
24972511
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
@@ -2569,6 +2583,7 @@ def update_dremio_instance_without_preload_content(
25692583
"401": "Error",
25702584
"404": None,
25712585
"409": None,
2586+
"422": None,
25722587
"500": None,
25732588
}
25742589
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)

‎services/dremio/src/stackit/dremio/models/create_dremio_instance_payload.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
from typing import Any, ClassVar, Dict, List, Optional, Set
2020

21-
from pydantic import BaseModel, ConfigDict, Field, field_validator
21+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2222
from pydantic_core import to_jsonable_python
2323
from typing_extensions import Annotated, Self
2424

@@ -30,6 +30,10 @@ class CreateDremioInstancePayload(BaseModel):
3030
CreateDremioInstancePayload
3131
""" # noqa: E501
3232

33+
acl: Optional[List[StrictStr]] = Field(
34+
default=None,
35+
description="The Access Control List (ACL) defining the IPv4 or IPv6 CIDR ranges allowed to connect to the Dremio instance. An empty list allows access from any address. Omitting this field on creation allows access from any address. Omitting it on update preserves the current list. Updates replace the entire list and take effect asynchronously.",
36+
)
3337
authentication: Optional[Authentication] = None
3438
description: Optional[Annotated[str, Field(strict=True, max_length=1024)]] = Field(
3539
default=None,
@@ -38,7 +42,7 @@ class CreateDremioInstancePayload(BaseModel):
3842
display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field(
3943
description="The display name is a short name chosen by the user to identify the resource.", alias="displayName"
4044
)
41-
__properties: ClassVar[List[str]] = ["authentication", "description", "displayName"]
45+
__properties: ClassVar[List[str]] = ["acl", "authentication", "description", "displayName"]
4246

4347
@field_validator("display_name")
4448
def display_name_validate_regular_expression(cls, value):
@@ -103,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
103107

104108
_obj = cls.model_validate(
105109
{
110+
"acl": obj.get("acl"),
106111
"authentication": (
107112
Authentication.from_dict(obj["authentication"]) if obj.get("authentication") is not None else None
108113
),

‎services/dremio/src/stackit/dremio/models/dremio_response.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class DremioResponse(BaseModel):
3333
DremioResponse
3434
""" # noqa: E501
3535

36+
acl: List[StrictStr] = Field(
37+
description="The Access Control List (ACL) defining the IPv4 or IPv6 CIDR ranges allowed to connect to the Dremio instance. An empty list allows access from any address. Omitting this field on creation allows access from any address. Omitting it on update preserves the current list. Updates replace the entire list and take effect asynchronously."
38+
)
3639
authentication: Authentication
3740
create_time: datetime = Field(description="The point in time the resource was created.")
3841
description: Optional[Annotated[str, Field(strict=True, max_length=1024)]] = Field(
@@ -51,6 +54,7 @@ class DremioResponse(BaseModel):
5154
id: UUID = Field(description="A auto generated unique id which identifies the resource.")
5255
state: StrictStr = Field(description="The current state of the resource.")
5356
__properties: ClassVar[List[str]] = [
57+
"acl",
5458
"authentication",
5559
"create_time",
5660
"description",
@@ -152,6 +156,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
152156

153157
_obj = cls.model_validate(
154158
{
159+
"acl": obj.get("acl"),
155160
"authentication": (
156161
Authentication.from_dict(obj["authentication"]) if obj.get("authentication") is not None else None
157162
),

‎services/dremio/src/stackit/dremio/models/update_dremio_instance_payload.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
from typing import Any, ClassVar, Dict, List, Optional, Set
2020

21-
from pydantic import BaseModel, ConfigDict, Field, field_validator
21+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2222
from pydantic_core import to_jsonable_python
2323
from typing_extensions import Annotated, Self
2424

@@ -30,6 +30,10 @@ class UpdateDremioInstancePayload(BaseModel):
3030
UpdateDremioInstancePayload
3131
""" # noqa: E501
3232

33+
acl: Optional[List[StrictStr]] = Field(
34+
default=None,
35+
description="The Access Control List (ACL) defining the IPv4 or IPv6 CIDR ranges allowed to connect to the Dremio instance. An empty list allows access from any address. Omitting this field on creation allows access from any address. Omitting it on update preserves the current list. Updates replace the entire list and take effect asynchronously.",
36+
)
3337
authentication: Optional[Authentication] = None
3438
description: Optional[Annotated[str, Field(strict=True, max_length=1024)]] = Field(
3539
default=None,
@@ -40,7 +44,7 @@ class UpdateDremioInstancePayload(BaseModel):
4044
description="The display name is a short name chosen by the user to identify the resource.",
4145
alias="displayName",
4246
)
43-
__properties: ClassVar[List[str]] = ["authentication", "description", "displayName"]
47+
__properties: ClassVar[List[str]] = ["acl", "authentication", "description", "displayName"]
4448

4549
@field_validator("display_name")
4650
def display_name_validate_regular_expression(cls, value):
@@ -108,6 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
108112

109113
_obj = cls.model_validate(
110114
{
115+
"acl": obj.get("acl"),
111116
"authentication": (
112117
Authentication.from_dict(obj["authentication"]) if obj.get("authentication") is not None else None
113118
),

‎services/dremio/uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)