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 protectedHttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonInstanceTemplatesStub, using the given settings.protectedHttpJsonInstanceTemplatesStub(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:
aggregatedListCallablein classInstanceTemplatesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListInstanceTemplatesRequest,InstanceTemplatesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classInstanceTemplatesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstanceTemplateRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classInstanceTemplatesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteInstanceTemplateRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classInstanceTemplatesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstanceTemplateRequest,InstanceTemplate> getCallable()
- Overrides:
getCallablein classInstanceTemplatesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyInstanceTemplateRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classInstanceTemplatesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertInstanceTemplateRequest,Operation> insertCallable()
- Overrides:
insertCallablein classInstanceTemplatesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertInstanceTemplateRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classInstanceTemplatesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplateList> listCallable()
- Overrides:
listCallablein classInstanceTemplatesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplatesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classInstanceTemplatesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyInstanceTemplateRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classInstanceTemplatesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsInstanceTemplateRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classInstanceTemplatesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-