Class HttpJsonInstanceTemplatesStub (1.58.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonInstanceTemplatesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonInstanceTemplatesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonInstanceTemplatesStub
Exceptions
Type Description
IOException

create(InstanceTemplatesStubSettings settings)

public static final HttpJsonInstanceTemplatesStub create(InstanceTemplatesStubSettings settings)
Parameter
Name Description
settings InstanceTemplatesStubSettings
Returns
Type Description
HttpJsonInstanceTemplatesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings InstanceTemplatesStubSettings
clientContext ClientContext

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
Name Description
settings InstanceTemplatesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListInstanceTemplatesRequest,InstanceTemplateAggregatedList> aggregatedListCallable()
Returns
Type Description
UnaryCallable<AggregatedListInstanceTemplatesRequest,InstanceTemplateAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListInstanceTemplatesRequest,InstanceTemplatesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
Type Description
UnaryCallable<AggregatedListInstanceTemplatesRequest,AggregatedListPagedResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

getIamPolicyCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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