Class HttpJsonOsConfigServiceStub
- java.lang.Object
-
- com.google.cloud.osconfig.v1.stub.OsConfigServiceStub
-
- com.google.cloud.osconfig.v1.stub.HttpJsonOsConfigServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonOsConfigServiceStub extends OsConfigServiceStub
REST stub implementation for the OsConfigService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonOsConfigServiceStub, using the given settings.protected
HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonOsConfigServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonOsConfigServiceStub
protected HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonOsConfigServiceStub, 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
-
HttpJsonOsConfigServiceStub
protected HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonOsConfigServiceStub, 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 HttpJsonOsConfigServiceStub create(OsConfigServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonOsConfigServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonOsConfigServiceStub 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()
-
executePatchJobCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.ExecutePatchJobRequest,PatchJobs.PatchJob> executePatchJobCallable()
- Overrides:
executePatchJobCallable
in classOsConfigServiceStub
-
getPatchJobCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.GetPatchJobRequest,PatchJobs.PatchJob> getPatchJobCallable()
- Overrides:
getPatchJobCallable
in classOsConfigServiceStub
-
cancelPatchJobCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.CancelPatchJobRequest,PatchJobs.PatchJob> cancelPatchJobCallable()
- Overrides:
cancelPatchJobCallable
in classOsConfigServiceStub
-
listPatchJobsCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.ListPatchJobsRequest,PatchJobs.ListPatchJobsResponse> listPatchJobsCallable()
- Overrides:
listPatchJobsCallable
in classOsConfigServiceStub
-
listPatchJobsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.ListPatchJobsRequest,OsConfigServiceClient.ListPatchJobsPagedResponse> listPatchJobsPagedCallable()
- Overrides:
listPatchJobsPagedCallable
in classOsConfigServiceStub
-
listPatchJobInstanceDetailsCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.ListPatchJobInstanceDetailsRequest,PatchJobs.ListPatchJobInstanceDetailsResponse> listPatchJobInstanceDetailsCallable()
- Overrides:
listPatchJobInstanceDetailsCallable
in classOsConfigServiceStub
-
listPatchJobInstanceDetailsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<PatchJobs.ListPatchJobInstanceDetailsRequest,OsConfigServiceClient.ListPatchJobInstanceDetailsPagedResponse> listPatchJobInstanceDetailsPagedCallable()
- Overrides:
listPatchJobInstanceDetailsPagedCallable
in classOsConfigServiceStub
-
createPatchDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.CreatePatchDeploymentRequest,PatchDeployments.PatchDeployment> createPatchDeploymentCallable()
- Overrides:
createPatchDeploymentCallable
in classOsConfigServiceStub
-
getPatchDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.GetPatchDeploymentRequest,PatchDeployments.PatchDeployment> getPatchDeploymentCallable()
- Overrides:
getPatchDeploymentCallable
in classOsConfigServiceStub
-
listPatchDeploymentsCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.ListPatchDeploymentsRequest,PatchDeployments.ListPatchDeploymentsResponse> listPatchDeploymentsCallable()
- Overrides:
listPatchDeploymentsCallable
in classOsConfigServiceStub
-
listPatchDeploymentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.ListPatchDeploymentsRequest,OsConfigServiceClient.ListPatchDeploymentsPagedResponse> listPatchDeploymentsPagedCallable()
- Overrides:
listPatchDeploymentsPagedCallable
in classOsConfigServiceStub
-
deletePatchDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.DeletePatchDeploymentRequest,com.google.protobuf.Empty> deletePatchDeploymentCallable()
- Overrides:
deletePatchDeploymentCallable
in classOsConfigServiceStub
-
updatePatchDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.UpdatePatchDeploymentRequest,PatchDeployments.PatchDeployment> updatePatchDeploymentCallable()
- Overrides:
updatePatchDeploymentCallable
in classOsConfigServiceStub
-
pausePatchDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.PausePatchDeploymentRequest,PatchDeployments.PatchDeployment> pausePatchDeploymentCallable()
- Overrides:
pausePatchDeploymentCallable
in classOsConfigServiceStub
-
resumePatchDeploymentCallable
public com.google.api.gax.rpc.UnaryCallable<PatchDeployments.ResumePatchDeploymentRequest,PatchDeployments.PatchDeployment> resumePatchDeploymentCallable()
- Overrides:
resumePatchDeploymentCallable
in classOsConfigServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classOsConfigServiceStub
-
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
-
-