Class: TencentCloud::Cwp::V20180228::DescribeAssetWebLocationListResponse

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

Overview

DescribeAssetWebLocationList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, locations = nil, requestid = nil) ⇒ DescribeAssetWebLocationListResponse

Returns a new instance of DescribeAssetWebLocationListResponse.



10814
10815
10816
10817
10818
# File 'lib/v20180228/models.rb', line 10814

def initialize(total=nil, locations=nil, requestid=nil)
  @Total = total
  @Locations = locations
  @RequestId = requestid
end

Instance Attribute Details

#LocationsObject

Parameters:

  • Total:

    记录总数

  • Locations:

    站点列表

  • RequestId:

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



10812
10813
10814
# File 'lib/v20180228/models.rb', line 10812

def Locations
  @Locations
end

#RequestIdObject

Parameters:

  • Total:

    记录总数

  • Locations:

    站点列表

  • RequestId:

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



10812
10813
10814
# File 'lib/v20180228/models.rb', line 10812

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Total:

    记录总数

  • Locations:

    站点列表

  • RequestId:

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



10812
10813
10814
# File 'lib/v20180228/models.rb', line 10812

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
# File 'lib/v20180228/models.rb', line 10820

def deserialize(params)
  @Total = params['Total']
  unless params['Locations'].nil?
    @Locations = []
    params['Locations'].each do |i|
      assetweblocationbaseinfo_tmp = AssetWebLocationBaseInfo.new
      assetweblocationbaseinfo_tmp.deserialize(i)
      @Locations << assetweblocationbaseinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end