PHP Класс Scalr\Service\Aws\Ec2\DataType\SnapshotData

С версии: 30.01.2013
Автор: Vitaliy Demidov ([email protected])
Наследование: extends Scalr\Service\Aws\Ec2\AbstractEc2DataType
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$description string The description of the snapshot
$encrypted boolean Indicates whether the snapshot is encrypted.
$ownerAlias string The AWS account alias (amazon, self, etc.) or AWS account ID that owns the AMI.
$ownerId string The ID of the AWS account that owns the snapshot
$progress string The progress of the snapshot, as a percentage
$snapshotId string The ID of the snapshot.
$startTime DateTime The time stamp when the snapshot was initiated
$status string The snapshot state pending | completed | error
$volumeId string The ID of the volume.
$volumeSize string The size of the volume, in GiB.

Защищенные свойства (Protected)

Свойство Тип Описание
$_properties array List of the public properties which is managed by magic getter and setters internally.

Открытые методы

Метод Описание
copy ( string $srcRegion, string $description = null, string $destRegion = null, string $presignedUrl = null ) : string CopySnapshot action
createTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean CreateTags action
delete ( ) : boolean DeleteSnapshot action
deleteTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean DeleteTags action
refresh ( ) : SnapshotData DescribeSnapshots action

Защищенные методы

Метод Описание
throwExceptionIfNotInitialized ( )

Описание методов

copy() публичный метод

Copies a point-in-time snapshot of an Amazon Elastic Block Store (Amazon EBS) volume and stores it in Amazon Simple Storage Service (Amazon S3).You can copy the snapshot within the same region or from one region to another.You can use the snapshot to create new Amazon EBS volumes or Amazon Machine Images (AMIs)
public copy ( string $srcRegion, string $description = null, string $destRegion = null, string $presignedUrl = null ) : string
$srcRegion string The ID of the AWS region that contains the snapshot to be copied.
$description string optional A description of the new Amazon EBS snapshot.
$destRegion string optional The ID of the destination region.
$presignedUrl string optional The pre-signed URL that facilitates copying an encrypted snapshot. The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters.
Результат string Returns ID of the created snapshot on success.

createTags() публичный метод

Adds or overwrites one or more tags for the specified EC2 resource or resources. Each resource can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.
public createTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array The key/value pair list of the Tags.
Результат boolean Returns true on success or throws an exception otherwise

delete() публичный метод

Deletes a snapshot of an Amazon EBS volume. Note! If you make periodic snapshots of a volume, the snapshots are incremental so that only the blocks on the device that have changed since your last snapshot are incrementally saved in the new snapshot. Even though snapshots are saved incrementally, the snapshot deletion process is designed so that you need to retain only the most recent snapshot in order to restore the volume.
public delete ( ) : boolean
Результат boolean Returns TRUE on success

deleteTags() публичный метод

Deletes a specific set of tags from a specific set of resources. This call is designed to follow a DescribeTags call. You first determine what tags a resource has, and then you call DeleteTags with the resource ID and the specific tags you want to delete.
public deleteTags ( Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array $tagList ) : boolean
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | Scalr\Service\Aws\Ec2\DataType\ResourceTagSetData | array The key/value pair list of the Tags.
Результат boolean Returns true on success or throws an exception otherwise

refresh() публичный метод

Refreshes current object using API request to AWS NOTE! It refreshes object itself only when EntityManager is enabled. Decision is to use $object = object->refresh() instead;
public refresh ( ) : SnapshotData
Результат SnapshotData

throwExceptionIfNotInitialized() защищенный метод

Описание свойств

$_properties защищенное свойство

List of the public properties which is managed by magic getter and setters internally.
protected array $_properties
Результат array

$description публичное свойство

The description of the snapshot
public string $description
Результат string

$encrypted публичное свойство

Indicates whether the snapshot is encrypted.
public bool $encrypted
Результат boolean

$ownerAlias публичное свойство

The AWS account alias (amazon, self, etc.) or AWS account ID that owns the AMI.
public string $ownerAlias
Результат string

$ownerId публичное свойство

The ID of the AWS account that owns the snapshot
public string $ownerId
Результат string

$progress публичное свойство

The progress of the snapshot, as a percentage
public string $progress
Результат string

$snapshotId публичное свойство

The ID of the snapshot.
public string $snapshotId
Результат string

$startTime публичное свойство

The time stamp when the snapshot was initiated
public DateTime $startTime
Результат DateTime

$status публичное свойство

The snapshot state pending | completed | error
public string $status
Результат string

$volumeId публичное свойство

The ID of the volume.
public string $volumeId
Результат string

$volumeSize публичное свойство

The size of the volume, in GiB.
public string $volumeSize
Результат string