PHP Класс Scalr\Api\Service\User\V1beta0\Controller\Images

С версии: 5.4.0 (03.03.2015)
Автор: Vitaliy Demidov ([email protected])
Наследование: extends Scalr\Api\Rest\Controller\ApiController
Показать файл Открыть проект

Открытые методы

Метод Описание
copyAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope Copies image to different location
deregisterAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope De-registers an Image from this Environment
describeAction ( ) Retrieves the list of the images
fetchAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about one image
getImage ( string $imageId, boolean $restrictToCurrentScope = false ) : Image Gets specified Image taking into account both scope and authentication token
getImageByCloudId ( string $cloudImageId, string $platform, string $cloudLocation ) : boolean Checks whether Image does exist in the user's scope
modifyAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope Change image attributes. Only the name be can changed!
registerAction ( ) Register an Image in the Environment

Приватные методы

Метод Описание
getDefaultCriteria ( ) : array Gets default search criteria according environment scope

Описание методов

copyAction() публичный Метод

Copies image to different location
public copyAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope
$imageId string Unique identifier of the image (uuid)
Результат Scalr\Api\DataType\ResultEnvelope

deregisterAction() публичный Метод

De-registers an Image from this Environment
public deregisterAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope
$imageId string Unique identifier of the image (uuid)
Результат Scalr\Api\DataType\ResultEnvelope

describeAction() публичный Метод

Retrieves the list of the images
public describeAction ( )

fetchAction() публичный Метод

Fetches detailed info about one image
public fetchAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope
$imageId string Unique identifier of the image (uuid)
Результат Scalr\Api\DataType\ResultEnvelope

getImage() публичный Метод

Gets specified Image taking into account both scope and authentication token
public getImage ( string $imageId, boolean $restrictToCurrentScope = false ) : Image
$imageId string The unique identifier of the Image (UUID)
$restrictToCurrentScope boolean optional Whether it should additionally check the Image corresponds to current scope
Результат Scalr\Model\Entity\Image Returns the Image Entity on success

getImageByCloudId() публичный Метод

Checks whether Image does exist in the user's scope
public getImageByCloudId ( string $cloudImageId, string $platform, string $cloudLocation ) : boolean
$cloudImageId string The identifier of the image on the Cloud
$platform string The cloud platform
$cloudLocation string The cloud location
Результат boolean Returns TRUE if image exists in the user's scope

modifyAction() публичный Метод

Change image attributes. Only the name be can changed!
public modifyAction ( string $imageId ) : Scalr\Api\DataType\ResultEnvelope
$imageId string Unique identifier of the image (uuid)
Результат Scalr\Api\DataType\ResultEnvelope

registerAction() публичный Метод

Register an Image in the Environment
public registerAction ( )