Class: Google::Apis::SpannerV1::DatabaseRole

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatabaseRole

Returns a new instance of DatabaseRole.



1284
1285
1286
# File 'lib/google/apis/spanner_v1/classes.rb', line 1284

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


1282
1283
1284
# File 'lib/google/apis/spanner_v1/classes.rb', line 1282

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1289
1290
1291
# File 'lib/google/apis/spanner_v1/classes.rb', line 1289

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