@@ -7419,6 +7419,196 @@ public class DescribeServiceMirrorResponse : Tea.TeaModel {
74197419    } 
74207420} 
74217421
7422+ public  class  DescribeSpotDiscountHistoryRequest  :  Tea . TeaModel  { 
7423+     public  var  instanceType :  String ? 
7424+ 
7425+     public  var  isProtect :  Bool ? 
7426+ 
7427+     public  override init ( )  { 
7428+         super. init ( ) 
7429+     } 
7430+ 
7431+     public  init ( _ dict:  [ String :  Any ] )  { 
7432+         super. init ( ) 
7433+         self . fromMap ( dict) 
7434+     } 
7435+ 
7436+     public  override func  validate( )  throws  ->  Void  { 
7437+     } 
7438+ 
7439+     public  override func  toMap( )  ->  [ String  :  Any ]  { 
7440+         var  map  =  super. toMap ( ) 
7441+         if  self . instanceType !=  nil  { 
7442+             map [ " InstanceType " ]  =  self . instanceType!
7443+         } 
7444+         if  self . isProtect !=  nil  { 
7445+             map [ " IsProtect " ]  =  self . isProtect!
7446+         } 
7447+         return  map
7448+     } 
7449+ 
7450+     public  override func  fromMap( _ dict:  [ String :  Any ] )  ->  Void  { 
7451+         if  dict. keys. contains ( " InstanceType " )  && dict [ " InstanceType " ]  !=  nil  { 
7452+             self . instanceType =  dict [ " InstanceType " ]  as!  String 
7453+         } 
7454+         if  dict. keys. contains ( " IsProtect " )  && dict [ " IsProtect " ]  !=  nil  { 
7455+             self . isProtect =  dict [ " IsProtect " ]  as!  Bool 
7456+         } 
7457+     } 
7458+ } 
7459+ 
7460+ public  class  DescribeSpotDiscountHistoryResponseBody  :  Tea . TeaModel  { 
7461+     public  class  SpotDiscounts  :  Tea . TeaModel  { 
7462+         public  var  instanceType :  String ? 
7463+ 
7464+         public  var  spotDiscount :  String ? 
7465+ 
7466+         public  var  timestamp :  String ? 
7467+ 
7468+         public  var  zoneId :  String ? 
7469+ 
7470+         public  override init ( )  { 
7471+             super. init ( ) 
7472+         } 
7473+ 
7474+         public  init ( _ dict:  [ String :  Any ] )  { 
7475+             super. init ( ) 
7476+             self . fromMap ( dict) 
7477+         } 
7478+ 
7479+         public  override func  validate( )  throws  ->  Void  { 
7480+         } 
7481+ 
7482+         public  override func  toMap( )  ->  [ String  :  Any ]  { 
7483+             var  map  =  super. toMap ( ) 
7484+             if  self . instanceType !=  nil  { 
7485+                 map [ " InstanceType " ]  =  self . instanceType!
7486+             } 
7487+             if  self . spotDiscount !=  nil  { 
7488+                 map [ " SpotDiscount " ]  =  self . spotDiscount!
7489+             } 
7490+             if  self . timestamp !=  nil  { 
7491+                 map [ " Timestamp " ]  =  self . timestamp!
7492+             } 
7493+             if  self . zoneId !=  nil  { 
7494+                 map [ " ZoneId " ]  =  self . zoneId!
7495+             } 
7496+             return  map
7497+         } 
7498+ 
7499+         public  override func  fromMap( _ dict:  [ String :  Any ] )  ->  Void  { 
7500+             if  dict. keys. contains ( " InstanceType " )  && dict [ " InstanceType " ]  !=  nil  { 
7501+                 self . instanceType =  dict [ " InstanceType " ]  as!  String 
7502+             } 
7503+             if  dict. keys. contains ( " SpotDiscount " )  && dict [ " SpotDiscount " ]  !=  nil  { 
7504+                 self . spotDiscount =  dict [ " SpotDiscount " ]  as!  String 
7505+             } 
7506+             if  dict. keys. contains ( " Timestamp " )  && dict [ " Timestamp " ]  !=  nil  { 
7507+                 self . timestamp =  dict [ " Timestamp " ]  as!  String 
7508+             } 
7509+             if  dict. keys. contains ( " ZoneId " )  && dict [ " ZoneId " ]  !=  nil  { 
7510+                 self . zoneId =  dict [ " ZoneId " ]  as!  String 
7511+             } 
7512+         } 
7513+     } 
7514+     public  var  requestId :  String ? 
7515+ 
7516+     public  var  spotDiscounts :  [ DescribeSpotDiscountHistoryResponseBody . SpotDiscounts ] ? 
7517+ 
7518+     public  override init ( )  { 
7519+         super. init ( ) 
7520+     } 
7521+ 
7522+     public  init ( _ dict:  [ String :  Any ] )  { 
7523+         super. init ( ) 
7524+         self . fromMap ( dict) 
7525+     } 
7526+ 
7527+     public  override func  validate( )  throws  ->  Void  { 
7528+     } 
7529+ 
7530+     public  override func  toMap( )  ->  [ String  :  Any ]  { 
7531+         var  map  =  super. toMap ( ) 
7532+         if  self . requestId !=  nil  { 
7533+             map [ " RequestId " ]  =  self . requestId!
7534+         } 
7535+         if  self . spotDiscounts !=  nil  { 
7536+             var  tmp  :  [ Any ]  =  [ ] 
7537+             for  k  in  self . spotDiscounts! { 
7538+                 tmp. append ( k. toMap ( ) ) 
7539+             } 
7540+             map [ " SpotDiscounts " ]  =  tmp
7541+         } 
7542+         return  map
7543+     } 
7544+ 
7545+     public  override func  fromMap( _ dict:  [ String :  Any ] )  ->  Void  { 
7546+         if  dict. keys. contains ( " RequestId " )  && dict [ " RequestId " ]  !=  nil  { 
7547+             self . requestId =  dict [ " RequestId " ]  as!  String 
7548+         } 
7549+         if  dict. keys. contains ( " SpotDiscounts " )  && dict [ " SpotDiscounts " ]  !=  nil  { 
7550+             var  tmp  :  [ DescribeSpotDiscountHistoryResponseBody . SpotDiscounts ]  =  [ ] 
7551+             for  v  in  dict [ " SpotDiscounts " ]  as!  [ Any ]  { 
7552+                 var  model  =  DescribeSpotDiscountHistoryResponseBody . SpotDiscounts ( ) 
7553+                 if  v !=  nil  { 
7554+                     model. fromMap ( v as!  [ String :  Any ] ) 
7555+                 } 
7556+                 tmp. append ( model) 
7557+             } 
7558+             self . spotDiscounts =  tmp
7559+         } 
7560+     } 
7561+ } 
7562+ 
7563+ public  class  DescribeSpotDiscountHistoryResponse  :  Tea . TeaModel  { 
7564+     public  var  headers :  [ String :  String ] ? 
7565+ 
7566+     public  var  statusCode :  Int32 ? 
7567+ 
7568+     public  var  body :  DescribeSpotDiscountHistoryResponseBody ? 
7569+ 
7570+     public  override init ( )  { 
7571+         super. init ( ) 
7572+     } 
7573+ 
7574+     public  init ( _ dict:  [ String :  Any ] )  { 
7575+         super. init ( ) 
7576+         self . fromMap ( dict) 
7577+     } 
7578+ 
7579+     public  override func  validate( )  throws  ->  Void  { 
7580+         try self . body? . validate ( ) 
7581+     } 
7582+ 
7583+     public  override func  toMap( )  ->  [ String  :  Any ]  { 
7584+         var  map  =  super. toMap ( ) 
7585+         if  self . headers !=  nil  { 
7586+             map [ " headers " ]  =  self . headers!
7587+         } 
7588+         if  self . statusCode !=  nil  { 
7589+             map [ " statusCode " ]  =  self . statusCode!
7590+         } 
7591+         if  self . body !=  nil  { 
7592+             map [ " body " ]  =  self . body? . toMap ( ) 
7593+         } 
7594+         return  map
7595+     } 
7596+ 
7597+     public  override func  fromMap( _ dict:  [ String :  Any ] )  ->  Void  { 
7598+         if  dict. keys. contains ( " headers " )  && dict [ " headers " ]  !=  nil  { 
7599+             self . headers =  dict [ " headers " ]  as!  [ String :  String ] 
7600+         } 
7601+         if  dict. keys. contains ( " statusCode " )  && dict [ " statusCode " ]  !=  nil  { 
7602+             self . statusCode =  dict [ " statusCode " ]  as!  Int32 
7603+         } 
7604+         if  dict. keys. contains ( " body " )  && dict [ " body " ]  !=  nil  { 
7605+             var  model  =  DescribeSpotDiscountHistoryResponseBody ( ) 
7606+             model. fromMap ( dict [ " body " ]  as!  [ String :  Any ] ) 
7607+             self . body =  model
7608+         } 
7609+     } 
7610+ } 
7611+ 
74227612public  class  DevelopServiceRequest  :  Tea . TeaModel  { 
74237613    public  var  exit :  String ? 
74247614
0 commit comments