Class HttpJsonOsLoginServiceStub (2.41.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonOsLoginServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonOsLoginServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonOsLoginServiceStub
Exceptions
Type Description
IOException

create(OsLoginServiceStubSettings settings)

public static final HttpJsonOsLoginServiceStub create(OsLoginServiceStubSettings settings)
Parameter
Name Description
settings OsLoginServiceStubSettings
Returns
Type Description
HttpJsonOsLoginServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings OsLoginServiceStubSettings
clientContext ClientContext

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
Name Description
settings OsLoginServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createSshPublicKeyCallable()

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

deletePosixAccountCallable()

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

deleteSshPublicKeyCallable()

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

getLoginProfileCallable()

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

getSshPublicKeyCallable()

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

importSshPublicKeyCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSshPublicKeyCallable()

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