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.



5150
5151
5152
5153
5154
# File 'lib/v20190904/models.rb', line 5150

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

Instance Attribute Details

#RequestIdObject

Parameters:

  • SwitchList:

    开关列表

  • Total:

    开关总个数

  • RequestId:

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



5148
5149
5150
# File 'lib/v20190904/models.rb', line 5148

def RequestId
  @RequestId
end

#SwitchListObject

Parameters:

  • SwitchList:

    开关列表

  • Total:

    开关总个数

  • RequestId:

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



5148
5149
5150
# File 'lib/v20190904/models.rb', line 5148

def SwitchList
  @SwitchList
end

#TotalObject

Parameters:

  • SwitchList:

    开关列表

  • Total:

    开关总个数

  • RequestId:

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



5148
5149
5150
# File 'lib/v20190904/models.rb', line 5148

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
# File 'lib/v20190904/models.rb', line 5156

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