Property | Type | Description | |
---|---|---|---|
$accountId | integer | ||
$agentVersion | string | ||
$architecture | string | ||
$bundleTaskId | integer | ||
$cloudLocation | string | ||
$createdByEmail | string | ||
$createdById | integer | ||
$dtAdded | DateTime | ||
$dtLastUsed | DateTime | ||
$envId | integer | ||
$hasCloudInit | integer | ||
$hash | string | Hash (primary key) | |
$id | string | Image ID | |
$isDeprecated | boolean | ||
$isScalarized | integer | ||
$name | string | ||
$osId | string | ||
$platform | string | ||
$size | integer | ||
$source | string | ||
$status | string | ||
$statusError | string | ||
$type | string |
Property | Type | Description | |
---|---|---|---|
$_environment | Scalr_Environment |
Method | Description | |
---|---|---|
__construct ( ) | ||
checkImage ( ) : boolean | array | Check if image exists and return more info if special data exists | |
deleteCloudImage ( ) | ||
getDtAdded ( ) : DateTim\DateTime | null | Gets normalized dtAdded | |
getEnvironment ( ) : null | Scalr_Environmen\Scalr_Environment | Return NULL, if image is owned by admin | |
getOs ( ) : Scalr\Model\Entity\Os | ||
getPlatforms ( integer $accountId, integer $envId ) : array | Get array of image's platforms | |
getScope ( ) | ||
getSoftware ( ) : array | ||
getSoftwareAsString ( ) : string | ||
getUsed ( integer $accountId = null, integer $envId = null ) : array | false | Get image's usage in this environment (servers, roles) | |
hasAccessPermissions ( $user, $environment = null, $modify = null ) | ||
isEc2EbsImage ( ) : boolean | ||
isEc2HvmImage ( ) : boolean | ||
isEc2InstanceStoreImage ( ) : boolean | ||
isUsedGlobal ( ) : boolean | If image is used in any environment (servers, farmRoles) or had duplicates in another environments | |
migrateEc2Location ( string $cloudLocation, Scalr_Account_User | |
Migrates an Image to another Cloud Location | |
save ( ) | ||
setSoftware ( array $props ) |
public checkImage ( ) : boolean | array | ||
return | boolean | array | Returns array of data if exists when update is required |
public getDtAdded ( ) : DateTim\DateTime | null | ||
return | DateTim\DateTime | null |
public getEnvironment ( ) : null | Scalr_Environmen\Scalr_Environment | ||
return | null | Scalr_Environmen\Scalr_Environment |
public hasAccessPermissions ( $user, $environment = null, $modify = null ) |
public isEc2EbsImage ( ) : boolean | ||
return | boolean | Return TRUE if image is ebs based |
public isEc2HvmImage ( ) : boolean | ||
return | boolean | Return TRUE if image is hvm |
public isEc2InstanceStoreImage ( ) : boolean | ||
return | boolean | Return TRUE if image is instance-store based |
public isUsedGlobal ( ) : boolean | ||
return | boolean |
public migrateEc2Location ( string $cloudLocation, Scalr_Account_User | |
||
$cloudLocation | string | The cloud location |
$user | Scalr_Account_User | |
The user object |
return |
protected Scalr_Environment $_environment | ||
return | Scalr_Environment |