Class: TencentCloud::Cvm::V20170312::AllocateHostsRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::AllocateHostsRequest
- Defined in:
- lib/v20170312/models.rb
Overview
AllocateHosts请求参数结构体
Instance Attribute Summary collapse
- #ClientToken ⇒ Object
- #HostChargePrepaid ⇒ Object
- #HostChargeType ⇒ Object
- #HostCount ⇒ Object
- #HostType ⇒ Object
- #Placement ⇒ Object
- #TagSpecification ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(placement = nil, clienttoken = nil, hostchargeprepaid = nil, hostchargetype = nil, hosttype = nil, hostcount = nil, tagspecification = nil) ⇒ AllocateHostsRequest
constructor
A new instance of AllocateHostsRequest.
Constructor Details
#initialize(placement = nil, clienttoken = nil, hostchargeprepaid = nil, hostchargetype = nil, hosttype = nil, hostcount = nil, tagspecification = nil) ⇒ AllocateHostsRequest
Returns a new instance of AllocateHostsRequest.
159 160 161 162 163 164 165 166 167 |
# File 'lib/v20170312/models.rb', line 159 def initialize(placement=nil, clienttoken=nil, hostchargeprepaid=nil, hostchargetype=nil, hosttype=nil, hostcount=nil, =nil) @Placement = placement @ClientToken = clienttoken @HostChargePrepaid = hostchargeprepaid @HostChargeType = hostchargetype @HostType = hosttype @HostCount = hostcount @TagSpecification = end |
Instance Attribute Details
#ClientToken ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def ClientToken @ClientToken end |
#HostChargePrepaid ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def HostChargePrepaid @HostChargePrepaid end |
#HostChargeType ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def HostChargeType @HostChargeType end |
#HostCount ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def HostCount @HostCount end |
#HostType ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def HostType @HostType end |
#Placement ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def Placement @Placement end |
#TagSpecification ⇒ Object
157 158 159 |
# File 'lib/v20170312/models.rb', line 157 def TagSpecification @TagSpecification end |
Instance Method Details
#deserialize(params) ⇒ Object
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/v20170312/models.rb', line 169 def deserialize(params) unless params['Placement'].nil? @Placement = Placement.new @Placement.deserialize(params['Placement']) end @ClientToken = params['ClientToken'] unless params['HostChargePrepaid'].nil? @HostChargePrepaid = ChargePrepaid.new @HostChargePrepaid.deserialize(params['HostChargePrepaid']) end @HostChargeType = params['HostChargeType'] @HostType = params['HostType'] @HostCount = params['HostCount'] unless params['TagSpecification'].nil? @TagSpecification = [] params['TagSpecification'].each do |i| = TagSpecification.new .deserialize(i) @TagSpecification << end end end |