Class HttpJsonAssuredWorkloadsServiceStub (2.17.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonAssuredWorkloadsServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(AssuredWorkloadsServiceStubSettings settings)

public static final HttpJsonAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings)
Parameter
NameDescription
settingsAssuredWorkloadsServiceStubSettings
Returns
TypeDescription
HttpJsonAssuredWorkloadsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsAssuredWorkloadsServiceStubSettings
clientContextClientContext

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
NameDescription
settingsAssuredWorkloadsServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

analyzeWorkloadMoveCallable()

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

createWorkloadCallable()

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

createWorkloadOperationCallable()

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

deleteWorkloadCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getWorkloadCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listWorkloadsCallable()

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

restrictAllowedResourcesCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkloadCallable()

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