Class OsLoginServiceClient (2.0.0-beta05)

public abstract class OsLoginServiceClient

OsLoginService client wrapper, for convenient use.

Inheritance

Object > OsLoginServiceClient

Derived Types

Namespace

Google.Cloud.OsLogin.V1Beta

Assembly

Google.Cloud.OsLogin.V1Beta.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.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the OsLoginService service, which is a host of "oslogin.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default OsLoginService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual OsLoginService.OsLoginServiceClient GrpcClient { get; }

The underlying gRPC OsLoginService client

Property Value
TypeDescription
OsLoginService.OsLoginServiceClient

Methods

Create()

public static OsLoginServiceClient Create()

Synchronously creates a OsLoginServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OsLoginServiceClientBuilder.

Returns
TypeDescription
OsLoginServiceClient

The created OsLoginServiceClient.

CreateAsync(CancellationToken)

public static Task<OsLoginServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a OsLoginServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use OsLoginServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<OsLoginServiceClient>

The task representing the created OsLoginServiceClient.

DeletePosixAccount(PosixAccountName, CallSettings)

public virtual void DeletePosixAccount(PosixAccountName name, CallSettings callSettings = null)

Deletes a POSIX account.

Parameters
NameDescription
namePosixAccountName

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
PosixAccountName name = PosixAccountName.FromUserProject("[USER]", "[PROJECT]");
// Make the request
osLoginServiceClient.DeletePosixAccount(name);

