Class OsLoginServiceClientImpl (2.2.0)

public sealed class OsLoginServiceClientImpl : OsLoginServiceClient

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(OsLoginService.OsLoginServiceClient, OsLoginServiceSettings)

public OsLoginServiceClientImpl(OsLoginService.OsLoginServiceClient grpcClient, OsLoginServiceSettings settings)

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

Parameters
NameDescription
grpcClientOsLoginService.OsLoginServiceClient

The underlying gRPC client.

settingsOsLoginServiceSettings

The base OsLoginServiceSettings used within this client.

Properties

GrpcClient

public override OsLoginService.OsLoginServiceClient GrpcClient { get; }

The underlying gRPC OsLoginService client

Property Value
TypeDescription
OsLoginService.OsLoginServiceClient
Overrides

Methods

DeletePosixAccount(DeletePosixAccountRequest, CallSettings)

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

Deletes a POSIX account.

Parameters
NameDescription
requestDeletePosixAccountRequest

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

callSettingsCallSettings

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
NameDescription
requestDeletePosixAccountRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSshPublicKeyRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetLoginProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestGetLoginProfileRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LoginProfile>

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
NameDescription
requestGetSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.Cloud.OsLogin.Common.SshPublicKey

The RPC response.

Overrides

GetSshPublicKeyAsync(GetSshPublicKeyRequest, CallSettings)

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

Retrieves an SSH public key.

Parameters
NameDescription
requestGetSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.Cloud.OsLogin.Common.SshPublicKey>

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
NameDescription
requestImportSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestImportSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

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
NameDescription
requestUpdateSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Google.Cloud.OsLogin.Common.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
NameDescription
requestUpdateSshPublicKeyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Google.Cloud.OsLogin.Common.SshPublicKey>

A Task containing the RPC response.

Overrides