Class HttpJsonOsConfigServiceStub (2.33.0)

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.

Inheritance

java.lang.Object > OsConfigServiceStub > HttpJsonOsConfigServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonOsConfigServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonOsConfigServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonOsConfigServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonOsConfigServiceStub
Exceptions
TypeDescription
IOException

create(OsConfigServiceStubSettings settings)

public static final HttpJsonOsConfigServiceStub create(OsConfigServiceStubSettings settings)
Parameter
NameDescription
settingsOsConfigServiceStubSettings
Returns
TypeDescription
HttpJsonOsConfigServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsOsConfigServiceStubSettings
clientContextClientContext

HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonOsConfigServiceStub(OsConfigServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsOsConfigServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

cancelPatchJobCallable()

public UnaryCallable<PatchJobs.CancelPatchJobRequest,PatchJobs.PatchJob> cancelPatchJobCallable()
Returns
TypeDescription
UnaryCallable<CancelPatchJobRequest,PatchJob>
Overrides

close()

public final void close()
Overrides

createPatchDeploymentCallable()

public UnaryCallable<PatchDeployments.CreatePatchDeploymentRequest,PatchDeployments.PatchDeployment> createPatchDeploymentCallable()
Returns
TypeDescription
UnaryCallable<CreatePatchDeploymentRequest,PatchDeployment>
Overrides

deletePatchDeploymentCallable()