Class: TencentCloud::Trocket::V20230308::CreateInstanceRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230308/models.rb

Overview

CreateInstance请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instancetype = nil, name = nil, skucode = nil, vpclist = nil, remark = nil, taglist = nil, enablepublic = nil, billingflow = nil, bandwidth = nil, iprules = nil, messageretention = nil, paymode = nil, renewflag = nil, timespan = nil, maxtopicnum = nil, zoneids = nil) ⇒ CreateInstanceRequest

Returns a new instance of CreateInstanceRequest.



346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
# File 'lib/v20230308/models.rb', line 346

def initialize(instancetype=nil, name=nil, skucode=nil, vpclist=nil, remark=nil, taglist=nil, enablepublic=nil, billingflow=nil, bandwidth=nil, iprules=nil, messageretention=nil, paymode=nil, renewflag=nil, timespan=nil, maxtopicnum=nil, zoneids=nil)
  @InstanceType = instancetype
  @Name = name
  @SkuCode = skucode
  @VpcList = vpclist
  @Remark = remark
  @TagList = taglist
  @EnablePublic = enablepublic
  @BillingFlow = billingflow
  @Bandwidth = bandwidth
  @IpRules = iprules
  @MessageRetention = messageretention
  @PayMode = paymode
  @RenewFlag = renewflag
  @TimeSpan = timespan
  @MaxTopicNum = maxtopicnum
  @ZoneIds = zoneids
end

Instance Attribute Details

#BandwidthObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def Bandwidth
  @Bandwidth
end

#BillingFlowObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def BillingFlow
  @BillingFlow
end

#EnablePublicObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def EnablePublic
  @EnablePublic
end

#InstanceTypeObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def InstanceType
  @InstanceType
end

#IpRulesObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def IpRules
  @IpRules
end

#MaxTopicNumObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def MaxTopicNum
  @MaxTopicNum
end

#MessageRetentionObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def MessageRetention
  @MessageRetention
end

#NameObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def Name
  @Name
end

#PayModeObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def PayMode
  @PayMode
end

#RemarkObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def Remark
  @Remark
end

#RenewFlagObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def RenewFlag
  @RenewFlag
end

#SkuCodeObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def SkuCode
  @SkuCode
end

#TagListObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def TagList
  @TagList
end

#TimeSpanObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def TimeSpan
  @TimeSpan
end

#VpcListObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def VpcList
  @VpcList
end

#ZoneIdsObject

  • 默认值和最小值:TopicNumLimit 参数
  • 最大值:TopicNumUpperLimit 参数

Parameters:

  • ZoneIds:

    部署可用区列表,从 DescribeZones 接口返回中的 ZoneInfo 数据结构中获得。



344
345
346
# File 'lib/v20230308/models.rb', line 344

def ZoneIds
  @ZoneIds
end

Instance Method Details

#deserialize(params) ⇒ Object



365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
# File 'lib/v20230308/models.rb', line 365

def deserialize(params)
  @InstanceType = params['InstanceType']
  @Name = params['Name']
  @SkuCode = params['SkuCode']
  unless params['VpcList'].nil?
    @VpcList = []
    params['VpcList'].each do |i|
      vpcinfo_tmp = VpcInfo.new
      vpcinfo_tmp.deserialize(i)
      @VpcList << vpcinfo_tmp
    end
  end
  @Remark = params['Remark']
  unless params['TagList'].nil?
    @TagList = []
    params['TagList'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @TagList << tag_tmp
    end
  end
  @EnablePublic = params['EnablePublic']
  @BillingFlow = params['BillingFlow']
  @Bandwidth = params['Bandwidth']
  unless params['IpRules'].nil?
    @IpRules = []
    params['IpRules'].each do |i|
      iprule_tmp = IpRule.new
      iprule_tmp.deserialize(i)
      @IpRules << iprule_tmp
    end
  end
  @MessageRetention = params['MessageRetention']
  @PayMode = params['PayMode']
  @RenewFlag = params['RenewFlag']
  @TimeSpan = params['TimeSpan']
  @MaxTopicNum = params['MaxTopicNum']
  @ZoneIds = params['ZoneIds']
end