Skip to content

Commit 4143a56

Browse files
Generate dremio
1 parent da11f75 commit 4143a56

4 files changed

Lines changed: 20 additions & 5 deletions

File tree

‎services/dremio/oas_commit‎

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

‎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
),

0 commit comments

Comments
 (0)