Class: TencentCloud::Mongodb::V20190725::CreateAccountUserRequest

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

Overview

CreateAccountUser请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, username = nil, password = nil, mongouserpassword = nil, userdesc = nil, authrole = nil) ⇒ CreateAccountUserRequest

Returns a new instance of CreateAccountUserRequest.



473
474
475
476
477
478
479
480
# File 'lib/v20190725/models.rb', line 473

def initialize(instanceid=nil, username=nil, password=nil, mongouserpassword=nil, userdesc=nil, authrole=nil)
  @InstanceId = instanceid
  @UserName = username
  @Password = password
  @MongoUserPassword = mongouserpassword
  @UserDesc = userdesc
  @AuthRole = authrole
end

Instance Attribute Details

#AuthRoleObject

  • 字符范围[1,64]。
  • 可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。
  • 字符长度范围[8,32]。
  • 至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。

Parameters:

  • InstanceId:

    实例 ID。例如:cmgo-p8vn****。请登录 MongoDB 控制台在实例列表复制实例 ID。

  • UserName:

    新账号名称。其格式要求如下:

  • Password:

    新账号密码。密码复杂度要求如下:

  • MongoUserPassword:

    mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。

  • UserDesc:

    账号备注信息。

  • AuthRole:

    账号的读写权限信息。



471
472
473
# File 'lib/v20190725/models.rb', line 471

def AuthRole
  @AuthRole
end

#InstanceIdObject

  • 字符范围[1,64]。
  • 可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。
  • 字符长度范围[8,32]。
  • 至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。

Parameters:

  • InstanceId:

    实例 ID。例如:cmgo-p8vn****。请登录 MongoDB 控制台在实例列表复制实例 ID。

  • UserName:

    新账号名称。其格式要求如下:

  • Password:

    新账号密码。密码复杂度要求如下:

  • MongoUserPassword:

    mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。

  • UserDesc:

    账号备注信息。

  • AuthRole:

    账号的读写权限信息。



471
472
473
# File 'lib/v20190725/models.rb', line 471

def InstanceId
  @InstanceId
end

#MongoUserPasswordObject

  • 字符范围[1,64]。
  • 可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。
  • 字符长度范围[8,32]。
  • 至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。

Parameters:

  • InstanceId:

    实例 ID。例如:cmgo-p8vn****。请登录 MongoDB 控制台在实例列表复制实例 ID。

  • UserName:

    新账号名称。其格式要求如下:

  • Password:

    新账号密码。密码复杂度要求如下:

  • MongoUserPassword:

    mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。

  • UserDesc:

    账号备注信息。

  • AuthRole:

    账号的读写权限信息。



471
472
473
# File 'lib/v20190725/models.rb', line 471

def MongoUserPassword
  @MongoUserPassword
end

#PasswordObject

  • 字符范围[1,64]。
  • 可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。
  • 字符长度范围[8,32]。
  • 至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。

Parameters:

  • InstanceId:

    实例 ID。例如:cmgo-p8vn****。请登录 MongoDB 控制台在实例列表复制实例 ID。

  • UserName:

    新账号名称。其格式要求如下:

  • Password:

    新账号密码。密码复杂度要求如下:

  • MongoUserPassword:

    mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。

  • UserDesc:

    账号备注信息。

  • AuthRole:

    账号的读写权限信息。



471
472
473
# File 'lib/v20190725/models.rb', line 471

def Password
  @Password
end

#UserDescObject

  • 字符范围[1,64]。
  • 可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。
  • 字符长度范围[8,32]。
  • 至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。

Parameters:

  • InstanceId:

    实例 ID。例如:cmgo-p8vn****。请登录 MongoDB 控制台在实例列表复制实例 ID。

  • UserName:

    新账号名称。其格式要求如下:

  • Password:

    新账号密码。密码复杂度要求如下:

  • MongoUserPassword:

    mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。

  • UserDesc:

    账号备注信息。

  • AuthRole:

    账号的读写权限信息。



471
472
473
# File 'lib/v20190725/models.rb', line 471

def UserDesc
  @UserDesc
end

#UserNameObject

  • 字符范围[1,64]。
  • 可输入[A,Z]、[a,z]、[1,9]范围的字符以及下划线“_”与短划线“-”。
  • 字符长度范围[8,32]。
  • 至少包含字母、数字和特殊字符(叹号“!”、at"@"、井号“#”、百分号“%”、插入符“^”、星号“*”、小括号“()”、下划线“_”)中的两种。

Parameters:

  • InstanceId:

    实例 ID。例如:cmgo-p8vn****。请登录 MongoDB 控制台在实例列表复制实例 ID。

  • UserName:

    新账号名称。其格式要求如下:

  • Password:

    新账号密码。密码复杂度要求如下:

  • MongoUserPassword:

    mongouser 账号对应的密码。mongouser 为系统默认账号,即为创建实例时,设置的密码。

  • UserDesc:

    账号备注信息。

  • AuthRole:

    账号的读写权限信息。



471
472
473
# File 'lib/v20190725/models.rb', line 471

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



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

def deserialize(params)
  @InstanceId = params['InstanceId']
  @UserName = params['UserName']
  @Password = params['Password']
  @MongoUserPassword = params['MongoUserPassword']
  @UserDesc = params['UserDesc']
  unless params['AuthRole'].nil?
    @AuthRole = []
    params['AuthRole'].each do |i|
      auth_tmp = Auth.new
      auth_tmp.deserialize(i)
      @AuthRole << auth_tmp
    end
  end
end