Class HttpJsonAssuredWorkloadsServiceStub
- java.lang.Object
-
- com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStub
-
- com.google.cloud.assuredworkloads.v1beta1.stub.HttpJsonAssuredWorkloadsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @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
Constructors Modifier Constructor Description protectedHttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings.protectedHttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse>analyzeWorkloadMoveCallable()booleanawaitTermination(long duration, TimeUnit unit)voidclose()static HttpJsonAssuredWorkloadsServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonAssuredWorkloadsServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonAssuredWorkloadsServiceStubcreate(AssuredWorkloadsServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateWorkloadRequest,com.google.longrunning.Operation>createWorkloadCallable()com.google.api.gax.rpc.OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata>createWorkloadOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteWorkloadRequest,com.google.protobuf.Empty>deleteWorkloadCallable()com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStubgetHttpJsonOperationsStub()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()com.google.api.gax.rpc.UnaryCallable<GetWorkloadRequest,Workload>getWorkloadCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>listWorkloadsCallable()com.google.api.gax.rpc.UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse>restrictAllowedResourcesCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<UpdateWorkloadRequest,Workload>updateWorkloadCallable()-
Methods inherited from class com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStub
getOperationsStub, listWorkloadsPagedCallable
-
-
-
-
Constructor Detail
-
HttpJsonAssuredWorkloadsServiceStub
protected HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.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 Detail
-
create
public static final HttpJsonAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAssuredWorkloadsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonAssuredWorkloadsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStubin classAssuredWorkloadsServiceStub
-
createWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWorkloadRequest,com.google.longrunning.Operation> createWorkloadCallable()
- Overrides:
createWorkloadCallablein classAssuredWorkloadsServiceStub
-
createWorkloadOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata> createWorkloadOperationCallable()
- Overrides:
createWorkloadOperationCallablein classAssuredWorkloadsServiceStub
-
restrictAllowedResourcesCallable
public com.google.api.gax.rpc.UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()
- Overrides:
restrictAllowedResourcesCallablein classAssuredWorkloadsServiceStub
-
deleteWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteWorkloadRequest,com.google.protobuf.Empty> deleteWorkloadCallable()
- Overrides:
deleteWorkloadCallablein classAssuredWorkloadsServiceStub
-
updateWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
- Overrides:
updateWorkloadCallablein classAssuredWorkloadsServiceStub
-
getWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
- Overrides:
getWorkloadCallablein classAssuredWorkloadsServiceStub
-
analyzeWorkloadMoveCallable
public com.google.api.gax.rpc.UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse> analyzeWorkloadMoveCallable()
- Overrides:
analyzeWorkloadMoveCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
- Overrides:
listWorkloadsCallablein 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-