/usr/lib/python2.6/site-packages/openstackclient/identity/v2_0
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v2_0/ec2creds.pyc (6427B)
Ñò
;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 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 S( s2 Identity v2 EC2 Credentials action implementationsiÿÿÿÿN( t command( t lister( t show( t utils( t _t CreateEC2Credsc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Create EC2 credentialss .CreateEC2Credsc C sZ t t | ƒ i | ƒ } | i d d d d t d ƒ ƒ| i d d d d t d ƒ ƒ| S( Ns --projectt metavars
t helpsR Create credentials in project (name or ID; default: current authenticated project)s --users sM Create credentials for user (name or ID; default: current authenticated user)( t superR t
get_parsert add_argumentR ( t selft prog_namet parser( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyR # s
c C s÷ | i i i } | i o t i | i | i ƒ i } n | i i i i } | i
o t i | i | i
ƒ i } n | i i i i } | i
i | | ƒ } h } | i | i ƒ d | j o! | i h | i d ƒ d 6ƒ n t t t i | ƒ ƒ Œ S( Nt tenant_idt
project_id( t appt client_managert identityt projectR t
find_resourcet tenantst idt auth_refR t usert userst user_idt ec2t createt updatet _infot popt zipt sortedt sixt iteritems( R t parsed_argst identity_clientR R t credst info( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyt take_action7 s$
(
t __name__t
__module__t __doc__t loggingt getLoggert logR R t
log_methodR( ( ( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyR s t DeleteEC2Credsc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Delete EC2 credentialss .DeleteEC2Credsc C sZ t t | ƒ i | ƒ } | i d d d d t d ƒ ƒ| i d d d d t d ƒ ƒ| S( Nt
access_keyR s R s Credentials access keys --users s( Delete credentials for user (name or ID)( R R0 R R
R ( R R R
( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyR ^ s
c C sd | i i i } | i o t i | i | i ƒ i } n | i i i i } | i
i | | i ƒ d S( N(
R R R R R R R R R R R t deleteR1 ( R R$ R% R ( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyR( l s
(
R) R* R+ R, R- R. R R R/ R( ( ( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyR0 Y s t ListEC2Credsc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s List EC2 credentialss
.ListEC2Credsc C s; t t | ƒ i | ƒ } | i d d d d t d ƒ ƒ| S( Ns --userR s R s Filter list by user (name or ID)( R R3 R R
R ( R R R
( ( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pyR s
c s‚ | i i i } | i o t i | i | i ƒ i } n | i i i i } d
‰ d } | i
i | ƒ } | ‡ f d † | Dƒ f S( Nt accesst secretR R t Accesst Secrets
Project IDs User IDc 3 s+ x$ | ] } t i | ˆ d h ƒVq Wd S( t
formattersN( R t get_item_properties( t .0t s( t columns( sV /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v2_0/ec2creds.pys œ s ( s accessR5 s tenant_ids user_id( R6 R7 s
Project IDs User ID( R R R R R R R R R R R t list( R R$ R% R t column_headerst data( ( R<