Property | Type | Description | |
---|---|---|---|
$accountId | integer | The identifier of the client's account | |
$allowScriptParameters | integer | Enable/disable script parameters interpolation | |
$createdByEmail | string | ||
$createdById | integer | ||
$description | string | Description | |
$dtChanged | DateTime | Date when script was modified last time | |
$dtCreated | DateTime | Date when script was created | |
$envId | integer | The identifier of the client's environment | |
$id | integer | ID | |
$isSync | integer | Sync or async script | |
$name | string | Script's name | |
$os | string | OS family of script (linux, windows) | |
$timeout | integer | Timeout |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
checkPermission ( Scalr_Account_User $user, integer $envId ) | ||
delete ( ) | Deletes this script | |
fetchVariables ( $content ) | ||
fetchVersions ( ) : ArrayObject | Fetches list of the versions associated with the script (refreshes) | |
fork ( string $name, Scalr_Account_Use\Scalr_Account_User $user, integer $envId = null ) : |
Forks specified script into new script | |
getLatestVersion ( ) : Scalr\Model\Entity\ScriptVersion | Get latest version of script | |
getList ( $accountId, $envId ) | ||
getScope ( ) | ||
getScriptingData ( $accountId, $envId ) | ||
getVersion ( integer $version ) : Scalr\Model\Entity\ScriptVersion | null | Gets entity of specified version of script | |
getVersions ( boolean $resetCache = false ) : ArrayObject | Gets the list of the revisions associated with the script | |
hasAccessPermissions ( $user, $environment = null, $modify = null ) | ||
hasVariables ( $content ) | ||
save ( ) | Saves changes, if script already exists, or saves new script |
public checkPermission ( Scalr_Account_User $user, integer $envId ) | ||
$user | Scalr_Account_User | |
$envId | integer |
public fetchVersions ( ) : ArrayObject | ||
return | ArrayObject | Returns the list of ScriptVersion objects |
public getLatestVersion ( ) : Scalr\Model\Entity\ScriptVersion | ||
return | Scalr\Model\Entity\ScriptVersion |
public getVersion ( integer $version ) : Scalr\Model\Entity\ScriptVersion | null | ||
$version | integer | |
return | Scalr\Model\Entity\ScriptVersion | null |
public getVersions ( boolean $resetCache = false ) : ArrayObject | ||
$resetCache | boolean | |
return | ArrayObject | Returns the list of ScriptVersion objects |
public hasAccessPermissions ( $user, $environment = null, $modify = null ) |
public int $accountId | ||
return | integer |
public int $allowScriptParameters | ||
return | integer |
public DateTime $dtChanged | ||
return | DateTime |
public DateTime $dtCreated | ||
return | DateTime |
public int $envId | ||
return | integer |