Package com.google.cloud.compute.v1.stub
Class HttpJsonSubnetworksStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.SubnetworksStub
-
- com.google.cloud.compute.v1.stub.HttpJsonSubnetworksStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonSubnetworksStub extends SubnetworksStub
REST stub implementation for the Subnetworks service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonSubnetworksStub(SubnetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonSubnetworksStub, using the given settings.protected
HttpJsonSubnetworksStub(SubnetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonSubnetworksStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonSubnetworksStub
protected HttpJsonSubnetworksStub(SubnetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonSubnetworksStub, 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
-
HttpJsonSubnetworksStub
protected HttpJsonSubnetworksStub(SubnetworksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonSubnetworksStub, 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 HttpJsonSubnetworksStub create(SubnetworksStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSubnetworksStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSubnetworksStub 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()
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListSubnetworksRequest,SubnetworkAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classSubnetworksStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListSubnetworksRequest,SubnetworksClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classSubnetworksStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSubnetworkRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classSubnetworksStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSubnetworkRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classSubnetworksStub
-
expandIpCidrRangeCallable
public com.google.api.gax.rpc.UnaryCallable<ExpandIpCidrRangeSubnetworkRequest,Operation> expandIpCidrRangeCallable()
- Overrides:
expandIpCidrRangeCallable
in classSubnetworksStub
-
expandIpCidrRangeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExpandIpCidrRangeSubnetworkRequest,Operation,Operation> expandIpCidrRangeOperationCallable()
- Overrides:
expandIpCidrRangeOperationCallable
in classSubnetworksStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetSubnetworkRequest,Subnetwork> getCallable()
- Overrides:
getCallable
in classSubnetworksStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicySubnetworkRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classSubnetworksStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertSubnetworkRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classSubnetworksStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertSubnetworkRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classSubnetworksStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubnetworksRequest,SubnetworkList> listCallable()
- Overrides:
listCallable
in classSubnetworksStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSubnetworksRequest,SubnetworksClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classSubnetworksStub
-
listUsableCallable
public com.google.api.gax.rpc.UnaryCallable<ListUsableSubnetworksRequest,UsableSubnetworksAggregatedList> listUsableCallable()
- Overrides:
listUsableCallable
in classSubnetworksStub
-
listUsablePagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListUsableSubnetworksRequest,SubnetworksClient.ListUsablePagedResponse> listUsablePagedCallable()
- Overrides:
listUsablePagedCallable
in classSubnetworksStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchSubnetworkRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classSubnetworksStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchSubnetworkRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classSubnetworksStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicySubnetworkRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classSubnetworksStub
-
setPrivateIpGoogleAccessCallable
public com.google.api.gax.rpc.UnaryCallable<SetPrivateIpGoogleAccessSubnetworkRequest,Operation> setPrivateIpGoogleAccessCallable()
- Overrides:
setPrivateIpGoogleAccessCallable
in classSubnetworksStub
-
setPrivateIpGoogleAccessOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetPrivateIpGoogleAccessSubnetworkRequest,Operation,Operation> setPrivateIpGoogleAccessOperationCallable()
- Overrides:
setPrivateIpGoogleAccessOperationCallable
in classSubnetworksStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsSubnetworkRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classSubnetworksStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSubnetworksStub
-
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
-
-