Class HttpJsonAssuredWorkloadsServiceStub (2.45.0)

public class HttpJsonAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub

REST stub implementation for the AssuredWorkloadsService service API.

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

Inheritance

java.lang.Object > AssuredWorkloadsServiceStub > HttpJsonAssuredWorkloadsServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonAssuredWorkloadsServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AssuredWorkloadsServiceStubSettings settings)

public static final HttpJsonAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings)
Parameter
Name Description
settings AssuredWorkloadsServiceStubSettings
Returns
Type Description
HttpJsonAssuredWorkloadsServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, 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 AssuredWorkloadsServiceStubSettings
clientContext ClientContext

HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, 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 AssuredWorkloadsServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

analyzeWorkloadMoveCallable()

public UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse> analyzeWorkloadMoveCallable()
Returns
Type Description
UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse>
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

createWorkloadCallable()

public UnaryCallable<CreateWorkloadRequest,Operation> createWorkloadCallable()
Returns
Type Description
UnaryCallable<CreateWorkloadRequest,Operation>
Overrides

createWorkloadOperationCallable()

public OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata> createWorkloadOperationCallable()
Returns
Type Description
OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata>
Overrides

deleteWorkloadCallable()

public UnaryCallable<DeleteWorkloadRequest,Empty> deleteWorkloadCallable()
Returns
Type Description
UnaryCallable<DeleteWorkloadRequest,Empty>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getWorkloadCallable()

public UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
Returns
Type Description
UnaryCallable<GetWorkloadRequest,Workload>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listWorkloadsCallable()

public UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
Returns
Type Description
UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>
Overrides

restrictAllowedResourcesCallable()

public UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()
Returns
Type Description
UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkloadCallable()

public UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
Returns
Type Description
UnaryCallable<UpdateWorkloadRequest,Workload>
Overrides