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

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

공개 메소드들

메소드 설명
createAction ( integer $roleId ) : Scalr\Api\DataType\ResultEnvelope Create a new Orchestration Rule for this Role
deleteAction ( integer $roleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope Delete rule from specified role
describeAction ( integer $roleId ) : array Retrieves the list of orchestration rules of the role
fetchAction ( integer $roleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about specified rule
getRole ( integer $roleId, boolean $modify = false ) : Role | null Gets role from database using User's Environment
getRule ( integer $ruleId, boolean $modify = false ) : Scalr\Model\Entity\RoleScript Gets specified orchestration rule
modifyAction ( integer $roleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope Change rule attributes.

메소드 상세

createAction() 공개 메소드

Create a new Orchestration Rule for this Role
public createAction ( integer $roleId ) : Scalr\Api\DataType\ResultEnvelope
$roleId integer Numeric identifier of the role
리턴 Scalr\Api\DataType\ResultEnvelope

deleteAction() 공개 메소드

Delete rule from specified role
public deleteAction ( integer $roleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope
$roleId integer Numeric identifier of the role
$ruleId integer Numeric identifier of the rule
리턴 Scalr\Api\DataType\ResultEnvelope

describeAction() 공개 메소드

Retrieves the list of orchestration rules of the role
public describeAction ( integer $roleId ) : array
$roleId integer Numeric role id
리턴 array Returns describe result

fetchAction() 공개 메소드

Fetches detailed info about specified rule
public fetchAction ( integer $roleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope
$roleId integer Numeric identifier of the script
$ruleId integer Numeric identifier of the rule
리턴 Scalr\Api\DataType\ResultEnvelope

getRole() 공개 메소드

Gets role from database using User's Environment
public getRole ( integer $roleId, boolean $modify = false ) : Role | null
$roleId integer The identifier of the Role
$modify boolean optional Flag checking write permissions
리턴 Scalr\Model\Entity\Role | null

getRule() 공개 메소드

Gets specified orchestration rule
public getRule ( integer $ruleId, boolean $modify = false ) : Scalr\Model\Entity\RoleScript
$ruleId integer Numeric identifier of the rule
$modify boolean optional Modifying flag
리턴 Scalr\Model\Entity\RoleScript Returns the Script Entity on success

modifyAction() 공개 메소드

Change rule attributes.
public modifyAction ( integer $roleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope
$roleId integer Unique identifier of the role
$ruleId integer Numeric identifier of the rule
리턴 Scalr\Api\DataType\ResultEnvelope