1
# Copyright 2011 Canonical Ltd.
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
5
# not use this file except in compliance with the License. You may obtain
6
# a copy of the License at
8
# http://www.apache.org/licenses/LICENSE-2.0
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
# License for the specific language governing permissions and limitations
17
The Flavor extra data extension
18
Openstack API version 1.1 lists "name", "ram", "disk", "vcpus" as flavor
19
attributes. This extension adds to that list:
25
from nova.api.openstack import extensions
28
class Flavorextradata(extensions.ExtensionDescriptor):
29
"""The Flavor extra data extension for the OpenStack API."""
32
return "FlavorExtraData"
35
return "os-flavor-extra-data"
37
def get_description(self):
38
return "Provide additional data for flavors"
40
def get_namespace(self):
41
return "http://docs.openstack.org/ext/flavor_extra_data/api/v1.1"
43
def get_updated(self):
44
return "2011-09-14T00:00:00+00:00"
46
# vim: tabstop=4 shiftwidth=4 softtabstop=4