Service Client: Google::Iam::V3beta::PolicyBindingsService::PolicyBindingsClient
Client stub representing the remote PolicyBindings 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::V3beta::PolicyBindingsService - Compiled Protocol Buffers messages for google/iam/v3beta/policy_bindings_service.proto
SYNOPSIS
use Google::Iam::V3beta::PolicyBindingsService;
my $msg = Google::Iam::V3beta::PolicyBindingsService::CreatePolicyBindingRequest->new({
parent => $parent,
policy_binding_id => $policy_binding_id,
policy_binding => $policy_binding,
validate_only => $validate_only,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Iam::V3beta::PolicyBindingsService::CreatePolicyBindingRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/iam/v3beta/policy_bindings_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::Iam::V3beta::PolicyBindingsService::CreatePolicyBindingRequest
Request message for CreatePolicyBinding method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this policy binding will be created. The binding parent is the closest Resource Manager resource (project, folder or organization) to the binding target.
Format:
* `projects/{project_id}/locations/{location}` * `projects/{project_number}/locations/{location}` * `folders/{folder_id}/locations/{location}` * `organizations/{organization_id}/locations/{location}`
$msg->policy_binding_id()/$msg->policy_binding_id($value)Type:
StringRequired. The ID to use for the policy binding, which will become the final component of the policy binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\.]{2,62}/.
$msg->policy_binding()/$msg->policy_binding($value)Type:
Message(Google::Iam::V3beta::PolicyBindingResources::PolicyBinding)Required. The policy binding to create.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolOptional. If set, validate the request and preview the creation, but do not actually post it.
Google::Iam::V3beta::PolicyBindingsService::GetPolicyBindingRequest
Request message for GetPolicyBinding method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the policy binding to retrieve.
Format:
* `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}` * `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}` * `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}` * `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}`
Google::Iam::V3beta::PolicyBindingsService::UpdatePolicyBindingRequest
Request message for UpdatePolicyBinding method.
Inherits from Protobuf::Message.
Accessors
$msg->policy_binding()/$msg->policy_binding($value)Type:
Message(Google::Iam::V3beta::PolicyBindingResources::PolicyBinding)Required. The policy binding to update.
The policy binding's `name` field is used to identify the policy binding to update.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolOptional. If set, validate the request and preview the update, but do not actually post it.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update
Google::Iam::V3beta::PolicyBindingsService::DeletePolicyBindingRequest
Request message for DeletePolicyBinding method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the policy binding to delete.
Format:
* `projects/{project_id}/locations/{location}/policyBindings/{policy_binding_id}` * `projects/{project_number}/locations/{location}/policyBindings/{policy_binding_id}` * `folders/{folder_id}/locations/{location}/policyBindings/{policy_binding_id}` * `organizations/{organization_id}/locations/{location}/policyBindings/{policy_binding_id}`
$msg->etag()/$msg->etag($value)Type:
StringOptional. The etag of the policy binding. If this is provided, it must match the server's etag.
$msg->validate_only()/$msg->validate_only($value)Type:
BoolOptional. If set, validate the request and preview the deletion, but do not actually post it.
Google::Iam::V3beta::PolicyBindingsService::ListPolicyBindingsRequest
Request message for ListPolicyBindings method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource, which owns the collection of policy bindings.
Format:
* `projects/{project_id}/locations/{location}` * `projects/{project_number}/locations/{location}` * `folders/{folder_id}/locations/{location}` * `organizations/{organization_id}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of policy bindings to return. The service may return fewer than this value.
The default value is 50. The maximum value is 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListPolicyBindings` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListPolicyBindings` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringOptional. An expression for filtering the results of the request. Filter rules are case insensitive. Some eligible fields for filtering are the following:
+ `target` + `policy`
Some examples of filter queries:
* `target:ex*`: The binding target's name starts with "ex". * `target:example`: The binding target's name is `example`. * `policy:example`: The binding policy's name is `example`.
Google::Iam::V3beta::PolicyBindingsService::ListPolicyBindingsResponse
Response message for ListPolicyBindings method.
Inherits from Protobuf::Message.
Accessors
$msg->policy_bindings()/$msg->policy_bindings($value)Type:
Message(Google::Iam::V3beta::PolicyBindingResources::PolicyBinding)The policy bindings from the specified parent.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOptional. A 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::V3beta::PolicyBindingsService::SearchTargetPolicyBindingsRequest
Request message for SearchTargetPolicyBindings method.
Inherits from Protobuf::Message.
Accessors
$msg->target()/$msg->target($value)Type:
StringRequired. The target resource, which is bound to the policy in the binding.
Format:
* `//iam.googleapis.com/locations/global/workforcePools/POOL_ID` * `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID` * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` * `//cloudresourcemanager.googleapis.com/projects/{project_number}` * `//cloudresourcemanager.googleapis.com/folders/{folder_id}` * `//cloudresourcemanager.googleapis.com/organizations/{organization_id}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of policy bindings to return. The service may return fewer than this value.
The default value is 50. The maximum value is 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `SearchTargetPolicyBindingsRequest` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `SearchTargetPolicyBindingsRequest` must match the call that provided the page token.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this search will be performed. This should be the nearest Resource Manager resource (project, folder, or organization) to the target.
Format:
* `projects/{project_id}/locations/{location}` * `projects/{project_number}/locations/{location}` * `folders/{folder_id}/locations/{location}` * `organizations/{organization_id}/locations/{location}`
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering currently only supports the kind of policies to return, and must be in the format "policy_kind={policy_kind}".
If String is empty, bindings bound to all kinds of policies would be returned.
The only supported values are the following:
* "policy_kind=PRINCIPAL_ACCESS_BOUNDARY", * "policy_kind=ACCESS"
Google::Iam::V3beta::PolicyBindingsService::SearchTargetPolicyBindingsResponse
Response message for SearchTargetPolicyBindings method.
Inherits from Protobuf::Message.
Accessors
$msg->policy_bindings()/$msg->policy_bindings($value)Type:
Message(Google::Iam::V3beta::PolicyBindingResources::PolicyBinding)The policy bindings bound to the specified target.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOptional. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
SEE ALSO
Protobuf, Protobuf::Message, Google::Iam::V3beta::PolicyBindingsService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.