Class HttpJsonInstanceGroupsStub (1.27.0)

public class HttpJsonInstanceGroupsStub extends InstanceGroupsStub

REST stub implementation for the InstanceGroups service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > InstanceGroupsStub > HttpJsonInstanceGroupsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(InstanceGroupsStubSettings settings)

public static final HttpJsonInstanceGroupsStub create(InstanceGroupsStubSettings settings)
Parameter
NameDescription
settingsInstanceGroupsStubSettings
Returns
TypeDescription
HttpJsonInstanceGroupsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, ClientContext clientContext)

protected HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonInstanceGroupsStub, 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
settingsInstanceGroupsStubSettings
clientContextClientContext

HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonInstanceGroupsStub(InstanceGroupsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonInstanceGroupsStub, 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
settingsInstanceGroupsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addInstancesCallable()

public UnaryCallable<AddInstancesInstanceGroupRequest,Operation> addInstancesCallable()
Returns
TypeDescription
UnaryCallable<AddInstancesInstanceGroupRequest,Operation>
Overrides

addInstancesOperationCallable()

public OperationCallable<AddInstancesInstanceGroupRequest,Operation,Operation> addInstancesOperationCallable()
Returns
TypeDescription
OperationCallable<AddInstancesInstanceGroupRequest,Operation,Operation>
Overrides

aggregatedListCallable()

public UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListInstanceGroupsRequest,InstanceGroupsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListInstanceGroupsRequest,AggregatedListPagedResponse>
Overrides

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<DeleteInstanceGroupRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteInstanceGroupRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetInstanceGroupRequest,InstanceGroup> getCallable()
Returns
TypeDescription
UnaryCallable<GetInstanceGroupRequest,InstanceGroup>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListInstanceGroupsRequest,InstanceGroupList> listCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceGroupsRequest,InstanceGroupList>
Overrides

listInstancesCallable()

public UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsListInstances> listInstancesCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsListInstances>
Overrides

listInstancesPagedCallable()

public UnaryCallable<ListInstancesInstanceGroupsRequest,InstanceGroupsClient.ListInstancesPagedResponse> listInstancesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstancesInstanceGroupsRequest,ListInstancesPagedResponse>
Overrides

listPagedCallable()

public UnaryCallable<ListInstanceGroupsRequest,InstanceGroupsClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListInstanceGroupsRequest,ListPagedResponse>
Overrides

removeInstancesCallable()

public UnaryCallable<RemoveInstancesInstanceGroupRequest,Operation> removeInstancesCallable()
Returns
TypeDescription
UnaryCallable<RemoveInstancesInstanceGroupRequest,Operation>
Overrides

removeInstancesOperationCallable()

public OperationCallable<RemoveInstancesInstanceGroupRequest,Operation,Operation> removeInstancesOperationCallable()
Returns
TypeDescription
OperationCallable<RemoveInstancesInstanceGroupRequest,Operation,Operation>
Overrides

setNamedPortsCallable()

public UnaryCallable<SetNamedPortsInstanceGroupRequest,Operation> setNamedPortsCallable()
Returns
TypeDescription
UnaryCallable<SetNamedPortsInstanceGroupRequest,Operation>
Overrides

setNamedPortsOperationCallable()

public OperationCallable<SetNamedPortsInstanceGroupRequest,Operation,Operation> setNamedPortsOperationCallable()
Returns
TypeDescription
OperationCallable<SetNamedPortsInstanceGroupRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()