Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class TokenAuthUser.
Represents a token based auth user for the cluster.
Generated from protobuf message google.cloud.redis.cluster.v1.TokenAuthUser
Namespace
Google \ Cloud \ Redis \ Cluster \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The resource name of the token based auth user. Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user} |
↳ state |
int
Output only. The state of the token based auth user. |
getName
Identifier. The resource name of the token based auth user.
Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the token based auth user.
Format: projects/{project}/locations/{location}/clusters/{cluster}/tokenAuthUsers/{token_auth_user}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. The state of the token based auth user.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. The state of the token based auth user.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|