/** * Returns the selected endpoint URL of this compute Service * * @param string $resource - an optional child resource. For example, * passing 'details' would return .../servers/details. Should *not* be * prefixed with a slash (/). * @param array $args (optional) an array of key-value pairs for query * strings to append to the URL * @returns string - the requested URL */ public function Url($resource = 'servers', array $args = array()) { return parent::Url($resource, $args); }
/** * Returns a list of flavors * * just call the parent FlavorList() method, but pass FALSE * because the /flavors/detail resource is not supported * * @api * @return \OpenCloud\Compute\FlavorList */ public function flavorList($details = false, array $filter = array()) { return parent::flavorList(false); }
/** * Returns the URL of this service, or optionally that of * an instance * * @param string $resource the resource required * @param array $args extra arguments to pass to the URL as query strings */ public function url($resource = self::URL_RESOURCE, array $args = array()) { return parent::url($resource, $args); }
/** * creates the VolumeService object */ public function __construct(OpenStack $connection, $name, $region, $urltype) { parent::__construct($connection, 'volume', $name, $region, $urltype); }