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 protected
HttpJsonNodeTemplatesStub(NodeTemplatesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonNodeTemplatesStub, using the given settings.protected
HttpJsonNodeTemplatesStub(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:
aggregatedListCallable
in classNodeTemplatesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListNodeTemplatesRequest,NodeTemplatesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classNodeTemplatesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNodeTemplateRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classNodeTemplatesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteNodeTemplateRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classNodeTemplatesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetNodeTemplateRequest,NodeTemplate> getCallable()
- Overrides:
getCallable
in classNodeTemplatesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyNodeTemplateRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classNodeTemplatesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertNodeTemplateRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classNodeTemplatesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertNodeTemplateRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classNodeTemplatesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodeTemplatesRequest,NodeTemplateList> listCallable()
- Overrides:
listCallable
in classNodeTemplatesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNodeTemplatesRequest,NodeTemplatesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classNodeTemplatesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyNodeTemplateRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classNodeTemplatesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsNodeTemplateRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classNodeTemplatesStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-