Class: TencentCloud::Tke::V20180525::DescribeReservedInstancesResponse

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

Overview

DescribeReservedInstances返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, reservedinstanceset = nil, requestid = nil) ⇒ DescribeReservedInstancesResponse

Returns a new instance of DescribeReservedInstancesResponse.



9961
9962
9963
9964
9965
# File 'lib/v20180525/models.rb', line 9961

def initialize(totalcount=nil, reservedinstanceset=nil, requestid=nil)
  @TotalCount = totalcount
  @ReservedInstanceSet = reservedinstanceset
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    总数。

  • ReservedInstanceSet:

    预留实例列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9959
9960
9961
# File 'lib/v20180525/models.rb', line 9959

def RequestId
  @RequestId
end

#ReservedInstanceSetObject

Parameters:

  • TotalCount:

    总数。

  • ReservedInstanceSet:

    预留实例列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9959
9960
9961
# File 'lib/v20180525/models.rb', line 9959

def ReservedInstanceSet
  @ReservedInstanceSet
end

#TotalCountObject

Parameters:

  • TotalCount:

    总数。

  • ReservedInstanceSet:

    预留实例列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9959
9960
9961
# File 'lib/v20180525/models.rb', line 9959

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
# File 'lib/v20180525/models.rb', line 9967

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['ReservedInstanceSet'].nil?
    @ReservedInstanceSet = []
    params['ReservedInstanceSet'].each do |i|
      reservedinstance_tmp = ReservedInstance.new
      reservedinstance_tmp.deserialize(i)
      @ReservedInstanceSet << reservedinstance_tmp
    end
  end
  @RequestId = params['RequestId']
end