/usr/lib/python2.6/site-packages/openstackclient/volume/v1
Edit: /usr/lib/python2.6/site-packages/openstackclient/volume/v1/snapshot.pyc (9609B)
Ñò
;vVc @ s d Z d d k 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 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 v1 Snapshot action implementationsiÿÿÿÿN( t command( t lister( t show( t
parseractions( t utilst CreateSnapshotc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ 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/v1/snapshot.pyR # s* c C s– | i i i } t i | i | i ƒ i } | i i | | i | i
| i ƒ } | i i
h t i | i i d ƒ ƒ d 6ƒ t t t i | i ƒ ƒ Œ S( Nt metadatat
properties( t appt client_managerR R t
find_resourcet volumest idt volume_snapshotst createR t namet descriptiont _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/v1/snapshot.pyt take_action> s #(
t __name__t
__module__t __doc__t loggingt getLoggert logR R t
log_methodR. ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v1/snapshot.pyR s t DeleteSnapshotc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Delete 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/v1/snapshot.pyR V s c C sO | i i i } x9 | i D]. } t i | i | ƒ i } | i i | ƒ q Wd S( N( 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/v1/snapshot.pyR. ` s
(
R/ R0 R1 R2 R3 R4 R R R5 R. ( ( ( sR /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/volume/v1/snapshot.pyR6 Q s
t ListSnapshotc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ 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<