C# Class DigitalOcean.API.Clients.ImagesClient

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

Public Methods

Method Description
Delete ( int imageId ) : System.Threading.Tasks.Task

Delete an existing image

Get ( object imageIdOrSlug ) : Task

Retrieve information about a public or private image on your account.

You can only retrieve information about public images when using a slug.

GetAll ( ImageType type = ImageType.All ) : Task>

Retrieve all images available on your account.

ImagesClient ( IConnection connection ) : System
Update ( int imageId, Models image ) : Task

Update an existing image

Method Details

Delete() public method

Delete an existing image
public Delete ( int imageId ) : System.Threading.Tasks.Task
imageId int
return System.Threading.Tasks.Task

Get() public method

Retrieve information about a public or private image on your account.
You can only retrieve information about public images when using a slug.
public Get ( object imageIdOrSlug ) : Task
imageIdOrSlug object
return Task

GetAll() public method

Retrieve all images available on your account.
public GetAll ( ImageType type = ImageType.All ) : Task>
type ImageType
return Task>

ImagesClient() public method

public ImagesClient ( IConnection connection ) : System
connection IConnection
return System

Update() public method

Update an existing image
public Update ( int imageId, Models image ) : Task
imageId int
image Models
return Task