Class: TencentCloud::Tke::V20180525::RenewReservedInstancesRequest

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

Overview

RenewReservedInstances请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reservedinstanceids = nil, instancechargeprepaid = nil, clienttoken = nil) ⇒ RenewReservedInstancesRequest

Returns a new instance of RenewReservedInstancesRequest.



17375
17376
17377
17378
17379
# File 'lib/v20180525/models.rb', line 17375

def initialize(reservedinstanceids=nil, instancechargeprepaid=nil, clienttoken=nil)
  @ReservedInstanceIds = reservedinstanceids
  @InstanceChargePrepaid = instancechargeprepaid
  @ClientToken = clienttoken
end

Instance Attribute Details

#ClientTokenObject

Parameters:

  • ReservedInstanceIds:

    预留券实例ID,每次请求实例的上限为100。

  • InstanceChargePrepaid:

    预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。

  • ClientToken:

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



17373
17374
17375
# File 'lib/v20180525/models.rb', line 17373

def ClientToken
  @ClientToken
end

#InstanceChargePrepaidObject

Parameters:

  • ReservedInstanceIds:

    预留券实例ID,每次请求实例的上限为100。

  • InstanceChargePrepaid:

    预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。

  • ClientToken:

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



17373
17374
17375
# File 'lib/v20180525/models.rb', line 17373

def InstanceChargePrepaid
  @InstanceChargePrepaid
end

#ReservedInstanceIdsObject

Parameters:

  • ReservedInstanceIds:

    预留券实例ID,每次请求实例的上限为100。

  • InstanceChargePrepaid:

    预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。

  • ClientToken:

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



17373
17374
17375
# File 'lib/v20180525/models.rb', line 17373

def ReservedInstanceIds
  @ReservedInstanceIds
end

Instance Method Details

#deserialize(params) ⇒ Object



17381
17382
17383
17384
17385
17386
17387
17388
# File 'lib/v20180525/models.rb', line 17381

def deserialize(params)
  @ReservedInstanceIds = params['ReservedInstanceIds']
  unless params['InstanceChargePrepaid'].nil?
    @InstanceChargePrepaid = InstanceChargePrepaid.new
    @InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
  end
  @ClientToken = params['ClientToken']
end