Google Cloud Sql Admin V1 Client - Class SqlUsersUpdateRequest (1.6.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlUsersUpdateRequest.
Generated from protobuf messagegoogle.cloud.sql.v1.SqlUsersUpdateRequest
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ host | stringOptional. Host of the user in the instance. |
↳ instance | stringDatabase instance ID. This does not include the project ID. |
↳ name | stringName of the user in the instance. |
↳ project | stringProject ID of the project that contains the instance. |
↳ database_roles | arrayOptional. List of database roles to grant to the user. body.database_roles will be ignored for update request. |
↳ body | User |
getHost
Optional. Host of the user in the instance.
| Returns | |
|---|---|
| Type | Description |
string | |
setHost
Optional. Host of the user in the instance.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getInstance
Database instance ID. This does not include the project ID.
| Returns | |
|---|---|
| Type | Description |
string | |
setInstance
Database instance ID. This does not include the project ID.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getName
Name of the user in the instance.
| Returns | |
|---|---|
| Type | Description |
string | |
setName
Name of the user in the instance.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getProject
Project ID of the project that contains the instance.
| Returns | |
|---|---|
| Type | Description |
string | |
setProject
Project ID of the project that contains the instance.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDatabaseRoles
Optional. List of database roles to grant to the user. body.database_roleswill be ignored for update request.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField | |
setDatabaseRoles
Optional. List of database roles to grant to the user. body.database_roleswill be ignored for update request.
| Parameter | |
|---|---|
| Name | Description |
var | string[] |
| Returns | |
|---|---|
| Type | Description |
$this | |
getBody
Generated from protobuf field.google.cloud.sql.v1.User body = 100;
| Returns | |
|---|---|
| Type | Description |
User|null | |
hasBody
clearBody
setBody
Generated from protobuf field.google.cloud.sql.v1.User body = 100;
| Parameter | |
|---|---|
| Name | Description |
var | User |
| Returns | |
|---|---|
| Type | Description |
$this | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-09 UTC.