Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ def unmarshal_Endpoint(data: Any) -> Endpoint:
else:
args["services"] = []

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("private_network", None)
if field is not None:
args["private_network"] = unmarshal_PrivateNetworkDetails(field)
Expand Down Expand Up @@ -196,6 +202,18 @@ def unmarshal_Database(data: Any) -> Database:
else:
args["size"] = 0

field = data.get("deployment_id", None)
if field is not None:
args["deployment_id"] = field
else:
args["deployment_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

return Database(**args)


Expand Down Expand Up @@ -334,6 +352,18 @@ def unmarshal_User(data: Any) -> User:
else:
args["is_admin"] = False

field = data.get("deployment_id", None)
if field is not None:
args["deployment_id"] = field
else:
args["deployment_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

return User(**args)


Expand Down
25 changes: 25 additions & 0 deletions scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ class Endpoint:
List of services associated with the endpoint.
"""

region: ScwRegion
"""
Region of the deployment.
"""

private_network: Optional[PrivateNetworkDetails] = None

public: Optional[EndpointPublicDetails] = None
Expand All @@ -165,6 +170,16 @@ class Database:
Size of the database.
"""

deployment_id: str
"""
Identifier of the deployment.
"""

region: ScwRegion
"""
Region of the deployment.
"""


@dataclass
class Deployment:
Expand Down Expand Up @@ -304,6 +319,16 @@ class User:
Indicates if the user is an administrator.
"""

deployment_id: str
"""
Identifier of the deployment.
"""

region: ScwRegion
"""
Region of the deployment.
"""


@dataclass
class Version:
Expand Down
30 changes: 30 additions & 0 deletions scaleway/scaleway/datawarehouse/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ def unmarshal_Endpoint(data: Any) -> Endpoint:
else:
args["services"] = []

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("private_network", None)
if field is not None:
args["private_network"] = unmarshal_PrivateNetworkDetails(field)
Expand Down Expand Up @@ -196,6 +202,18 @@ def unmarshal_Database(data: Any) -> Database:
else:
args["size"] = 0

field = data.get("deployment_id", None)
if field is not None:
args["deployment_id"] = field
else:
args["deployment_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

return Database(**args)


Expand Down Expand Up @@ -334,6 +352,18 @@ def unmarshal_User(data: Any) -> User:
else:
args["is_admin"] = False

field = data.get("deployment_id", None)
if field is not None:
args["deployment_id"] = field
else:
args["deployment_id"] = None

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

return User(**args)


Expand Down
25 changes: 25 additions & 0 deletions scaleway/scaleway/datawarehouse/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ class Endpoint:
List of services associated with the endpoint.
"""

region: ScwRegion
"""
Region of the deployment.
"""

private_network: Optional[PrivateNetworkDetails] = None

public: Optional[EndpointPublicDetails] = None
Expand All @@ -165,6 +170,16 @@ class Database:
Size of the database.
"""

deployment_id: str
"""
Identifier of the deployment.
"""

region: ScwRegion
"""
Region of the deployment.
"""


@dataclass
class Deployment:
Expand Down Expand Up @@ -304,6 +319,16 @@ class User:
Indicates if the user is an administrator.
"""

deployment_id: str
"""
Identifier of the deployment.
"""

region: ScwRegion
"""
Region of the deployment.
"""


@dataclass
class Version:
Expand Down
Loading