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)
Adds your project, folder, or organization to Audit Manager.
This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides the existing set of destinations.
| Parameters | |
|---|---|
| Name | Description |
scope |
std::string const &
Required. Organization, folder, or project to enroll in Audit Manager, in one of the following formats:
|
destinations |
std::vector< google::cloud::auditmanager::v1::EnrollResourceRequest::EligibleDestination > const &
Required. Cloud Storage buckets that you can upload your audit reports to during the audit process. |
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)
Adds your project, folder, or organization to Audit Manager.
This method creates the Audit Manager service agent in your workload and grants required permissions to the service agent. If you make this request on a workload that's already enrolled, then this method overrides 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 an audit scope report for the given standard.
The report includes the following:
- The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework.
- A list of Google Cloud services and resources that are within the scope of the framework.
| Parameters | |
|---|---|
| Name | Description |
scope |
std::string const &
Required. Project or folder that the audit scope report is generated for, in one of the following formats:
|
compliance_standard |
std::string const &
Optional. Deprecated. The standard (industry or regulatory requirements) that the audit scope report is run against. |
report_format |
google::cloud::auditmanager::v1::GenerateAuditScopeReportRequest::AuditScopeReportFormat
Required. Format for the audit scope report. |
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 an audit scope report for the given standard.
The report includes the following:
- The technical attributes and constraints that Audit Manager uses to verify your compliance with a framework.
- A list of Google Cloud services and resources that are within the scope of the framework.
| 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)
Registers audit report generation requests.
This method returns the operation identifier that you can use to track the report generation progress.
| Parameters | |
|---|---|
| Name | Description |
scope |
std::string const &
Required. Organization, folder, or project that the audit applies to, in one of the following formats:
|
gcs_uri |
std::string const &
URL for the Cloud Storage bucket where the report and evidence is uploaded. You must select a bucket that was provided during the enrollment process. |
compliance_standard |
std::string const &
Optional. Deprecated. Compliance standard for the audit report. |
report_format |
google::cloud::auditmanager::v1::GenerateAuditReportRequest::AuditReportFormat
Required. Format for the audit report. |
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)
Registers audit report generation requests.
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)
Registers audit report generation requests.
This method returns the operation identifier that you can use to 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)
Registers audit report generation requests.
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)
Registers audit report generation requests.
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 the audit reports for the organization, folder, or project that you specify as the parent scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Parent organization, folder, or project to list reports for, in one of the following formats:
|
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 the audit reports for the organization, folder, or project that you specify as the 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)
Gets the full metadata and findings for an audit report.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the audit report, in one of the following formats:
|
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)
Gets the full metadata and findings for an 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)
Gets a resource and its enrollment status.
| Parameters | |
|---|---|
| Name | Description |
name |
std::string const &
Required. Name of the resource enrollment status, in one of the following formats:
|
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)
Gets a resource and 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)
Lists all the folders and projects in an organization or folder, along with their enrollments.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Parent organization or folder to list enrollment statuses for, in one of the following formats:
|
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)
Lists all the folders and projects in an organization or folder, along with their enrollments.
| 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)
Lists the controls that you must implement to become compliant to a regulatory standard.
| Parameters | |
|---|---|
| Name | Description |
parent |
std::string const &
Required. Standard to list controls for, in one of the following formats:
|
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)
Lists the controls that you must implement to become compliant to a regulatory 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 |