Service describing handlers for resources.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
AuditManagerClient(AuditManagerClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
AuditManagerClient const &
|
AuditManagerClient(AuditManagerClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
AuditManagerClient &&
|
AuditManagerClient(std::shared_ptr< AuditManagerConnection >, Options)
| Parameters | |
|---|---|
| Name | Description |
connection |
std::shared_ptr< AuditManagerConnection >
|
opts |
Options
|
Operators
operator=(AuditManagerClient const &)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
AuditManagerClient const &
|
| Returns | |
|---|---|
| Type | Description |
AuditManagerClient & |
|
operator=(AuditManagerClient &&)
Copy and move support
| Parameter | |
|---|---|
| Name | Description |
|
AuditManagerClient &&
|
| Returns | |
|---|---|
| Type | Description |
AuditManagerClient & |
|
Functions
EnrollResource(std::string const &, std::vector< google::cloud::auditmanager::v1::EnrollResourceRequest::EligibleDestination > const &, Options)
Enrolls the customer resource(folder/project/organization) to the audit manager service by creating the audit managers Service Agent in customers workload and granting required permissions to the Service Agent.
Please note that if enrollment request is made on the already enrolled workload then enrollment is executed overriding the existing set of destinations.
| Parameters | |
|---|---|
| Name | Description |
scope |
std::string const &
Required. The resource to be enrolled to the audit manager. Scope format should be resource_type/resource_identifier Eg: projects/{project}/locations/{location}, folders/{folder}/locations/{location} organizations/{organization}/locations/{location} |
destinations |
std::vector< google::cloud::auditmanager::v1::EnrollResourceRequest::EligibleDestination > const &
Required. List of destination among which customer can choose to upload their reports during the audit process. While enrolling at a organization/folder level, customer can choose Cloud storage bucket in any project. If the audit is triggered at project level using the service agent at organization/folder level, all the destination options associated with respective organization/folder level service agent will be available to auditing projects. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::Enrollment > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.Enrollment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
EnrollResource(google::cloud::auditmanager::v1::EnrollResourceRequest const &, Options)
Enrolls the customer resource(folder/project/organization) to the audit manager service by creating the audit managers Service Agent in customers workload and granting required permissions to the Service Agent.
Please note that if enrollment request is made on the already enrolled workload then enrollment is executed overriding the existing set of destinations.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::EnrollResourceRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::Enrollment > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.Enrollment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GenerateAuditScopeReport(std::string const &, std::string const &, google::cloud::auditmanager::v1::GenerateAuditScopeReportRequest::AuditScopeReportFormat, Options)
Generates a demo report highlighting different responsibilities (Google/Customer/ shared) required to be fulfilled for the customer's workload to be compliant with the given standard.
| Parameters | |
|---|---|
| Name | Description |
scope |
std::string const &
Required. Scope for which the AuditScopeReport is required. Must be of format resource_type/resource_identifier Eg: projects/{project}/locations/{location}, folders/{folder}/locations/{location} |
compliance_standard |
std::string const &
Required. Compliance Standard against which the Scope Report must be generated. Eg: FEDRAMP_MODERATE |
report_format |
google::cloud::auditmanager::v1::GenerateAuditScopeReportRequest::AuditScopeReportFormat
Required. The format in which the Scope report bytes should be returned. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::AuditScopeReport > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.AuditScopeReport) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GenerateAuditScopeReport(google::cloud::auditmanager::v1::GenerateAuditScopeReportRequest const &, Options)
Generates a demo report highlighting different responsibilities (Google/Customer/ shared) required to be fulfilled for the customer's workload to be compliant with the given standard.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::GenerateAuditScopeReportRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::AuditScopeReport > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.AuditScopeReport) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GenerateAuditReport(std::string const &, std::string const &, std::string const &, google::cloud::auditmanager::v1::GenerateAuditReportRequest::AuditReportFormat, Options)
Register the Audit Report generation requests and returns the OperationId using which the customer can track the report generation progress.
| Parameters | |
|---|---|
| Name | Description |
scope |
std::string const &
Required. Scope for which the AuditScopeReport is required. Must be of format resource_type/resource_identifier Eg: projects/{project}/locations/{location}, folders/{folder}/locations/{location} |
gcs_uri |
std::string const &
Destination Cloud storage bucket where report and evidence must be uploaded. The Cloud storage bucket provided here must be selected among the buckets entered during the enrollment process. |
compliance_standard |
std::string const &
Required. Compliance Standard against which the Scope Report must be generated. Eg: FEDRAMP_MODERATE |
report_format |
google::cloud::auditmanager::v1::GenerateAuditReportRequest::AuditReportFormat
Required. The format in which the audit report should be created. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::auditmanager::v1::AuditReport > > |
A |
GenerateAuditReport(NoAwaitTag, std::string const &, std::string const &, std::string const &, google::cloud::auditmanager::v1::GenerateAuditReportRequest::AuditReportFormat, Options)
Register the Audit Report generation requests and returns the OperationId using which the customer can track the report generation progress.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
scope |
std::string const &
|
gcs_uri |
std::string const &
|
compliance_standard |
std::string const &
|
report_format |
google::cloud::auditmanager::v1::GenerateAuditReportRequest::AuditReportFormat
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
GenerateAuditReport(google::cloud::auditmanager::v1::GenerateAuditReportRequest const &, Options)
Register the Audit Report generation requests and returns the OperationId using which the customer can track the report generation progress.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::GenerateAuditReportRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::auditmanager::v1::AuditReport > > |
A |
GenerateAuditReport(NoAwaitTag, google::cloud::auditmanager::v1::GenerateAuditReportRequest const &, Options)
Register the Audit Report generation requests and returns the OperationId using which the customer can track the report generation progress.
Specifying the NoAwaitTag immediately returns the [google::longrunning::Operation] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
| Parameters | |
|---|---|
| Name | Description |
|
NoAwaitTag
|
request |
google::cloud::auditmanager::v1::GenerateAuditReportRequest const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
|
GenerateAuditReport(google::longrunning::Operation const &, Options)
Register the Audit Report generation requests and returns the OperationId using which the customer can track the report generation progress.
This method accepts a google::longrunning::Operation that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
| Parameters | |
|---|---|
| Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
| Returns | |
|---|---|
| Type | Description |
future< StatusOr< google::cloud::auditmanager::v1::AuditReport > > |
|
ListAuditReports(std::string const &, Options)
Lists audit reports in the selected parent scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent scope for which to list the reports. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::auditmanager::v1::AuditReport > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListAuditReports(google::cloud::auditmanager::v1::ListAuditReportsRequest, Options)
Lists audit reports in the selected parent scope.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::ListAuditReportsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::auditmanager::v1::AuditReport > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetAuditReport(std::string const &, Options)
Get the overall audit report.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Format projects/{project}/locations/{location}/auditReports/{audit_report}, folders/{folder}/locations/{location}/auditReports/{audit_report} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::AuditReport > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.AuditReport) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetAuditReport(google::cloud::auditmanager::v1::GetAuditReportRequest const &, Options)
Get the overall audit report.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::GetAuditReportRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::AuditReport > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.AuditReport) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetResourceEnrollmentStatus(std::string const &, Options)
Get a resource along with its enrollment status.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Format folders/{folder}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}, projects/{project}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status}, organizations/{organization}/locations/{location}/resourceEnrollmentStatuses/{resource_enrollment_status} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::ResourceEnrollmentStatus > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.ResourceEnrollmentStatus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetResourceEnrollmentStatus(google::cloud::auditmanager::v1::GetResourceEnrollmentStatusRequest const &, Options)
Get a resource along with its enrollment status.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::GetResourceEnrollmentStatusRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::auditmanager::v1::ResourceEnrollmentStatus > |
the result of the RPC. The response message type (google.cloud.auditmanager.v1.ResourceEnrollmentStatus) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListResourceEnrollmentStatuses(std::string const &, Options)
Fetches all resources under the parent along with their enrollment.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. The parent scope for which the list of resources with enrollments are required. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::auditmanager::v1::ResourceEnrollmentStatus > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListResourceEnrollmentStatuses(google::cloud::auditmanager::v1::ListResourceEnrollmentStatusesRequest, Options)
Fetches all resources under the parent along with their enrollment.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::ListResourceEnrollmentStatusesRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::auditmanager::v1::ResourceEnrollmentStatus > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListControls(std::string const &, Options)
Gets controls needed to be implemented to be compliant to a standard.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Format projects/{project}/locations/{location}/standards/{standard}, folders/{folder}/locations/{location}/standards/{standard} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::auditmanager::v1::Control > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListControls(google::cloud::auditmanager::v1::ListControlsRequest, Options)
Gets controls needed to be implemented to be compliant to a standard.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::auditmanager::v1::ListControlsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::auditmanager::v1::Control > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListLocations(google::cloud::location::ListLocationsRequest, Options)
Lists information about the supported locations for this service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::ListLocationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::cloud::location::Location > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetLocation(google::cloud::location::GetLocationRequest const &, Options)
Gets information about a location.
| Parameters | |
|---|---|
| Name | Description |
request |
google::cloud::location::GetLocationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::cloud::location::Location > |
the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOperations(std::string const &, std::string const &, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation's parent resource. |
filter |
std::string const &
The standard list filter. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOperations(google::longrunning::ListOperationsRequest, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::ListOperationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOperation(std::string const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOperation(google::longrunning::GetOperationRequest const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::GetOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteOperation(std::string const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be deleted. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::DeleteOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(std::string const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
The name of the operation resource to be cancelled. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |
CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
| Parameters | |
|---|---|
| Name | Description |
request |
google::longrunning::CancelOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
| Returns | |
|---|---|
| Type | Description |
Status |
a |