/usr/lib/python2.6/site-packages/openstackclient/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v3/identity_provider.pyc (8303B)
Ñò
;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 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( s3 Identity v3 IdentityProvider action implementationsiÿÿÿÿN( t command( t lister( t show( t utilst CreateIdentityProviderc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Create new identity providers .CreateIdentityProviderc
C sâ t t | ƒ i | ƒ } | i d d d d d ƒ| i ƒ } | i d d d d d d d
ƒ| i d d d d d
ƒ| i d d d d d ƒ| i ƒ } | i d d d d d d t d d ƒ| i d d d d d d d ƒ| S( Nt identity_provider_idt metavars
t helps+ New identity provider name (must be unique)s --remote-ids t actiont appendsV Remote IDs to associate with the Identity Provider (repeat to provide multiple values)s --remote-id-files sb Name of a file that contains many remote IDs to associate with the identity provider, one per lines
--descriptions
s! New identity provider descriptions --enablet destt enabledt
store_truet defaults" Enable identity provider (default)s --disablet store_falses Disable the identity provider( t superR t
get_parsert add_argumentt add_mutually_exclusive_groupt True( t selft prog_namet parsert identity_remote_id_providert enable_identity_provider( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/identity_provider.pyR s@ c C sÏ | i i i } | i o: t i | i ƒ } | i ƒ } t t t i
| ƒ ƒ } n | i o
| i n d } | i
i i d | i d | d | i d | i ƒ } | i i d d ƒ t t t i | i ƒ ƒ Œ S( Nt idt
remote_idst descriptionR t links( t appt client_managert identityt remote_id_fileR t read_blob_file_contentst
splitlinest listt mapt strt stript remote_idt Nonet
federationt identity_providerst createR R R t _infot popt zipt sortedt sixt iteritems( R t parsed_argst identity_clientt file_contentR t idp( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/identity_provider.pyt take_actionI s
(
t __name__t
__module__t __doc__t loggingt getLoggert logR R t
log_methodR6 ( ( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/identity_provider.pyR s *t DeleteIdentityProviderc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Delete identity providers .DeleteIdentityProviderc C s5 t t | ƒ i | ƒ } | i d d d d d ƒ| S( Nt identity_providerR s R s Identity provider to delete( R R> R R ( R R R ( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/identity_provider.pyR c s c C s) | i i i } | i i i | i ƒ d S( N( R R R R) R* t deleteR? ( R R2 R3 ( ( s] /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/identity_provider.pyR6 l s
(
R7 R8 R9 R: R; R<