Overview
  • Namespace
  • Class

Namespaces

  • OpenCloud
    • Autoscale
      • 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
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource

Classes

  • OpenCloud\Volume\Resource\Snapshot
  • OpenCloud\Volume\Resource\Volume
  • OpenCloud\Volume\Resource\VolumeType
 1 <?php
 2 /**
 3  * Copyright 2012-2014 Rackspace US, Inc.
 4  *
 5  * Licensed under the Apache License, Version 2.0 (the "License");
 6  * you may not use this file except in compliance with the License.
 7  * You may obtain a copy of the License at
 8  *
 9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 namespace OpenCloud\Database\Resource;
19 
20 use OpenCloud\Common\Http\Message\Formatter;
21 use OpenCloud\Common\Lang;
22 use OpenCloud\Common\Exceptions;
23 use OpenCloud\Common\Resource\PersistentResource;
24 use OpenCloud\Database\Service;
25 
26 /**
27  * DatastoreVersion represents an configuration group for a tenant
28  */
29 class DatastoreVersion extends PersistentResource
30 {
31     public $id;
32     public $name;
33     public $datastore;
34 
35     protected static $json_name = 'version';
36     protected static $url_resource = 'versions';
37 
38     protected $associatedResources = array(
39         'datastore' => 'Datastore'
40     );
41 
42     /**
43      * @throws CreateError
44      */
45     public function create($params = array())
46     {
47         return $this->noCreate();
48     }
49 
50     /**
51      * @throws UpdateError
52      */
53     public function update($params = array())
54     {
55         return $this->noUpdate();
56     }
57 
58     /**
59      * @throws DeleteError
60      */
61     public function delete()
62     {
63         return $this->noDelete();
64     }
65 }
66 
API documentation generated by ApiGen