Class: TencentCloud::Sqlserver::V20180328::DescribeAccountsResponse

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

Overview

DescribeAccounts返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, accounts = nil, totalcount = nil, requestid = nil) ⇒ DescribeAccountsResponse



3261
3262
3263
3264
3265
3266
# File 'lib/v20180328/models.rb', line 3261

def initialize(instanceid=nil, accounts=nil, totalcount=nil, requestid=nil)
  @InstanceId = instanceid
  @Accounts = accounts
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#AccountsObject



3259
3260
3261
# File 'lib/v20180328/models.rb', line 3259

def Accounts
  @Accounts
end

#InstanceIdObject



3259
3260
3261
# File 'lib/v20180328/models.rb', line 3259

def InstanceId
  @InstanceId
end

#RequestIdObject



3259
3260
3261
# File 'lib/v20180328/models.rb', line 3259

def RequestId
  @RequestId
end

#TotalCountObject



3259
3260
3261
# File 'lib/v20180328/models.rb', line 3259

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
# File 'lib/v20180328/models.rb', line 3268

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['Accounts'].nil?
    @Accounts = []
    params['Accounts'].each do |i|
      accountdetail_tmp = AccountDetail.new
      accountdetail_tmp.deserialize(i)
      @Accounts << accountdetail_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end