~zulcss/cinder/cinder-ca-g2

« back to all changes in this revision

Viewing changes to cinder/api/openstack/volume/contrib/image_create.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-10-09 08:26:21 UTC
  • mfrom: (3.1.10 quantal)
  • Revision ID: package-import@ubuntu.com-20121009082621-stc86vcuyzyrp7ow
Tags: 2012.2-0ubuntu2
* debian/cinder_tgt.conf: Add missing configuration file. (LP: #1064366) 
* debian/README.Debian: Added note about migration from nova-volume
  to cinder-volume.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
 
2
 
 
3
# Copyright (c) 2012 NTT.
 
4
# Copyright (c) 2012 OpenStack, LLC.
 
5
# All Rights Reserved.
 
6
#
 
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
 
10
#
 
11
#         http://www.apache.org/licenses/LICENSE-2.0
 
12
#
 
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
 
17
#    under the License.
 
18
 
 
19
"""The Create Volume from Image extension."""
 
20
 
 
21
 
 
22
from cinder.api.openstack import extensions
 
23
 
 
24
 
 
25
class Image_create(extensions.ExtensionDescriptor):
 
26
    """Allow creating a volume from an image in the Create Volume v1 API"""
 
27
 
 
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"