Audit Manager v1 API - Class AuditManager.AuditManagerBase (1.0.0-beta01)

[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)

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 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)

Register the Audit Report generation requests and returns the OperationId using which the customer can 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 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 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)

Get the overall 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)

Get a resource along with 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 audit reports in the selected 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)

Gets controls needed to be implemented to be compliant to a 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)

Fetches all resources under the parent along with their enrollment.

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