Class: TencentCloud::Cws::V20180312::DescribeSitesResponse

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

Overview

DescribeSites返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, sites = nil, requestid = nil) ⇒ DescribeSitesResponse

Returns a new instance of DescribeSitesResponse.



501
502
503
504
505
# File 'lib/v20180312/models.rb', line 501

def initialize(totalcount=nil, sites=nil, requestid=nil)
  @TotalCount = totalcount
  @Sites = sites
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    站点数量。

  • Sites:

    站点信息列表。

  • RequestId:

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



499
500
501
# File 'lib/v20180312/models.rb', line 499

def RequestId
  @RequestId
end

#SitesObject

Parameters:

  • TotalCount:

    站点数量。

  • Sites:

    站点信息列表。

  • RequestId:

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



499
500
501
# File 'lib/v20180312/models.rb', line 499

def Sites
  @Sites
end

#TotalCountObject

Parameters:

  • TotalCount:

    站点数量。

  • Sites:

    站点信息列表。

  • RequestId:

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



499
500
501
# File 'lib/v20180312/models.rb', line 499

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



507
508
509
510
511
512
513
514
515
516
517
518
# File 'lib/v20180312/models.rb', line 507

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Sites'].nil?
    @Sites = []
    params['Sites'].each do |i|
      site_tmp = Site.new
      site_tmp.deserialize(i)
      @Sites << site_tmp
    end
  end
  @RequestId = params['RequestId']
end