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

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

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

Метод Описание
createAction ( ) : Scalr\Api\DataType\ResultEnvelope Creates new event in current scope
deleteAction ( string $eventId ) : Scalr\Api\DataType\ResultEnvelope Deletes the event from the curent scope
describeAction ( ) Gets Events list
fetchAction ( string $eventId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about the Event
getEvent ( string $eventId, boolean $restrictToCurrentScope = false ) : EventDefinition | null Gets event from database using User's Account
getScope ( ) : string Gets current scope
modifyAction ( string $eventId ) : Scalr\Api\DataType\ResultEnvelope Modifies event from current scope

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

Метод Описание
getDefaultCriteria ( ) : array Gets Default search criteria for the Account scope

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

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

Creates new event in current scope
public createAction ( ) : Scalr\Api\DataType\ResultEnvelope
Результат Scalr\Api\DataType\ResultEnvelope

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

Deletes the event from the curent scope
public deleteAction ( string $eventId ) : Scalr\Api\DataType\ResultEnvelope
$eventId string Unique identifier of the Event
Результат Scalr\Api\DataType\ResultEnvelope

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

Gets Events list
public describeAction ( )

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

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

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

Gets event from database using User's Account
public getEvent ( string $eventId, boolean $restrictToCurrentScope = false ) : EventDefinition | null
$eventId string The identifier of the Event
$restrictToCurrentScope boolean optional Whether it should additionally check that event corresponds to current scope
Результат Scalr\Model\Entity\EventDefinition | null Returns Event Definition entity on success or NULL otherwise

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

Gets current scope
public getScope ( ) : string
Результат string

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

Modifies event from current scope
public modifyAction ( string $eventId ) : Scalr\Api\DataType\ResultEnvelope
$eventId string Unique identifier of the Event
Результат Scalr\Api\DataType\ResultEnvelope