Package com.google.cloud.compute.v1.stub
Class HttpJsonInstanceTemplatesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.InstanceTemplatesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonInstanceTemplatesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonInstanceTemplatesStub extends InstanceTemplatesStub
REST stub implementation for the InstanceTemplates service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonInstanceTemplatesStub, using the given settings.protected
HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonInstanceTemplatesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonInstanceTemplatesStub
protected HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonInstanceTemplatesStub, 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
-
HttpJsonInstanceTemplatesStub
protected HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonInstanceTemplatesStub, 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 HttpJsonInstanceTemplatesStub create(InstanceTemplatesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonInstanceTemplatesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonInstanceTemplatesStub 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<AggregatedListInstanceTemplatesRequest,InstanceTemplateAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classInstanceTemplatesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListInstanceTemplatesRequest,InstanceTemplatesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classInstanceTemplatesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceTemplateRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classInstanceTemplatesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceTemplateRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classInstanceTemplatesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceTemplateRequest,InstanceTemplate> getCallable()
- Overrides:
getCallable
in classInstanceTemplatesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyInstanceTemplateRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classInstanceTemplatesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertInstanceTemplateRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classInstanceTemplatesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertInstanceTemplateRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classInstanceTemplatesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplateList> listCallable()
- Overrides:
listCallable
in classInstanceTemplatesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplatesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classInstanceTemplatesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyInstanceTemplateRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classInstanceTemplatesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsInstanceTemplateRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classInstanceTemplatesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classInstanceTemplatesStub
-
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
-
-