Service Client: Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolsClient
Client stub representing the remote WorkloadIdentityPools gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to iam.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Iam::V1beta::WorkloadIdentityPool - Compiled Protocol Buffers messages for google/iam/v1beta/workload_identity_pool.proto
SYNOPSIS
use Google::Iam::V1beta::WorkloadIdentityPool;
my $msg = Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPool->new({
name => $name,
display_name => $display_name,
description => $description,
state => $state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPool->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/iam/v1beta/workload_identity_pool.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPool
Represents a collection of external workload identities. You can define IAM policies to grant these identities access to Google Cloud resources.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the pool.
$msg->display_name()/$msg->display_name($value)Type:
StringA display name for the pool. Cannot exceed 32 characters.
$msg->description()/$msg->description($value)Type:
StringA description of the pool. Cannot exceed 256 characters.
$msg->state()/$msg->state($value)Type:
Enum(Google::Iam::V1beta::WorkloadIdentityPool::State)Output only. The state of the pool.
$msg->disabled()/$msg->disabled($value)Type:
BoolWhether the pool is disabled. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again.
Enum: WorkloadIdentityPool::State
STATE_UNSPECIFIED=>0ACTIVE=>1DELETED=>2
Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider
A configuration for an external identity provider.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the provider.
$msg->display_name()/$msg->display_name($value)Type:
StringA display name for the provider. Cannot exceed 32 characters.
$msg->description()/$msg->description($value)Type:
StringA description for the provider. Cannot exceed 256 characters.
$msg->state()/$msg->state($value)Type:
Enum(Google::Iam::V1beta::WorkloadIdentityPoolProvider::State)Output only. The state of the provider.
$msg->disabled()/$msg->disabled($value)Type:
BoolWhether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access.
$msg->attribute_mapping()/$msg->attribute_mapping($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider::AttributeMappingEntry)Maps attributes from authentication credentials issued by an external identity provider to Google Cloud attributes, such as `subject` and `segment`.
Each key must be a string specifying the Google Cloud IAM attribute to map to.
The following keys are supported:
* `google.subject`: The principal IAM is authenticating. You can reference this value in IAM bindings. This is also the subject that appears in Cloud Logging logs. Cannot exceed 127 characters.
* `google.groups`: Groups the external identity belongs to. You can grant groups access to resources using an IAM `principalSet` binding; access applies to all members of the group.
You can also provide custom attributes by specifying `attribute.{custom_attribute}`, where `{custom_attribute}` is the name of the custom attribute to be mapped. You can define a maximum of 50 custom attributes. The maximum length of a mapped attribute key is 100 characters, and the key may only contain the characters [a-z0-9_].
You can reference these attributes in IAM policies to define fine-grained access for a workload to Google Cloud resources. For example:
* `google.subject`: `principal://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/subject/{value}`
* `google.groups`: `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/group/{value}`
* `attribute.{custom_attribute}`: `principalSet://iam.googleapis.com/projects/{project}/locations/{location}/workloadIdentityPools/{pool}/attribute.{custom_attribute}/{value}`
Each value must be a [Common Expression Language] (https://opensource.google/projects/cel) function that maps an identity provider credential to the normalized attribute specified by the corresponding map key.
You can use the `assertion` keyword in the expression to access a JSON representation of the authentication credential issued by the provider.
The maximum length of an attribute mapping expression is 2048 characters. When evaluated, the total size of all mapped attributes must not exceed 8KB.
For AWS providers, the following rules apply:
- If no attribute mapping is defined, the following default mapping applies:
``` { "google.subject":"assertion.arn", "attribute.aws_role": "assertion.arn.contains('assumed-role')" " ? assertion.arn.extract('{account_arn}assumed-role/')" " + 'assumed-role/'" " + assertion.arn.extract('assumed-role/{role_name}/')" " : assertion.arn", } ```- If any custom attribute mappings are defined, they must include a mapping to the `google.subject` attribute.
For OIDC providers, the following rules apply:
- Custom attribute mappings must be defined, and must include a mapping to the `google.subject` attribute. For example, the following maps the `sub` claim of the incoming credential to the `subject` attribute on a Google token.
``` {"google.subject": "assertion.sub"} ```$msg->attribute_condition()/$msg->attribute_condition($value)Type:
String[A Common Expression Language](https://opensource.google/projects/cel) expression, in plain text, to restrict what otherwise valid authentication credentials issued by the provider should not be accepted.
The expression must output a boolean representing whether to allow the federation.
The following keywords may be referenced in the expressions:
* `assertion`: JSON representing the authentication credential issued by the provider. * `google`: The Google attributes mapped from the assertion in the `attribute_mappings`. * `attribute`: The custom attributes mapped from the assertion in the `attribute_mappings`.
The maximum length of the attribute condition expression is 4096 characters. If unspecified, all valid authentication credential are accepted.
The following example shows how to only allow credentials with a mapped `google.groups` value of `admins`:
``` "'admins' in google.groups" ```
$msg->aws()/$msg->aws($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider::Aws)An Amazon Web Services identity provider.
$msg->oidc()/$msg->oidc($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider::Oidc)An OpenId Connect 1.0 identity provider.
Enum: WorkloadIdentityPoolProvider::State
STATE_UNSPECIFIED=>0ACTIVE=>1DELETED=>2
Google::Iam::V1beta::WorkloadIdentityPool::ListWorkloadIdentityPoolsRequest
Request message for ListWorkloadIdentityPools.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource to list pools for.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of pools to return. If unspecified, at most 50 pools are returned. The maximum value is 1000; values above are 1000 truncated to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListWorkloadIdentityPools` call. Provide this to retrieve the subsequent page.
$msg->show_deleted()/$msg->show_deleted($value)Type:
BoolWhether to return soft-deleted pools.
Google::Iam::V1beta::WorkloadIdentityPool::ListWorkloadIdentityPoolsResponse
Response message for ListWorkloadIdentityPools.
Inherits from Protobuf::Message.
Accessors
$msg->workload_identity_pools()/$msg->workload_identity_pools($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPool)A list of pools.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Iam::V1beta::WorkloadIdentityPool::GetWorkloadIdentityPoolRequest
Request message for GetWorkloadIdentityPool.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the pool to retrieve.
Google::Iam::V1beta::WorkloadIdentityPool::CreateWorkloadIdentityPoolRequest
Request message for CreateWorkloadIdentityPool.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource to create the pool in. The only supported location is `global`.
$msg->workload_identity_pool()/$msg->workload_identity_pool($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPool)Required. The pool to create.
$msg->workload_identity_pool_id()/$msg->workload_identity_pool_id($value)Type:
StringRequired. The ID to use for the pool, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.
Google::Iam::V1beta::WorkloadIdentityPool::UpdateWorkloadIdentityPoolRequest
Request message for UpdateWorkloadIdentityPool.
Inherits from Protobuf::Message.
Accessors
$msg->workload_identity_pool()/$msg->workload_identity_pool($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPool)Required. The pool to update. The `name` field is used to identify the pool.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The list of fields update.
Google::Iam::V1beta::WorkloadIdentityPool::DeleteWorkloadIdentityPoolRequest
Request message for DeleteWorkloadIdentityPool.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the pool to delete.
Google::Iam::V1beta::WorkloadIdentityPool::UndeleteWorkloadIdentityPoolRequest
Request message for UndeleteWorkloadIdentityPool.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the pool to undelete.
Google::Iam::V1beta::WorkloadIdentityPool::ListWorkloadIdentityPoolProvidersRequest
Request message for ListWorkloadIdentityPoolProviders.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The pool to list providers for.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of providers to return. If unspecified, at most 50 providers are returned. The maximum value is 100; values above 100 are truncated to 100.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListWorkloadIdentityPoolProviders` call. Provide this to retrieve the subsequent page.
$msg->show_deleted()/$msg->show_deleted($value)Type:
BoolWhether to return soft-deleted providers.
Google::Iam::V1beta::WorkloadIdentityPool::ListWorkloadIdentityPoolProvidersResponse
Response message for ListWorkloadIdentityPoolProviders.
Inherits from Protobuf::Message.
Accessors
$msg->workload_identity_pool_providers()/$msg->workload_identity_pool_providers($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider)A list of providers.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Iam::V1beta::WorkloadIdentityPool::GetWorkloadIdentityPoolProviderRequest
Request message for GetWorkloadIdentityPoolProvider.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the provider to retrieve.
Google::Iam::V1beta::WorkloadIdentityPool::CreateWorkloadIdentityPoolProviderRequest
Request message for CreateWorkloadIdentityPoolProvider.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The pool to create this provider in.
$msg->workload_identity_pool_provider()/$msg->workload_identity_pool_provider($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider)Required. The provider to create.
$msg->workload_identity_pool_provider_id()/$msg->workload_identity_pool_provider_id($value)Type:
StringRequired. The ID for the provider, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. The prefix `gcp-` is reserved for use by Google, and may not be specified.
Google::Iam::V1beta::WorkloadIdentityPool::UpdateWorkloadIdentityPoolProviderRequest
Request message for UpdateWorkloadIdentityPoolProvider.
Inherits from Protobuf::Message.
Accessors
$msg->workload_identity_pool_provider()/$msg->workload_identity_pool_provider($value)Type:
Message(Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProvider)Required. The provider to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. The list of fields to update.
Google::Iam::V1beta::WorkloadIdentityPool::DeleteWorkloadIdentityPoolProviderRequest
Request message for DeleteWorkloadIdentityPoolProvider.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the provider to delete.
Google::Iam::V1beta::WorkloadIdentityPool::UndeleteWorkloadIdentityPoolProviderRequest
Request message for UndeleteWorkloadIdentityPoolProvider.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the provider to undelete.
Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolOperationMetadata
Metadata for long-running WorkloadIdentityPool operations.
Inherits from Protobuf::Message.
Google::Iam::V1beta::WorkloadIdentityPool::WorkloadIdentityPoolProviderOperationMetadata
Metadata for long-running WorkloadIdentityPoolProvider operations.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Iam::V1beta::WorkloadIdentityPool::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.