Cloud Spanner V1 Client - Class DatabaseRole (2.5.1)
Stay organized with collections
Save and categorize content based on your preferences.
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
Namespace
Google \ Cloud \ Spanner \ Admin \ Database \ V1
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-11 UTC."],[],[]]