DeletePosixAccount(DeletePosixAccountRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
DeletePosixAccountRequest request = new DeletePosixAccountRequest
{
    PosixAccountName = PosixAccountName.FromUserProject("[USER]", "[PROJECT]"),
};
// Make the request
osLoginServiceClient.DeletePosixAccount(request);

DeletePosixAccount(String, CallSettings)

public virtual void DeletePosixAccount(string name, CallSettings callSettings = null)

Deletes a POSIX account.

Parameters
NameDescription
nameString

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/projects/[PROJECT]";
// Make the request
osLoginServiceClient.DeletePosixAccount(name);

DeletePosixAccountAsync(PosixAccountName, CallSettings)

public virtual Task DeletePosixAccountAsync(PosixAccountName name, CallSettings callSettings = null)

Deletes a POSIX account.

Parameters
NameDescription
namePosixAccountName

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
PosixAccountName name = PosixAccountName.FromUserProject("[USER]", "[PROJECT]");
// Make the request
await osLoginServiceClient.DeletePosixAccountAsync(name);

DeletePosixAccountAsync(PosixAccountName, CancellationToken)

public virtual Task DeletePosixAccountAsync(PosixAccountName name, CancellationToken cancellationToken)

Deletes a POSIX account.

Parameters
NameDescription
namePosixAccountName

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
PosixAccountName name = PosixAccountName.FromUserProject("[USER]", "[PROJECT]");
// Make the request
await osLoginServiceClient.DeletePosixAccountAsync(name);

DeletePosixAccountAsync(DeletePosixAccountRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePosixAccountRequest request = new DeletePosixAccountRequest
{
    PosixAccountName = PosixAccountName.FromUserProject("[USER]", "[PROJECT]"),
};
// Make the request
await osLoginServiceClient.DeletePosixAccountAsync(request);

DeletePosixAccountAsync(DeletePosixAccountRequest, CancellationToken)

public virtual Task DeletePosixAccountAsync(DeletePosixAccountRequest request, CancellationToken cancellationToken)

Deletes a POSIX account.

Parameters
NameDescription
requestDeletePosixAccountRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
DeletePosixAccountRequest request = new DeletePosixAccountRequest
{
    PosixAccountName = PosixAccountName.FromUserProject("[USER]", "[PROJECT]"),
};
// Make the request
await osLoginServiceClient.DeletePosixAccountAsync(request);

DeletePosixAccountAsync(String, CallSettings)

public virtual Task DeletePosixAccountAsync(string name, CallSettings callSettings = null)

Deletes a POSIX account.

Parameters
NameDescription
nameString

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/projects/[PROJECT]";
// Make the request
await osLoginServiceClient.DeletePosixAccountAsync(name);

DeletePosixAccountAsync(String, CancellationToken)

public virtual Task DeletePosixAccountAsync(string name, CancellationToken cancellationToken)

Deletes a POSIX account.

Parameters
NameDescription
nameString

Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format users/{user}/projects/{project}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/projects/[PROJECT]";
// Make the request
await osLoginServiceClient.DeletePosixAccountAsync(name);

DeleteSshPublicKey(SshPublicKeyName, CallSettings)

public virtual void DeleteSshPublicKey(SshPublicKeyName name, CallSettings callSettings = null)

Deletes an SSH public key.

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
// Make the request
osLoginServiceClient.DeleteSshPublicKey(name);

DeleteSshPublicKey(DeleteSshPublicKeyRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
DeleteSshPublicKeyRequest request = new DeleteSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
};
// Make the request
osLoginServiceClient.DeleteSshPublicKey(request);

DeleteSshPublicKey(String, CallSettings)

public virtual void DeleteSshPublicKey(string name, CallSettings callSettings = null)

Deletes an SSH public key.

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
// Make the request
osLoginServiceClient.DeleteSshPublicKey(name);

DeleteSshPublicKeyAsync(SshPublicKeyName, CallSettings)

public virtual Task DeleteSshPublicKeyAsync(SshPublicKeyName name, CallSettings callSettings = null)

Deletes an SSH public key.

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
// Make the request
await osLoginServiceClient.DeleteSshPublicKeyAsync(name);

DeleteSshPublicKeyAsync(SshPublicKeyName, CancellationToken)

public virtual Task DeleteSshPublicKeyAsync(SshPublicKeyName name, CancellationToken cancellationToken)

Deletes an SSH public key.

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
// Make the request
await osLoginServiceClient.DeleteSshPublicKeyAsync(name);

DeleteSshPublicKeyAsync(DeleteSshPublicKeyRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSshPublicKeyRequest request = new DeleteSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
};
// Make the request
await osLoginServiceClient.DeleteSshPublicKeyAsync(request);

DeleteSshPublicKeyAsync(DeleteSshPublicKeyRequest, CancellationToken)

public virtual Task DeleteSshPublicKeyAsync(DeleteSshPublicKeyRequest request, CancellationToken cancellationToken)

Deletes an SSH public key.

Parameters
NameDescription
requestDeleteSshPublicKeyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteSshPublicKeyRequest request = new DeleteSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
};
// Make the request
await osLoginServiceClient.DeleteSshPublicKeyAsync(request);

DeleteSshPublicKeyAsync(String, CallSettings)

public virtual Task DeleteSshPublicKeyAsync(string name, CallSettings callSettings = null)

Deletes an SSH public key.

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
// Make the request
await osLoginServiceClient.DeleteSshPublicKeyAsync(name);

DeleteSshPublicKeyAsync(String, CancellationToken)

public virtual Task DeleteSshPublicKeyAsync(string name, CancellationToken cancellationToken)

Deletes an SSH public key.

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
// Make the request
await osLoginServiceClient.DeleteSshPublicKeyAsync(name);

GetLoginProfile(UserName, CallSettings)

public virtual LoginProfile GetLoginProfile(UserName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameUserName

Required. The unique ID for the user in format users/{user}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LoginProfile

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
UserName name = UserName.FromUser("[USER]");
// Make the request
LoginProfile response = osLoginServiceClient.GetLoginProfile(name);

GetLoginProfile(GetLoginProfileRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
GetLoginProfileRequest request = new GetLoginProfileRequest
{
    UserName = UserName.FromUser("[USER]"),
    ProjectId = "",
    SystemId = "",
};
// Make the request
LoginProfile response = osLoginServiceClient.GetLoginProfile(request);

GetLoginProfile(String, CallSettings)

public virtual LoginProfile GetLoginProfile(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. The unique ID for the user in format users/{user}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
LoginProfile

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]";
// Make the request
LoginProfile response = osLoginServiceClient.GetLoginProfile(name);

GetLoginProfileAsync(UserName, CallSettings)

public virtual Task<LoginProfile> GetLoginProfileAsync(UserName name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameUserName

Required. The unique ID for the user in format users/{user}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LoginProfile>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UserName name = UserName.FromUser("[USER]");
// Make the request
LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(name);

GetLoginProfileAsync(UserName, CancellationToken)

public virtual Task<LoginProfile> GetLoginProfileAsync(UserName name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameUserName

Required. The unique ID for the user in format users/{user}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LoginProfile>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UserName name = UserName.FromUser("[USER]");
// Make the request
LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(name);

GetLoginProfileAsync(GetLoginProfileRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
GetLoginProfileRequest request = new GetLoginProfileRequest
{
    UserName = UserName.FromUser("[USER]"),
    ProjectId = "",
    SystemId = "",
};
// Make the request
LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(request);

GetLoginProfileAsync(GetLoginProfileRequest, CancellationToken)

public virtual Task<LoginProfile> GetLoginProfileAsync(GetLoginProfileRequest request, CancellationToken cancellationToken)

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LoginProfile>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
GetLoginProfileRequest request = new GetLoginProfileRequest
{
    UserName = UserName.FromUser("[USER]"),
    ProjectId = "",
    SystemId = "",
};
// Make the request
LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(request);

GetLoginProfileAsync(String, CallSettings)

public virtual Task<LoginProfile> GetLoginProfileAsync(string name, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. The unique ID for the user in format users/{user}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<LoginProfile>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]";
// Make the request
LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(name);

GetLoginProfileAsync(String, CancellationToken)

public virtual Task<LoginProfile> GetLoginProfileAsync(string name, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. The unique ID for the user in format users/{user}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<LoginProfile>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]";
// Make the request
LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(name);

GetSshPublicKey(SshPublicKeyName, CallSettings)

public virtual SshPublicKey GetSshPublicKey(SshPublicKeyName name, CallSettings callSettings = null)

Retrieves an SSH public key.

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
// Make the request
SshPublicKey response = osLoginServiceClient.GetSshPublicKey(name);

GetSshPublicKey(GetSshPublicKeyRequest, CallSettings)

public virtual 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
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
GetSshPublicKeyRequest request = new GetSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
};
// Make the request
SshPublicKey response = osLoginServiceClient.GetSshPublicKey(request);

GetSshPublicKey(String, CallSettings)

public virtual SshPublicKey GetSshPublicKey(string name, CallSettings callSettings = null)

Retrieves an SSH public key.

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
// Make the request
SshPublicKey response = osLoginServiceClient.GetSshPublicKey(name);

GetSshPublicKeyAsync(SshPublicKeyName, CallSettings)

public virtual Task<SshPublicKey> GetSshPublicKeyAsync(SshPublicKeyName name, CallSettings callSettings = null)

Retrieves an SSH public key.

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
// Make the request
SshPublicKey response = await osLoginServiceClient.GetSshPublicKeyAsync(name);

GetSshPublicKeyAsync(SshPublicKeyName, CancellationToken)

public virtual Task<SshPublicKey> GetSshPublicKeyAsync(SshPublicKeyName name, CancellationToken cancellationToken)

Retrieves an SSH public key.

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
// Make the request
SshPublicKey response = await osLoginServiceClient.GetSshPublicKeyAsync(name);

GetSshPublicKeyAsync(GetSshPublicKeyRequest, CallSettings)

public virtual 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<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
GetSshPublicKeyRequest request = new GetSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
};
// Make the request
SshPublicKey response = await osLoginServiceClient.GetSshPublicKeyAsync(request);

GetSshPublicKeyAsync(GetSshPublicKeyRequest, CancellationToken)

public virtual Task<SshPublicKey> GetSshPublicKeyAsync(GetSshPublicKeyRequest request, CancellationToken cancellationToken)

Retrieves an SSH public key.

Parameters
NameDescription
requestGetSshPublicKeyRequest

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

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
GetSshPublicKeyRequest request = new GetSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
};
// Make the request
SshPublicKey response = await osLoginServiceClient.GetSshPublicKeyAsync(request);

GetSshPublicKeyAsync(String, CallSettings)

public virtual Task<SshPublicKey> GetSshPublicKeyAsync(string name, CallSettings callSettings = null)

Retrieves an SSH public key.

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
// Make the request
SshPublicKey response = await osLoginServiceClient.GetSshPublicKeyAsync(name);

GetSshPublicKeyAsync(String, CancellationToken)

public virtual Task<SshPublicKey> GetSshPublicKeyAsync(string name, CancellationToken cancellationToken)

Retrieves an SSH public key.

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
// Make the request
SshPublicKey response = await osLoginServiceClient.GetSshPublicKeyAsync(name);

ImportSshPublicKey(UserName, SshPublicKey, CallSettings)

public virtual ImportSshPublicKeyResponse ImportSshPublicKey(UserName parent, SshPublicKey sshPublicKey, 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
parentUserName

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportSshPublicKeyResponse

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
UserName parent = UserName.FromUser("[USER]");
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
ImportSshPublicKeyResponse response = osLoginServiceClient.ImportSshPublicKey(parent, sshPublicKey);

ImportSshPublicKey(UserName, SshPublicKey, String, CallSettings)

public virtual ImportSshPublicKeyResponse ImportSshPublicKey(UserName parent, SshPublicKey sshPublicKey, string projectId, 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
parentUserName

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

projectIdString

The project ID of the Google Cloud Platform project.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportSshPublicKeyResponse

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
UserName parent = UserName.FromUser("[USER]");
SshPublicKey sshPublicKey = new SshPublicKey();
string projectId = "";
// Make the request
ImportSshPublicKeyResponse response = osLoginServiceClient.ImportSshPublicKey(parent, sshPublicKey, projectId);

ImportSshPublicKey(ImportSshPublicKeyRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
ImportSshPublicKeyRequest request = new ImportSshPublicKeyRequest
{
    ParentAsUserName = UserName.FromUser("[USER]"),
    SshPublicKey = new SshPublicKey(),
    ProjectId = "",
};
// Make the request
ImportSshPublicKeyResponse response = osLoginServiceClient.ImportSshPublicKey(request);

ImportSshPublicKey(String, SshPublicKey, CallSettings)

public virtual ImportSshPublicKeyResponse ImportSshPublicKey(string parent, SshPublicKey sshPublicKey, 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
parentString

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportSshPublicKeyResponse

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string parent = "users/[USER]";
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
ImportSshPublicKeyResponse response = osLoginServiceClient.ImportSshPublicKey(parent, sshPublicKey);

ImportSshPublicKey(String, SshPublicKey, String, CallSettings)

public virtual ImportSshPublicKeyResponse ImportSshPublicKey(string parent, SshPublicKey sshPublicKey, string projectId, 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
parentString

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

projectIdString

The project ID of the Google Cloud Platform project.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ImportSshPublicKeyResponse

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string parent = "users/[USER]";
SshPublicKey sshPublicKey = new SshPublicKey();
string projectId = "";
// Make the request
ImportSshPublicKeyResponse response = osLoginServiceClient.ImportSshPublicKey(parent, sshPublicKey, projectId);

ImportSshPublicKeyAsync(UserName, SshPublicKey, CallSettings)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(UserName parent, SshPublicKey sshPublicKey, 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
parentUserName

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UserName parent = UserName.FromUser("[USER]");
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey);

ImportSshPublicKeyAsync(UserName, SshPublicKey, String, CallSettings)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(UserName parent, SshPublicKey sshPublicKey, string projectId, 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
parentUserName

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

projectIdString

The project ID of the Google Cloud Platform project.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UserName parent = UserName.FromUser("[USER]");
SshPublicKey sshPublicKey = new SshPublicKey();
string projectId = "";
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey, projectId);

ImportSshPublicKeyAsync(UserName, SshPublicKey, String, CancellationToken)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(UserName parent, SshPublicKey sshPublicKey, string projectId, CancellationToken cancellationToken)

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
parentUserName

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

projectIdString

The project ID of the Google Cloud Platform project.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UserName parent = UserName.FromUser("[USER]");
SshPublicKey sshPublicKey = new SshPublicKey();
string projectId = "";
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey, projectId);

ImportSshPublicKeyAsync(UserName, SshPublicKey, CancellationToken)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(UserName parent, SshPublicKey sshPublicKey, CancellationToken cancellationToken)

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
parentUserName

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UserName parent = UserName.FromUser("[USER]");
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey);

ImportSshPublicKeyAsync(ImportSshPublicKeyRequest, CallSettings)

public virtual 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.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
ImportSshPublicKeyRequest request = new ImportSshPublicKeyRequest
{
    ParentAsUserName = UserName.FromUser("[USER]"),
    SshPublicKey = new SshPublicKey(),
    ProjectId = "",
};
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(request);

ImportSshPublicKeyAsync(ImportSshPublicKeyRequest, CancellationToken)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(ImportSshPublicKeyRequest request, CancellationToken cancellationToken)

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
ImportSshPublicKeyRequest request = new ImportSshPublicKeyRequest
{
    ParentAsUserName = UserName.FromUser("[USER]"),
    SshPublicKey = new SshPublicKey(),
    ProjectId = "",
};
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(request);

ImportSshPublicKeyAsync(String, SshPublicKey, CallSettings)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(string parent, SshPublicKey sshPublicKey, 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
parentString

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "users/[USER]";
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey);

ImportSshPublicKeyAsync(String, SshPublicKey, String, CallSettings)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(string parent, SshPublicKey sshPublicKey, string projectId, 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
parentString

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

projectIdString

The project ID of the Google Cloud Platform project.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "users/[USER]";
SshPublicKey sshPublicKey = new SshPublicKey();
string projectId = "";
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey, projectId);

ImportSshPublicKeyAsync(String, SshPublicKey, String, CancellationToken)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(string parent, SshPublicKey sshPublicKey, string projectId, CancellationToken cancellationToken)

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
parentString

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

projectIdString

The project ID of the Google Cloud Platform project.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "users/[USER]";
SshPublicKey sshPublicKey = new SshPublicKey();
string projectId = "";
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey, projectId);

ImportSshPublicKeyAsync(String, SshPublicKey, CancellationToken)

public virtual Task<ImportSshPublicKeyResponse> ImportSshPublicKeyAsync(string parent, SshPublicKey sshPublicKey, CancellationToken cancellationToken)

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
parentString

The unique ID for the user in format users/{user}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<ImportSshPublicKeyResponse>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "users/[USER]";
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateSshPublicKey(SshPublicKeyName, SshPublicKey, CallSettings)

public virtual SshPublicKey UpdateSshPublicKey(SshPublicKeyName name, SshPublicKey sshPublicKey, CallSettings callSettings = null)

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

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
SshPublicKey response = osLoginServiceClient.UpdateSshPublicKey(name, sshPublicKey);

UpdateSshPublicKey(SshPublicKeyName, SshPublicKey, FieldMask, CallSettings)

public virtual SshPublicKey UpdateSshPublicKey(SshPublicKeyName name, SshPublicKey sshPublicKey, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

updateMaskFieldMask

Mask to control which fields get updated. Updates all if not present.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = new SshPublicKey();
FieldMask updateMask = new FieldMask();
// Make the request
SshPublicKey response = osLoginServiceClient.UpdateSshPublicKey(name, sshPublicKey, updateMask);

UpdateSshPublicKey(UpdateSshPublicKeyRequest, CallSettings)

public virtual 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
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
UpdateSshPublicKeyRequest request = new UpdateSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
    SshPublicKey = new SshPublicKey(),
    UpdateMask = new FieldMask(),
};
// Make the request
SshPublicKey response = osLoginServiceClient.UpdateSshPublicKey(request);

UpdateSshPublicKey(String, SshPublicKey, CallSettings)

public virtual SshPublicKey UpdateSshPublicKey(string name, SshPublicKey sshPublicKey, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
SshPublicKey response = osLoginServiceClient.UpdateSshPublicKey(name, sshPublicKey);

UpdateSshPublicKey(String, SshPublicKey, FieldMask, CallSettings)

public virtual SshPublicKey UpdateSshPublicKey(string name, SshPublicKey sshPublicKey, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

updateMaskFieldMask

Mask to control which fields get updated. Updates all if not present.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SshPublicKey

The RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
SshPublicKey sshPublicKey = new SshPublicKey();
FieldMask updateMask = new FieldMask();
// Make the request
SshPublicKey response = osLoginServiceClient.UpdateSshPublicKey(name, sshPublicKey, updateMask);

UpdateSshPublicKeyAsync(SshPublicKeyName, SshPublicKey, CallSettings)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(SshPublicKeyName name, SshPublicKey sshPublicKey, CallSettings callSettings = null)

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

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey);

UpdateSshPublicKeyAsync(SshPublicKeyName, SshPublicKey, FieldMask, CallSettings)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(SshPublicKeyName name, SshPublicKey sshPublicKey, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

updateMaskFieldMask

Mask to control which fields get updated. Updates all if not present.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = new SshPublicKey();
FieldMask updateMask = new FieldMask();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey, updateMask);

UpdateSshPublicKeyAsync(SshPublicKeyName, SshPublicKey, FieldMask, CancellationToken)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(SshPublicKeyName name, SshPublicKey sshPublicKey, FieldMask updateMask, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

updateMaskFieldMask

Mask to control which fields get updated. Updates all if not present.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = new SshPublicKey();
FieldMask updateMask = new FieldMask();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey, updateMask);

UpdateSshPublicKeyAsync(SshPublicKeyName, SshPublicKey, CancellationToken)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(SshPublicKeyName name, SshPublicKey sshPublicKey, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameSshPublicKeyName

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
SshPublicKeyName name = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]");
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey);

UpdateSshPublicKeyAsync(UpdateSshPublicKeyRequest, CallSettings)

public virtual 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<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSshPublicKeyRequest request = new UpdateSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
    SshPublicKey = new SshPublicKey(),
    UpdateMask = new FieldMask(),
};
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(request);

UpdateSshPublicKeyAsync(UpdateSshPublicKeyRequest, CancellationToken)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(UpdateSshPublicKeyRequest request, CancellationToken cancellationToken)

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSshPublicKeyRequest request = new UpdateSshPublicKeyRequest
{
    SshPublicKeyName = SshPublicKeyName.FromUserFingerprint("[USER]", "[FINGERPRINT]"),
    SshPublicKey = new SshPublicKey(),
    UpdateMask = new FieldMask(),
};
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(request);

UpdateSshPublicKeyAsync(String, SshPublicKey, CallSettings)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(string name, SshPublicKey sshPublicKey, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey);

UpdateSshPublicKeyAsync(String, SshPublicKey, FieldMask, CallSettings)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(string name, SshPublicKey sshPublicKey, FieldMask updateMask, CallSettings callSettings = null)

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

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

updateMaskFieldMask

Mask to control which fields get updated. Updates all if not present.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
SshPublicKey sshPublicKey = new SshPublicKey();
FieldMask updateMask = new FieldMask();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey, updateMask);

UpdateSshPublicKeyAsync(String, SshPublicKey, FieldMask, CancellationToken)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(string name, SshPublicKey sshPublicKey, FieldMask updateMask, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

updateMaskFieldMask

Mask to control which fields get updated. Updates all if not present.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
SshPublicKey sshPublicKey = new SshPublicKey();
FieldMask updateMask = new FieldMask();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey, updateMask);

UpdateSshPublicKeyAsync(String, SshPublicKey, CancellationToken)

public virtual Task<SshPublicKey> UpdateSshPublicKeyAsync(string name, SshPublicKey sshPublicKey, CancellationToken cancellationToken)

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

Parameters
NameDescription
nameString

Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}.

sshPublicKeySshPublicKey

Required. The SSH public key and expiration time.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SshPublicKey>

A Task containing the RPC response.

Example
// Create client
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "users/[USER]/sshPublicKeys/[FINGERPRINT]";
SshPublicKey sshPublicKey = new SshPublicKey();
// Make the request
SshPublicKey response = await osLoginServiceClient.UpdateSshPublicKeyAsync(name, sshPublicKey);