Class: TencentCloud::Tke::V20180525::DescribePostNodeResourcesResponse

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

Overview

DescribePostNodeResources返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(podset = nil, reservedinstanceset = nil, requestid = nil) ⇒ DescribePostNodeResourcesResponse

Returns a new instance of DescribePostNodeResourcesResponse.



8487
8488
8489
8490
8491
# File 'lib/v20180525/models.rb', line 8487

def initialize(podset=nil, reservedinstanceset=nil, requestid=nil)
  @PodSet = podset
  @ReservedInstanceSet = reservedinstanceset
  @RequestId = requestid
end

Instance Attribute Details

#PodSetObject

Parameters:

  • PodSet:

    Pod详情

  • ReservedInstanceSet:

    预留券详情

  • RequestId:

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



8485
8486
8487
# File 'lib/v20180525/models.rb', line 8485

def PodSet
  @PodSet
end

#RequestIdObject

Parameters:

  • PodSet:

    Pod详情

  • ReservedInstanceSet:

    预留券详情

  • RequestId:

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



8485
8486
8487
# File 'lib/v20180525/models.rb', line 8485

def RequestId
  @RequestId
end

#ReservedInstanceSetObject

Parameters:

  • PodSet:

    Pod详情

  • ReservedInstanceSet:

    预留券详情

  • RequestId:

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



8485
8486
8487
# File 'lib/v20180525/models.rb', line 8485

def ReservedInstanceSet
  @ReservedInstanceSet
end

Instance Method Details

#deserialize(params) ⇒ Object



8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
# File 'lib/v20180525/models.rb', line 8493

def deserialize(params)
  unless params['PodSet'].nil?
    @PodSet = []
    params['PodSet'].each do |i|
      supernoderesource_tmp = SuperNodeResource.new
      supernoderesource_tmp.deserialize(i)
      @PodSet << supernoderesource_tmp
    end
  end
  unless params['ReservedInstanceSet'].nil?
    @ReservedInstanceSet = []
    params['ReservedInstanceSet'].each do |i|
      supernoderesource_tmp = SuperNodeResource.new
      supernoderesource_tmp.deserialize(i)
      @ReservedInstanceSet << supernoderesource_tmp
    end
  end
  @RequestId = params['RequestId']
end