NAME

Google::Iam::V3::AccessPolicyResources - Compiled Protocol Buffers messages for google/iam/v3/access_policy_resources.proto

SYNOPSIS

use Google::Iam::V3::AccessPolicyResources;

my $msg = Google::Iam::V3::AccessPolicyResources::AccessPolicy->new({
    name => $name,
    uid => $uid,
    etag => $etag,
    display_name => $display_name,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Iam::V3::AccessPolicyResources::AccessPolicy->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/iam/v3/access_policy_resources.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::AccessPolicyResources::AccessPolicy

An IAM access policy resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of the access policy.

    The following formats are supported:

    * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}` * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}` * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}` * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`

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

    Type: String

    Output only. The globally unique ID of the access policy.

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

    Type: String

    Optional. The etag for the access policy. If this is provided on update, it must match the server's etag.

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

    Type: String

    Optional. The description of the access policy. Must be less than or equal to 63 characters.

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

    Type: Message (Google::Iam::V3::AccessPolicyResources::AccessPolicy::AnnotationsEntry)

    Optional. User defined annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations

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

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

    Output only. The time when the access policy was created.

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

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

    Output only. The time when the access policy was most recently updated.

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

    Type: Message (Google::Iam::V3::AccessPolicyResources::AccessPolicyDetails)

    Optional. The details for the access policy.

Google::Iam::V3::AccessPolicyResources::AccessPolicyDetails

Access policy details.

Inherits from Protobuf::Message.

Accessors

Google::Iam::V3::AccessPolicyResources::AccessPolicyRule

Access Policy Rule that determines the behavior of the policy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Customer specified description of the rule. Must be less than or equal to 256 characters.

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

    Type: Enum (Google::Iam::V3::AccessPolicyRule::Effect)

    Required. The effect of the rule.

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

    Type: String

    Required. The identities for which this rule's effect governs using one or more permissions on Google Cloud resources. This field can contain the following values:

    * `principal://goog/subject/{email_id}`: A specific Google Account. Includes Gmail, Cloud Identity, and Google Workspace user accounts. For example, `principal://goog/subject/alice@example.com`.

    * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: A Google Cloud service account. For example, `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.

    * `principalSet://goog/group/{group_id}`: A Google group. For example, `principalSet://goog/group/admins@example.com`.

    * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the principals associated with the specified Google Workspace or Cloud Identity customer ID. For example, `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.

    If an identifier that was previously set on a policy is soft deleted, then calls to read that policy will return the identifier with a deleted prefix. Users cannot set identifiers with this syntax.

    * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific Google Account that was deleted recently. For example, `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If the Google Account is recovered, this identifier reverts to the standard identifier for a Google Account.

    * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group that was deleted recently. For example, `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. If the Google group is restored, this identifier reverts to the standard identifier for a Google group.

    * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: A Google Cloud service account that was deleted recently. For example, `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. If the service account is undeleted, this identifier reverts to the standard identifier for a service account.

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

    Type: String

    Optional. The identities that are excluded from the access policy rule, even if they are listed in the `principals`. For example, you could add a Google group to the `principals`, then exclude specific users who belong to that group.

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

    Type: Message (Google::Iam::V3::AccessPolicyResources::AccessPolicyRule::Operation)

    Required. Attributes that are used to determine whether this rule applies to a request.

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

    Type: Message (Google::Iam::V3::AccessPolicyResources::AccessPolicyRule::ConditionsEntry)

    Optional. The conditions that determine whether this rule applies to a request. Conditions are identified by their key, which is the FQDN of the service that they are relevant to. For example:

    ``` "conditions": { "iam.googleapis.com": { "expression": <cel expression> } } ```

    Each rule is evaluated independently. If this rule does not apply to a request, other rules might still apply. Currently supported keys are as follows:

    * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate resource fields.

    * `iam.googleapis.com`: Can use `CEL` functions that evaluate [resource tags](https://cloud.google.com/iam/help/conditions/resource-tags) and combine them using boolean and logical operators. Other functions and operators are not supported.

Enum: AccessPolicyRule::Effect

  • EFFECT_UNSPECIFIED => 0

  • DENY => 1

  • ALLOW => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Iam::V3::AccessPolicyResources::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.