Class: TencentCloud::Dbbrain::V20191016::DescribeAllUserGroupResponse

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

Overview

DescribeAllUserGroup返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, groups = nil, requestid = nil) ⇒ DescribeAllUserGroupResponse

Returns a new instance of DescribeAllUserGroupResponse.



477
478
479
480
481
# File 'lib/v20191016/models.rb', line 477

def initialize(totalcount=nil, groups=nil, requestid=nil)
  @TotalCount = totalcount
  @Groups = groups
  @RequestId = requestid
end

Instance Attribute Details

#GroupsObject

Parameters:

  • TotalCount:

    组总数。

  • Groups:

    组信息。

  • RequestId:

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



475
476
477
# File 'lib/v20191016/models.rb', line 475

def Groups
  @Groups
end

#RequestIdObject

Parameters:

  • TotalCount:

    组总数。

  • Groups:

    组信息。

  • RequestId:

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



475
476
477
# File 'lib/v20191016/models.rb', line 475

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • TotalCount:

    组总数。

  • Groups:

    组信息。

  • RequestId:

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



475
476
477
# File 'lib/v20191016/models.rb', line 475

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



483
484
485
486
487
488
489
490
491
492
493
494
# File 'lib/v20191016/models.rb', line 483

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['Groups'].nil?
    @Groups = []
    params['Groups'].each do |i|
      groupitem_tmp = GroupItem.new
      groupitem_tmp.deserialize(i)
      @Groups << groupitem_tmp
    end
  end
  @RequestId = params['RequestId']
end