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

Author: N.V.
Inheritance: extends Scalr\Api\Rest\Controller\ApiController
Show file Open project: scalr/scalr

Public Methods

Method Description
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

Method Details

checkPermissions() public method

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() public method

Creates a new Project in this account
public createAction ( )

describeAction() public method

Retrieves the list of the projects
public describeAction ( ) : array
return array Returns describe result

fetchAction() public method

Fetches detailed info about one project
public fetchAction ( string $projectId ) : Scalr\Api\DataType\ResultEnvelope
$projectId string Unique identifier of the project
return Scalr\Api\DataType\ResultEnvelope

getCcController() public method

Gets Cost Centers controller
public getCcController ( ) : CostCenters
return CostCenters

getDefaultCriteria() public method

Gets default search criteria
public getDefaultCriteria ( ) : array
return array Returns array of the search criteria

getProject() public method

Gets specified Script taking into account both scope and authentication token
public getProject ( string $projectId ) : ProjectEntity
$projectId string Unique identifier of the project
return Scalr\Stats\CostAnalytics\Entity\ProjectEntity Returns the Project Entity on success