diff --git a/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py b/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py index ef704f715..ac1f970dc 100644 --- a/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py +++ b/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py @@ -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) @@ -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) @@ -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) diff --git a/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py b/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py index 20cb571ef..c7115e293 100644 --- a/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py +++ b/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py @@ -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 @@ -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: @@ -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: diff --git a/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py b/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py index ef704f715..ac1f970dc 100644 --- a/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py +++ b/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py @@ -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) @@ -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) @@ -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) diff --git a/scaleway/scaleway/datawarehouse/v1beta1/types.py b/scaleway/scaleway/datawarehouse/v1beta1/types.py index 20cb571ef..c7115e293 100644 --- a/scaleway/scaleway/datawarehouse/v1beta1/types.py +++ b/scaleway/scaleway/datawarehouse/v1beta1/types.py @@ -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 @@ -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: @@ -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: