Class: TencentCloud::Cam::V20190116::DescribeSubAccountsResponse

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

Overview

DescribeSubAccounts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subaccounts = nil, requestid = nil) ⇒ DescribeSubAccountsResponse

Returns a new instance of DescribeSubAccountsResponse.



1923
1924
1925
1926
# File 'lib/v20190116/models.rb', line 1923

def initialize(subaccounts=nil, requestid=nil)
  @SubAccounts = subaccounts
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • SubAccounts:

    子用户列表

  • RequestId:

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



1921
1922
1923
# File 'lib/v20190116/models.rb', line 1921

def RequestId
  @RequestId
end

#SubAccountsObject

Parameters:

  • SubAccounts:

    子用户列表

  • RequestId:

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



1921
1922
1923
# File 'lib/v20190116/models.rb', line 1921

def SubAccounts
  @SubAccounts
end

Instance Method Details

#deserialize(params) ⇒ Object



1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
# File 'lib/v20190116/models.rb', line 1928

def deserialize(params)
  unless params['SubAccounts'].nil?
    @SubAccounts = []
    params['SubAccounts'].each do |i|
      subaccountuser_tmp = SubAccountUser.new
      subaccountuser_tmp.deserialize(i)
      @SubAccounts << subaccountuser_tmp
    end
  end
  @RequestId = params['RequestId']
end