Google Cloud AlloyDB for PostgreSQL V1beta Client - Class User (0.6.0)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1beta Client class User.

Message describing User object.

Generated from protobuf message google.cloud.alloydb.v1beta.User

Namespace

Google \ Cloud \ AlloyDb \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
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.

getName

Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.

Returns
TypeDescription
string

setName

Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPassword

Input only. Password for the user.

Returns
TypeDescription
string

setPassword

Input only. Password for the user.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDatabaseRoles

Optional. List of database roles this user has.

The database role strings are subject to the PostgreSQL naming conventions.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDatabaseRoles

Optional. List of database roles this user has.

The database role strings are subject to the PostgreSQL naming conventions.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getUserType

Optional. Type of this user.

Returns
TypeDescription
int

setUserType

Optional. Type of this user.

Parameter
NameDescription
var int
Returns
TypeDescription
$this