Class: TencentCloud::Cwp::V20180228::DescribeScreenGeneralStatResponse

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

Overview

DescribeScreenGeneralStat返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(machines = nil, protection = nil, requestid = nil) ⇒ DescribeScreenGeneralStatResponse

Returns a new instance of DescribeScreenGeneralStatResponse.



21590
21591
21592
21593
21594
# File 'lib/v20180228/models.rb', line 21590

def initialize(machines=nil, protection=nil, requestid=nil)
  @Machines = machines
  @Protection = protection
  @RequestId = requestid
end

Instance Attribute Details

#MachinesObject

value : 表示对应的数量value : 表示对应的数量

Parameters:

  • Machines:

    name 的值: 在线,关机/离线,未安装,

  • Protection:

    name 的值: 旗舰版,专业版,基础版

  • RequestId:

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



21588
21589
21590
# File 'lib/v20180228/models.rb', line 21588

def Machines
  @Machines
end

#ProtectionObject

value : 表示对应的数量value : 表示对应的数量

Parameters:

  • Machines:

    name 的值: 在线,关机/离线,未安装,

  • Protection:

    name 的值: 旗舰版,专业版,基础版

  • RequestId:

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



21588
21589
21590
# File 'lib/v20180228/models.rb', line 21588

def Protection
  @Protection
end

#RequestIdObject

value : 表示对应的数量value : 表示对应的数量

Parameters:

  • Machines:

    name 的值: 在线,关机/离线,未安装,

  • Protection:

    name 的值: 旗舰版,专业版,基础版

  • RequestId:

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



21588
21589
21590
# File 'lib/v20180228/models.rb', line 21588

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
# File 'lib/v20180228/models.rb', line 21596

def deserialize(params)
  unless params['Machines'].nil?
    @Machines = []
    params['Machines'].each do |i|
      screennamevalue_tmp = ScreenNameValue.new
      screennamevalue_tmp.deserialize(i)
      @Machines << screennamevalue_tmp
    end
  end
  unless params['Protection'].nil?
    @Protection = []
    params['Protection'].each do |i|
      screennamevalue_tmp = ScreenNameValue.new
      screennamevalue_tmp.deserialize(i)
      @Protection << screennamevalue_tmp
    end
  end
  @RequestId = params['RequestId']
end