Show / Hide Table of Contents

Class UsersResource.SshPublicKeysResource

The "sshPublicKeys" collection of methods.

Inheritance
System.Object
UsersResource.SshPublicKeysResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudOSLogin.v1
Assembly: Google.Apis.CloudOSLogin.v1.dll
Syntax
public class SshPublicKeysResource

Constructors

SshPublicKeysResource(IClientService)

Constructs a new resource.

Declaration
public SshPublicKeysResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Create(SshPublicKey, String)

Create an SSH public key

Declaration
public virtual UsersResource.SshPublicKeysResource.CreateRequest Create(SshPublicKey body, string parent)
Parameters
Type Name Description
SshPublicKey body

The body of the request.

System.String parent

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

Returns
Type Description
UsersResource.SshPublicKeysResource.CreateRequest

Delete(String)

Deletes an SSH public key.

Declaration
public virtual UsersResource.SshPublicKeysResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

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}.

Returns
Type Description
UsersResource.SshPublicKeysResource.DeleteRequest

Get(String)

Retrieves an SSH public key.

Declaration
public virtual UsersResource.SshPublicKeysResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

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}.

Returns
Type Description
UsersResource.SshPublicKeysResource.GetRequest

Patch(SshPublicKey, String)

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

Declaration
public virtual UsersResource.SshPublicKeysResource.PatchRequest Patch(SshPublicKey body, string name)
Parameters
Type Name Description
SshPublicKey body

The body of the request.

System.String name

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}.

Returns
Type Description
UsersResource.SshPublicKeysResource.PatchRequest
In This Article
Back to top