@@ -393,14 +393,18 @@ def __init__(
393393 self ,
394394 available_amount : int = None ,
395395 capacity_reservation_usages : main_models .DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages = None ,
396+ failed_amount : int = None ,
396397 instance_type : str = None ,
398+ locked_amount : int = None ,
397399 total_amount : int = None ,
398400 used_amount : int = None ,
399401 zone_id : str = None ,
400402 ):
401403 self .available_amount = available_amount
402404 self .capacity_reservation_usages = capacity_reservation_usages
405+ self .failed_amount = failed_amount
403406 self .instance_type = instance_type
407+ self .locked_amount = locked_amount
404408 self .total_amount = total_amount
405409 self .used_amount = used_amount
406410 self .zone_id = zone_id
@@ -420,9 +424,15 @@ def to_map(self):
420424 if self .capacity_reservation_usages is not None :
421425 result ['CapacityReservationUsages' ] = self .capacity_reservation_usages .to_map ()
422426
427+ if self .failed_amount is not None :
428+ result ['FailedAmount' ] = self .failed_amount
429+
423430 if self .instance_type is not None :
424431 result ['InstanceType' ] = self .instance_type
425432
433+ if self .locked_amount is not None :
434+ result ['LockedAmount' ] = self .locked_amount
435+
426436 if self .total_amount is not None :
427437 result ['TotalAmount' ] = self .total_amount
428438
@@ -443,9 +453,15 @@ def from_map(self, m: dict = None):
443453 temp_model = main_models .DescribeCapacityReservationsResponseBodyCapacityReservationSetCapacityReservationItemAllocatedResourcesAllocatedResourceCapacityReservationUsages ()
444454 self .capacity_reservation_usages = temp_model .from_map (m .get ('CapacityReservationUsages' ))
445455
456+ if m .get ('FailedAmount' ) is not None :
457+ self .failed_amount = m .get ('FailedAmount' )
458+
446459 if m .get ('InstanceType' ) is not None :
447460 self .instance_type = m .get ('InstanceType' )
448461
462+ if m .get ('LockedAmount' ) is not None :
463+ self .locked_amount = m .get ('LockedAmount' )
464+
449465 if m .get ('TotalAmount' ) is not None :
450466 self .total_amount = m .get ('TotalAmount' )
451467
0 commit comments