Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifysnapshotattribute.pyc

ó
¡ôXc@sJddlmZddlmZddlmZdefd„ƒYZdS(iÿÿÿÿ(t
EC2Request(tArg(t
ArgumentErrortModifySnapshotAttributecBs³eZdZedddddƒedddd	d
eddddƒed
ddddddgddddƒedddddddgddddƒgZd„Zd„ZRS(s!Modify an attribute of a snapshott
SnapshotIdtmetavartSNAPSHOTthelpsID of the snapshot to modifys-cs--create-volume-permissiontactiont
store_truetrequiredtroute_tos2grant/revoke volume creation permission with -a/-rs-as--addtENTITYtappendtdefaults6account to grant permission, or "all" for all accountss-rs--removesLaccount to remove permission
                from, or "all" for all accountscCsa|jjdƒri}xl|jjdgƒD]U}|jdgƒ|dkrk|dji|d6ƒq.|dji|d6ƒq.Wxl|jjdgƒD]U}|jdgƒ|dkrÚ|dji|d6ƒq|dji|d6ƒqW|std	ƒ‚n||jd
<nB|jjdƒr<tdƒ‚n|jjdƒr]tdƒ‚ndS(
Ntcreate_volume_permissiontaddtAddtalltGrouptUserIdtremovetRemovesBat least one entity must be specified with -a/--add or -r/--removetCreateVolumePermissionsEargument -a/--add may only be used with -c/--create-volume-permissionsHargument -r/--remove may only be used with -c/--create-volume-permission(targstgett
setdefaultR
Rtparams(tselftcvpermtentity((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifysnapshotattribute.pyt
preprocess.s&cCsã|jjdƒrßxb|jdjdgƒD]G}x>|jƒD]0\}}|jd|jdd||fƒGHq?Wq,Wxe|jdjdgƒD]G}x>|jƒD]0\}}|jd|jdd||fƒGHq¤Wq‘WndS(	NRRRtcreateVolumePermissionRtADDRtREMOVE(RRRtitemsttabify(Rt_Rtentity_typetentity_name((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifysnapshotattribute.pytprint_resultIs 	
 	
N(	t__name__t
__module__tDESCRIPTIONRtTruetNonetARGSRR((((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifysnapshotattribute.pyRs	N(teuca2ools.commands.ec2RtrequestbuilderRtrequestbuilder.exceptionsRR(((sR/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/modifysnapshotattribute.pyt<module>s
Back to Directory File Manager