Class: TencentCloud::Rum::V20210622::CreateTawInstanceRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Rum::V20210622::CreateTawInstanceRequest
- Defined in:
- lib/v20210622/models.rb
Overview
CreateTawInstance请求参数结构体
Instance Attribute Summary collapse
- #AreaId ⇒ Object
- #AutoRenewalThreshold ⇒ Object
- #AutoRenewalType ⇒ Object
- #BuyingChannel ⇒ Object
- #ChargeType ⇒ Object
- #CountNum ⇒ Object
- #DataRetentionDays ⇒ Object
- #InstanceDesc ⇒ Object
- #InstanceName ⇒ Object
- #InstanceType ⇒ Object
- #PeriodRetain ⇒ Object
- #ResourcePackageNum ⇒ Object
- #ResourcePackageType ⇒ Object
- #Tags ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(areaid = nil, chargetype = nil, dataretentiondays = nil, instancename = nil, tags = nil, instancedesc = nil, countnum = nil, periodretain = nil, buyingchannel = nil, resourcepackagetype = nil, resourcepackagenum = nil, instancetype = nil, autorenewaltype = nil, autorenewalthreshold = nil) ⇒ CreateTawInstanceRequest
constructor
A new instance of CreateTawInstanceRequest.
Constructor Details
#initialize(areaid = nil, chargetype = nil, dataretentiondays = nil, instancename = nil, tags = nil, instancedesc = nil, countnum = nil, periodretain = nil, buyingchannel = nil, resourcepackagetype = nil, resourcepackagenum = nil, instancetype = nil, autorenewaltype = nil, autorenewalthreshold = nil) ⇒ CreateTawInstanceRequest
Returns a new instance of CreateTawInstanceRequest.
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/v20210622/models.rb', line 208 def initialize(areaid=nil, chargetype=nil, dataretentiondays=nil, instancename=nil, =nil, instancedesc=nil, countnum=nil, periodretain=nil, =nil, resourcepackagetype=nil, resourcepackagenum=nil, instancetype=nil, autorenewaltype=nil, autorenewalthreshold=nil) @AreaId = areaid @ChargeType = chargetype @DataRetentionDays = dataretentiondays @InstanceName = instancename @Tags = @InstanceDesc = instancedesc @CountNum = countnum @PeriodRetain = periodretain @BuyingChannel = @ResourcePackageType = resourcepackagetype @ResourcePackageNum = resourcepackagenum @InstanceType = instancetype @AutoRenewalType = autorenewaltype @AutoRenewalThreshold = autorenewalthreshold end |
Instance Attribute Details
#AreaId ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def AreaId @AreaId end |
#AutoRenewalThreshold ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def AutoRenewalThreshold @AutoRenewalThreshold end |
#AutoRenewalType ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def AutoRenewalType @AutoRenewalType end |
#BuyingChannel ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def BuyingChannel @BuyingChannel end |
#ChargeType ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def ChargeType @ChargeType end |
#CountNum ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def CountNum @CountNum end |
#DataRetentionDays ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def DataRetentionDays @DataRetentionDays end |
#InstanceDesc ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def InstanceDesc @InstanceDesc end |
#InstanceName ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def InstanceName @InstanceName end |
#InstanceType ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def InstanceType @InstanceType end |
#PeriodRetain ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def PeriodRetain @PeriodRetain end |
#ResourcePackageNum ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def ResourcePackageNum @ResourcePackageNum end |
#ResourcePackageType ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def ResourcePackageType @ResourcePackageType end |
#Tags ⇒ Object
206 207 208 |
# File 'lib/v20210622/models.rb', line 206 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/v20210622/models.rb', line 225 def deserialize(params) @AreaId = params['AreaId'] @ChargeType = params['ChargeType'] @DataRetentionDays = params['DataRetentionDays'] @InstanceName = params['InstanceName'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @InstanceDesc = params['InstanceDesc'] @CountNum = params['CountNum'] @PeriodRetain = params['PeriodRetain'] @BuyingChannel = params['BuyingChannel'] @ResourcePackageType = params['ResourcePackageType'] @ResourcePackageNum = params['ResourcePackageNum'] @InstanceType = params['InstanceType'] @AutoRenewalType = params['AutoRenewalType'] @AutoRenewalThreshold = params['AutoRenewalThreshold'] end |