Service Client: Google::Spanner::Auth::V1::SpannerUsers::UsersServiceClient
Client stub representing the remote UsersService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to spanner.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Spanner::Auth::V1::SpannerUsers - Compiled Protocol Buffers messages for google/spanner/auth/v1/spanner_users.proto
SYNOPSIS
use Google::Spanner::Auth::V1::SpannerUsers;
my $msg = Google::Spanner::Auth::V1::SpannerUsers::User->new({
name => $name,
user_id => $user_id,
state => $state,
roles => $roles,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Spanner::Auth::V1::SpannerUsers::User->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/spanner/auth/v1/spanner_users.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Spanner::Auth::V1::SpannerUsers::User
A user in the system. Users are identified by their username and can be assigned roles that grant them permissions to perform actions in Spanner.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the user, must be unique. The format should be users/{user}.
$msg->user_id()/$msg->user_id($value)Type:
StringRequired. The id of the user, this is the part after the users/ prefix in the name field.
$msg->state()/$msg->state($value)Type:
Enum(Google::Spanner::Auth::V1::User::State)Output only. The state of the user.
$msg->roles()/$msg->roles($value)Type:
StringOptional. The roles assigned to the user. The format should be roles/{role}.
Enum: User::State
STATE_UNSPECIFIED=>0ACTIVE=>1CREATING=>2DEACTIVATED=>3
Google::Spanner::Auth::V1::SpannerUsers::Role
A role that grants permissions to perform actions to users that are assigned to the role.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the role, the format should be roles/{role}.
$msg->role_id()/$msg->role_id($value)Type:
StringOutput only. The id of the role, this is the part after the roles/ prefix in the name field.
$msg->permissions()/$msg->permissions($value)Type:
StringOutput only. All the permissions that are granted to this role, this is not returned in List calls.
Google::Spanner::Auth::V1::SpannerUsers::CreateUserRequest
A request to create a new user. New users are created in three steps: 1. The first step is a handshake request to determine how the client should authenticate. 2. The second step is to initiate the creation of a new user, which returns information the client uses to generate the correct type of credential. 3. The final step is to create the user using the credential.
Inherits from Protobuf::Message.
Accessors
$msg->user()/$msg->user($value)Type:
Message(Google::Spanner::Auth::V1::SpannerUsers::User)Required. The new user to create, the username must be unique.
$msg->scram_request()/$msg->scram_request($value)Type:
Message(Google::Spanner::Auth::V1::Authentication::ScramNewCredentialRequest)Optional. The SCRAM request for creating a new user.
$msg->opaque_request()/$msg->opaque_request($value)Type:
Message(Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialRequest)Optional. The OPAQUE request for creating a new user.
$msg->handshake_request()/$msg->handshake_request($value)Type:
Message(Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeRequest)Optional. Handshake request for the client to determine how to authenticate.
Google::Spanner::Auth::V1::SpannerUsers::CreateUserResponse
The response for [CreateUser][google.spanner.auth.v1.UsersService.CreateUser].
Inherits from Protobuf::Message.
Accessors
$msg->user()/$msg->user($value)Type:
Message(Google::Spanner::Auth::V1::SpannerUsers::User)The user that was created, this will only be set on the final response from the server.
$msg->scram_response()/$msg->scram_response($value)Type:
Message(Google::Spanner::Auth::V1::Authentication::ScramNewCredentialResponse)The SCRAM response for creating a new user.
$msg->opaque_response()/$msg->opaque_response($value)Type:
Message(Google::Spanner::Auth::V1::Authentication::OpaqueNewCredentialResponse)The OPAQUE response for creating a new user.
$msg->handshake_response()/$msg->handshake_response($value)Type:
Message(Google::Spanner::Auth::V1::Authentication::PasswordAuthenticationHandshakeResponse)Handshake response for the server to determine how to authenticate.
Google::Spanner::Auth::V1::SpannerUsers::UpdateUserRequest
A request to update a single user.
Inherits from Protobuf::Message.
Accessors
$msg->user()/$msg->user($value)Type:
Message(Google::Spanner::Auth::V1::SpannerUsers::User)Required. The user to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update.
Google::Spanner::Auth::V1::SpannerUsers::GetUserRequest
Request for a single user.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the user to get, this should be in the format of users/{user}.
Google::Spanner::Auth::V1::SpannerUsers::ListUsersRequest
Request for all users.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Number of users to return in the response. If 0, defaults to the server's maximum allowed page size.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. If non-empty, `page_token` should contain a [next_page_token][google.spanner.auth.v1.ListUsersResponse.next_page_token] from a previous [ListUsersResponse][google.spanner.auth.v1.ListUsersResponse].
Google::Spanner::Auth::V1::SpannerUsers::ListUsersResponse
The response to list all users.
Inherits from Protobuf::Message.
Accessors
$msg->users()/$msg->users($value)Type:
Message(Google::Spanner::Auth::V1::SpannerUsers::User)The list of users.
$msg->next_page_token()/$msg->next_page_token($value)Type:
String`next_page_token` can be sent in a subsequent [ListUsers][google.spanner.auth.v1.UsersService.ListUsers] call to fetch more of the matching users.
Google::Spanner::Auth::V1::SpannerUsers::DeleteUserRequest
Request to delete a single user.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the user to delete, this should be in the format of users/{user}.
Google::Spanner::Auth::V1::SpannerUsers::ListRolesRequest
A request to list all available roles.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Number of roles to return in the response. If 0, defaults to the server's maximum allowed page size.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. If non-empty, `page_token` should contain a [next_page_token][google.spanner.auth.v1.ListRolesResponse.next_page_token] from a previous [ListRolesResponse][google.spanner.auth.v1.ListRolesResponse].
Google::Spanner::Auth::V1::SpannerUsers::ListRolesResponse
The response to list all available roles.
Inherits from Protobuf::Message.
Accessors
$msg->roles()/$msg->roles($value)Type:
Message(Google::Spanner::Auth::V1::SpannerUsers::Role)The list of roles.
$msg->next_page_token()/$msg->next_page_token($value)Type:
String`next_page_token` can be sent in a subsequent [ListRoles][google.spanner.auth.v1.UsersService.ListRoles] call to fetch more of the matching roles.
Google::Spanner::Auth::V1::SpannerUsers::GetRoleRequest
A request to get a single role by name.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the role to get. Should be in the format of roles/{role}.
SEE ALSO
Protobuf, Protobuf::Message, Google::Spanner::Auth::V1::SpannerUsers::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.