Class: TencentCloud::Tke::V20180525::CreateReservedInstancesRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreateReservedInstancesRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreateReservedInstances请求参数结构体
Instance Attribute Summary collapse
- #ClientToken ⇒ Object
- #InstanceChargePrepaid ⇒ Object
- #InstanceCount ⇒ Object
- #InstanceName ⇒ Object
- #ReservedInstanceSpec ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(reservedinstancespec = nil, instancecount = nil, instancechargeprepaid = nil, instancename = nil, clienttoken = nil) ⇒ CreateReservedInstancesRequest
constructor
A new instance of CreateReservedInstancesRequest.
Constructor Details
#initialize(reservedinstancespec = nil, instancecount = nil, instancechargeprepaid = nil, instancename = nil, clienttoken = nil) ⇒ CreateReservedInstancesRequest
Returns a new instance of CreateReservedInstancesRequest.
3669 3670 3671 3672 3673 3674 3675 |
# File 'lib/v20180525/models.rb', line 3669 def initialize(reservedinstancespec=nil, instancecount=nil, instancechargeprepaid=nil, instancename=nil, clienttoken=nil) @ReservedInstanceSpec = reservedinstancespec @InstanceCount = instancecount @InstanceChargePrepaid = instancechargeprepaid @InstanceName = instancename @ClientToken = clienttoken end |
Instance Attribute Details
#ClientToken ⇒ Object
3667 3668 3669 |
# File 'lib/v20180525/models.rb', line 3667 def ClientToken @ClientToken end |
#InstanceChargePrepaid ⇒ Object
3667 3668 3669 |
# File 'lib/v20180525/models.rb', line 3667 def InstanceChargePrepaid @InstanceChargePrepaid end |
#InstanceCount ⇒ Object
3667 3668 3669 |
# File 'lib/v20180525/models.rb', line 3667 def InstanceCount @InstanceCount end |
#InstanceName ⇒ Object
3667 3668 3669 |
# File 'lib/v20180525/models.rb', line 3667 def InstanceName @InstanceName end |
#ReservedInstanceSpec ⇒ Object
3667 3668 3669 |
# File 'lib/v20180525/models.rb', line 3667 def ReservedInstanceSpec @ReservedInstanceSpec end |
Instance Method Details
#deserialize(params) ⇒ Object
3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 |
# File 'lib/v20180525/models.rb', line 3677 def deserialize(params) unless params['ReservedInstanceSpec'].nil? @ReservedInstanceSpec = ReservedInstanceSpec.new @ReservedInstanceSpec.deserialize(params['ReservedInstanceSpec']) end @InstanceCount = params['InstanceCount'] unless params['InstanceChargePrepaid'].nil? @InstanceChargePrepaid = InstanceChargePrepaid.new @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid']) end @InstanceName = params['InstanceName'] @ClientToken = params['ClientToken'] end |