Class: TencentCloud::Cfw::V20190904::DescribeVpcFwGroupSwitchResponse

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

Overview

DescribeVpcFwGroupSwitch返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switchlist = nil, total = nil, requestid = nil) ⇒ DescribeVpcFwGroupSwitchResponse

Returns a new instance of DescribeVpcFwGroupSwitchResponse.



5919
5920
5921
5922
5923
# File 'lib/v20190904/models.rb', line 5919

def initialize(switchlist=nil, total=nil, requestid=nil)
  @SwitchList = switchlist
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • 开关列表

  • 开关总个数

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



5917
5918
5919
# File 'lib/v20190904/models.rb', line 5917

def RequestId
  @RequestId
end

#SwitchListObject

Parameters:

  • 开关列表

  • 开关总个数

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



5917
5918
5919
# File 'lib/v20190904/models.rb', line 5917

def SwitchList
  @SwitchList
end

#TotalObject

Parameters:

  • 开关列表

  • 开关总个数

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



5917
5918
5919
# File 'lib/v20190904/models.rb', line 5917

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
# File 'lib/v20190904/models.rb', line 5925

def deserialize(params)
  unless params['SwitchList'].nil?
    @SwitchList = []
    params['SwitchList'].each do |i|
      fwgroupswitchshow_tmp = FwGroupSwitchShow.new
      fwgroupswitchshow_tmp.deserialize(i)
      @SwitchList << fwgroupswitchshow_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end