Service Client: Google::Cloud::Accessapproval::V1::Accessapproval::AccessApprovalClient
Client stub representing the remote AccessApproval gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to accessapproval.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Accessapproval::V1::Accessapproval - Compiled Protocol Buffers messages for google/cloud/accessapproval/v1/accessapproval.proto
SYNOPSIS
use Google::Cloud::Accessapproval::V1::Accessapproval;
my $msg = Google::Cloud::Accessapproval::V1::Accessapproval::AccessLocations->new({
principal_office_country => $principal_office_country,
principal_physical_location_country => $principal_physical_location_country,
});
# Read or update a field
my $val = $msg->principal_office_country();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Accessapproval::V1::Accessapproval::AccessLocations->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/accessapproval/v1/accessapproval.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::Accessapproval::V1::Accessapproval::AccessLocations
Home office and physical location of the principal.
Inherits from Protobuf::Message.
Accessors
$msg->principal_office_country()/$msg->principal_office_country($value)Type:
StringThe "home office" location of the principal. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes:
* ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location$msg->principal_physical_location_country()/$msg->principal_physical_location_country($value)Type:
StringPhysical location of the principal at the time of the access. A two-letter country code (ISO 3166-1 alpha-2), such as "US", "DE" or "GB" or a region code. In some limited situations Google systems may refer refer to a region code instead of a country code. Possible Region Codes:
* ASI: Asia * EUR: Europe * OCE: Oceania * AFR: Africa * NAM: North America * SAM: South America * ANT: Antarctica * ANY: Any location
Google::Cloud::Accessapproval::V1::Accessapproval::AccessReason
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Accessapproval::V1::AccessReason::Type)Type of access justification.
$msg->detail()/$msg->detail($value)Type:
StringMore detail about certain reason types. See comments for each type above.
Enum: AccessReason::Type
TYPE_UNSPECIFIED=>0CUSTOMER_INITIATED_SUPPORT=>1GOOGLE_INITIATED_SERVICE=>2GOOGLE_INITIATED_REVIEW=>3THIRD_PARTY_DATA_REQUEST=>4GOOGLE_RESPONSE_TO_PRODUCTION_ALERT=>5
Google::Cloud::Accessapproval::V1::Accessapproval::SignatureInfo
Information about the digital signature of the resource.
Inherits from Protobuf::Message.
Accessors
$msg->signature()/$msg->signature($value)Type:
BytesThe digital signature.
$msg->google_public_key_pem()/$msg->google_public_key_pem($value)Type:
StringThe public key for the Google default signing, encoded in PEM format. The signature was created using a private key which may be verified using this public key.
$msg->customer_kms_key_version()/$msg->customer_kms_key_version($value)Type:
StringThe resource name of the customer CryptoKeyVersion used for signing.
Google::Cloud::Accessapproval::V1::Accessapproval::ApproveDecision
A decision that has been made to approve access to a resource.
Inherits from Protobuf::Message.
Accessors
$msg->approve_time()/$msg->approve_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which approval was granted.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the approval expires.
$msg->invalidate_time()/$msg->invalidate_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)If set, denotes the timestamp at which the approval is invalidated.
$msg->signature_info()/$msg->signature_info($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::SignatureInfo)The signature for the ApprovalRequest and details on how it was signed.
$msg->auto_approved()/$msg->auto_approved($value)Type:
BoolTrue when the request has been auto-approved.
Google::Cloud::Accessapproval::V1::Accessapproval::DismissDecision
A decision that has been made to dismiss an approval request.
Inherits from Protobuf::Message.
Accessors
$msg->dismiss_time()/$msg->dismiss_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the approval request was dismissed.
$msg->implicit()/$msg->implicit($value)Type:
BoolThis field will be true if the ApprovalRequest was implicitly dismissed due to inaction by the access approval approvers (the request is not acted on by the approvers before the exiration time).
Google::Cloud::Accessapproval::V1::Accessapproval::ResourceProperties
The properties associated with the resource of the request.
Inherits from Protobuf::Message.
Accessors
$msg->excludes_descendants()/$msg->excludes_descendants($value)Type:
BoolWhether an approval will exclude the descendants of the resource being requested.
Google::Cloud::Accessapproval::V1::Accessapproval::ApprovalRequest
A request for the customer to approve access to a resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
$msg->requested_resource_name()/$msg->requested_resource_name($value)Type:
StringThe resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
$msg->requested_resource_properties()/$msg->requested_resource_properties($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::ResourceProperties)Properties related to the resource represented by requested_resource_name.
$msg->requested_reason()/$msg->requested_reason($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::AccessReason)The justification for which approval is being requested.
$msg->requested_locations()/$msg->requested_locations($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::AccessLocations)The locations for which approval is being requested.
$msg->request_time()/$msg->request_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which approval was requested.
$msg->requested_expiration()/$msg->requested_expiration($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
$msg->approve()/$msg->approve($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::ApproveDecision)Access was approved.
$msg->dismiss()/$msg->dismiss($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::DismissDecision)The request was dismissed.
Google::Cloud::Accessapproval::V1::Accessapproval::EnrolledService
Represents the enrollment of a cloud resource into a specific service.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_product()/$msg->cloud_product($value)Type:
StringThe product for which Access Approval will be enrolled. Allowed values are listed below (case-sensitive):
* all * GA * App Engine * BigQuery * Cloud Bigtable * Cloud Key Management Service * Compute Engine * Cloud Dataflow * Cloud Dataproc * Cloud DLP * Cloud EKM * Cloud HSM * Cloud Identity and Access Management * Cloud Logging * Cloud Pub/Sub * Cloud Spanner * Cloud SQL * Cloud Storage * Google Kubernetes Engine * Organization Policy Serivice * Persistent Disk * Resource Manager * Secret Manager * Speaker IDNote: These values are supported as input for legacy purposes, but will not be returned from the API.
* all * ga-only * appengine.googleapis.com * bigquery.googleapis.com * bigtable.googleapis.com * container.googleapis.com * cloudkms.googleapis.com * cloudresourcemanager.googleapis.com * cloudsql.googleapis.com * compute.googleapis.com * dataflow.googleapis.com * dataproc.googleapis.com * dlp.googleapis.com * iam.googleapis.com * logging.googleapis.com * orgpolicy.googleapis.com * pubsub.googleapis.com * spanner.googleapis.com * secretmanager.googleapis.com * speakerid.googleapis.com * storage.googleapis.comCalls to UpdateAccessApprovalSettings using 'all' or any of the XXX.googleapis.com will be translated to the associated product name ('all', 'App Engine', etc.).
Note: 'all' will enroll the resource in all products supported at both 'GA' and 'Preview' levels.
More information about levels of support is available at https://cloud.google.com/access-approval/docs/supported-services
$msg->enrollment_level()/$msg->enrollment_level($value)Type:
Enum(Google::Cloud::Accessapproval::V1::EnrollmentLevel)The enrollment level of the service.
Google::Cloud::Accessapproval::V1::Accessapproval::AccessApprovalSettings
Settings on a Project/Folder/Organization related to Access Approval.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the settings. Format is one of:
* "projects/{project}/accessApprovalSettings" * "folders/{folder}/accessApprovalSettings" * "organizations/{organization}/accessApprovalSettings"$msg->notification_emails()/$msg->notification_emails($value)Type:
StringA list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. A maximum of 50 email addresses are allowed.
$msg->enrolled_services()/$msg->enrolled_services($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::EnrolledService)A list of Google Cloud Services for which the given resource has Access Approval enrolled. Access requests for the resource given by name against any of these services contained here will be required to have explicit approval. If name refers to an organization, enrollment can be done for individual services. If name refers to a folder or project, enrollment can only be done on an all or nothing basis.
If a cloud_product is repeated in this list, the first entry will be honored and all following entries will be discarded. A maximum of 10 enrolled services will be enforced, to be expanded as the set of supported services is expanded.
$msg->enrolled_ancestor()/$msg->enrolled_ancestor($value)Type:
BoolOutput only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).
$msg->active_key_version()/$msg->active_key_version($value)Type:
StringThe asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of this resource, and new non-empty values may not be set.
$msg->ancestor_has_active_key_version()/$msg->ancestor_has_active_key_version($value)Type:
BoolOutput only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that an ancestor of this Project or Folder has set active_key_version (this field will always be unset for the organization since organizations do not have ancestors).
$msg->invalid_key_version()/$msg->invalid_key_version($value)Type:
BoolOutput only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that there is some configuration issue with the active_key_version configured at this level in the resource hierarchy (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.
Google::Cloud::Accessapproval::V1::Accessapproval::AccessApprovalServiceAccount
Access Approval service account related to a project/folder/organization.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the Access Approval service account. Format is one of:
* "projects/{project}/serviceAccount" * "folders/{folder}/serviceAccount" * "organizations/{organization}/serviceAccount"$msg->account_email()/$msg->account_email($value)Type:
StringEmail address of the service account.
Google::Cloud::Accessapproval::V1::Accessapproval::ListApprovalRequestsMessage
Request to list approval requests.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringThe parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".
$msg->filter()/$msg->filter($value)Type:
StringA filter on the type of approval requests to retrieve. Must be one of the following values:
* [not set]: Requests that are pending or have active approvals. * ALL: All requests. * PENDING: Only pending requests. * ACTIVE: Only active (i.e. currently approved) requests. * DISMISSED: Only requests that have been dismissed, or requests that are not approved and past expiration. * EXPIRED: Only requests that have been approved, and the approval has expired. * HISTORY: Active, dismissed and expired requests.$msg->page_size()/$msg->page_size($value)Type:
Int32Requested page size.
$msg->page_token()/$msg->page_token($value)Type:
StringA token identifying the page of results to return.
Google::Cloud::Accessapproval::V1::Accessapproval::ListApprovalRequestsResponse
Response to listing of ApprovalRequest objects.
Inherits from Protobuf::Message.
Accessors
$msg->approval_requests()/$msg->approval_requests($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::ApprovalRequest)Approval request details.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more.
Google::Cloud::Accessapproval::V1::Accessapproval::GetApprovalRequestMessage
Request to get an approval request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"
Google::Cloud::Accessapproval::V1::Accessapproval::ApproveApprovalRequestMessage
Request to approve an ApprovalRequest.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the approval request to approve.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The expiration time of this approval.
Google::Cloud::Accessapproval::V1::Accessapproval::DismissApprovalRequestMessage
Request to dismiss an approval request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the ApprovalRequest to dismiss.
Google::Cloud::Accessapproval::V1::Accessapproval::InvalidateApprovalRequestMessage
Request to invalidate an existing approval.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the ApprovalRequest to invalidate.
Google::Cloud::Accessapproval::V1::Accessapproval::GetAccessApprovalSettingsMessage
Request to get access approval settings.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the AccessApprovalSettings to retrieve. Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"
Google::Cloud::Accessapproval::V1::Accessapproval::UpdateAccessApprovalSettingsMessage
Request to update access approval settings.
Inherits from Protobuf::Message.
Accessors
$msg->settings()/$msg->settings($value)Type:
Message(Google::Cloud::Accessapproval::V1::Accessapproval::AccessApprovalSettings)The new AccessApprovalSettings.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails & enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request.
For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask If this field is left unset, only the notification_emails field will be updated.
Google::Cloud::Accessapproval::V1::Accessapproval::DeleteAccessApprovalSettingsMessage
Request to delete access approval settings.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the AccessApprovalSettings to delete.
Google::Cloud::Accessapproval::V1::Accessapproval::GetAccessApprovalServiceAccountMessage
Request to get an Access Approval service account.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the AccessApprovalServiceAccount to retrieve.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Accessapproval::V1::Accessapproval::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.