Class: TencentCloud::Cvm::V20170312::PurchaseReservedInstancesOfferingRequest

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

Overview

PurchaseReservedInstancesOffering请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instancecount = nil, reservedinstancesofferingid = nil, dryrun = nil, clienttoken = nil, reservedinstancename = nil) ⇒ PurchaseReservedInstancesOfferingRequest

Returns a new instance of PurchaseReservedInstancesOfferingRequest.



6990
6991
6992
6993
6994
6995
6996
# File 'lib/v20170312/models.rb', line 6990

def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
  @InstanceCount = instancecount
  @ReservedInstancesOfferingId = reservedinstancesofferingid
  @DryRun = dryrun
  @ClientToken = clienttoken
  @ReservedInstanceName = reservedinstancename
end

Instance Attribute Details

#ClientTokenObject

Parameters:

  • InstanceCount:

    购买预留实例计费数量

  • ReservedInstancesOfferingId:

    预留实例计费配置ID

  • DryRun:

    试运行

  • ClientToken:

    用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
    更多详细信息请参阅:如何保证幂等性

  • ReservedInstanceName:

    预留实例显示名称。
    <li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>



6988
6989
6990
# File 'lib/v20170312/models.rb', line 6988

def ClientToken
  @ClientToken
end

#DryRunObject

Parameters:

  • InstanceCount:

    购买预留实例计费数量

  • ReservedInstancesOfferingId:

    预留实例计费配置ID

  • DryRun:

    试运行

  • ClientToken:

    用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
    更多详细信息请参阅:如何保证幂等性

  • ReservedInstanceName:

    预留实例显示名称。
    <li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>



6988
6989
6990
# File 'lib/v20170312/models.rb', line 6988

def DryRun
  @DryRun
end

#InstanceCountObject

Parameters:

  • InstanceCount:

    购买预留实例计费数量

  • ReservedInstancesOfferingId:

    预留实例计费配置ID

  • DryRun:

    试运行

  • ClientToken:

    用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
    更多详细信息请参阅:如何保证幂等性

  • ReservedInstanceName:

    预留实例显示名称。
    <li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>



6988
6989
6990
# File 'lib/v20170312/models.rb', line 6988

def InstanceCount
  @InstanceCount
end

#ReservedInstanceNameObject

Parameters:

  • InstanceCount:

    购买预留实例计费数量

  • ReservedInstancesOfferingId:

    预留实例计费配置ID

  • DryRun:

    试运行

  • ClientToken:

    用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
    更多详细信息请参阅:如何保证幂等性

  • ReservedInstanceName:

    预留实例显示名称。
    <li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>



6988
6989
6990
# File 'lib/v20170312/models.rb', line 6988

def ReservedInstanceName
  @ReservedInstanceName
end

#ReservedInstancesOfferingIdObject

Parameters:

  • InstanceCount:

    购买预留实例计费数量

  • ReservedInstancesOfferingId:

    预留实例计费配置ID

  • DryRun:

    试运行

  • ClientToken:

    用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
    更多详细信息请参阅:如何保证幂等性

  • ReservedInstanceName:

    预留实例显示名称。
    <li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>



6988
6989
6990
# File 'lib/v20170312/models.rb', line 6988

def ReservedInstancesOfferingId
  @ReservedInstancesOfferingId
end

Instance Method Details

#deserialize(params) ⇒ Object



6998
6999
7000
7001
7002
7003
7004
# File 'lib/v20170312/models.rb', line 6998

def deserialize(params)
  @InstanceCount = params['InstanceCount']
  @ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
  @DryRun = params['DryRun']
  @ClientToken = params['ClientToken']
  @ReservedInstanceName = params['ReservedInstanceName']
end