PHP Class Scalr\Api\Service\User\V1beta0\Controller\CostCenters

Author: N.V.
Inheritance: extends Scalr\Api\Rest\Controller\ApiController
Afficher le fichier Open project: scalr/scalr

Méthodes publiques

Méthode Description
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

Method Details

checkPermissions() public méthode

Permissions won't check if object has environment scope and role Acl::RESOURCE_ANALYTICS_ACCOUNT {@inheritdoc}
See also: ApiController::checkPermissions()
public checkPermissions ( $args )

describeAction() public méthode

Retrieves the list of the cost centers
public describeAction ( ) : array
Résultat array Returns describe result

fetchAction() public méthode

Fetches detailed info about one project
public fetchAction ( string $ccId ) : Scalr\Api\DataType\ResultEnvelope
$ccId string Unique identifier of the Cost-Center
Résultat Scalr\Api\DataType\ResultEnvelope

getCostCenter() public méthode

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
Résultat Scalr\Stats\CostAnalytics\Entity\CostCentreEntity Returns the Project Entity on success

getDefaultCriteria() public méthode

Gets default search criteria
public getDefaultCriteria ( ) : array
Résultat array Returns array of the search criteria

getEnvironmentCostCenterId() public méthode

Gets cost center Id from environment platform config
public getEnvironmentCostCenterId ( ) : mixed
Résultat mixed