Class HttpJsonAutoscalersStub (1.20.0)

public class HttpJsonAutoscalersStub extends AutoscalersStub

REST stub implementation for the Autoscalers service API.

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

Inheritance

java.lang.Object > AutoscalersStub > HttpJsonAutoscalersStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AutoscalersStubSettings settings)

public static final HttpJsonAutoscalersStub create(AutoscalersStubSettings settings)
Parameter
NameDescription
settingsAutoscalersStubSettings
Returns
TypeDescription
HttpJsonAutoscalersStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext)

protected HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAutoscalersStub, 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
settingsAutoscalersStubSettings
clientContextClientContext

HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAutoscalersStub(AutoscalersStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAutoscalersStub, 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
settingsAutoscalersStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListAutoscalersRequest,AutoscalerAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListAutoscalersRequest,AutoscalerAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListAutoscalersRequest,AutoscalersClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListAutoscalersRequest,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<DeleteAutoscalerRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteAutoscalerRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetAutoscalerRequest,Autoscaler> getCallable()
Returns
TypeDescription
UnaryCallable<GetAutoscalerRequest,Autoscaler>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListAutoscalersRequest,AutoscalerList> listCallable()
Returns
TypeDescription
UnaryCallable<ListAutoscalersRequest,AutoscalerList>
Overrides

listPagedCallable()

public UnaryCallable<ListAutoscalersRequest,AutoscalersClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAutoscalersRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchAutoscalerRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchAutoscalerRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchAutoscalerRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchAutoscalerRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

public UnaryCallable<UpdateAutoscalerRequest,Operation> updateCallable()
Returns
TypeDescription
UnaryCallable<UpdateAutoscalerRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateAutoscalerRequest,Operation,Operation> updateOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateAutoscalerRequest,Operation,Operation>
Overrides