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

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

공개 메소드들

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

메소드 상세

checkPermissions() 공개 메소드

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() 공개 메소드

Creates a new Project in this account
public createAction ( )

describeAction() 공개 메소드

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

fetchAction() 공개 메소드

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

getCcController() 공개 메소드

Gets Cost Centers controller
public getCcController ( ) : CostCenters
리턴 CostCenters

getDefaultCriteria() 공개 메소드

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

getProject() 공개 메소드

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