/usr/lib/python2.6/site-packages/openstackclient/volume/v2
Edit: /usr/lib/python2.6/site-packages/openstackclient/volume/v2/snapshot.pyc (9640B)
Ñò
;vVc @ s d Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k Z d d k l Z d d k l
Z
d e i f d „ ƒ YZ d
e i
f d „ ƒ YZ d e i f d
„ ƒ YZ d e i
f d „ ƒ YZ d e i f d „ ƒ YZ d e i
f d „ ƒ YZ d S( s) Volume v2 snapshot action implementationsiÿÿÿÿN( t command( t lister( t show( t
parseractions( t utilst CreateSnapshotc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Create new snapshots .CreateSnapshotc
C s’ t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d t d d ƒ| i d
d d d d ƒ| i d
d d d d d t d d ƒ| S( Nt volumet metavars
t helps Volume to snapshot (name or ID)s --names t requireds Name of the snapshots
--descriptions
s Description of the snapshots --forcet destt forcet actiont
store_truet defaults; Create a snapshot attached to an instance. Default is False( t superR t
get_parsert add_argumentt Truet False( t selft prog_namet parser( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/snapshot.pyR " s* c C s² | i i d | ƒ | i i i } t i | i | i ƒ i } | i i
| d | i d | i d | i
ƒ} | i i h t i | i i d ƒ ƒ d 6ƒ t t t i | i ƒ ƒ Œ S( Ns take_action: (%s)R t namet descriptiont metadatat
properties( t logt debugt appt client_managerR R t
find_resourcet volumest idt volume_snapshotst createR R R t _infot updatet format_dictt popt zipt sortedt sixt iteritems( R t parsed_argst
volume_clientt volume_idt snapshot( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/snapshot.pyt take_action= s #( t __name__t
__module__t __doc__t loggingt getLoggerR R R0 ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/snapshot.pyR s t DeleteSnapshotc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s Delete volume snapshot(s)s .DeleteSnapshotc C s; t t | ƒ i | ƒ } | i d d d d d d d ƒ| S( Nt snapshotsR s
t nargst +R s" Snapshot(s) to delete (name or ID)( R R6 R R ( R R R ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/snapshot.pyR S s c C sb | i i d | ƒ | i i i } x9 | i D]. } t i | i | ƒ i } | i i
| ƒ q, Wd S( Ns take_action: (%s)( R R R R R R7 R R R" R! t delete( R R, R- R/ t snapshot_id( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/snapshot.pyR0 ] s
( R1 R2 R3 R4 R5 R R R0 ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v2/snapshot.pyR6 N s
t ListSnapshotc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s List snapshotss
.ListSnapshotc C s; t t | ƒ i | ƒ } | i d d d d t d d ƒ| S( Ns --longR R
R R s List additional fields in output( R R<