Service Client: Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::PrivilegedAccessManagerClient

Client stub representing the remote PrivilegedAccessManager gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to privilegedaccessmanager.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager - Compiled Protocol Buffers messages for google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager.proto

SYNOPSIS

use Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager;

my $msg = Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::CheckOnboardingStatusRequest->new({
    parent => $parent,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::CheckOnboardingStatusRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/privilegedaccessmanager/v1/privilegedaccessmanager.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::CheckOnboardingStatusRequest

Request message for `CheckOnboardingStatus` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The resource for which the onboarding status should be checked. Should be in one of the following formats:

    * `projects/{project-number|project-id}/locations/{region}` * `folders/{folder-number}/locations/{region}` * `organizations/{organization-number}/locations/{region}`

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::CheckOnboardingStatusResponse

Response message for `CheckOnboardingStatus` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Entitlement

An entitlement defines the eligibility of a set of users to obtain predefined access for some time possibly after going through an approval workflow.

Inherits from Protobuf::Message.

Accessors

Enum: Entitlement::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • AVAILABLE => 2

  • DELETING => 3

  • DELETED => 4

  • UPDATING => 5

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::AccessControlEntry

`AccessControlEntry` is used to control who can do some operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ApprovalWorkflow

Different types of approval workflows that can be used to gate privileged access granting.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ManualApprovals

A manual approval workflow where users who are designated as approvers need to call the `ApproveGrant`/`DenyGrant` APIs for a grant. The workflow can consist of multiple serial steps where each step defines who can act as approver in that step and how many of those users should approve before the workflow moves to the next step.

This can be used to create approval workflows such as:

* Require an approval from any user in a group G. * Require an approval from any k number of users from a Group G. * Require an approval from any user in a group G and then from a user U.

A single user might be part of the `approvers` ACL for multiple steps in this workflow, but they can only approve once and that approval is only considered to satisfy the approval step at which it was granted.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Optional. Do the approvers need to provide a justification for their actions?

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ManualApprovals::Step)

    Optional. List of approval steps in this workflow. These steps are followed in the specified order sequentially. Only 1 step is supported.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::PrivilegedAccess

Privileged access that this service can be used to gate.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ListEntitlementsRequest

Message for requesting list of entitlements.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent which owns the entitlement resources.

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, the server picks an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filtering results.

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

    Type: String

    Optional. Hint for how to order the results.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ListEntitlementsResponse

Message for response to listing entitlements.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Entitlement)

    The list of entitlements.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::SearchEntitlementsRequest

Request message for `SearchEntitlements` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent which owns the entitlement resources.

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

    Type: Enum (Google::Cloud::Privilegedaccessmanager::V1::SearchEntitlementsRequest::CallerAccessType)

    Required. Only entitlements where the calling user has this access are returned.

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

    Type: String

    Optional. Only entitlements matching this filter are returned in the response.

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

    Type: Int32

    Optional. Requested page size. The server may return fewer items than requested. If unspecified, the server picks an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

Enum: SearchEntitlementsRequest::CallerAccessType

  • CALLER_ACCESS_TYPE_UNSPECIFIED => 0

  • GRANT_REQUESTER => 1

  • GRANT_APPROVER => 2

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::SearchEntitlementsResponse

Response message for `SearchEntitlements` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::GetEntitlementRequest

Message for getting an entitlement.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::CreateEntitlementRequest

Message for creating an entitlement.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the parent resource for the entitlement. Possible formats:

    * `organizations/{organization-number}/locations/{region}` * `folders/{folder-number}/locations/{region}` * `projects/{project-id|project-number}/locations/{region}`

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

    Type: String

    Required. The ID to use for this entitlement. This becomes the last part of the resource name.

    This value should be 4-63 characters in length, and valid characters are "[a-z]", "[0-9]", and "-". The first character should be from [a-z].

    This value should be unique among all other entitlements under the specified `parent`.

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Entitlement)

    Required. The resource being created

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees this for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request and returns the previous operation's response. This prevents clients from accidentally creating duplicate entitlements.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::DeleteEntitlementRequest

Message for deleting an entitlement.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees this for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

    Type: Bool

    Optional. If set to true, any child grant under this entitlement is also deleted. (Otherwise, the request only works if the entitlement has no child grant.)

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::UpdateEntitlementRequest

Message for updating an entitlement.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Entitlement)

    Required. The entitlement resource that is updated.

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

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

    Required. The list of fields to update. A field is overwritten if, and only if, it is in the mask. Any immutable fields set in the mask are ignored by the server. Repeated fields and map fields are only allowed in the last position of a `paths` string and overwrite the existing values. Hence an update to a repeated field or a map should contain the entire list of values. The fields specified in the update_mask are relative to the resource and not to the request. (e.g. `MaxRequestDuration`; *not* `entitlement.MaxRequestDuration`) A value of '*' for this field refers to full replacement of the resource.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Grant

