Class HttpJsonRoutersStub (1.31.0)

public class HttpJsonRoutersStub extends RoutersStub

REST stub implementation for the Routers service API.

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

Inheritance

java.lang.Object > RoutersStub > HttpJsonRoutersStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonRoutersStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonRoutersStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RoutersStubSettings settings)

public static final HttpJsonRoutersStub create(RoutersStubSettings settings)
Parameter
NameDescription
settingsRoutersStubSettings
Returns
TypeDescription
HttpJsonRoutersStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonRoutersStub(RoutersStubSettings settings, ClientContext clientContext)

protected HttpJsonRoutersStub(RoutersStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRoutersStub, 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
settingsRoutersStubSettings
clientContextClientContext

HttpJsonRoutersStub(RoutersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRoutersStub(RoutersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRoutersStub, 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
settingsRoutersStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListRoutersRequest,RouterAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListRoutersRequest,RouterAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListRoutersRequest,RoutersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListRoutersRequest,AggregatedListPagedResponse>
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

deleteCallable()

public UnaryCallable<DeleteRouterRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteRouterRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteRouterRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRouterRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetRouterRequest,Router> getCallable()
Returns
TypeDescription
UnaryCallable<GetRouterRequest,Router>
Overrides

getNatMappingInfoCallable()

public UnaryCallable<GetNatMappingInfoRoutersRequest,VmEndpointNatMappingsList> getNatMappingInfoCallable()
Returns
TypeDescription
UnaryCallable<GetNatMappingInfoRoutersRequest,VmEndpointNatMappingsList>
Overrides

getNatMappingInfoPagedCallable()

public UnaryCallable<GetNatMappingInfoRoutersRequest,RoutersClient.GetNatMappingInfoPagedResponse> getNatMappingInfoPagedCallable()
Returns
TypeDescription
UnaryCallable<GetNatMappingInfoRoutersRequest,GetNatMappingInfoPagedResponse>
Overrides

getRouterStatusCallable()

public UnaryCallable<GetRouterStatusRouterRequest,RouterStatusResponse> getRouterStatusCallable()
Returns
TypeDescription
UnaryCallable<GetRouterStatusRouterRequest,RouterStatusResponse>
Overrides

insertCallable()

public UnaryCallable<InsertRouterRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertRouterRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertRouterRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertRouterRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRoutersRequest,RouterList> listCallable()
Returns
TypeDescription
UnaryCallable<ListRoutersRequest,RouterList>
Overrides

listPagedCallable()

public UnaryCallable<ListRoutersRequest,RoutersClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRoutersRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchRouterRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchRouterRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchRouterRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchRouterRequest,Operation,Operation>
Overrides

previewCallable()

public UnaryCallable<PreviewRouterRequest,RoutersPreviewResponse> previewCallable()
Returns
TypeDescription
UnaryCallable<PreviewRouterRequest,RoutersPreviewResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

public UnaryCallable<UpdateRouterRequest,Operation> updateCallable()
Returns
TypeDescription
UnaryCallable<UpdateRouterRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateRouterRequest,Operation,Operation> updateOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRouterRequest,Operation,Operation>
Overrides