Class: Google::Apis::SpannerV1::DatabaseRole
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::DatabaseRole
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
A Cloud Spanner database role.
Instance Attribute Summary collapse
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatabaseRole
constructor
A new instance of DatabaseRole.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatabaseRole
Returns a new instance of DatabaseRole.
996 997 998 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 996 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Required. The name of the database role. Values are of the form projects//
instances//databases//databaseRoles/role, where is as specified in the
CREATE ROLE DDL statement. This name can be passed to Get/Set IAMPolicy
methods to identify the database role.
Corresponds to the JSON property name
994 995 996 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 994 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1001 1002 1003 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1001 def update!(**args) @name = args[:name] if args.key?(:name) end |