C# Class DigitalOcean.API.Clients.DropletsClient

Inheritance: IDropletsClient
Mostrar archivo Open project: vevix/DigitalOcean.API Class Usage Examples

Public Methods

Method Description
Create ( Models droplet ) : Task

Create a new Droplet

Delete ( int dropletId ) : System.Threading.Tasks.Task

Delete an existing Droplet

DeleteByTag ( string tagName ) : System.Threading.Tasks.Task

Delete existing droplets by tag

DropletsClient ( IConnection connection ) : System.Collections.Generic
Get ( int dropletId ) : Task

Retrieve an existing Droplet

GetActions ( int dropletId ) : Task>

Retrieve all actions that have been executed on a Droplet.

GetAll ( ) : Task>

Retrieve all Droplets in your account.

GetAllByTag ( string tagName ) : Task>

Retrieve all Droplets in your account.

GetBackups ( int dropletId ) : Task>

Retrieve all backups that have been created for a Droplet.

GetKernels ( int dropletId ) : Task>

Retrieve all kernels available to a Droplet.

GetSnapshots ( int dropletId ) : Task>

Retrieve all snapshots that have been created for a Droplet.

GetUpgrades ( ) : Task>

Retrieve a list of droplets that are scheduled to be upgraded

Method Details

Create() public method

Create a new Droplet
public Create ( Models droplet ) : Task
droplet Models
return Task

Delete() public method

Delete an existing Droplet
public Delete ( int dropletId ) : System.Threading.Tasks.Task
dropletId int
return System.Threading.Tasks.Task

DeleteByTag() public method

Delete existing droplets by tag
public DeleteByTag ( string tagName ) : System.Threading.Tasks.Task
tagName string
return System.Threading.Tasks.Task

DropletsClient() public method

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

Get() public method

Retrieve an existing Droplet
public Get ( int dropletId ) : Task
dropletId int
return Task

GetActions() public method

Retrieve all actions that have been executed on a Droplet.
public GetActions ( int dropletId ) : Task>
dropletId int
return Task>

GetAll() public method

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

GetAllByTag() public method

Retrieve all Droplets in your account.
public GetAllByTag ( string tagName ) : Task>
tagName string
return Task>

GetBackups() public method

Retrieve all backups that have been created for a Droplet.
public GetBackups ( int dropletId ) : Task>
dropletId int
return Task>

GetKernels() public method

Retrieve all kernels available to a Droplet.
public GetKernels ( int dropletId ) : Task>
dropletId int
return Task>

GetSnapshots() public method

Retrieve all snapshots that have been created for a Droplet.
public GetSnapshots ( int dropletId ) : Task>
dropletId int
return Task>

GetUpgrades() public method

Retrieve a list of droplets that are scheduled to be upgraded
public GetUpgrades ( ) : Task>
return Task>