Google Cloud OS Login v1 API - Class OsLoginServiceClientImpl (3.5.0)

public sealed class OsLoginServiceClientImpl : OsLoginServiceClient

Reference documentation and code samples for the Google Cloud OS Login v1 API class OsLoginServiceClientImpl.

OsLoginService client wrapper implementation, for convenient use.

Inheritance

object > OsLoginServiceClient > OsLoginServiceClientImpl

Namespace

Google.Cloud.OsLogin.V1

Assembly

Google.Cloud.OsLogin.V1.dll

Remarks

Cloud OS Login API

The Cloud OS Login API allows you to manage users and their associated SSH public keys for logging into virtual machines on Google Cloud Platform.

Constructors

OsLoginServiceClientImpl(OsLoginServiceClient, OsLoginServiceSettings, ILogger)

public OsLoginServiceClientImpl(OsLoginService.OsLoginServiceClient grpcClient, OsLoginServiceSettings settings, ILogger logger)

Constructs a client wrapper for the OsLoginService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient OsLoginServiceOsLoginServiceClient

The underlying gRPC client.

settings OsLoginServiceSettings

The base OsLoginServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override OsLoginService.OsLoginServiceClient GrpcClient { get; }

The underlying gRPC OsLoginService client

Property Value
Type Description
OsLoginServiceOsLoginServiceClient
Overrides

Methods

CreateSshPublicKey(CreateSshPublicKeyRequest, CallSettings)

public override SshPublicKey CreateSshPublicKey(CreateSshPublicKeyRequest request, CallSettings callSettings = null)

Create an SSH public key

Parameters
Name Description
request CreateSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SshPublicKey

The RPC response.

Overrides

CreateSshPublicKeyAsync(CreateSshPublicKeyRequest, CallSettings)

public override Task<SshPublicKey> CreateSshPublicKeyAsync(CreateSshPublicKeyRequest request, CallSettings callSettings = null)

Create an SSH public key

Parameters
Name Description
request CreateSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSshPublicKey

A Task containing the RPC response.

Overrides

DeletePosixAccount(DeletePosixAccountRequest, CallSettings)

public override void DeletePosixAccount(DeletePosixAccountRequest request, CallSettings callSettings = null)

Deletes a POSIX account.

Parameters
Name Description
request DeletePosixAccountRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeletePosixAccountAsync(DeletePosixAccountRequest, CallSettings)

public override Task DeletePosixAccountAsync(DeletePosixAccountRequest request, CallSettings callSettings = null)

Deletes a POSIX account.

Parameters
Name Description
request DeletePosixAccountRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

DeleteSshPublicKey(DeleteSshPublicKeyRequest, CallSettings)

public override void DeleteSshPublicKey(DeleteSshPublicKeyRequest request, CallSettings callSettings = null)

Deletes an SSH public key.

Parameters
Name Description
request DeleteSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteSshPublicKeyAsync(DeleteSshPublicKeyRequest, CallSettings)

public override Task DeleteSshPublicKeyAsync(DeleteSshPublicKeyRequest request, CallSettings callSettings = null)

Deletes an SSH public key.

Parameters
Name Description
request DeleteSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

GetLoginProfile(GetLoginProfileRequest, CallSettings)

public override LoginProfile GetLoginProfile(GetLoginProfileRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetLoginProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LoginProfile

The RPC response.

Overrides

GetLoginProfileAsync(GetLoginProfileRequest, CallSettings)

public override Task<LoginProfile> GetLoginProfileAsync(GetLoginProfileRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request GetLoginProfileRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLoginProfile

A Task containing the RPC response.

Overrides

GetSshPublicKey(GetSshPublicKeyRequest, CallSettings)

public override SshPublicKey GetSshPublicKey(GetSshPublicKeyRequest request, CallSettings callSettings = null)

Retrieves an SSH public key.

Parameters
Name Description
request GetSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SshPublicKey

The RPC response.

Overrides

GetSshPublicKeyAsync(GetSshPublicKeyRequest, CallSettings)

public override Task<SshPublicKey> GetSshPublicKeyAsync(GetSshPublicKeyRequest request, CallSettings callSettings = null)

Retrieves an SSH public key.

Parameters
Name Description
request GetSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSshPublicKey

A Task containing the RPC response.

Overrides

ImportSshPublicKey(ImportSshPublicKeyRequest, CallSettings)

public override ImportSshPublicKeyResponse ImportSshPublicKey(ImportSshPublicKeyRequest request, CallSettings callSettings = null)

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
Name Description
request ImportSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ImportSshPublicKeyResponse

The RPC response.

Overrides

ImportSshPublicKeyAsync(ImportSshPublicKeyRequest, CallSettings)

public override Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(ImportSshPublicKeyRequest request, CallSettings callSettings = null)

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
Name Description
request ImportSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskImportSshPublicKeyResponse

A Task containing the RPC response.

Overrides

UpdateSshPublicKey(UpdateSshPublicKeyRequest, CallSettings)

public override SshPublicKey UpdateSshPublicKey(UpdateSshPublicKeyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
SshPublicKey

The RPC response.

Overrides

UpdateSshPublicKeyAsync(UpdateSshPublicKeyRequest, CallSettings)

public override Task<SshPublicKey> UpdateSshPublicKeyAsync(UpdateSshPublicKeyRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request UpdateSshPublicKeyRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSshPublicKey

A Task containing the RPC response.

Overrides