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

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

공개 메소드들

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

메소드 상세

createAction() 공개 메소드

Create a new Orchestration Rule for this Role
public createAction ( integer $farmRoleId ) : Scalr\Api\DataType\ResultEnvelope
$farmRoleId integer Unique identifier of a Farm Role
리턴 Scalr\Api\DataType\ResultEnvelope

deleteAction() 공개 메소드

Delete rule from specified role
public deleteAction ( integer $farmRoleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope
$farmRoleId integer Unique identifier of a Farm 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 $farmRoleId ) : array
$farmRoleId integer Numeric role id
리턴 array Returns describe result

fetchAction() 공개 메소드

Fetches detailed info about specified rule
public fetchAction ( integer $farmRoleId, integer $ruleId ) : Scalr\Api\DataType\ResultEnvelope
$farmRoleId integer Unique identifier of a Farm Role
$ruleId integer Numeric identifier of the rule
리턴 Scalr\Api\DataType\ResultEnvelope

getFarmRole() 공개 메소드

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

getRule() 공개 메소드

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

modifyAction() 공개 메소드

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