class ProjectsLocationsClustersUsers extends Resource (View source)

The "users" collection of methods.

Typical usage is:

 $alloydbService = new Google\Service\CloudAlloyDBAdmin(...);
 $users = $alloydbService->projects_locations_clusters_users;

Methods

create(string $parent, User $postBody, array $optParams = [])

Creates a new User in a given project, location, and cluster. (users.create)

delete(string $name, array $optParams = [])

Deletes a single User. (users.delete)

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

Gets details of a single User. (users.get)

listProjectsLocationsClustersUsers(string $parent, array $optParams = [])

Lists Users in a given project and location.

patch(string $name, User $postBody, array $optParams = [])

Updates the parameters of a single User. (users.patch)

Details

User create(string $parent, User $postBody, array $optParams = [])

Creates a new User in a given project, location, and cluster. (users.create)

Parameters

string $parent

Required. Value for parent.

User $postBody
array $optParams

Optional parameters.

Return Value

User

Exceptions

Exception

AlloydbEmpty delete(string $name, array $optParams = [])

Deletes a single User. (users.delete)

Parameters

string $name

Required. The name of the resource. For the required format, see the comment on the User.name field.

array $optParams

Optional parameters.

Return Value

AlloydbEmpty

Exceptions

Exception

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

Gets details of a single User. (users.get)

Parameters

string $name

Required. The name of the resource. For the required format, see the comment on the User.name field.

array $optParams

Optional parameters.

Return Value

User

Exceptions

Exception

ListUsersResponse listProjectsLocationsClustersUsers(string $parent, array $optParams = [])

Lists Users in a given project and location.

(users.listProjectsLocationsClustersUsers)

Parameters

string $parent

Required. Parent value for ListUsersRequest

array $optParams

Optional parameters.

Return Value

ListUsersResponse

Exceptions

Exception

User patch(string $name, User $postBody, array $optParams = [])

Updates the parameters of a single User. (users.patch)

Parameters

string $name

Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.

User $postBody
array $optParams

Optional parameters.

Return Value

User

Exceptions

Exception