Access Approval v1 API - Class AccessApproval.AccessApprovalClient (2.3.0)

public class AccessApproval.AccessApprovalClient : ClientBase<AccessApproval.AccessApprovalClient>

Reference documentation and code samples for the Access Approval v1 API class AccessApproval.AccessApprovalClient.

Client for AccessApproval

Inheritance

object > ClientBase > ClientBaseAccessApprovalAccessApprovalClient > AccessApproval.AccessApprovalClient

Namespace

Google.Cloud.AccessApproval.V1

Assembly

Google.Cloud.AccessApproval.V1.dll

Constructors

AccessApprovalClient()

protected AccessApprovalClient()

Protected parameterless constructor to allow creation of test doubles.

AccessApprovalClient(CallInvoker)

public AccessApprovalClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

AccessApprovalClient(ChannelBase)

public AccessApprovalClient(ChannelBase channel)

Creates a new client for AccessApproval

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

AccessApprovalClient(ClientBaseConfiguration)

protected AccessApprovalClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

ApproveApprovalRequest(ApproveApprovalRequestMessage, CallOptions)

public virtual ApprovalRequest ApproveApprovalRequest(ApproveApprovalRequestMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

ApproveApprovalRequest(ApproveApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual ApprovalRequest ApproveApprovalRequest(ApproveApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

ApproveApprovalRequestAsync(ApproveApprovalRequestMessage, CallOptions)

public virtual AsyncUnaryCall<ApprovalRequest> ApproveApprovalRequestAsync(ApproveApprovalRequestMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

ApproveApprovalRequestAsync(ApproveApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ApprovalRequest> ApproveApprovalRequestAsync(ApproveApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

DeleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage, CallOptions)

public virtual Empty DeleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage, Metadata, DateTime?, CancellationToken)

public virtual Empty DeleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DeleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteAccessApprovalSettingsAsync(DeleteAccessApprovalSettingsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

DismissApprovalRequest(DismissApprovalRequestMessage, CallOptions)

public virtual ApprovalRequest DismissApprovalRequest(DismissApprovalRequestMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

DismissApprovalRequest(DismissApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual ApprovalRequest DismissApprovalRequest(DismissApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

DismissApprovalRequestAsync(DismissApprovalRequestMessage, CallOptions)

public virtual AsyncUnaryCall<ApprovalRequest> DismissApprovalRequestAsync(DismissApprovalRequestMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

DismissApprovalRequestAsync(DismissApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ApprovalRequest> DismissApprovalRequestAsync(DismissApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

GetAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage, CallOptions)

public virtual AccessApprovalServiceAccount GetAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request, CallOptions options)

Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.

Parameters
NameDescription
requestGetAccessApprovalServiceAccountMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AccessApprovalServiceAccount

The response received from the server.

GetAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage, Metadata, DateTime?, CancellationToken)

public virtual AccessApprovalServiceAccount GetAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.

Parameters
NameDescription
requestGetAccessApprovalServiceAccountMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AccessApprovalServiceAccount

The response received from the server.

GetAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage, CallOptions)

public virtual AsyncUnaryCall<AccessApprovalServiceAccount> GetAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage request, CallOptions options)

Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.

Parameters
NameDescription
requestGetAccessApprovalServiceAccountMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallAccessApprovalServiceAccount

The call object.

GetAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AccessApprovalServiceAccount> GetAccessApprovalServiceAccountAsync(GetAccessApprovalServiceAccountMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.

Parameters
NameDescription
requestGetAccessApprovalServiceAccountMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallAccessApprovalServiceAccount

The call object.

GetAccessApprovalSettings(GetAccessApprovalSettingsMessage, CallOptions)

public virtual AccessApprovalSettings GetAccessApprovalSettings(GetAccessApprovalSettingsMessage request, CallOptions options)

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

Parameters
NameDescription
requestGetAccessApprovalSettingsMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AccessApprovalSettings

The response received from the server.

GetAccessApprovalSettings(GetAccessApprovalSettingsMessage, Metadata, DateTime?, CancellationToken)

public virtual AccessApprovalSettings GetAccessApprovalSettings(GetAccessApprovalSettingsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetAccessApprovalSettingsMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AccessApprovalSettings

The response received from the server.

GetAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage, CallOptions)

public virtual AsyncUnaryCall<AccessApprovalSettings> GetAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage request, CallOptions options)

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

Parameters
NameDescription
requestGetAccessApprovalSettingsMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallAccessApprovalSettings

The call object.

GetAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AccessApprovalSettings> GetAccessApprovalSettingsAsync(GetAccessApprovalSettingsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetAccessApprovalSettingsMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallAccessApprovalSettings

The call object.

GetApprovalRequest(GetApprovalRequestMessage, CallOptions)

public virtual ApprovalRequest GetApprovalRequest(GetApprovalRequestMessage request, CallOptions options)

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

Parameters
NameDescription
requestGetApprovalRequestMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

GetApprovalRequest(GetApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual ApprovalRequest GetApprovalRequest(GetApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetApprovalRequestMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

GetApprovalRequestAsync(GetApprovalRequestMessage, CallOptions)

public virtual AsyncUnaryCall<ApprovalRequest> GetApprovalRequestAsync(GetApprovalRequestMessage request, CallOptions options)

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

Parameters
NameDescription
requestGetApprovalRequestMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

GetApprovalRequestAsync(GetApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ApprovalRequest> GetApprovalRequestAsync(GetApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestGetApprovalRequestMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

InvalidateApprovalRequest(InvalidateApprovalRequestMessage, CallOptions)

public virtual ApprovalRequest InvalidateApprovalRequest(InvalidateApprovalRequestMessage request, CallOptions options)

Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.

NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval.

Returns FAILED_PRECONDITION if the request exists but is not in an approved state.

Parameters
NameDescription
requestInvalidateApprovalRequestMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

InvalidateApprovalRequest(InvalidateApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual ApprovalRequest InvalidateApprovalRequest(InvalidateApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.

NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval.

Returns FAILED_PRECONDITION if the request exists but is not in an approved state.

Parameters
NameDescription
requestInvalidateApprovalRequestMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ApprovalRequest

The response received from the server.

InvalidateApprovalRequestAsync(InvalidateApprovalRequestMessage, CallOptions)

public virtual AsyncUnaryCall<ApprovalRequest> InvalidateApprovalRequestAsync(InvalidateApprovalRequestMessage request, CallOptions options)

Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.

NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval.

Returns FAILED_PRECONDITION if the request exists but is not in an approved state.

Parameters
NameDescription
requestInvalidateApprovalRequestMessage

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

InvalidateApprovalRequestAsync(InvalidateApprovalRequestMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ApprovalRequest> InvalidateApprovalRequestAsync(InvalidateApprovalRequestMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest.

NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval.

Returns FAILED_PRECONDITION if the request exists but is not in an approved state.

Parameters
NameDescription
requestInvalidateApprovalRequestMessage

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallApprovalRequest

The call object.

ListApprovalRequests(ListApprovalRequestsMessage, CallOptions)

public virtual ListApprovalRequestsResponse ListApprovalRequests(ListApprovalRequestsMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListApprovalRequestsResponse

The response received from the server.

ListApprovalRequests(ListApprovalRequestsMessage, Metadata, DateTime?, CancellationToken)

public virtual ListApprovalRequestsResponse ListApprovalRequests(ListApprovalRequestsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListApprovalRequestsResponse

The response received from the server.

ListApprovalRequestsAsync(ListApprovalRequestsMessage, CallOptions)

public virtual AsyncUnaryCall<ListApprovalRequestsResponse> ListApprovalRequestsAsync(ListApprovalRequestsMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListApprovalRequestsResponse

The call object.

ListApprovalRequestsAsync(ListApprovalRequestsMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListApprovalRequestsResponse> ListApprovalRequestsAsync(ListApprovalRequestsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListApprovalRequestsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override AccessApproval.AccessApprovalClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
AccessApprovalAccessApprovalClient
Overrides

UpdateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage, CallOptions)

public virtual AccessApprovalSettings UpdateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
AccessApprovalSettings

The response received from the server.

UpdateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage, Metadata, DateTime?, CancellationToken)

public virtual AccessApprovalSettings UpdateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AccessApprovalSettings

The response received from the server.

UpdateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage, CallOptions)

public virtual AsyncUnaryCall<AccessApprovalSettings> UpdateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage request, CallOptions options)

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

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallAccessApprovalSettings

The call object.

UpdateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<AccessApprovalSettings> UpdateAccessApprovalSettingsAsync(UpdateAccessApprovalSettingsMessage request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

headersMetadata

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

deadlineDateTime

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallAccessApprovalSettings

The call object.