Class: Google::Apis::AlloydbV1beta::User

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Overview

Message describing User object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



3370
3371
3372
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3370

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#database_roles ⇒ Array<String>

Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions. Corresponds to the JSON property databaseRoles

Returns:

  • (Array<String>)


3352
3353
3354
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3352

def database_roles
  @database_roles
end

#name ⇒ String

Output only. Name of the resource in the form of projects/project/locations/ location/cluster/cluster/users/user. Corresponds to the JSON property name

Returns:

  • (String)


3358
3359
3360
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3358

def name
  @name
end

#password ⇒ String

Input only. Password for the user. Corresponds to the JSON property password

Returns:

  • (String)


3363
3364
3365
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3363

def password
  @password
end

#user_type ⇒ String

Optional. Type of this user. Corresponds to the JSON property userType

Returns:

  • (String)


3368
3369
3370
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3368

def user_type
  @user_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3375
3376
3377
3378
3379
3380
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3375

def update!(**args)
  @database_roles = args[:database_roles] if args.key?(:database_roles)
  @name = args[:name] if args.key?(:name)
  @password = args[:password] if args.key?(:password)
  @user_type = args[:user_type] if args.key?(:user_type)
end