Class HttpJsonAssuredWorkloadsServiceStub
java.lang.Object
com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStub
com.google.cloud.assuredworkloads.v1.stub.HttpJsonAssuredWorkloadsServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings.protectedHttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonAssuredWorkloadsServiceStubcreate(ClientContext clientContext) static final HttpJsonAssuredWorkloadsServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonAssuredWorkloadsServiceStubcreate(AssuredWorkloadsServiceStubSettings settings) UnaryCallable<DeleteWorkloadRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStub
getOperationsStub, listViolationsPagedCallable
-
Constructor Details
-
HttpJsonAssuredWorkloadsServiceStub
protected HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
HttpJsonAssuredWorkloadsServiceStub
protected HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonAssuredWorkloadsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classAssuredWorkloadsServiceStub
-
createWorkloadCallable
- Overrides:
createWorkloadCallablein classAssuredWorkloadsServiceStub
-
createWorkloadOperationCallable
public OperationCallable<CreateWorkloadRequest,Workload, createWorkloadOperationCallable()CreateWorkloadOperationMetadata> - Overrides:
createWorkloadOperationCallablein classAssuredWorkloadsServiceStub
-
updateWorkloadCallable
- Overrides:
updateWorkloadCallablein classAssuredWorkloadsServiceStub
-
restrictAllowedResourcesCallable
public UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()- Overrides:
restrictAllowedResourcesCallablein classAssuredWorkloadsServiceStub
-
deleteWorkloadCallable
- Overrides:
deleteWorkloadCallablein classAssuredWorkloadsServiceStub
-
getWorkloadCallable
- Overrides:
getWorkloadCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsCallable
- Overrides:
listWorkloadsCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsPagedCallable
public UnaryCallable<ListWorkloadsRequest,AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()- Overrides:
listWorkloadsPagedCallablein classAssuredWorkloadsServiceStub
-
listViolationsCallable
- Overrides:
listViolationsCallablein classAssuredWorkloadsServiceStub
-
getViolationCallable
- Overrides:
getViolationCallablein classAssuredWorkloadsServiceStub
-
acknowledgeViolationCallable
public UnaryCallable<AcknowledgeViolationRequest,AcknowledgeViolationResponse> acknowledgeViolationCallable()- Overrides:
acknowledgeViolationCallablein classAssuredWorkloadsServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAssuredWorkloadsServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-