A grant represents a request from a user for obtaining the access specified in an entitlement they are eligible for.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. Name of this grant. Possible formats:

    * `organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}` * `folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}` * `projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}`

    The last segment of this name (`{grant-id}`) is autogenerated.

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

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

    Output only. Create time stamp.

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

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

    Output only. Update time stamp.

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

    Type: String

    Output only. Username of the user who created this grant.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. The amount of time access is needed for. This value should be less than the `max_request_duration` value of the entitlement.

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Justification)

    Optional. Justification of why this access is needed.

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

    Type: Enum (Google::Cloud::Privilegedaccessmanager::V1::Grant::State)

    Output only. Current state of this grant.

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Grant::Timeline)

    Output only. Timeline of this grant.

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::PrivilegedAccess)

    Output only. The access that would be granted by this grant.

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Grant::AuditTrail)

    Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.

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

    Type: String

    Optional. Additional email addresses to notify for all the actions performed on the grant.

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

    Type: Bool

    Output only. Flag set by the PAM system to indicate that policy bindings made by this grant have been modified from outside PAM.

    After it is set, this flag remains set forever irrespective of the grant state. A `true` value here indicates that PAM no longer has any certainty on the access a user has because of this grant.

Enum: Grant::State

  • STATE_UNSPECIFIED => 0

  • APPROVAL_AWAITED => 1

  • DENIED => 3

  • SCHEDULED => 4

  • ACTIVATING => 5

  • ACTIVE => 6

  • ACTIVATION_FAILED => 7

  • EXPIRED => 8

  • REVOKING => 9

  • REVOKED => 10

  • ENDED => 11

  • WITHDRAWING => 12

  • WITHDRAWN => 13

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Justification

Justification represents a justification for requesting access.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A free form textual justification. The system only ensures that this is not empty. No other kind of validation is performed on the string.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ListGrantsRequest

Message for requesting list of grants.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource which owns the grants.

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

    Type: Int32

    Optional. Requested page size. The server may return fewer items than requested. If unspecified, the server picks an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filtering results.

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

    Type: String

    Optional. Hint for how to order the results

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ListGrantsResponse

Message for response to listing grants.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Grant)

    The list of grants.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::SearchGrantsRequest

Request message for `SearchGrants` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent which owns the grant resources.

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

    Type: Enum (Google::Cloud::Privilegedaccessmanager::V1::SearchGrantsRequest::CallerRelationshipType)

    Required. Only grants which the caller is related to by this relationship are returned in the response.

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

    Type: String

    Optional. Only grants matching this filter are returned in the response.

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

    Type: Int32

    Optional. Requested page size. The server may return fewer items than requested. If unspecified, server picks an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

Enum: SearchGrantsRequest::CallerRelationshipType

  • CALLER_RELATIONSHIP_TYPE_UNSPECIFIED => 0

  • HAD_CREATED => 1

  • CAN_APPROVE => 2

  • HAD_APPROVED => 3

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::SearchGrantsResponse

Response message for `SearchGrants` method.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::GetGrantRequest

Message for getting a grant.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the resource.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::ApproveGrantRequest

Request message for `ApproveGrant` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the grant resource which is being approved.

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

    Type: String

    Optional. The reason for approving this grant. This is required if the `require_approver_justification` field of the `ManualApprovals` workflow used in this grant is true.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::DenyGrantRequest

Request message for `DenyGrant` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the grant resource which is being denied.

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

    Type: String

    Optional. The reason for denying this grant. This is required if `require_approver_justification` field of the `ManualApprovals` workflow used in this grant is true.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::RevokeGrantRequest

Request message for `RevokeGrant` method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the grant resource which is being revoked.

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

    Type: String

    Optional. The reason for revoking this grant.

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::CreateGrantRequest

Message for creating a grant

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the parent entitlement for which this grant is being requested.

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

    Type: Message (Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Grant)

    Required. The resource being created.

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

    Type: String

    Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees this for at least 60 minutes after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate grants.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::OperationMetadata

Represents the metadata of the long-running operation.

Inherits from Protobuf::Message.

Accessors

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

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

    Output only. The time the operation was created.

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

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

    Output only. The time the operation finished running.

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

    Type: String

    Output only. Server-defined resource path for the target of the operation.

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

    Type: String

    Output only. Name of the verb executed by the operation.

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

    Type: String

    Output only. Human-readable status of the operation, if any.

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

    Type: Bool

    Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.

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

    Type: String

    Output only. API version used to start the operation.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Privilegedaccessmanager::V1::Privilegedaccessmanager::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.