1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
3
# Copyright (c) 2012 NTT.
4
# Copyright (c) 2012 OpenStack, LLC.
7
# Licensed under the Apache License, Version 2.0 (the "License"); you may
8
# not use this file except in compliance with the License. You may obtain
9
# a copy of the License at
11
# http://www.apache.org/licenses/LICENSE-2.0
13
# Unless required by applicable law or agreed to in writing, software
14
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
# License for the specific language governing permissions and limitations
19
"""The Create Volume from Image extension."""
22
from cinder.api.openstack import extensions
25
class Image_create(extensions.ExtensionDescriptor):
26
"""Allow creating a volume from an image in the Create Volume v1 API"""
28
name = "CreateVolumeExtension"
29
alias = "os-image-create"
30
namespace = "http://docs.openstack.org/volume/ext/image-create/api/v1"
31
updated = "2012-08-13T00:00:00+00:00"