Class: Google::Apis::AlloydbV1::User
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::User
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb
Overview
Message describing User object.
Instance Attribute Summary collapse
-
#database_roles ⇒ Array<String>
Optional.
-
#keep_extra_roles ⇒ Boolean
(also: #keep_extra_roles?)
Input only.
-
#name ⇒ String
Output only.
-
#password ⇒ String
Input only.
-
#user_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User.
3619 3620 3621 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3619 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
3594 3595 3596 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3594 def database_roles @database_roles end |
#keep_extra_roles ⇒ Boolean Also known as: keep_extra_roles?
Input only. If the user already exists and it has additional roles, keep them
granted.
Corresponds to the JSON property keepExtraRoles
3600 3601 3602 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3600 def keep_extra_roles @keep_extra_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
3607 3608 3609 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3607 def name @name end |
#password ⇒ String
Input only. Password for the user.
Corresponds to the JSON property password
3612 3613 3614 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3612 def password @password end |
#user_type ⇒ String
Optional. Type of this user.
Corresponds to the JSON property userType
3617 3618 3619 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3617 def user_type @user_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3624 3625 3626 3627 3628 3629 3630 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3624 def update!(**args) @database_roles = args[:database_roles] if args.key?(:database_roles) @keep_extra_roles = args[:keep_extra_roles] if args.key?(:keep_extra_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 |