PHP 클래스 Scalr\Api\Service\User\V1beta0\Controller\CostCenters

저자: N.V.
상속: extends Scalr\Api\Rest\Controller\ApiController
파일 보기 프로젝트 열기: scalr/scalr

공개 메소드들

메소드 설명
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