Class HttpJsonAssuredWorkloadsServiceStub
- java.lang.Object
-
- com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStub
-
- com.google.cloud.assuredworkloads.v1.stub.HttpJsonAssuredWorkloadsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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
-
Methods inherited from class com.google.cloud.assuredworkloads.v1.stub.AssuredWorkloadsServiceStub
getOperationsStub, listViolationsPagedCallable
-
-
-
-
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
-
updateWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
- Overrides:
updateWorkloadCallable
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
-
getWorkloadCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
- Overrides:
getWorkloadCallable
in classAssuredWorkloadsServiceStub
-
listWorkloadsCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
- Overrides:
listWorkloadsCallable
in classAssuredWorkloadsServiceStub
-
listWorkloadsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkloadsRequest,AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()
- Overrides:
listWorkloadsPagedCallable
in classAssuredWorkloadsServiceStub
-
listViolationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListViolationsRequest,ListViolationsResponse> listViolationsCallable()
- Overrides:
listViolationsCallable
in classAssuredWorkloadsServiceStub
-
getViolationCallable
public com.google.api.gax.rpc.UnaryCallable<GetViolationRequest,Violation> getViolationCallable()
- Overrides:
getViolationCallable
in classAssuredWorkloadsServiceStub
-
acknowledgeViolationCallable
public com.google.api.gax.rpc.UnaryCallable<AcknowledgeViolationRequest,AcknowledgeViolationResponse> acknowledgeViolationCallable()
- Overrides:
acknowledgeViolationCallable
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
-
-