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

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 ) 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 méthode

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 méthode

Creates a new Project in this account
public createAction ( )

describeAction() public méthode

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

fetchAction() public méthode

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

getCcController() public méthode

Gets Cost Centers controller
public getCcController ( ) : CostCenters
Résultat CostCenters

getDefaultCriteria() public méthode

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

getProject() public méthode

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