Service Client: Google::Iam::V3::AccessPoliciesService::AccessPoliciesClient
Client stub representing the remote AccessPolicies 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::V3::AccessPoliciesService - Compiled Protocol Buffers messages for google/iam/v3/access_policies_service.proto
SYNOPSIS
use Google::Iam::V3::AccessPoliciesService;
my $msg = Google::Iam::V3::AccessPoliciesService::CreateAccessPolicyRequest->new({
parent => $parent,
access_policy_id => $access_policy_id,
access_policy => $access_policy,
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::V3::AccessPoliciesService::CreateAccessPolicyRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/iam/v3/access_policies_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::V3::AccessPoliciesService::CreateAccessPolicyRequest
Request message for CreateAccessPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this access policy will be created.
Format: `projects/{project_id}/locations/{location}` `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` `organizations/{organization_id}/locations/{location}`
$msg->access_policy_id()/$msg->access_policy_id($value)Type:
StringRequired. The ID to use for the access policy, which will become the final component of the access policy'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}/.
This value must be unique among all access policies with the same parent.
$msg->access_policy()/$msg->access_policy($value)Type:
Message(Google::Iam::V3::AccessPolicyResources::AccessPolicy)Required. The access policy 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::V3::AccessPoliciesService::GetAccessPolicyRequest
Request message for GetAccessPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the access policy to retrieve.
Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
Google::Iam::V3::AccessPoliciesService::UpdateAccessPolicyRequest
Request message for UpdateAccessPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->access_policy()/$msg->access_policy($value)Type:
Message(Google::Iam::V3::AccessPolicyResources::AccessPolicy)Required. The access policy to update.
The access policy's `name` field is used to identify the policy 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.
Google::Iam::V3::AccessPoliciesService::DeleteAccessPolicyRequest
Request message for DeleteAccessPolicy method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the access policy to delete.
Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
$msg->etag()/$msg->etag($value)Type:
StringOptional. The etag of the access policy. 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.
$msg->force()/$msg->force($value)Type:
BoolOptional. If set to true, the request will force the deletion of the Policy even if the Policy references PolicyBindings.
Google::Iam::V3::AccessPoliciesService::ListAccessPoliciesRequest
Request message for ListAccessPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource, which owns the collection of access policy resources.
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 access policies to return. The service may return fewer than this value.
If unspecified, at most 50 access policies will be returned. Valid value ranges from 1 to 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListAccessPolicies` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListAccessPolicies` must match the call that provided the page token.
Google::Iam::V3::AccessPoliciesService::ListAccessPoliciesResponse
Response message for ListAccessPolicies method.
Inherits from Protobuf::Message.
Accessors
$msg->access_policies()/$msg->access_policies($value)Type:
Message(Google::Iam::V3::AccessPolicyResources::AccessPolicy)The access policies 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::V3::AccessPoliciesService::SearchAccessPolicyBindingsRequest
Request message for SearchAccessPolicyBindings rpc.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the access policy. Format: `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_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.
If unspecified, at most 50 policy bindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `SearchAccessPolicyBindingsRequest` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `SearchAccessPolicyBindingsRequest` must match the call that provided the page token.
Google::Iam::V3::AccessPoliciesService::SearchAccessPolicyBindingsResponse
Response message for SearchAccessPolicyBindings rpc.
Inherits from Protobuf::Message.
Accessors
$msg->policy_bindings()/$msg->policy_bindings($value)Type:
Message(Google::Iam::V3::PolicyBindingResources::PolicyBinding)The policy bindings that reference the specified policy.
$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::V3::AccessPoliciesService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.