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

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

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

Метод Описание
checkPermissions ( $args ) Permissions won't check if object has environment scope and role Acl::RESOURCE_ANALYTICS_ACCOUNT {@inheritdoc}
describeAction ( ) : array Retrieves the list of the cost centers
fetchAction ( string $ccId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about one project
getCostCenter ( string $ccId ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity Gets specified Script taking into account both scope and authentication token
getDefaultCriteria ( ) : array Gets default search criteria
getEnvironmentCostCenterId ( ) : mixed Gets cost center Id from environment platform config

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

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

Permissions won't check if object has environment scope and role Acl::RESOURCE_ANALYTICS_ACCOUNT {@inheritdoc}
См. также: ApiController::checkPermissions()
public checkPermissions ( $args )

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

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

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

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

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

Gets specified Script taking into account both scope and authentication token
public getCostCenter ( string $ccId ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity
$ccId string Unique identifier of the Cost-Center
Результат Scalr\Stats\CostAnalytics\Entity\CostCentreEntity Returns the Project Entity on success

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

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

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

Gets cost center Id from environment platform config
public getEnvironmentCostCenterId ( ) : mixed
Результат mixed