Repository URL to install this package:
Version:
3.0.174 ▾
|
tvault-contego-common
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
cinderclient
/
v1
/
volumes.pyc
|
---|
ó ³EYc @ s\ d Z d d l m Z d d l m Z d e j f d YZ d e j f d YZ d S( s# Volume interface (1.1 extension). iÿÿÿÿ( t base( t utilst Volumec B sÅ e Z d Z d Z d Z d Z d Z d d d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z RS( sD A volume is an extra block level storage to the OpenStack instances.t display_namec C s d | j S( Ns <Volume: %s>( t id( t self( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyt __repr__ s c C s | j j | d S( s Delete this volume.N( t managert delete( R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR s c K s | j j | | d S( s? Update the display_name or display_description for this volume.N( R t update( R t kwargs( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR # s t rwc C s | j j | | | | | S( s Set attachment metadata. :param instance_uuid: uuid of the attaching instance. :param mountpoint: mountpoint on the attaching instance or host. :param mode: the access mode :param host_name: name of the attaching host. ( R t attach( R t instance_uuidt mountpointt modet host_name( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR ' s c C s | j j | S( s Clear attachment metadata.( R t detach( R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR 3 s c C s | j j | S( s Reserve this volume.( R t reserve( R t volume( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR 7 s c C s | j j | S( s Unreserve this volume.( R t unreserve( R R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR ; s c C s | j j | S( s Begin detaching volume.( R t begin_detaching( R R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR ? s c C s | j j | S( s Roll detaching volume.( R t roll_detaching( R R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR C s c C s | j j | | S( s] Initialize a volume connection. :param connector: connector dict from nova. ( R t initialize_connection( R R t connector( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR G s c C s | j j | | S( s\ Terminate a volume connection. :param connector: connector dict from nova. ( R t terminate_connection( R R R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR N s c C s | j j | | S( s§ Set or Append metadata to a volume. :param volume : The :class: `Volume` to set metadata on :param metadata: A dict of key/value pairs to set ( R t set_metadata( R R t metadata( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR U s c C s | j j | | | | | S( s- Upload a volume to image service as an image.( R t upload_to_image( R t forcet image_namet container_formatt disk_format( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR ] s c C s | j j | d S( s Delete the specified volume ignoring its current state. :param volume: The UUID of the volume to force-delete. N( R t force_delete( R ( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR! c s c C s | j j | | d S( s* Update the volume with the provided state.N( R t reset_state( R t state( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR" j s c C s | j j | | d S( sª Extend the size of the specified volume. :param volume: The UUID of the volume to extend. :param new_size: The desired size to extend volume to. N( R t extend( R R t new_size( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR$ n s c C s | j j | | | d S( s! Migrate the volume to a new host.N( R t migrate_volume( R t hostt force_host_copy( ( sL /home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR&