Package com.google.cloud.compute.v1.stub
Class HttpJsonNodeTemplatesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.NodeTemplatesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonNodeTemplatesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonNodeTemplatesStub extends NodeTemplatesStub
REST stub implementation for the NodeTemplates service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonNodeTemplatesStub(NodeTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonNodeTemplatesStub, using the given settings.protectedHttpJsonNodeTemplatesStub(NodeTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonNodeTemplatesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonNodeTemplatesStub
protected HttpJsonNodeTemplatesStub(NodeTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonNodeTemplatesStub, 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
-
HttpJsonNodeTemplatesStub
protected HttpJsonNodeTemplatesStub(NodeTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonNodeTemplatesStub, 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 HttpJsonNodeTemplatesStub create(NodeTemplatesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonNodeTemplatesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonNodeTemplatesStub 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<AggregatedListNodeTemplatesRequest,NodeTemplateAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classNodeTemplatesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListNodeTemplatesRequest,NodeTemplatesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classNodeTemplatesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNodeTemplateRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classNodeTemplatesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteNodeTemplateRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classNodeTemplatesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetNodeTemplateRequest,NodeTemplate> getCallable()
- Overrides:
getCallablein classNodeTemplatesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyNodeTemplateRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classNodeTemplatesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertNodeTemplateRequest,Operation> insertCallable()
- Overrides:
insertCallablein classNodeTemplatesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertNodeTemplateRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classNodeTemplatesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodeTemplatesRequest,NodeTemplateList> listCallable()
- Overrides:
listCallablein classNodeTemplatesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodeTemplatesRequest,NodeTemplatesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classNodeTemplatesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyNodeTemplateRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classNodeTemplatesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsNodeTemplateRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classNodeTemplatesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classNodeTemplatesStub
-
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
-
-