Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class InitialUser.
Configuration for an IAM user created during instance creation.
Generated from protobuf message google.cloud.sql.v1.InitialUsersConfig.InitialUser
Namespace
Google \ Cloud \ Sql \ V1 \ InitialUsersConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The name of the user in the Cloud SQL instance. |
↳ type |
int
Required. The user type. Cannot be BUILT_IN. |
↳ roles |
string[]
Optional. The database roles to be assigned to the user. If empty, will grant role |
getName
Required. The name of the user in the Cloud SQL instance.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The name of the user in the Cloud SQL instance.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Required. The user type. Cannot be BUILT_IN.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type SqlUserType. |
setType
Required. The user type. Cannot be BUILT_IN.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type SqlUserType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRoles
Optional. The database roles to be assigned to the user. If empty, will
grant role cloudsqlsuperuser.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setRoles
Optional. The database roles to be assigned to the user. If empty, will
grant role cloudsqlsuperuser.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|