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.



18724
18725
18726
18727
18728
# File 'lib/v20180525/models.rb', line 18724

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

Instance Attribute Details

#ClientTokenObject

Parameters:

  • ReservedInstanceIds:

    预留券实例ID。可通过 [DescribeReservedInstances](cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。

  • InstanceChargePrepaid:

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

  • ClientToken:

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



18722
18723
18724
# File 'lib/v20180525/models.rb', line 18722

def ClientToken
  @ClientToken
end

#InstanceChargePrepaidObject

Parameters:

  • ReservedInstanceIds:

    预留券实例ID。可通过 [DescribeReservedInstances](cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。

  • InstanceChargePrepaid:

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

  • ClientToken:

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



18722
18723
18724
# File 'lib/v20180525/models.rb', line 18722

def InstanceChargePrepaid
  @InstanceChargePrepaid
end

#ReservedInstanceIdsObject

Parameters:

  • ReservedInstanceIds:

    预留券实例ID。可通过 [DescribeReservedInstances](cloud.tencent.com/document/product/457/99162) 接口返回值中的ReservedInstanceId获取,每次请求实例的上限为100。

  • InstanceChargePrepaid:

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

  • ClientToken:

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



18722
18723
18724
# File 'lib/v20180525/models.rb', line 18722

def ReservedInstanceIds
  @ReservedInstanceIds
end

Instance Method Details

#deserialize(params) ⇒ Object



18730
18731
18732
18733
18734
18735
18736
18737
# File 'lib/v20180525/models.rb', line 18730

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