diff --git a/scaleway-async/scaleway_async/autoscaling/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/autoscaling/v1alpha1/marshalling.py index 6a575791..37c7f086 100644 --- a/scaleway-async/scaleway_async/autoscaling/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/autoscaling/v1alpha1/marshalling.py @@ -159,6 +159,12 @@ def unmarshal_InstanceGroup(data: Any) -> InstanceGroup: else: args["error_messages"] = [] + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field @@ -277,6 +283,12 @@ def unmarshal_InstancePolicy(data: Any) -> InstancePolicy: else: args["instance_group_id"] = None + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + field = data.get("metric", None) if field is not None: args["metric"] = unmarshal_Metric(field) @@ -476,6 +488,12 @@ def unmarshal_InstanceTemplate(data: Any) -> InstanceTemplate: else: args["status"] = InstanceTemplateStatus.UNKNOWN_STATUS + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + field = data.get("cloud_init", None) if field is not None: args["cloud_init"] = field diff --git a/scaleway-async/scaleway_async/autoscaling/v1alpha1/types.py b/scaleway-async/scaleway_async/autoscaling/v1alpha1/types.py index 846012f9..58bbb50f 100644 --- a/scaleway-async/scaleway_async/autoscaling/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/autoscaling/v1alpha1/types.py @@ -357,6 +357,11 @@ class InstanceGroup: Any configuration errors for dependencies (Load Balancer, Private Network, Instance template etc.). """ + zone: ScwZone + """ + Zone for this resource. + """ + created_at: Optional[datetime] = None """ Date on which the Instance group was created. @@ -405,6 +410,11 @@ class InstancePolicy: Instance group ID related to this policy. """ + zone: ScwZone + """ + Zone for this resource. + """ + metric: Optional[Metric] = None @@ -450,6 +460,11 @@ class InstanceTemplate: Status of Instance template. """ + zone: ScwZone + """ + Zone for this resource. + """ + image_id: Optional[str] = None """ Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template. diff --git a/scaleway/scaleway/autoscaling/v1alpha1/marshalling.py b/scaleway/scaleway/autoscaling/v1alpha1/marshalling.py index 6a575791..37c7f086 100644 --- a/scaleway/scaleway/autoscaling/v1alpha1/marshalling.py +++ b/scaleway/scaleway/autoscaling/v1alpha1/marshalling.py @@ -159,6 +159,12 @@ def unmarshal_InstanceGroup(data: Any) -> InstanceGroup: else: args["error_messages"] = [] + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + field = data.get("created_at", None) if field is not None: args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field @@ -277,6 +283,12 @@ def unmarshal_InstancePolicy(data: Any) -> InstancePolicy: else: args["instance_group_id"] = None + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + field = data.get("metric", None) if field is not None: args["metric"] = unmarshal_Metric(field) @@ -476,6 +488,12 @@ def unmarshal_InstanceTemplate(data: Any) -> InstanceTemplate: else: args["status"] = InstanceTemplateStatus.UNKNOWN_STATUS + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + field = data.get("cloud_init", None) if field is not None: args["cloud_init"] = field diff --git a/scaleway/scaleway/autoscaling/v1alpha1/types.py b/scaleway/scaleway/autoscaling/v1alpha1/types.py index 846012f9..58bbb50f 100644 --- a/scaleway/scaleway/autoscaling/v1alpha1/types.py +++ b/scaleway/scaleway/autoscaling/v1alpha1/types.py @@ -357,6 +357,11 @@ class InstanceGroup: Any configuration errors for dependencies (Load Balancer, Private Network, Instance template etc.). """ + zone: ScwZone + """ + Zone for this resource. + """ + created_at: Optional[datetime] = None """ Date on which the Instance group was created. @@ -405,6 +410,11 @@ class InstancePolicy: Instance group ID related to this policy. """ + zone: ScwZone + """ + Zone for this resource. + """ + metric: Optional[Metric] = None @@ -450,6 +460,11 @@ class InstanceTemplate: Status of Instance template. """ + zone: ScwZone + """ + Zone for this resource. + """ + image_id: Optional[str] = None """ Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template.