class Users extends Resource (View source)

The "users" collection of methods.

Typical usage is:

 $sqladminService = new Google\Service\SQLAdmin(...);
 $users = $sqladminService->users;

Methods

delete(string $project, string $instance, array $optParams = [])

Deletes a user from a Cloud SQL instance. (users.delete)

get(string $project, string $instance, string $name, array $optParams = [])

Retrieves a resource containing information about a user. (users.get)

insert(string $project, string $instance, User $postBody, array $optParams = [])

Creates a new user in a Cloud SQL instance. (users.insert)

listUsers(string $project, string $instance, array $optParams = [])

Lists users in the specified Cloud SQL instance. (users.listUsers)

update(string $project, string $instance, User $postBody, array $optParams = [])

Updates an existing user in a Cloud SQL instance. (users.update)

Details

Operation delete(string $project, string $instance, array $optParams = [])

Deletes a user from a Cloud SQL instance. (users.delete)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Database instance ID. This does not include the project ID.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

User get(string $project, string $instance, string $name, array $optParams = [])

Retrieves a resource containing information about a user. (users.get)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Database instance ID. This does not include the project ID.

string $name

User of the instance.

array $optParams

Optional parameters.

Return Value

User

Exceptions

Exception

Operation insert(string $project, string $instance, User $postBody, array $optParams = [])

Creates a new user in a Cloud SQL instance. (users.insert)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Database instance ID. This does not include the project ID.

User $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

UsersListResponse listUsers(string $project, string $instance, array $optParams = [])

Lists users in the specified Cloud SQL instance. (users.listUsers)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Database instance ID. This does not include the project ID.

array $optParams

Optional parameters.

Return Value

UsersListResponse

Exceptions

Exception

Operation update(string $project, string $instance, User $postBody, array $optParams = [])

Updates an existing user in a Cloud SQL instance. (users.update)

Parameters

string $project

Project ID of the project that contains the instance.

string $instance

Database instance ID. This does not include the project ID.

User $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception