Service Client: Google::Iam::V1::IamPolicy::IAMPolicyClient

Client stub representing the remote IAMPolicy 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::V1::IamPolicy - Compiled Protocol Buffers messages for google/iam/v1/iam_policy.proto

SYNOPSIS

use Google::Iam::V1::IamPolicy;

my $msg = Google::Iam::V1::IamPolicy::SetIamPolicyRequest->new({
    resource => $resource,
    policy => $policy,
    update_mask => $update_mask,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Iam::V1::IamPolicy::SetIamPolicyRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/iam/v1/iam_policy.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::V1::IamPolicy::SetIamPolicyRequest

Request message for `SetIamPolicy` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

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

    Type: Message (Google::Iam::V1::Policy::Policy)

    REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:

    `paths: "bindings, etag"`

Google::Iam::V1::IamPolicy::GetIamPolicyRequest

Request message for `GetIamPolicy` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

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

    Type: Message (Google::Iam::V1::Options::GetPolicyOptions)

    OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.

Google::Iam::V1::IamPolicy::TestIamPermissionsRequest

Request message for `TestIamPermissions` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

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

    Type: String

    The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).

Google::Iam::V1::IamPolicy::TestIamPermissionsResponse

Response message for `TestIamPermissions` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A subset of `TestPermissionsRequest.permissions` that the caller is allowed.

SEE ALSO

Protobuf, Protobuf::Message, Google::Iam::V1::IamPolicy::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.