Class HttpJsonAccessApprovalStub (2.54.0)

public class HttpJsonAccessApprovalStub extends AccessApprovalStub

REST stub implementation for the AccessApproval service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > AccessApprovalStub > HttpJsonAccessApprovalStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonAccessApprovalStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonAccessApprovalStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAccessApprovalStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonAccessApprovalStub
Exceptions
Type Description
IOException

create(AccessApprovalStubSettings settings)

public static final HttpJsonAccessApprovalStub create(AccessApprovalStubSettings settings)
Parameter
Name Description
settings AccessApprovalStubSettings
Returns
Type Description
HttpJsonAccessApprovalStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext)

protected HttpJsonAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAccessApprovalStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings AccessApprovalStubSettings
clientContext ClientContext

HttpJsonAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAccessApprovalStub(AccessApprovalStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAccessApprovalStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings AccessApprovalStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

approveApprovalRequestCallable()

public UnaryCallable<ApproveApprovalRequestMessage,ApprovalRequest> approveApprovalRequestCallable()
Returns
Type Description
UnaryCallable<ApproveApprovalRequestMessage,ApprovalRequest>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteAccessApprovalSettingsCallable()

public UnaryCallable<DeleteAccessApprovalSettingsMessage,Empty> deleteAccessApprovalSettingsCallable()
Returns
Type Description
UnaryCallable<DeleteAccessApprovalSettingsMessage,Empty>
Overrides

dismissApprovalRequestCallable()

public UnaryCallable<DismissApprovalRequestMessage,ApprovalRequest> dismissApprovalRequestCallable()
Returns
Type Description
UnaryCallable<DismissApprovalRequestMessage,ApprovalRequest>
Overrides

getAccessApprovalServiceAccountCallable()

public UnaryCallable<GetAccessApprovalServiceAccountMessage,AccessApprovalServiceAccount> getAccessApprovalServiceAccountCallable()
Returns
Type Description
UnaryCallable<GetAccessApprovalServiceAccountMessage,AccessApprovalServiceAccount>
Overrides

getAccessApprovalSettingsCallable()

public UnaryCallable<GetAccessApprovalSettingsMessage,AccessApprovalSettings> getAccessApprovalSettingsCallable()
Returns
Type Description
UnaryCallable<GetAccessApprovalSettingsMessage,AccessApprovalSettings>
Overrides

getApprovalRequestCallable()

public UnaryCallable<GetApprovalRequestMessage,ApprovalRequest> getApprovalRequestCallable()
Returns
Type Description
UnaryCallable<GetApprovalRequestMessage,ApprovalRequest>
Overrides

invalidateApprovalRequestCallable()

public UnaryCallable<InvalidateApprovalRequestMessage,ApprovalRequest> invalidateApprovalRequestCallable()
Returns
Type Description
UnaryCallable<InvalidateApprovalRequestMessage,ApprovalRequest>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listApprovalRequestsCallable()

public UnaryCallable<ListApprovalRequestsMessage,ListApprovalRequestsResponse> listApprovalRequestsCallable()
Returns
Type Description
UnaryCallable<ListApprovalRequestsMessage,ListApprovalRequestsResponse>
Overrides

listApprovalRequestsPagedCallable()

public UnaryCallable<ListApprovalRequestsMessage,AccessApprovalAdminClient.ListApprovalRequestsPagedResponse> listApprovalRequestsPagedCallable()
Returns
Type Description
UnaryCallable<ListApprovalRequestsMessage,ListApprovalRequestsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccessApprovalSettingsCallable()

public UnaryCallable<UpdateAccessApprovalSettingsMessage,AccessApprovalSettings> updateAccessApprovalSettingsCallable()
Returns
Type Description
UnaryCallable<UpdateAccessApprovalSettingsMessage,AccessApprovalSettings>
Overrides