Class: TencentCloud::Cloudhsm::V20191112::DescribeUsgResponse

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

Overview

DescribeUsg返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sglist = nil, totalcount = nil, requestid = nil) ⇒ DescribeUsgResponse

Returns a new instance of DescribeUsgResponse.



273
274
275
276
277
# File 'lib/v20191112/models.rb', line 273

def initialize(sglist=nil, totalcount=nil, requestid=nil)
  @SgList = sglist
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • SgList:

    用户的安全组列表

  • TotalCount:

    返回的安全组数量

  • RequestId:

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



271
272
273
# File 'lib/v20191112/models.rb', line 271

def RequestId
  @RequestId
end

#SgListObject

Parameters:

  • SgList:

    用户的安全组列表

  • TotalCount:

    返回的安全组数量

  • RequestId:

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



271
272
273
# File 'lib/v20191112/models.rb', line 271

def SgList
  @SgList
end

#TotalCountObject

Parameters:

  • SgList:

    用户的安全组列表

  • TotalCount:

    返回的安全组数量

  • RequestId:

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



271
272
273
# File 'lib/v20191112/models.rb', line 271

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/v20191112/models.rb', line 279

def deserialize(params)
  unless params['SgList'].nil?
    @SgList = []
    params['SgList'].each do |i|
      sgunit_tmp = SgUnit.new
      sgunit_tmp.deserialize(i)
      @SgList << sgunit_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end