Service Client: Google::Cloud::Cloudsecuritycompliance::V1::Audit::AuditClient
Client stub representing the remote Audit gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to cloudsecuritycompliance.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Cloudsecuritycompliance::V1::Audit - Compiled Protocol Buffers messages for google/cloud/cloudsecuritycompliance/v1/audit.proto
SYNOPSIS
use Google::Cloud::Cloudsecuritycompliance::V1::Audit;
my $msg = Google::Cloud::Cloudsecuritycompliance::V1::Audit::GenerateFrameworkAuditScopeReportRequest->new({
scope => $scope,
report_format => $report_format,
compliance_framework => $compliance_framework,
});
# Read or update a field
my $val = $msg->scope();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Cloudsecuritycompliance::V1::Audit::GenerateFrameworkAuditScopeReportRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/cloudsecuritycompliance/v1/audit.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::Cloudsecuritycompliance::V1::Audit::GenerateFrameworkAuditScopeReportRequest
The request message for [GenerateFrameworkAuditScopeReport][].
Inherits from Protobuf::Message.
Accessors
$msg->scope()/$msg->scope($value)Type:
StringRequired. The organization, folder or project for the audit report.
Supported formats are the following:
* `projects/{project_id}/locations/{location}` * `folders/{folder_id}/locations/{location}` * `organizations/{organization_id}/locations/{location}`
$msg->report_format()/$msg->report_format($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::GenerateFrameworkAuditScopeReportRequest::Format)Required. The format that the scope report bytes is returned in.
$msg->compliance_framework()/$msg->compliance_framework($value)Type:
StringRequired. The compliance framework that the scope report is generated for.
Enum: GenerateFrameworkAuditScopeReportRequest::Format
FORMAT_UNSPECIFIED=>0ODF=>1
Google::Cloud::Cloudsecuritycompliance::V1::Audit::GenerateFrameworkAuditScopeReportResponse
The response message for [GenerateFrameworkAuditScopeReport][].
Inherits from Protobuf::Message.
Accessors
$msg->scope_report_contents()/$msg->scope_report_contents($value)Type:
BytesThe audit scope report content in byte format.
$msg->name()/$msg->name($value)Type:
StringIdentifier. The name of the audit report, in the format that was given in the request.
$msg->compliance_framework()/$msg->compliance_framework($value)Type:
StringRequired. The compliance framework that the audit scope report is generated for.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::ReportSummary
Additional information for an audit operation.
Inherits from Protobuf::Message.
Accessors
$msg->total_count()/$msg->total_count($value)Type:
Int32Output only. The total number of checks.
$msg->compliant_count()/$msg->compliant_count($value)Type:
Int32Output only. The number of compliant checks.
$msg->violation_count()/$msg->violation_count($value)Type:
Int32Output only. The number of checks with violations.
$msg->manual_review_needed_count()/$msg->manual_review_needed_count($value)Type:
Int32Output only. The number of checks with "manual review needed" status.
$msg->error_count()/$msg->error_count($value)Type:
Int32Output only. The number of checks that can't be performed due to errors.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::CreateFrameworkAuditRequest
The request message for [CreateFrameworkAudit][].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this framework audit is created.
Supported formats are the following:
* `organizations/{organization_id}/locations/{location}` * `folders/{folder_id}/locations/{location}` * `projects/{project_id}/locations/{location}`
$msg->framework_audit_id()/$msg->framework_audit_id($value)Type:
StringOptional. The ID to use for the framework audit. The ID becomes the final component of the framework audit's full resource name.
The ID must be between 4-63 characters, and valid characters are `\[a-z][0-9]-\`.
$msg->framework_audit()/$msg->framework_audit($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::FrameworkAudit)Required. The framework audit to create.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::FrameworkAuditDestination
A destination for the framework audit.
Inherits from Protobuf::Message.
Accessors
$msg->bucket()/$msg->bucket($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::BucketDestination)The Cloud Storage bucket destination.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::BucketDestination
A Cloud Storage bucket destination.
Inherits from Protobuf::Message.
Accessors
$msg->bucket_uri()/$msg->bucket_uri($value)Type:
StringRequired. The URI of the Cloud Storage bucket.
$msg->framework_audit_format()/$msg->framework_audit_format($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::BucketDestination::Format)Optional. The format of the framework audit.
Enum: BucketDestination::Format
FORMAT_UNSPECIFIED=>0ODF=>1
Google::Cloud::Cloudsecuritycompliance::V1::Audit::FrameworkAudit
A framework audit.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The name of the framework audit.
$msg->framework_audit_id()/$msg->framework_audit_id($value)Type:
StringOutput only. The ID of the framework audit.
$msg->compliance_framework()/$msg->compliance_framework($value)Type:
StringOutput only. The compliance framework used for the audit.
$msg->scope()/$msg->scope($value)Type:
StringOutput only. The scope of the audit.
$msg->framework_audit_destination()/$msg->framework_audit_destination($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::FrameworkAuditDestination)Required. The destination for the audit reports.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the audit started.
$msg->finish_time()/$msg->finish_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the audit finished.
$msg->compliance_state()/$msg->compliance_state($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::ComplianceState)Output only. The overall compliance state of the audit.
$msg->report_summary()/$msg->report_summary($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::ReportSummary)Output only. The summary of the report.
$msg->cloud_control_group_audit_details()/$msg->cloud_control_group_audit_details($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::CloudControlGroupAuditDetails)Optional. The details for the cloud control groups within this audit.
$msg->cloud_control_audit_details()/$msg->cloud_control_audit_details($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::CloudControlAuditDetails)Optional. The details for the cloud controls within this audit.
$msg->operation_id()/$msg->operation_id($value)Type:
StringOutput only. The ID of the long-running operation.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::FrameworkAudit::State)Output only. The framework audit state of the audit.
Enum: FrameworkAudit::State
STATE_UNSPECIFIED=>0SCHEDULED=>1RUNNING=>2UPLOADING=>3FAILED=>4SUCCEEDED=>5
Google::Cloud::Cloudsecuritycompliance::V1::Audit::ListFrameworkAuditsRequest
The request message for [ListFrameworkAudits][].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where the framework audits are listed.
Supported formats are the following:
* `organizations/{organization_id}/locations/{location}` * `folders/{folder_id}/locations/{location}` * `projects/{project_id}/locations/{location}`
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of framework audits to return. The service might return fewer audits than this value. If unspecified, a maximum of 10 framework audits are returned. The maximum value is 50; values above 50 are limited to 50.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The `next_page_token` value that's returned from a previous list request, if any.
$msg->filter()/$msg->filter($value)Type:
StringOptional. The filters to apply to the framework audits. Supported filters are `compliance_framework`, `compliance_state`, `create_time,` and `framework_audit_name`. If the filter is invalid, an invalid argument error is returned. For syntax details, see [AIP-160][https://google.aip.dev/160].
Google::Cloud::Cloudsecuritycompliance::V1::Audit::ListFrameworkAuditsResponse
The response message for [ListFrameworkAudits][].
Inherits from Protobuf::Message.
Accessors
$msg->framework_audits()/$msg->framework_audits($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::FrameworkAudit)The framework audits.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which you can send as the `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::GetFrameworkAuditRequest
The request message for [GetFrameworkAudit][].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the framework audit to retrieve.
Supported formats are the following:
* `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}` * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
Google::Cloud::Cloudsecuritycompliance::V1::Audit::CloudControlGroupAuditDetails
The details for a cloud control group.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_control_group_id()/$msg->cloud_control_group_id($value)Type:
StringOutput only. The ID of the cloud control group.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The display name of the cloud control group.
$msg->description()/$msg->description($value)Type:
StringOutput only. The description of the cloud control group.
$msg->responsibility_type()/$msg->responsibility_type($value)Type:
StringOutput only. The responsibility type.
$msg->google_responsibility_description()/$msg->google_responsibility_description($value)Type:
StringOutput only. The description of Google's responsibility.
$msg->google_responsibility_implementation()/$msg->google_responsibility_implementation($value)Type:
StringOutput only. The implementation of Google's responsibility.
$msg->customer_responsibility_description()/$msg->customer_responsibility_description($value)Type:
StringOutput only. The description of your responsibility.
$msg->customer_responsibility_implementation()/$msg->customer_responsibility_implementation($value)Type:
StringOutput only. The implementation of your responsibility.
$msg->compliance_state()/$msg->compliance_state($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::ComplianceState)Output only. The compliance state of the control group.
$msg->control_id()/$msg->control_id($value)Type:
StringOutput only. The ID of the regulatory control.
$msg->control_family()/$msg->control_family($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Common::ControlFamily)Output only. The control family.
$msg->cloud_control_details()/$msg->cloud_control_details($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::CloudControlAuditDetails)Output only. The details for the cloud controls within this group.
$msg->report_summary()/$msg->report_summary($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::ReportSummary)Output only. The summary of the report.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::FindingDetails
The details for a finding.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The name of the finding.
$msg->compliance_state()/$msg->compliance_state($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::ComplianceState)Output only. The compliance state of the finding.
$msg->observation()/$msg->observation($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::ObservationDetails)Output only. The observation details for the finding.
$msg->evidence()/$msg->evidence($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::EvidenceDetails)Output only. The evidence details for the finding.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::ObservationDetails
The observation details for a finding.
Inherits from Protobuf::Message.
Accessors
$msg->current_value()/$msg->current_value($value)Type:
StringOutput only. The current value.
$msg->expected_value()/$msg->expected_value($value)Type:
StringOptional. The expected value.
$msg->guidance()/$msg->guidance($value)Type:
StringOutput only. Any guidance for the observation.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::EvidenceDetails
The evidence details for a finding.
Inherits from Protobuf::Message.
Accessors
$msg->resource()/$msg->resource($value)Type:
StringOutput only. The resource identifier.
$msg->service()/$msg->service($value)Type:
StringOutput only. The service identifier.
$msg->evidence_path()/$msg->evidence_path($value)Type:
StringOutput only. The path to the evidence.
Google::Cloud::Cloudsecuritycompliance::V1::Audit::CloudControlAuditDetails
The details for a cloud control audit.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_control()/$msg->cloud_control($value)Type:
StringOutput only. The name of the cloud control.
$msg->cloud_control_id()/$msg->cloud_control_id($value)Type:
StringOutput only. The ID of the cloud control.
$msg->cloud_control_description()/$msg->cloud_control_description($value)Type:
StringOutput only. The description of the cloud control.
$msg->compliance_state()/$msg->compliance_state($value)Type:
Enum(Google::Cloud::Cloudsecuritycompliance::V1::ComplianceState)Output only. The overall status of the findings for the control.
$msg->report_summary()/$msg->report_summary($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::ReportSummary)Output only. The summary of the report.
$msg->findings()/$msg->findings($value)Type:
Message(Google::Cloud::Cloudsecuritycompliance::V1::Audit::FindingDetails)Output only. The findings for the control.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Cloudsecuritycompliance::V1::Audit::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.