class Image extends OperatorResource implements Creatable, Listable, Retrievable, Deletable

Traits

Properties

$status string
$name string
$tags array
$containerFormat string
$createdAt DateTimeImmutable
$diskFormat string
$updatedAt DateTimeImmutable
$visibility string
$minDisk int
$protected bool
$id string
$checksum string
$ownerId string
$size int
$minRam int
$virtualSize int

Methods

populateFromArray (array $data) : mixed|void

No description

create (array $data) : Creatable

Create a new resource according to the configuration set in the options.

retrieve () : void

Retrieve details of the current resource from the remote API.

update (array $data)

No description

delete () : void

Permanently delete this resource.

No description

No description

uploadData (StreamInterface $stream)

No description

No description

addMember ($memberId)

No description

No description

getMember ($memberId)

No description

Details

populateFromArray(array $data)

Parameters

$data array

Return value

mixed|void

Example code

$response = $image->populateFromArray($data);

create(array $data)

Create a new resource according to the configuration set in the options.

Parameters

$data array

Return value

Creatable

Example code

$creatable = $image->create($data);

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$image->retrieve();

update(array $data)

Parameters

$data array

Example code

$image->update($data);

delete()

Permanently delete this resource.

Return value

void

Example code

$image->delete();

deactivate()

Example code

$image->deactivate();

reactivate()

Example code

$image->reactivate();

uploadData(StreamInterface $stream)

Parameters

$stream StreamInterface

Example code

$image->uploadData($stream);

downloadData()

Example code

$image->downloadData();

addMember($memberId)

Parameters

$memberId

Example code

$image->addMember($memberId);

listMembers()

Example code

$image->listMembers();

getMember($memberId)

Parameters

$memberId

Example code

$image->getMember($memberId);