Class UsersResource.SshPublicKeysResource
The "sshPublicKeys" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudOSLogin.v1
Assembly: Google.Apis.CloudOSLogin.v1.dll
Syntax
public class UsersResource.SshPublicKeysResource
Constructors
SshPublicKeysResource(IClientService)
Constructs a new resource.
Declaration
public SshPublicKeysResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
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. |
string | parent | Required. The unique ID for the user in format |
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 |
---|---|---|
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 |
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 |
---|---|---|
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 |
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. |
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 |
Returns
Type | Description |
---|---|
UsersResource.SshPublicKeysResource.PatchRequest |