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 protected
HttpJsonAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonAssuredWorkloadsServiceStub, using the given settings.protected
HttpJsonAssuredWorkloadsServiceStub(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()
boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonAssuredWorkloadsServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonAssuredWorkloadsServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonAssuredWorkloadsServiceStub
create(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.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<GetWorkloadRequest,Workload>
getWorkloadCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>
listWorkloadsCallable()
com.google.api.gax.rpc.UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse>
restrictAllowedResourcesCallable()
void
shutdown()
void
shutdownNow()
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:
getHttpJsonOperationsStub
in classAssuredWorkloadsServiceStub
-
createWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWorkloadRequest,com.google.longrunning.Operation> createWorkloadCallable()
- Overrides:
createWorkloadCallable
in classAssuredWorkloadsServiceStub
-
createWorkloadOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata> createWorkloadOperationCallable()
- Overrides:
createWorkloadOperationCallable
in classAssuredWorkloadsServiceStub
-
restrictAllowedResourcesCallable
public com.google.api.gax.rpc.UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()
- Overrides:
restrictAllowedResourcesCallable
in classAssuredWorkloadsServiceStub
-
deleteWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteWorkloadRequest,com.google.protobuf.Empty> deleteWorkloadCallable()
- Overrides:
deleteWorkloadCallable
in classAssuredWorkloadsServiceStub
-
updateWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
- Overrides:
updateWorkloadCallable
in classAssuredWorkloadsServiceStub
-
getWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
- Overrides:
getWorkloadCallable
in classAssuredWorkloadsServiceStub
-
analyzeWorkloadMoveCallable
public com.google.api.gax.rpc.UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse> analyzeWorkloadMoveCallable()
- Overrides:
analyzeWorkloadMoveCallable
in classAssuredWorkloadsServiceStub
-
listWorkloadsCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
- Overrides:
listWorkloadsCallable
in classAssuredWorkloadsServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-