Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pyo
�
��Xc@sVddlmZddlmZmZmZddlmZdefd��YZdS(i����(t
EC2Request(tArgtFiltertGenericTagFilter(t
ArgumentErrortDescribeSnapshotscBsveZdZeddddddd�edd	d
ddd5dd
�eddddddd
ddgdd�eddddd
ddddgdd�gZeddd�eddd�eddd�ed dd!�ed"�ed#dd$�ed%�ed&dd'�ed(dd)�ed*dd+�ed,dd-�ed.d/e�gZ	d0d1gZ
d2�Zd3�Zd4�Z
RS(6s�Show information about snapshots

By default, only snapshots your account owns and snapshots for which your account has explicit restore permissions are shown.t
SnapshotIdtnargst*tmetavartSNAPSHOTthelps#limit results to specific snapshotss-as--alltactiont
store_truetroute_tosdescribe all snapshotss-os--ownertdesttOwnertACCOUNTtappendtdefaults5limit results to snapshots owned by specific accountss-rs--restorable-bytRestorableBysJlimit results to
                snapahots restorable by specific accountstdescriptionssnapshot descriptionsowner-aliasssnapshot owner's account aliassowner-idssnapshot owner's account IDtprogresss snapshot progress, in percentagessnapshot-ids
start-timessnapshot initiation timetstatusstag-keys%key of a tag assigned to the snapshots	tag-values'value of a tag assigned to the snapshotstag:KEYs"specific tag key/value combinations	volume-idssource volume IDsvolume-sizettypetsnapshotSetttagSetcCshtj|�|jjd�rd|jjd�r@td��n|jjd�rdtd��qdndS(NtallRs7argument -a/--all: not allowed with argument -o/--ownerRs?argument -a/--all: not allowed with argument -r/--restorable-by(Rt	configuretargstgetR(tself((sL/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pyR>s
cs�t�fd�dD��s�dg�jd<�j�}�jd=dg�jd<�j�}�jd=|jdg�|jdg�|d<|S�j�SdS(	Nc3s!|]}�jj|�VqdS(N(RR(t.0titem(R(sL/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pys	<genexpr>IsRRRRRR(sallRsOwnersRestorableBy(tanytparamstsendR(Rtownedt
restorable((RsL/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pytmainHs


cCs.x'|jdg�D]}|j|�qWdS(NR(Rtprint_snapshot(Rtresulttsnapshot((sL/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pytprint_resultXsN(t__name__t
__module__tDESCRIPTIONRtNonetARGSRRtinttFILTERSt	LIST_TAGSRR'R+(((sL/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pyRs:					
	N(	teuca2ools.commands.ec2RtrequestbuilderRRRtrequestbuilder.exceptionsRR(((sL/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/describesnapshots.pyt<module>s