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

Автор: N.V.
Наследование: extends Scalr\Api\Rest\Controller\ApiController
Показать файл Открыть проект

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

Метод Описание
checkPermissions ( $args ) Throws an exception if the user does not have sufficient permissions for projects If the argument just one we will checks all the existing variants of access to projects checkPermissions(int $roleId, string $permissionId = null)
createAction ( ) Creates a new Project in this account
describeAction ( ) : array Retrieves the list of the projects
fetchAction ( string $projectId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about one project
getCcController ( ) : CostCenters Gets Cost Centers controller
getDefaultCriteria ( ) : array Gets default search criteria
getProject ( string $projectId ) : ProjectEntity Gets specified Script taking into account both scope and authentication token

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

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

Throws an exception if the user does not have sufficient permissions for projects If the argument just one we will checks all the existing variants of access to projects checkPermissions(int $roleId, string $permissionId = null)
public checkPermissions ( $args )

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

Creates a new Project in this account
public createAction ( )

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

Retrieves the list of the projects
public describeAction ( ) : array
Результат array Returns describe result

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

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

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

Gets Cost Centers controller
public getCcController ( ) : CostCenters
Результат CostCenters

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

Gets default search criteria
public getDefaultCriteria ( ) : array
Результат array Returns array of the search criteria

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

Gets specified Script taking into account both scope and authentication token
public getProject ( string $projectId ) : ProjectEntity
$projectId string Unique identifier of the project
Результат Scalr\Stats\CostAnalytics\Entity\ProjectEntity Returns the Project Entity on success