Class: Google::Apis::AlloydbV1beta::User
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::User
- 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
-
#database_roles ⇒ Array<String>
Optional.
-
#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.
2748 2749 2750 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2748 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
2730 2731 2732 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2730 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
2736 2737 2738 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2736 def name @name end |
#password ⇒ String
Input only. Password for the user.
Corresponds to the JSON property password
2741 2742 2743 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2741 def password @password end |
#user_type ⇒ String
Optional. Type of this user.
Corresponds to the JSON property userType
2746 2747 2748 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2746 def user_type @user_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2753 2754 2755 2756 2757 2758 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2753 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 |