Skip to content
Merged
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 @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/autoscaling/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -405,6 +410,11 @@ class InstancePolicy:
Instance group ID related to this policy.
"""

zone: ScwZone
"""
Zone for this resource.
"""

metric: Optional[Metric] = None


Expand Down Expand Up @@ -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.
Expand Down
18 changes: 18 additions & 0 deletions scaleway/scaleway/autoscaling/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions scaleway/scaleway/autoscaling/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -405,6 +410,11 @@ class InstancePolicy:
Instance group ID related to this policy.
"""

zone: ScwZone
"""
Zone for this resource.
"""

metric: Optional[Metric] = None


Expand Down Expand Up @@ -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.
Expand Down