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: String

    The "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: String

    Physical 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

Enum: AccessReason::Type

  • TYPE_UNSPECIFIED => 0

  • CUSTOMER_INITIATED_SUPPORT => 1

  • GOOGLE_INITIATED_SERVICE => 2

  • GOOGLE_INITIATED_REVIEW => 3

  • THIRD_PARTY_DATA_REQUEST => 4

  • GOOGLE_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: Bytes

    The digital signature.

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

    Type: String

    The 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: String

    The 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

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: Bool

    This 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: Bool

    Whether 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

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: String

    The 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 ID

    Note: 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.com

    Calls 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: String

    The 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: String

    A 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: Bool

    Output 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: String

    The 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: Bool

    Output 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: Bool

    Output 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: String

    The 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: String

    Email 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: String

    The parent resource. This may be "projects/{project}", "folders/{folder}", or "organizations/{organization}".

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

    Type: String

    A 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: Int32

    Requested page size.

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

    Type: String

    A 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

Google::Cloud::Accessapproval::V1::Accessapproval::GetApprovalRequestMessage

Request to get an approval request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The 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: String

    Name 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: String

    Name 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: String

    Name 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: String

    The 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: String

    Name 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: String

    Name 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.