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.



2807
2808
2809
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2807

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

Instance Attribute Details

#database_rolesArray<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>)


2789
2790
2791
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2789

def database_roles
  @database_roles
end

#nameString

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)


2795
2796
2797
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2795

def name
  @name
end

#passwordString

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

Returns:

  • (String)


2800
2801
2802
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2800

def password
  @password
end

#user_typeString

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

Returns:

  • (String)


2805
2806
2807
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2805

def user_type
  @user_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2812
2813
2814
2815
2816
2817
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2812

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