Class OsLoginService.OsLoginServiceBase (3.0.0)

[BindServiceMethod(typeof(OsLoginService), "BindService")]
public abstract class OsLoginServiceBase

Base class for server-side implementations of OsLoginService

Inheritance

Object > OsLoginService.OsLoginServiceBase

Namespace

Google.Cloud.OsLogin.V1

Assembly

Google.Cloud.OsLogin.V1.dll

Methods

DeletePosixAccount(DeletePosixAccountRequest, ServerCallContext)

public virtual Task<Empty> DeletePosixAccount(DeletePosixAccountRequest request, ServerCallContext context)

Deletes a POSIX account.

Parameters
NameDescription
requestDeletePosixAccountRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

DeleteSshPublicKey(DeleteSshPublicKeyRequest, ServerCallContext)

public virtual Task<Empty> DeleteSshPublicKey(DeleteSshPublicKeyRequest request, ServerCallContext context)

Deletes an SSH public key.

Parameters
NameDescription
requestDeleteSshPublicKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetLoginProfile(GetLoginProfileRequest, ServerCallContext)

public virtual Task<LoginProfile> GetLoginProfile(GetLoginProfileRequest request, ServerCallContext context)

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.

Parameters
NameDescription
requestGetLoginProfileRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<LoginProfile>

The response to send back to the client (wrapped by a task).

GetSshPublicKey(GetSshPublicKeyRequest, ServerCallContext)

public virtual Task<SshPublicKey> GetSshPublicKey(GetSshPublicKeyRequest request, ServerCallContext context)

Retrieves an SSH public key.

Parameters
NameDescription
requestGetSshPublicKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SshPublicKey>

The response to send back to the client (wrapped by a task).

ImportSshPublicKey(ImportSshPublicKeyRequest, ServerCallContext)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKey(ImportSshPublicKeyRequest request, ServerCallContext context)

Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.

Parameters
NameDescription
requestImportSshPublicKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

The response to send back to the client (wrapped by a task).

UpdateSshPublicKey(UpdateSshPublicKeyRequest, ServerCallContext)

public virtual Task<SshPublicKey> UpdateSshPublicKey(UpdateSshPublicKeyRequest request, ServerCallContext context)

Updates an SSH public key and returns the profile information. This method supports patch semantics.

Parameters
NameDescription
requestUpdateSshPublicKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<SshPublicKey>

The response to send back to the client (wrapped by a task).