Class HttpJsonNetworksStub (1.39.0)

public class HttpJsonNetworksStub extends NetworksStub

REST stub implementation for the Networks service API.

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

Inheritance

java.lang.Object > NetworksStub > HttpJsonNetworksStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(NetworksStubSettings settings)

public static final HttpJsonNetworksStub create(NetworksStubSettings settings)
Parameter
NameDescription
settingsNetworksStubSettings
Returns
TypeDescription
HttpJsonNetworksStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonNetworksStub(NetworksStubSettings settings, ClientContext clientContext)

protected HttpJsonNetworksStub(NetworksStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonNetworksStub, 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
settingsNetworksStubSettings
clientContextClientContext

HttpJsonNetworksStub(NetworksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonNetworksStub(NetworksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonNetworksStub, 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
settingsNetworksStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addPeeringCallable()

public UnaryCallable<AddPeeringNetworkRequest,Operation> addPeeringCallable()
Returns
TypeDescription
UnaryCallable<AddPeeringNetworkRequest,Operation>
Overrides

addPeeringOperationCallable()

public OperationCallable<AddPeeringNetworkRequest,Operation,Operation> addPeeringOperationCallable()
Returns
TypeDescription
OperationCallable<AddPeeringNetworkRequest,Operation,Operation>
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<DeleteNetworkRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteNetworkRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetNetworkRequest,Network> getCallable()
Returns
TypeDescription
UnaryCallable<GetNetworkRequest,Network>
Overrides

getEffectiveFirewallsCallable()

public UnaryCallable<GetEffectiveFirewallsNetworkRequest,NetworksGetEffectiveFirewallsResponse> getEffectiveFirewallsCallable()
Returns
TypeDescription
UnaryCallable<GetEffectiveFirewallsNetworkRequest,NetworksGetEffectiveFirewallsResponse>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListNetworksRequest,NetworkList> listCallable()
Returns
TypeDescription
UnaryCallable<ListNetworksRequest,NetworkList>
Overrides

listPagedCallable()

public UnaryCallable<ListNetworksRequest,NetworksClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListNetworksRequest,ListPagedResponse>
Overrides

listPeeringRoutesCallable()

public UnaryCallable<ListPeeringRoutesNetworksRequest,ExchangedPeeringRoutesList> listPeeringRoutesCallable()
Returns
TypeDescription
UnaryCallable<ListPeeringRoutesNetworksRequest,ExchangedPeeringRoutesList>
Overrides

listPeeringRoutesPagedCallable()

public UnaryCallable<ListPeeringRoutesNetworksRequest,NetworksClient.ListPeeringRoutesPagedResponse> listPeeringRoutesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPeeringRoutesNetworksRequest,ListPeeringRoutesPagedResponse>
Overrides

patchCallable()

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

patchOperationCallable()

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

removePeeringCallable()

public UnaryCallable<RemovePeeringNetworkRequest,Operation> removePeeringCallable()
Returns
TypeDescription
UnaryCallable<RemovePeeringNetworkRequest,Operation>
Overrides

removePeeringOperationCallable()

public OperationCallable<RemovePeeringNetworkRequest,Operation,Operation> removePeeringOperationCallable()
Returns
TypeDescription
OperationCallable<RemovePeeringNetworkRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

switchToCustomModeCallable()

public UnaryCallable<SwitchToCustomModeNetworkRequest,Operation> switchToCustomModeCallable()
Returns
TypeDescription
UnaryCallable<SwitchToCustomModeNetworkRequest,Operation>
Overrides

switchToCustomModeOperationCallable()

public OperationCallable<SwitchToCustomModeNetworkRequest,Operation,Operation> switchToCustomModeOperationCallable()
Returns
TypeDescription
OperationCallable<SwitchToCustomModeNetworkRequest,Operation,Operation>
Overrides

updatePeeringCallable()

public UnaryCallable<UpdatePeeringNetworkRequest,Operation> updatePeeringCallable()
Returns
TypeDescription
UnaryCallable<UpdatePeeringNetworkRequest,Operation>
Overrides

updatePeeringOperationCallable()

public OperationCallable<UpdatePeeringNetworkRequest,Operation,Operation> updatePeeringOperationCallable()
Returns
TypeDescription
OperationCallable<UpdatePeeringNetworkRequest,Operation,Operation>
Overrides