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

public class AuditManager.AuditManagerClient : ClientBase<AuditManager.AuditManagerClient>

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

Client for AuditManager

Inheritance

object > ClientBase > ClientBaseAuditManagerAuditManagerClient > AuditManager.AuditManagerClient

Namespace

Google.Cloud.AuditManager.V1

Assembly

Google.Cloud.AuditManager.V1.dll

Constructors

AuditManagerClient()

protected AuditManagerClient()

Protected parameterless constructor to allow creation of test doubles.

AuditManagerClient(CallInvoker)

public AuditManagerClient(CallInvoker callInvoker)

Creates a new client for AuditManager that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

AuditManagerClient(ChannelBase)

public AuditManagerClient(ChannelBase channel)

Creates a new client for AuditManager

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

AuditManagerClient(ClientBaseConfiguration)

protected AuditManagerClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
Type Description
OperationsOperationsClient

A new Operations client for the same target as this client.

EnrollResource(EnrollResourceRequest, CallOptions)

public virtual Enrollment EnrollResource(EnrollResourceRequest request, CallOptions 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 EnrollResourceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Enrollment

The response received from the server.

EnrollResource(EnrollResourceRequest, Metadata, DateTime?, CancellationToken)

public virtual Enrollment EnrollResource(EnrollResourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Enrollment

The response received from the server.

EnrollResourceAsync(EnrollResourceRequest, CallOptions)

public virtual AsyncUnaryCall<Enrollment> EnrollResourceAsync(EnrollResourceRequest request, CallOptions 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 EnrollResourceRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEnrollment

The call object.

EnrollResourceAsync(EnrollResourceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Enrollment> EnrollResourceAsync(EnrollResourceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEnrollment

The call object.

GenerateAuditReport(GenerateAuditReportRequest, CallOptions)

public virtual Operation GenerateAuditReport(GenerateAuditReportRequest request, CallOptions 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 GenerateAuditReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

GenerateAuditReport(GenerateAuditReportRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation GenerateAuditReport(GenerateAuditReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

GenerateAuditReportAsync(GenerateAuditReportRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> GenerateAuditReportAsync(GenerateAuditReportRequest request, CallOptions 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 GenerateAuditReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GenerateAuditReportAsync(GenerateAuditReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> GenerateAuditReportAsync(GenerateAuditReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GenerateAuditScopeReport(GenerateAuditScopeReportRequest, CallOptions)

public virtual AuditScopeReport GenerateAuditScopeReport(GenerateAuditScopeReportRequest request, CallOptions 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 GenerateAuditScopeReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AuditScopeReport

The response received from the server.

GenerateAuditScopeReport(GenerateAuditScopeReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AuditScopeReport GenerateAuditScopeReport(GenerateAuditScopeReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AuditScopeReport

The response received from the server.

GenerateAuditScopeReportAsync(GenerateAuditScopeReportRequest, CallOptions)

public virtual AsyncUnaryCall<AuditScopeReport> GenerateAuditScopeReportAsync(GenerateAuditScopeReportRequest request, CallOptions 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 GenerateAuditScopeReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAuditScopeReport

The call object.

GenerateAuditScopeReportAsync(GenerateAuditScopeReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AuditScopeReport> GenerateAuditScopeReportAsync(GenerateAuditScopeReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallAuditScopeReport

The call object.

GetAuditReport(GetAuditReportRequest, CallOptions)

public virtual AuditReport GetAuditReport(GetAuditReportRequest request, CallOptions options)

Gets the full metadata and findings for an audit report.

Parameters
Name Description
request GetAuditReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AuditReport

The response received from the server.

GetAuditReport(GetAuditReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AuditReport GetAuditReport(GetAuditReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the full metadata and findings for an audit report.

Parameters
Name Description
request GetAuditReportRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AuditReport

The response received from the server.

GetAuditReportAsync(GetAuditReportRequest, CallOptions)

public virtual AsyncUnaryCall<AuditReport> GetAuditReportAsync(GetAuditReportRequest request, CallOptions options)

Gets the full metadata and findings for an audit report.

Parameters
Name Description
request GetAuditReportRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallAuditReport

The call object.

GetAuditReportAsync(GetAuditReportRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AuditReport> GetAuditReportAsync(GetAuditReportRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets the full metadata and findings for an audit report.

Parameters
Name Description
request GetAuditReportRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallAuditReport

The call object.

GetResourceEnrollmentStatus(GetResourceEnrollmentStatusRequest, CallOptions)

public virtual ResourceEnrollmentStatus GetResourceEnrollmentStatus(GetResourceEnrollmentStatusRequest request, CallOptions options)

Gets a resource and its enrollment status.

Parameters
Name Description
request GetResourceEnrollmentStatusRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ResourceEnrollmentStatus

The response received from the server.

GetResourceEnrollmentStatus(GetResourceEnrollmentStatusRequest, Metadata, DateTime?, CancellationToken)

public virtual ResourceEnrollmentStatus GetResourceEnrollmentStatus(GetResourceEnrollmentStatusRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a resource and its enrollment status.

Parameters
Name Description
request GetResourceEnrollmentStatusRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ResourceEnrollmentStatus

The response received from the server.

GetResourceEnrollmentStatusAsync(GetResourceEnrollmentStatusRequest, CallOptions)

public virtual AsyncUnaryCall<ResourceEnrollmentStatus> GetResourceEnrollmentStatusAsync(GetResourceEnrollmentStatusRequest request, CallOptions options)

Gets a resource and its enrollment status.

Parameters
Name Description
request GetResourceEnrollmentStatusRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallResourceEnrollmentStatus

The call object.

GetResourceEnrollmentStatusAsync(GetResourceEnrollmentStatusRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ResourceEnrollmentStatus> GetResourceEnrollmentStatusAsync(GetResourceEnrollmentStatusRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a resource and its enrollment status.

Parameters
Name Description
request GetResourceEnrollmentStatusRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallResourceEnrollmentStatus

The call object.

ListAuditReports(ListAuditReportsRequest, CallOptions)

public virtual ListAuditReportsResponse ListAuditReports(ListAuditReportsRequest request, CallOptions options)

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

Parameters
Name Description
request ListAuditReportsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListAuditReportsResponse

The response received from the server.

ListAuditReports(ListAuditReportsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListAuditReportsResponse ListAuditReports(ListAuditReportsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListAuditReportsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListAuditReportsResponse

The response received from the server.

ListAuditReportsAsync(ListAuditReportsRequest, CallOptions)

public virtual AsyncUnaryCall<ListAuditReportsResponse> ListAuditReportsAsync(ListAuditReportsRequest request, CallOptions options)

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

Parameters
Name Description
request ListAuditReportsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListAuditReportsResponse

The call object.

ListAuditReportsAsync(ListAuditReportsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListAuditReportsResponse> ListAuditReportsAsync(ListAuditReportsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListAuditReportsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListAuditReportsResponse

The call object.

ListControls(ListControlsRequest, CallOptions)

public virtual ListControlsResponse ListControls(ListControlsRequest request, CallOptions options)

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

Parameters
Name Description
request ListControlsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListControlsResponse

The response received from the server.

ListControls(ListControlsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListControlsResponse ListControls(ListControlsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListControlsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListControlsResponse

The response received from the server.

ListControlsAsync(ListControlsRequest, CallOptions)

public virtual AsyncUnaryCall<ListControlsResponse> ListControlsAsync(ListControlsRequest request, CallOptions options)

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

Parameters
Name Description
request ListControlsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListControlsResponse

The call object.

ListControlsAsync(ListControlsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListControlsResponse> ListControlsAsync(ListControlsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListControlsRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListControlsResponse

The call object.

ListResourceEnrollmentStatuses(ListResourceEnrollmentStatusesRequest, CallOptions)

public virtual ListResourceEnrollmentStatusesResponse ListResourceEnrollmentStatuses(ListResourceEnrollmentStatusesRequest request, CallOptions options)

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

Parameters
Name Description
request ListResourceEnrollmentStatusesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListResourceEnrollmentStatusesResponse

The response received from the server.

ListResourceEnrollmentStatuses(ListResourceEnrollmentStatusesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListResourceEnrollmentStatusesResponse ListResourceEnrollmentStatuses(ListResourceEnrollmentStatusesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListResourceEnrollmentStatusesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListResourceEnrollmentStatusesResponse

The response received from the server.

ListResourceEnrollmentStatusesAsync(ListResourceEnrollmentStatusesRequest, CallOptions)

public virtual AsyncUnaryCall<ListResourceEnrollmentStatusesResponse> ListResourceEnrollmentStatusesAsync(ListResourceEnrollmentStatusesRequest request, CallOptions options)

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

Parameters
Name Description
request ListResourceEnrollmentStatusesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListResourceEnrollmentStatusesResponse

The call object.

ListResourceEnrollmentStatusesAsync(ListResourceEnrollmentStatusesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListResourceEnrollmentStatusesResponse> ListResourceEnrollmentStatusesAsync(ListResourceEnrollmentStatusesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
Name Description
request ListResourceEnrollmentStatusesRequest

The request to send to the server.

headers Metadata

The initial metadata to send with the call. This parameter is optional.

deadline System.DateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListResourceEnrollmentStatusesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override AuditManager.AuditManagerClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
AuditManagerAuditManagerClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.AuditManager.V1.AuditManager.AuditManagerClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)