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.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
create(AssuredWorkloadsServiceStubSettings settings)
public static final HttpJsonAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings)
Parameter
Returns
Exceptions
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
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
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
Methods
acknowledgeViolationCallable()
public UnaryCallable<AcknowledgeViolationRequest,AcknowledgeViolationResponse> acknowledgeViolationCallable()
Returns
Overrides
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
close()
public final void close()
Overrides
createWorkloadCallable()
public UnaryCallable<CreateWorkloadRequest,Operation> createWorkloadCallable()
Returns
Overrides
createWorkloadOperationCallable()
public OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata> createWorkloadOperationCallable()
Returns
Overrides
deleteWorkloadCallable()
public UnaryCallable<DeleteWorkloadRequest,Empty> deleteWorkloadCallable()
Returns
Overrides
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Overrides
getViolationCallable()
public UnaryCallable<GetViolationRequest,Violation> getViolationCallable()
Returns
Overrides
getWorkloadCallable()
public UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
Returns
Overrides
isShutdown()
public boolean isShutdown()
Returns
isTerminated()
public boolean isTerminated()
Returns
listViolationsCallable()
public UnaryCallable<ListViolationsRequest,ListViolationsResponse> listViolationsCallable()
Returns
Overrides
listWorkloadsCallable()
public UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
Returns
Overrides
listWorkloadsPagedCallable()
public UnaryCallable<ListWorkloadsRequest,AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()
Returns
Overrides
restrictAllowedResourcesCallable()
public UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()
Returns
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
updateWorkloadCallable()
public UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
Returns
Overrides