Audit Manager v1 API - Class AuditManager.AuditManagerBase (1.2.0)

[BindServiceMethod(typeof(AuditManager), "BindService")]
public abstract class AuditManager.AuditManagerBase

Reference documentation and code samples for the Audit Manager v1 API class AuditManager.AuditManagerBase.

Base class for server-side implementations of AuditManager

Inheritance

object > AuditManager.AuditManagerBase

Namespace

Google.Cloud.AuditManager.V1

Assembly

Google.Cloud.AuditManager.V1.dll

Methods

EnrollResource(EnrollResourceRequest, ServerCallContext)

public virtual Task<Enrollment> EnrollResource(EnrollResourceRequest request, ServerCallContext context)

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 EnrollResourceRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskEnrollment

The response to send back to the client (wrapped by a task).

GenerateAuditReport(GenerateAuditReportRequest, ServerCallContext)

public virtual Task<Operation> GenerateAuditReport(GenerateAuditReportRequest request, ServerCallContext context)

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 GenerateAuditReportRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

GenerateAuditScopeReport(GenerateAuditScopeReportRequest, ServerCallContext)

public virtual Task<AuditScopeReport> GenerateAuditScopeReport(GenerateAuditScopeReportRequest request, ServerCallContext context)

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 GenerateAuditScopeReportRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAuditScopeReport

The response to send back to the client (wrapped by a task).

GetAuditReport(GetAuditReportRequest, ServerCallContext)

public virtual Task<AuditReport> GetAuditReport(GetAuditReportRequest request, ServerCallContext context)

Gets the full metadata and findings for an audit report.

Parameters
Name Description
request GetAuditReportRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskAuditReport

The response to send back to the client (wrapped by a task).

GetResourceEnrollmentStatus(GetResourceEnrollmentStatusRequest, ServerCallContext)

public virtual Task<ResourceEnrollmentStatus> GetResourceEnrollmentStatus(GetResourceEnrollmentStatusRequest request, ServerCallContext context)

Gets a resource and its enrollment status.

Parameters
Name Description
request GetResourceEnrollmentStatusRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskResourceEnrollmentStatus

The response to send back to the client (wrapped by a task).

ListAuditReports(ListAuditReportsRequest, ServerCallContext)

public virtual Task<ListAuditReportsResponse> ListAuditReports(ListAuditReportsRequest request, ServerCallContext context)

Lists the audit reports for the organization, folder, or project that you specify as the parent scope.

Parameters
Name Description
request ListAuditReportsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListAuditReportsResponse

The response to send back to the client (wrapped by a task).

ListControls(ListControlsRequest, ServerCallContext)

public virtual Task<ListControlsResponse> ListControls(ListControlsRequest request, ServerCallContext context)

Lists the controls that you must implement to become compliant to a regulatory standard.

Parameters
Name Description
request ListControlsRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListControlsResponse

The response to send back to the client (wrapped by a task).

ListResourceEnrollmentStatuses(ListResourceEnrollmentStatusesRequest, ServerCallContext)

public virtual Task<ListResourceEnrollmentStatusesResponse> ListResourceEnrollmentStatuses(ListResourceEnrollmentStatusesRequest request, ServerCallContext context)

Lists all the folders and projects in an organization or folder, along with their enrollments.

Parameters
Name Description
request ListResourceEnrollmentStatusesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskListResourceEnrollmentStatusesResponse

The response to send back to the client (wrapped by a task).