Reference documentation and code samples for the Cloud Spanner V1 Client class DatabaseRole.
A Cloud Spanner database role.
Generated from protobuf message google.spanner.admin.database.v1.DatabaseRole
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the database role. Values are of the form projects/<project>/instances/<instance>/databases/<database>/databaseRoles/ {role}, where <role> is as specified in the CREATE ROLE DDL statement. This name can be passed to Get/Set IAMPolicy methods to identify the database role.
getName
Required. The name of the database role. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
{role}, where <role> is as specified in the CREATE ROLE
DDL statement. This name can be passed to Get/Set IAMPolicy methods to
identify the database role.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
string
setName
Required. The name of the database role. Values are of the form
projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
{role}, where <role> is as specified in the CREATE ROLE
DDL statement. This name can be passed to Get/Set IAMPolicy methods to
identify the database role.
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];