Class HttpJsonInstanceTemplatesStub (1.18.0)

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.

Inheritance

java.lang.Object > InstanceTemplatesStub > HttpJsonInstanceTemplatesStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonInstanceTemplatesStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonInstanceTemplatesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonInstanceTemplatesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonInstanceTemplatesStub
Exceptions
TypeDescription
IOException

create(InstanceTemplatesStubSettings settings)

public static final HttpJsonInstanceTemplatesStub create(InstanceTemplatesStubSettings settings)
Parameter
NameDescription
settingsInstanceTemplatesStubSettings
Returns
TypeDescription
HttpJsonInstanceTemplatesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, ClientContext clientContext)

protected HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsInstanceTemplatesStubSettings
clientContextClientContext

HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonInstanceTemplatesStub(InstanceTemplatesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsInstanceTemplatesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteInstanceTemplateRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteInstanceTemplateRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteInstanceTemplateRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteInstanceTemplateRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetInstanceTemplateRequest,InstanceTemplate> getCallable()
Returns
TypeDescription
UnaryCallable<GetInstanceTemplateRequest,InstanceTemplate>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyInstanceTemplateRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyInstanceTemplateRequest,Policy>
Overrides

insertCallable()

public UnaryCallable<InsertInstanceTemplateRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertInstanceTemplateRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertInstanceTemplateRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertInstanceTemplateRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplateList> listCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplateList>
Overrides

listPagedCallable()

public UnaryCallable<ListInstanceTemplatesRequest,InstanceTemplatesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceTemplatesRequest,ListPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyInstanceTemplateRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyInstanceTemplateRequest,Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsInstanceTemplateRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsInstanceTemplateRequest,TestPermissionsResponse>
Overrides