NAME

Google::Iam::V3beta::PolicyBindingResources - Compiled Protocol Buffers messages for google/iam/v3beta/policy_binding_resources.proto

SYNOPSIS

use Google::Iam::V3beta::PolicyBindingResources;

my $msg = Google::Iam::V3beta::PolicyBindingResources::PolicyBinding->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::V3beta::PolicyBindingResources::PolicyBinding->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/iam/v3beta/policy_binding_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::V3beta::PolicyBindingResources::PolicyBinding

IAM policy binding resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of the policy binding, in the format `{binding_parent/locations/{location}/policyBindings/{policy_binding_id}`. The binding parent is the closest Resource Manager resource (project, folder, or organization) to the binding target.

    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->uid() / $msg->uid($value)

    Type: String

    Output only. The globally unique ID of the policy binding. Assigned when the policy binding is created.

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

    Type: String

    Optional. The etag for the policy binding. 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 policy binding. Must be less than or equal to 63 characters.

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

    Type: Message (Google::Iam::V3beta::PolicyBindingResources::PolicyBinding::AnnotationsEntry)

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

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

    Type: Message (Google::Iam::V3beta::PolicyBindingResources::PolicyBinding::Target)

    Required. Immutable. The full resource name of the resource to which the policy will be bound. Immutable once set.

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

    Type: Enum (Google::Iam::V3beta::PolicyBinding::PolicyKind)

    Immutable. The kind of the policy to attach in this binding. This field must be one of the following:

    - Left empty (will be automatically set to the policy kind) - The input policy kind

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

    Type: String

    Required. Immutable. The resource name of the policy to be bound. The binding parent and policy must belong to the same organization.

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

    Type: String

    Output only. The globally unique ID of the policy to be bound.

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

    Type: Message (Google::Type::Expr::Expr)

    Optional. The condition to apply to the policy binding. When set, the `expression` field in the `Expr` must include from 1 to 10 subexpressions, joined by the "||"(Logical OR), "&&"(Logical AND) or "!"(Logical NOT) operators and cannot contain more than 250 characters.

    The condition is currently only supported when bound to policies of kind principal access boundary.

    When the bound policy is a principal access boundary policy, the only supported attributes in any subexpression are `principal.type` and `principal.subject`. An example expression is: "principal.type == 'iam.googleapis.com/ServiceAccount'" or "principal.subject == 'bob@example.com'".

    Allowed operations for `principal.subject`:

    - `principal.subject == <principal subject string>` - `principal.subject != <principal subject string>` - `principal.subject in [<list of principal subjects>]` - `principal.subject.startsWith(<string>)` - `principal.subject.endsWith(<string>)`

    Allowed operations for `principal.type`:

    - `principal.type == <principal type string>` - `principal.type != <principal type string>` - `principal.type in [<list of principal types>]`

    Supported principal types are workspace, workforce pool, workload pool, service account, and Agent Identity. Allowed string must be one of:

    - `iam.googleapis.com/WorkspaceIdentity` - `iam.googleapis.com/WorkforcePoolIdentity` - `iam.googleapis.com/WorkloadPoolIdentity` - `iam.googleapis.com/ServiceAccount` - `iam.googleapis.com/AgentPoolIdentity` (available in Preview)

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

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

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

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

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

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

Enum: PolicyBinding::PolicyKind

  • POLICY_KIND_UNSPECIFIED => 0

  • PRINCIPAL_ACCESS_BOUNDARY => 1

  • ACCESS => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Iam::V3beta::PolicyBindingResources::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.