Class: TencentCloud::Cdb::V20170320::CreateAccountsRequest

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

Overview

CreateAccounts请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, accounts = nil, password = nil, description = nil, maxuserconnections = nil) ⇒ CreateAccountsRequest

Returns a new instance of CreateAccountsRequest.



2313
2314
2315
2316
2317
2318
2319
# File 'lib/v20170320/models.rb', line 2313

def initialize(instanceid=nil, accounts=nil, password=nil, description=nil, maxuserconnections=nil)
  @InstanceId = instanceid
  @Accounts = accounts
  @Password = password
  @Description = description
  @MaxUserConnections = maxuserconnections
end

Instance Attribute Details

#AccountsObject

说明:

  1. 在8 ~ 64位字符数以内(推荐12位以上)。

  2. 至少包含其中两项:小写字母 a ~ z 或 大写字母 A ~ Z。数字0 ~ 9。_+-,&=!@#$%^*().|。

  3. 不能包含非法字符。

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • Accounts:

    云数据库账号。

  • Password:

    新账户的密码。

  • Description:

    备注信息。最多支持输入255个字符。

  • MaxUserConnections:

    新账户最大可用连接数,默认值为10240,最大可设置值为10240。



2311
2312
2313
# File 'lib/v20170320/models.rb', line 2311

def Accounts
  @Accounts
end

#DescriptionObject

说明:

  1. 在8 ~ 64位字符数以内(推荐12位以上)。

  2. 至少包含其中两项:小写字母 a ~ z 或 大写字母 A ~ Z。数字0 ~ 9。_+-,&=!@#$%^*().|。

  3. 不能包含非法字符。

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • Accounts:

    云数据库账号。

  • Password:

    新账户的密码。

  • Description:

    备注信息。最多支持输入255个字符。

  • MaxUserConnections:

    新账户最大可用连接数,默认值为10240,最大可设置值为10240。



2311
2312
2313
# File 'lib/v20170320/models.rb', line 2311

def Description
  @Description
end

#InstanceIdObject

说明:

  1. 在8 ~ 64位字符数以内(推荐12位以上)。

  2. 至少包含其中两项:小写字母 a ~ z 或 大写字母 A ~ Z。数字0 ~ 9。_+-,&=!@#$%^*().|。

  3. 不能包含非法字符。

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • Accounts:

    云数据库账号。

  • Password:

    新账户的密码。

  • Description:

    备注信息。最多支持输入255个字符。

  • MaxUserConnections:

    新账户最大可用连接数,默认值为10240,最大可设置值为10240。



2311
2312
2313
# File 'lib/v20170320/models.rb', line 2311

def InstanceId
  @InstanceId
end

#MaxUserConnectionsObject

说明:

  1. 在8 ~ 64位字符数以内(推荐12位以上)。

  2. 至少包含其中两项:小写字母 a ~ z 或 大写字母 A ~ Z。数字0 ~ 9。_+-,&=!@#$%^*().|。

  3. 不能包含非法字符。

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • Accounts:

    云数据库账号。

  • Password:

    新账户的密码。

  • Description:

    备注信息。最多支持输入255个字符。

  • MaxUserConnections:

    新账户最大可用连接数,默认值为10240,最大可设置值为10240。



2311
2312
2313
# File 'lib/v20170320/models.rb', line 2311

def MaxUserConnections
  @MaxUserConnections
end

#PasswordObject

说明:

  1. 在8 ~ 64位字符数以内(推荐12位以上)。

  2. 至少包含其中两项:小写字母 a ~ z 或 大写字母 A ~ Z。数字0 ~ 9。_+-,&=!@#$%^*().|。

  3. 不能包含非法字符。

Parameters:

  • InstanceId:

    实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。

  • Accounts:

    云数据库账号。

  • Password:

    新账户的密码。

  • Description:

    备注信息。最多支持输入255个字符。

  • MaxUserConnections:

    新账户最大可用连接数,默认值为10240,最大可设置值为10240。



2311
2312
2313
# File 'lib/v20170320/models.rb', line 2311

def Password
  @Password
end

Instance Method Details

#deserialize(params) ⇒ Object



2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
# File 'lib/v20170320/models.rb', line 2321

def deserialize(params)
  @InstanceId = params['InstanceId']
  unless params['Accounts'].nil?
    @Accounts = []
    params['Accounts'].each do |i|
       = .new
      .deserialize(i)
      @Accounts << 
    end
  end
  @Password = params['Password']
  @Description = params['Description']
  @MaxUserConnections = params['MaxUserConnections']
end