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

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

공개 메소드들

메소드 설명
createAction ( integer $scriptId ) : Scalr\Api\DataType\ResultEnvelope Create a new version of script
deleteAction ( integer $scriptId, integer $versionNumber ) : Scalr\Api\DataType\ResultEnvelope Remove script version
describeAction ( $scriptId ) : array Retrieves the list of the script versions
fetchAction ( string $scriptId, integer $versionNumber ) : Scalr\Api\DataType\ResultEnvelope Fetches detailed info about one script
getVersion ( string $scriptId, integer $versionNumber, boolean $modify = false ) : Scalr\Model\Entity\ScriptVersion Gets specified Version for the Script taking into account both scope and authentication token
modifyAction ( integer $scriptId, integer $versionNumber ) : Scalr\Api\DataType\ResultEnvelope Change version attributes.

메소드 상세

createAction() 공개 메소드

Create a new version of script
public createAction ( integer $scriptId ) : Scalr\Api\DataType\ResultEnvelope
$scriptId integer Unique identifier of the script
리턴 Scalr\Api\DataType\ResultEnvelope

deleteAction() 공개 메소드

Remove script version
public deleteAction ( integer $scriptId, integer $versionNumber ) : Scalr\Api\DataType\ResultEnvelope
$scriptId integer Script ID
$versionNumber integer Version number
리턴 Scalr\Api\DataType\ResultEnvelope

describeAction() 공개 메소드

Retrieves the list of the script versions
public describeAction ( $scriptId ) : array
$scriptId
리턴 array Returns describe result

fetchAction() 공개 메소드

Fetches detailed info about one script
public fetchAction ( string $scriptId, integer $versionNumber ) : Scalr\Api\DataType\ResultEnvelope
$scriptId string Numeric identifier of the script
$versionNumber integer Script version Number
리턴 Scalr\Api\DataType\ResultEnvelope

getVersion() 공개 메소드

Gets specified Version for the Script taking into account both scope and authentication token
public getVersion ( string $scriptId, integer $versionNumber, boolean $modify = false ) : Scalr\Model\Entity\ScriptVersion
$scriptId string Numeric identifier of the Script
$versionNumber integer Script version number
$modify boolean optional Flag checking write permissions
리턴 Scalr\Model\Entity\ScriptVersion Returns the Script Entity on success

modifyAction() 공개 메소드

Change version attributes.
public modifyAction ( integer $scriptId, integer $versionNumber ) : Scalr\Api\DataType\ResultEnvelope
$scriptId integer Unique identifier of the script
$versionNumber integer Script version number
리턴 Scalr\Api\DataType\ResultEnvelope