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: String

    Identifier. The name of the user, must be unique. The format should be users/{user}.

  • $msg->user_id() / $msg->user_id($value)

    Type: String

    Required. 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: String

    Optional. The roles assigned to the user. The format should be roles/{role}.

Enum: User::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • CREATING => 2

  • DEACTIVATED => 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: String

    Identifier. The name of the role, the format should be roles/{role}.

  • $msg->role_id() / $msg->role_id($value)

    Type: String

    Output only. The id of the role, this is the part after the roles/ prefix in the name field.

  • $msg->permissions() / $msg->permissions($value)

    Type: String

    Output 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

Google::Spanner::Auth::V1::SpannerUsers::CreateUserResponse

The response for [CreateUser][google.spanner.auth.v1.UsersService.CreateUser].

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Auth::V1::SpannerUsers::UpdateUserRequest

A request to update a single user.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Auth::V1::SpannerUsers::GetUserRequest

Request for a single user.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. 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: Int32

    Optional. 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: String

    Optional. 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: String

    Required. 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: Int32

    Optional. 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: String

    Optional. 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: String

    Required. 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.