File tree Expand file tree Collapse file tree 4 files changed +66
-0
lines changed
scaleway-async/scaleway_async/autoscaling/v1alpha1
scaleway/scaleway/autoscaling/v1alpha1 Expand file tree Collapse file tree 4 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,12 @@ def unmarshal_InstanceGroup(data: Any) -> InstanceGroup:
159159 else :
160160 args ["error_messages" ] = []
161161
162+ field = data .get ("zone" , None )
163+ if field is not None :
164+ args ["zone" ] = field
165+ else :
166+ args ["zone" ] = None
167+
162168 field = data .get ("created_at" , None )
163169 if field is not None :
164170 args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
@@ -277,6 +283,12 @@ def unmarshal_InstancePolicy(data: Any) -> InstancePolicy:
277283 else :
278284 args ["instance_group_id" ] = None
279285
286+ field = data .get ("zone" , None )
287+ if field is not None :
288+ args ["zone" ] = field
289+ else :
290+ args ["zone" ] = None
291+
280292 field = data .get ("metric" , None )
281293 if field is not None :
282294 args ["metric" ] = unmarshal_Metric (field )
@@ -476,6 +488,12 @@ def unmarshal_InstanceTemplate(data: Any) -> InstanceTemplate:
476488 else :
477489 args ["status" ] = InstanceTemplateStatus .UNKNOWN_STATUS
478490
491+ field = data .get ("zone" , None )
492+ if field is not None :
493+ args ["zone" ] = field
494+ else :
495+ args ["zone" ] = None
496+
479497 field = data .get ("cloud_init" , None )
480498 if field is not None :
481499 args ["cloud_init" ] = field
Original file line number Diff line number Diff line change @@ -357,6 +357,11 @@ class InstanceGroup:
357357 Any configuration errors for dependencies (Load Balancer, Private Network, Instance template etc.).
358358 """
359359
360+ zone : ScwZone
361+ """
362+ Zone for this resource.
363+ """
364+
360365 created_at : Optional [datetime ] = None
361366 """
362367 Date on which the Instance group was created.
@@ -405,6 +410,11 @@ class InstancePolicy:
405410 Instance group ID related to this policy.
406411 """
407412
413+ zone : ScwZone
414+ """
415+ Zone for this resource.
416+ """
417+
408418 metric : Optional [Metric ] = None
409419
410420
@@ -450,6 +460,11 @@ class InstanceTemplate:
450460 Status of Instance template.
451461 """
452462
463+ zone : ScwZone
464+ """
465+ Zone for this resource.
466+ """
467+
453468 image_id : Optional [str ] = None
454469 """
455470 Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template.
Original file line number Diff line number Diff line change @@ -159,6 +159,12 @@ def unmarshal_InstanceGroup(data: Any) -> InstanceGroup:
159159 else :
160160 args ["error_messages" ] = []
161161
162+ field = data .get ("zone" , None )
163+ if field is not None :
164+ args ["zone" ] = field
165+ else :
166+ args ["zone" ] = None
167+
162168 field = data .get ("created_at" , None )
163169 if field is not None :
164170 args ["created_at" ] = parser .isoparse (field ) if isinstance (field , str ) else field
@@ -277,6 +283,12 @@ def unmarshal_InstancePolicy(data: Any) -> InstancePolicy:
277283 else :
278284 args ["instance_group_id" ] = None
279285
286+ field = data .get ("zone" , None )
287+ if field is not None :
288+ args ["zone" ] = field
289+ else :
290+ args ["zone" ] = None
291+
280292 field = data .get ("metric" , None )
281293 if field is not None :
282294 args ["metric" ] = unmarshal_Metric (field )
@@ -476,6 +488,12 @@ def unmarshal_InstanceTemplate(data: Any) -> InstanceTemplate:
476488 else :
477489 args ["status" ] = InstanceTemplateStatus .UNKNOWN_STATUS
478490
491+ field = data .get ("zone" , None )
492+ if field is not None :
493+ args ["zone" ] = field
494+ else :
495+ args ["zone" ] = None
496+
479497 field = data .get ("cloud_init" , None )
480498 if field is not None :
481499 args ["cloud_init" ] = field
Original file line number Diff line number Diff line change @@ -357,6 +357,11 @@ class InstanceGroup:
357357 Any configuration errors for dependencies (Load Balancer, Private Network, Instance template etc.).
358358 """
359359
360+ zone : ScwZone
361+ """
362+ Zone for this resource.
363+ """
364+
360365 created_at : Optional [datetime ] = None
361366 """
362367 Date on which the Instance group was created.
@@ -405,6 +410,11 @@ class InstancePolicy:
405410 Instance group ID related to this policy.
406411 """
407412
413+ zone : ScwZone
414+ """
415+ Zone for this resource.
416+ """
417+
408418 metric : Optional [Metric ] = None
409419
410420
@@ -450,6 +460,11 @@ class InstanceTemplate:
450460 Status of Instance template.
451461 """
452462
463+ zone : ScwZone
464+ """
465+ Zone for this resource.
466+ """
467+
453468 image_id : Optional [str ] = None
454469 """
455470 Instance image ID. Can be an ID of a marketplace or personal image. This image must be compatible with `volume` and `commercial_type` template.
You can’t perform that action at this time.
0 commit comments