Class HttpJsonOsLoginServiceStub (2.8.0)

public class HttpJsonOsLoginServiceStub extends OsLoginServiceStub

REST stub implementation for the OsLoginService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > OsLoginServiceStub > HttpJsonOsLoginServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(OsLoginServiceStubSettings settings)

public static final HttpJsonOsLoginServiceStub create(OsLoginServiceStubSettings settings)
Parameter
NameDescription
settingsOsLoginServiceStubSettings
Returns
TypeDescription
HttpJsonOsLoginServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonOsLoginServiceStub(OsLoginServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonOsLoginServiceStub(OsLoginServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonOsLoginServiceStub, 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
settingsOsLoginServiceStubSettings
clientContextClientContext

HttpJsonOsLoginServiceStub(OsLoginServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonOsLoginServiceStub(OsLoginServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonOsLoginServiceStub, 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
settingsOsLoginServiceStubSettings
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

close()

public final void close()
Overrides

createSshPublicKeyCallable()

public UnaryCallable<CreateSshPublicKeyRequest,OsLoginProto.SshPublicKey> createSshPublicKeyCallable()
Returns
TypeDescription
UnaryCallable<CreateSshPublicKeyRequest,SshPublicKey>
Overrides

deletePosixAccountCallable()

public UnaryCallable<DeletePosixAccountRequest,Empty> deletePosixAccountCallable()
Returns
TypeDescription
UnaryCallable<DeletePosixAccountRequest,Empty>
Overrides

deleteSshPublicKeyCallable()

public UnaryCallable<DeleteSshPublicKeyRequest,Empty> deleteSshPublicKeyCallable()
Returns
TypeDescription
UnaryCallable<DeleteSshPublicKeyRequest,Empty>
Overrides

getLoginProfileCallable()

public UnaryCallable<GetLoginProfileRequest,LoginProfile> getLoginProfileCallable()
Returns
TypeDescription
UnaryCallable<GetLoginProfileRequest,LoginProfile>
Overrides

getSshPublicKeyCallable()

public UnaryCallable<GetSshPublicKeyRequest,OsLoginProto.SshPublicKey> getSshPublicKeyCallable()
Returns
TypeDescription
UnaryCallable<GetSshPublicKeyRequest,SshPublicKey>
Overrides

importSshPublicKeyCallable()

public UnaryCallable<ImportSshPublicKeyRequest,ImportSshPublicKeyResponse> importSshPublicKeyCallable()
Returns
TypeDescription
UnaryCallable<ImportSshPublicKeyRequest,ImportSshPublicKeyResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSshPublicKeyCallable()

public UnaryCallable<UpdateSshPublicKeyRequest,OsLoginProto.SshPublicKey> updateSshPublicKeyCallable()
Returns
TypeDescription
UnaryCallable<UpdateSshPublicKeyRequest,SshPublicKey>
Overrides