Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Enum
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • AbstractSchemaResource
  • Image
  • Member

Interfaces

  • ImageInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Image

Class that represents a Glance Image. In more general terms, a virtual machine image is a single file which contains a virtual disk that has an installed bootable operating system. In the Cloud Images API, an image is represented by a JSON-encoded data structure (the image schema) and its raw binary data (the image file).

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Image\Resource\AbstractSchemaResource implements ArrayAccess
Extended by OpenCloud\Image\Resource\Image implements OpenCloud\Image\Resource\ImageInterface
Namespace: OpenCloud\Image\Resource
Package: OpenCloud\Images\Resource
Located at OpenCloud/Image/Resource/Image.php
Methods summary
public Guzzle\Http\Message\Response
# update( array $params, OpenCloud\Image\Resource\Schema\Schema $schema = null )

Update this resource

Update this resource

Parameters

$params
array
$params
$schema
OpenCloud\Image\Resource\Schema\Schema
$schema

Returns

Guzzle\Http\Message\Response

Throws

RuntimeException
public Guzzle\Http\Message\Response
# refresh( )

Refresh this resource

Refresh this resource

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# delete( )

Delete this resource

Delete this resource

Returns

Guzzle\Http\Message\Response
public mixed
# listMembers( array $params = array() )

List the members of this image

List the members of this image

Parameters

$params
array
$params

Returns

mixed
public mixed
# member( mixed $data )

Iterator use only

Iterator use only

Parameters

$data
mixed
$data

Returns

mixed
public mixed
# getMember( mixed $memberId )

Get a member belonging to this image

Get a member belonging to this image

Parameters

$memberId
mixed
$memberId

Returns

mixed
public Guzzle\Http\Message\Response
# createMember( mixed $tenantId )

Add a member to this image

Add a member to this image

Parameters

$tenantId
mixed
$tenantId

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# deleteMember( mixed $tenantId )

Delete a member from this image

Delete a member from this image

Parameters

$tenantId
mixed
$tenantId

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# addTag( string $tag )

Add a tag to this image

Add a tag to this image

Parameters

$tag
string
$tag

Returns

Guzzle\Http\Message\Response
public Guzzle\Http\Message\Response
# deleteTag( mixed $tag )

Delete a tag from this image

Delete a tag from this image

Parameters

$tag
mixed
$tag

Returns

Guzzle\Http\Message\Response
Methods inherited from OpenCloud\Image\Resource\AbstractSchemaResource
getData(), getId(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), setData(), setId()
Methods inherited from OpenCloud\Common\Resource\BaseResource
__construct(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), jsonCollectionElement(), jsonCollectionName(), jsonName(), parseResponse(), primaryKeyField(), resourceName(), setMetadata(), setParent(), setService()
Methods inherited from OpenCloud\Common\Base
__call(), checkJsonError(), generateUuid(), getInstance(), getJsonHeader(), getLogger(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
Properties summary
protected static string $url_resource 'images'
#
protected static string $json_name ''
#
protected static string $json_collection_name 'images'
#
Properties inherited from OpenCloud\Image\Resource\AbstractSchemaResource
$data, $id
Properties inherited from OpenCloud\Common\Resource\BaseResource
$metadata, $parent, $service
Properties inherited from OpenCloud\Common\Base
$aliases
PHP OpenCloud API API documentation generated by ApiGen 2.8.0