org.jclouds.vcloud.director.v1_5.features
Interface MediaApi


public interface MediaApi

Provides synchronous access to Media.

Author:
danikov
See Also:
MediaAsyncApi

Method Summary
 Media cloneMedia(URI cloneLink, CloneMediaParams params)
          Clones a media into new one.
 Media createMedia(URI uploadLink, Media media)
          Creates a media (and present upload link for the floppy/iso file).
 Task deleteMedia(URI mediaUri)
          Deletes a media.
 Media getMedia(URI mediaUri)
          Retrieves a media.
 MetadataApi.Writeable getMetadataApi()
           
 Owner getOwner(URI mediaUri)
          Retrieves an owner.
 Task updateMedia(URI mediaUri, Media media)
          Updates the name/description of a media.
 

Method Detail

getMedia

Media getMedia(URI mediaUri)
Retrieves a media.

Returns:
the media or null if not found

createMedia

Media createMedia(URI uploadLink,
                  Media media)
Creates a media (and present upload link for the floppy/iso file).

Returns:
The response will return a link to transfer site to be able to continue with uploading the media.

cloneMedia

Media cloneMedia(URI cloneLink,
                 CloneMediaParams params)
Clones a media into new one. The status of the returned media is UNRESOLVED(0) until the task for cloning finish.

Returns:
a Media resource which will contain a task. The user should monitor the contained task status in order to check when it is completed.

updateMedia

Task updateMedia(URI mediaUri,
                 Media media)
Updates the name/description of a media.

Returns:
a task. This operation is asynchronous and the user should monitor the returned task status in order to check when it is completed.

deleteMedia

Task deleteMedia(URI mediaUri)
Deletes a media.


getOwner

Owner getOwner(URI mediaUri)
Retrieves an owner.

Returns:
the owner or null if not found

getMetadataApi

MetadataApi.Writeable getMetadataApi()
Returns:
synchronous access to Metadata.Writeable features


Copyright © 2009-2012 jclouds. All Rights Reserved.