Class AccessApproval.AccessApprovalBase (1.0.0)

[BindServiceMethod(typeof(AccessApproval), "BindService")]
public abstract class AccessApprovalBase

Base class for server-side implementations of AccessApproval

Inheritance

System.Object > AccessApproval.AccessApprovalBase

Namespace

Google.Cloud.AccessApproval.V1

Assembly

Google.Cloud.AccessApproval.V1.dll

Methods

ApproveApprovalRequest(ApproveApprovalRequestMessage, ServerCallContext)

public virtual Task<ApprovalRequest> ApproveApprovalRequest(ApproveApprovalRequestMessage request, ServerCallContext context)

Approves a request and returns the updated ApprovalRequest.

Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.

Parameters
NameDescription
requestApproveApprovalRequestMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ApprovalRequest>

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

DeleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage, ServerCallContext)

public virtual Task<Empty> DeleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request, ServerCallContext context)

Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.

Parameters
NameDescription
requestDeleteAccessApprovalSettingsMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.Empty>

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

DismissApprovalRequest(DismissApprovalRequestMessage, ServerCallContext)

public virtual Task<ApprovalRequest> DismissApprovalRequest(DismissApprovalRequestMessage request, ServerCallContext context)

Dismisses a request. Returns the updated ApprovalRequest.

NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether.

Returns NOT_FOUND if the request does not exist.

Returns FAILED_PRECONDITION if the request exists but is not in a pending state.

Parameters
NameDescription
requestDismissApprovalRequestMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ApprovalRequest>

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

GetAccessApprovalSettings(GetAccessApprovalSettingsMessage, ServerCallContext)

public virtual Task<AccessApprovalSettings> GetAccessApprovalSettings(GetAccessApprovalSettingsMessage request, ServerCallContext context)

Gets the settings associated with a project, folder, or organization.

Parameters
NameDescription
requestGetAccessApprovalSettingsMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<AccessApprovalSettings>

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

GetApprovalRequest(GetApprovalRequestMessage, ServerCallContext)

public virtual Task<ApprovalRequest> GetApprovalRequest(GetApprovalRequestMessage request, ServerCallContext context)

Gets an approval request. Returns NOT_FOUND if the request does not exist.

Parameters
NameDescription
requestGetApprovalRequestMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ApprovalRequest>

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

ListApprovalRequests(ListApprovalRequestsMessage, ServerCallContext)

public virtual Task<ListApprovalRequestsResponse> ListApprovalRequests(ListApprovalRequestsMessage request, ServerCallContext context)

Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.

Parameters
NameDescription
requestListApprovalRequestsMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ListApprovalRequestsResponse>

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

UpdateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage, ServerCallContext)

public virtual Task<AccessApprovalSettings> UpdateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request, ServerCallContext context)

Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.

Parameters
NameDescription
requestUpdateAccessApprovalSettingsMessage

The request received from the client.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<AccessApprovalSettings>

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