Service Client: Google::Cloud::Workloadidentity::V1::Service::WorkloadIdentityClient

Client stub representing the remote WorkloadIdentity gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to workloadidentity.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Workloadidentity::V1::Service - Compiled Protocol Buffers messages for google/cloud/workloadidentity/v1/service.proto

SYNOPSIS

use Google::Cloud::Workloadidentity::V1::Service;

my $msg = Google::Cloud::Workloadidentity::V1::Service::ServiceAgent->new({
    name => $name,
    container => $container,
    service_producer => $service_producer,
    principal => $principal,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Workloadidentity::V1::Service::ServiceAgent->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/workloadidentity/v1/service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Workloadidentity::V1::Service::ServiceAgent

Message describing ServiceAgent object

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of the service agent resource

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

    Type: String

    Optional. Name of the container that the service agent is associated with. For example: * projects/1234 * folders/1234 * organizations/2344

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

    Type: String

    Optional. The service the agent belongs to. For example, bigquery.googleapis.com

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

    Type: String

    Optional. The principal identifier for the service agent. This identifier is used in allow policies to grant access to the service agent.

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

    Type: String

    Optional. The role that should be granted to service agent on consumer project, if any. For example, "roles/aiplatform.serviceAgent".

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

    Type: Enum (Google::Cloud::Workloadidentity::V1::ServiceAgent::State)

    Output only. Service agent state.

Enum: ServiceAgent::State

  • STATE_UNSPECIFIED => 0

  • ACTIVE => 1

  • FAILED => 2

Google::Cloud::Workloadidentity::V1::Service::GenerateServiceAgentsRequest

Message for creating all ServiceAgents for a ServiceProducer in a project and location.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource. The `location` for the parent resource must be `global`.

    Examples:

    - projects/1234/locations/global/serviceProducers/bigquery.googleapis.com - folders/2344/locations/global/serviceProducers/vertexai.googleapis.com - organizations/3344/locations/global/serviceProducers/iam.googleapis.com

Google::Cloud::Workloadidentity::V1::Service::GenerateServiceAgentsResponse

Message for creating all ServiceAgents for a ServiceProducer in a project and location.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Workloadidentity::V1::Service::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Workloadidentity::V1::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.