Class: TencentCloud::Cwp::V20180228::DescribeProtectDirListResponse

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

Overview

DescribeProtectDirList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, list = nil, requestid = nil) ⇒ DescribeProtectDirListResponse

Returns a new instance of DescribeProtectDirListResponse.



18966
18967
18968
18969
18970
# File 'lib/v20180228/models.rb', line 18966

def initialize(totalcount=nil, list=nil, requestid=nil)
  @TotalCount = totalcount
  @List = list
  @RequestId = requestid
end

Instance Attribute Details

#ListObject

Parameters:

  • 总数

  • 防护目录列表信息

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



18964
18965
18966
# File 'lib/v20180228/models.rb', line 18964

def List
  @List
end

#RequestIdObject

Parameters:

  • 总数

  • 防护目录列表信息

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



18964
18965
18966
# File 'lib/v20180228/models.rb', line 18964

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • 总数

  • 防护目录列表信息

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



18964
18965
18966
# File 'lib/v20180228/models.rb', line 18964

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
# File 'lib/v20180228/models.rb', line 18972

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['List'].nil?
    @List = []
    params['List'].each do |i|
      protectdirinfo_tmp = ProtectDirInfo.new
      protectdirinfo_tmp.deserialize(i)
      @List << protectdirinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end