Class: TencentCloud::Yunjing::V20180228::DescribeComponentsResponse

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

Overview

DescribeComponents返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, components = nil, requestid = nil) ⇒ DescribeComponentsResponse

Returns a new instance of DescribeComponentsResponse.



2105
2106
2107
2108
2109
# File 'lib/v20180228/models.rb', line 2105

def initialize(totalcount=nil, components=nil, requestid=nil)
  @TotalCount = totalcount
  @Components = components
  @RequestId = requestid
end

Instance Attribute Details

#ComponentsObject

Parameters:

  • TotalCount:

    组件列表记录总数。

  • Components:

    组件列表数据。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



2103
2104
2105
# File 'lib/v20180228/models.rb', line 2103

def Components
  @Components
end

#RequestIdObject

Parameters:

  • TotalCount:

    组件列表记录总数。

  • Components:

    组件列表数据。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



2103
2104
2105
# File 'lib/v20180228/models.rb', line 2103

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    组件列表记录总数。

  • Components:

    组件列表数据。

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



2103
2104
2105
# File 'lib/v20180228/models.rb', line 2103

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
# File 'lib/v20180228/models.rb', line 2111

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Components'].nil?
    @Components = []
    params['Components'].each do |i|
      component_tmp = Component.new
      component_tmp.deserialize(i)
      @Components << component_tmp
    end
  end
  @RequestId = params['RequestId']
end