Class HttpJsonAccessApprovalStub (2.41.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonAccessApprovalStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAccessApprovalStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAccessApprovalStub
Exceptions
TypeDescription
IOException

create(AccessApprovalStubSettings settings)

public static final HttpJsonAccessApprovalStub create(AccessApprovalStubSettings settings)
Parameter
NameDescription
settingsAccessApprovalStubSettings
Returns
TypeDescription
HttpJsonAccessApprovalStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsAccessApprovalStubSettings
clientContextClientContext

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
NameDescription
settingsAccessApprovalStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

approveApprovalRequestCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteAccessApprovalSettingsCallable()

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

dismissApprovalRequestCallable()

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

getAccessApprovalServiceAccountCallable()

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

getAccessApprovalSettingsCallable()

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

getApprovalRequestCallable()

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

invalidateApprovalRequestCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listApprovalRequestsCallable()

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

listApprovalRequestsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAccessApprovalSettingsCallable()

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