/usr/lib/python2.6/site-packages/openstackclient/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v3/service_provider.pyc (7905B)
Ñò
;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 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' Service Provider action implementationsiÿÿÿÿN( t command( t lister( t show( t utilst CreateServiceProviderc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Create new service providers .CreateServiceProviderc
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 t d d ƒ| i ƒ } | i d d d d d d t d d ƒ| i d d d d d d d ƒ| S( Nt service_provider_idt metavars
t helps* New service provider name (must be unique)s
--auth-urls
t requiredsB Authentication URL of remote federated service provider (required)s
--descriptions
s New service provider descriptions --service-provider-urls s= A service URL where SAML assertions are being sent (required)s --enablet destt enabledt actiont
store_truet defaults% Enable the service provider (default)s --disablet store_falses Disable the service provider( t superR t
get_parsert add_argumentt Truet add_mutually_exclusive_group( t selft prog_namet parsert enable_service_provider( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR s@ c C s} | i i i } | i i i d | i d | i d | i d | i d | i
ƒ } | i i d d ƒ t t t i | i ƒ ƒ Œ S( Nt idt auth_urlt descriptionR
t sp_urlt links( t appt client_managert identityt
federationt service_providerst createR R R R
t service_provider_urlt _infot popt Nonet zipt sortedt sixt iteritems( R t parsed_argst service_clientt sp( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyt take_actionL s (
t __name__t
__module__t __doc__t loggingt getLoggert logR R t
log_methodR. ( ( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR s ,t DeleteServiceProviderc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Delete service providers .DeleteServiceProviderc C s5 t t | ƒ i | ƒ } | i d d d d d ƒ| S( Nt service_providerR s R s Service provider to delete( R R6 R R ( R R R ( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR _ s c C s) | i i i } | i i i | i ƒ d S( N( R R R R R! t deleteR7 ( R R+ R, ( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR. h s
(
R/ R0 R1 R2 R3 R4 R R R5 R. ( ( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR6 Z s t ListServiceProviderc B s9 e Z d Z e i e d ƒ Z e i e ƒ d „ ƒ Z RS( s List service providerss .ListServiceProviderc sA | i i i } | i i i ƒ } d ‰ ˆ ‡ f d † | Dƒ f S( Nt IDt Enabledt Descriptions Auth URLc 3 s+ x$ | ] } t i | ˆ d h ƒVq Wd S( t
formattersN( R t get_item_properties( t .0t s( t column_headers( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pys | s ( R: R; s Descriptions Auth URL( R R R R R! t list( R R+ R, t data( ( RA s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR. u s ( R/ R0 R1 R2 R3 R4 R R5 R. ( ( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR9 p s t SetServiceProviderc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Set service provider propertiess .SetServiceProviderc C s¾ t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d d ƒ| i d d d
d d ƒ| i d d d
d d ƒ| i ƒ } | i d d d d d ƒ| i d d d d d ƒ| S( NR7 R s R s Service provider to modifys
--auth-urls
s; New Authentication URL of remote federated service providers
--descriptions
s New service provider descriptions --service-provider-urls s8 New service provider URL, where SAML assertions are sents --enableR R s Enable the service providers --disables Disable the service provider( R RD R R R ( R R R R ( ( s\ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/service_provider.pyR ‡ s6 c
C sÛ | i i i i } d } | i t j o
t } n | i t j o
t } n t | d j | i
| i | i f ƒ p t
i i d ƒ d S| i i | i d | d | i
d | i d | i ƒ} t t t i | i ƒ ƒ Œ S( Ns2 Service Provider not updated, no arguments presentR
R R R ( NN( R R R R R&