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.
Namespace
GoogleGoogle.CloudGoogle.Cloud.OsLoginV1Assembly
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 |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |