Class: TencentCloud::Cwp::V20180228::DescribeProtectDirRelatedServerResponse

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

Overview

DescribeProtectDirRelatedServer返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list = nil, totalcount = nil, protectservercount = nil, requestid = nil) ⇒ DescribeProtectDirRelatedServerResponse

Returns a new instance of DescribeProtectDirRelatedServerResponse.



19042
19043
19044
19045
19046
19047
# File 'lib/v20180228/models.rb', line 19042

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

Instance Attribute Details

#ListObject

Parameters:

  • List:

    网站关联服务器列表信息

  • TotalCount:

    总数

  • ProtectServerCount:

    已开启防护总数

  • RequestId:

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



19040
19041
19042
# File 'lib/v20180228/models.rb', line 19040

def List
  @List
end

#ProtectServerCountObject

Parameters:

  • List:

    网站关联服务器列表信息

  • TotalCount:

    总数

  • ProtectServerCount:

    已开启防护总数

  • RequestId:

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



19040
19041
19042
# File 'lib/v20180228/models.rb', line 19040

def ProtectServerCount
  @ProtectServerCount
end

#RequestIdObject

Parameters:

  • List:

    网站关联服务器列表信息

  • TotalCount:

    总数

  • ProtectServerCount:

    已开启防护总数

  • RequestId:

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



19040
19041
19042
# File 'lib/v20180228/models.rb', line 19040

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • List:

    网站关联服务器列表信息

  • TotalCount:

    总数

  • ProtectServerCount:

    已开启防护总数

  • RequestId:

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



19040
19041
19042
# File 'lib/v20180228/models.rb', line 19040

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
# File 'lib/v20180228/models.rb', line 19049

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