Package com.google.cloud.compute.v1.stub
Class HttpJsonNetworksStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.NetworksStub
-
- com.google.cloud.compute.v1.stub.HttpJsonNetworksStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonNetworksStub(NetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonNetworksStub, using the given settings.protected
HttpJsonNetworksStub(NetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonNetworksStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonNetworksStub
protected HttpJsonNetworksStub(NetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonNetworksStub
protected HttpJsonNetworksStub(NetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonNetworksStub create(NetworksStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonNetworksStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonNetworksStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
addPeeringCallable
public com.google.api.gax.rpc.UnaryCallable<AddPeeringNetworkRequest,Operation> addPeeringCallable()
- Overrides:
addPeeringCallable
in classNetworksStub
-
addPeeringOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddPeeringNetworkRequest,Operation,Operation> addPeeringOperationCallable()
- Overrides:
addPeeringOperationCallable
in classNetworksStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNetworkRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classNetworksStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteNetworkRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classNetworksStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetNetworkRequest,Network> getCallable()
- Overrides:
getCallable
in classNetworksStub
-
getEffectiveFirewallsCallable
public com.google.api.gax.rpc.UnaryCallable<GetEffectiveFirewallsNetworkRequest,NetworksGetEffectiveFirewallsResponse> getEffectiveFirewallsCallable()
- Overrides:
getEffectiveFirewallsCallable
in classNetworksStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertNetworkRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classNetworksStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertNetworkRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classNetworksStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListNetworksRequest,NetworkList> listCallable()
- Overrides:
listCallable
in classNetworksStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNetworksRequest,NetworksClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classNetworksStub
-
listPeeringRoutesCallable
public com.google.api.gax.rpc.UnaryCallable<ListPeeringRoutesNetworksRequest,ExchangedPeeringRoutesList> listPeeringRoutesCallable()
- Overrides:
listPeeringRoutesCallable
in classNetworksStub
-
listPeeringRoutesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListPeeringRoutesNetworksRequest,NetworksClient.ListPeeringRoutesPagedResponse> listPeeringRoutesPagedCallable()
- Overrides:
listPeeringRoutesPagedCallable
in classNetworksStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchNetworkRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classNetworksStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchNetworkRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classNetworksStub
-
removePeeringCallable
public com.google.api.gax.rpc.UnaryCallable<RemovePeeringNetworkRequest,Operation> removePeeringCallable()
- Overrides:
removePeeringCallable
in classNetworksStub
-
removePeeringOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemovePeeringNetworkRequest,Operation,Operation> removePeeringOperationCallable()
- Overrides:
removePeeringOperationCallable
in classNetworksStub
-
switchToCustomModeCallable
public com.google.api.gax.rpc.UnaryCallable<SwitchToCustomModeNetworkRequest,Operation> switchToCustomModeCallable()
- Overrides:
switchToCustomModeCallable
in classNetworksStub
-
switchToCustomModeOperationCallable
public com.google.api.gax.rpc.OperationCallable<SwitchToCustomModeNetworkRequest,Operation,Operation> switchToCustomModeOperationCallable()
- Overrides:
switchToCustomModeOperationCallable
in classNetworksStub
-
updatePeeringCallable
public com.google.api.gax.rpc.UnaryCallable<UpdatePeeringNetworkRequest,Operation> updatePeeringCallable()
- Overrides:
updatePeeringCallable
in classNetworksStub
-
updatePeeringOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdatePeeringNetworkRequest,Operation,Operation> updatePeeringOperationCallable()
- Overrides:
updatePeeringOperationCallable
in classNetworksStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classNetworksStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-