C# Class DigitalOcean.API.Clients.KeysClient

Inheritance: IKeysClient
Mostra file Open project: vevix/DigitalOcean.API Class Usage Examples

Public Methods

Method Description
Create ( Models key ) : Task

Create a new key entry

Delete ( object keyIdOrFingerprint ) : System.Threading.Tasks.Task

Delete an existing key in your account

Get ( object keyIdOrFingerprint ) : Task

Retrieve an existing key in your account

GetAll ( ) : Task>

Retrieve all keys in your account

KeysClient ( IConnection connection ) : System.Collections.Generic
Update ( object keyIdOrFingerprint, Models key ) : Task

Update an existing key in your account

Method Details

Create() public method

Create a new key entry
public Create ( Models key ) : Task
key Models
return Task

Delete() public method

Delete an existing key in your account
public Delete ( object keyIdOrFingerprint ) : System.Threading.Tasks.Task
keyIdOrFingerprint object
return System.Threading.Tasks.Task

Get() public method

Retrieve an existing key in your account
public Get ( object keyIdOrFingerprint ) : Task
keyIdOrFingerprint object
return Task

GetAll() public method

Retrieve all keys in your account
public GetAll ( ) : Task>
return Task>

KeysClient() public method

public KeysClient ( IConnection connection ) : System.Collections.Generic
connection IConnection
return System.Collections.Generic

Update() public method

Update an existing key in your account
public Update ( object keyIdOrFingerprint, Models key ) : Task
keyIdOrFingerprint object
key Models
return Task