Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • Flavor
  • Image
  • Network
  • Server
  • ServerMetadata
  • Service
  • VolumeAttachment
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Flavor

The Flavor class represents a flavor defined by the Compute service

At its simplest, a Flavor represents a combination of RAM, disk space, and compute CPUs, though there are other extended attributes.

OpenCloud\Common\Base
Extended by OpenCloud\Common\PersistentObject
Extended by OpenCloud\Compute\Flavor
Namespace: OpenCloud\Compute
Located at OpenCloud/Compute/Flavor.php
Methods summary
public HttpResponse
# create( array $params = array() )

Creates a new object

Creates a new object

Parameters

$params
array
$params array of values to set when creating the object

Returns

HttpResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::create()
public HttpResponse
# update( array $params = array() )

Updates an existing object

Updates an existing object

Parameters

$params
array
$params array of values to set when updating the object

Returns

HttpResponse

Throws

VolumeCreateError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::update()
public HttpResponse
# delete( )

Deletes an object

Deletes an object

Returns

HttpResponse

Throws

DeleteError
if HTTP status is not Success

Overrides

OpenCloud\Common\PersistentObject::delete()
Methods inherited from OpenCloud\Common\PersistentObject
__construct(), __set(), action(), checkExtension(), createJson(), createUrl(), customAction(), findLink(), getParent(), getService(), id(), jsonCollectionElement(), jsonCollectionName(), jsonName(), name(), noCreate(), noDelete(), noUpdate(), parent(), primaryKeyField(), refresh(), region(), resourceName(), service(), setParent(), setService(), status(), updateJson(), url(), waitFor()
Methods inherited from OpenCloud\Common\Base
checkJsonError(), getHttpRequestObject(), getLogger(), makeQueryString(), populate(), setLogger(), setProperty()
Properties summary
public mixed $status
#
public mixed $updated
#
public mixed $vcpus
#
public mixed $disk
#
public mixed $name
#
public mixed $links
#
public mixed $rxtx_factor
#
public mixed $ram
#
public mixed $id
#
public mixed $swap
#
protected static string $json_name 'flavor'
#
protected static string $url_resource 'flavors'
#
PHP OpenCloud API API documentation generated by ApiGen 2.8.0