Reference documentation and code samples for the Secret Manager V1 Client class CloudSQLSingleUserCredentials.
These are the credentials required for Cloud SQL DB for Single user Managed Rotation.
Generated from protobuf message google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
Namespace
Google \ Cloud \ SecretManager \ V1 \ EnableManagedRotationRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ instance_id |
string
Required. Instance ID of the Cloud SQL instance. |
↳ username |
string
Required. Username of the Cloud SQL instance. |
↳ password |
string
Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated. |
getInstanceId
Required. Instance ID of the Cloud SQL instance.
| Returns | |
|---|---|
| Type | Description |
string |
|
setInstanceId
Required. Instance ID of the Cloud SQL instance.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsername
Required. Username of the Cloud SQL instance.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUsername
Required. Username of the Cloud SQL instance.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPassword
Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
| Returns | |
|---|---|
| Type | Description |
string |
|
setPassword
Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|