Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class User.
Message describing User object.
Generated from protobuf message google.cloud.alloydb.v1.User
Namespace
Google \ Cloud \ AlloyDb \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
↳ password
string
Input only. Password for the user.
↳ database_roles
array
Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
↳ user_type
int
Optional. Type of this user.
↳ keep_extra_roles
bool
Input only. If the user already exists and it has additional roles, keep them granted.
getName
Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
string
setName
Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.
var
string
$this
getPassword
Input only. Password for the user.
string
setPassword
Input only. Password for the user.
var
string
$this
getDatabaseRoles
Optional. List of database roles this user has.
The database role strings are subject to the PostgreSQL naming conventions.
setDatabaseRoles
Optional. List of database roles this user has.
The database role strings are subject to the PostgreSQL naming conventions.
var
string[]
$this
getUserType
Optional. Type of this user.
int
setUserType
Optional. Type of this user.
var
int
$this
getKeepExtraRoles
Input only. If the user already exists and it has additional roles, keep them granted.
bool
setKeepExtraRoles
Input only. If the user already exists and it has additional roles, keep them granted.
var
bool
$this