Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • 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
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • AbstractSchemaResource
  • Image
  • Member

Interfaces

  • ImageInterface
  • Overview
  • Namespace
  • Class
  • Tree

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
$schema

Returns

Guzzle\Http\Message\Response
\Guzzle\Http\Message\Response

Throws

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

Refresh this resource

Refresh this resource

Returns

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

Delete this resource

Delete this resource

Returns

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

List the members of this image

List the members of this image

Parameters

$params

Returns

mixed
mixed
public mixed
# member( mixed $data )

Iterator use only

Iterator use only

Parameters

$data

Returns

mixed
mixed
public mixed
# getMember( mixed $memberId )

Get a member belonging to this image

Get a member belonging to this image

Parameters

$memberId

Returns

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

Add a member to this image

Add a member to this image

Parameters

$tenantId

Returns

Guzzle\Http\Message\Response
\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

Returns

Guzzle\Http\Message\Response
\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

Returns

Guzzle\Http\Message\Response
\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

Returns

Guzzle\Http\Message\Response
\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(), getPatchHeaders(), getProperty(), hasLogger(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()
Constants inherited from OpenCloud\Common\Base
PATCH_CONTENT_TYPE
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
API documentation generated by ApiGen 2.8.0