/usr/lib/python2.6/site-packages/openstackclient/identity/v3
Edit: /usr/lib/python2.6/site-packages/openstackclient/identity/v3/federation_protocol.pyc (7616B)
Ñò
;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( s- Identity v3 Protocols actions implementationsiÿÿÿÿN( t command( t lister( t show( t utilst CreateProtocolc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Create new federation protocolR c C ss t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d t d d ƒ| i d
d d d t d d ƒ| S(
Nt federation_protocolt metavars
t helpsD New federation protocol name (must be unique per identity provider)s --identity-providers t requiredsX Identity provider that will support the new federation protocol (name or ID) (required)s --mappings s2 Mapping that is to be used (name or ID) (required)( t superR t
get_parsert add_argumentt True( t selft prog_namet parser( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR
s c C s” | i i i } | i i i d | i d | i d | i ƒ } t | i
ƒ } | i | d <| i d ƒ | d <| i d d ƒ t
t t i | ƒ ƒ Œ S( Nt protocol_idt identity_providert mappingt
mapping_idt links( t appt client_managert identityt
federationt protocolst createR R R t dictt _infot popt Nonet zipt sortedt sixt iteritems( R
t parsed_argst identity_clientt protocolt info( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyt take_action5 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/federation_protocol.pyR s t DeleteProtocolc B sB e Z d Z e i e d ƒ Z d „ Z e i e ƒ d „ ƒ Z RS( s Delete federation protocols .DeleteProtocolc C sT t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d t d d ƒ| S(
NR R s R s* Federation protocol to delete (name or ID)s --identity-providers R sM Identity provider that supports (name or ID) (required)( R R/ R
R R ( R
R R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR
L s c C s/ | i i i } | i i i | i | i ƒ d S( N( R R R R R t deleteR R ( R
R# R$ ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR' [ s (
R( R) R* R+ R, R- R
R R. R' ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR/ G s t
ListProtocolsc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s List federation protocolss .ListProtocolsc C s; t t | ƒ i | ƒ } | i d d d d t d d ƒ| S( Ns --identity-providerR s R R s1 Identity provider to list (name or ID) (required)( R R1 R
R R ( R
R R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR
h s c C sj | i i i } | i i i | i ƒ } d } d } g } | D] } | t i | | ƒ q> ~ } | | f S( Nt idR R ( s ids mapping( s ids
mapping_id( R R R R R t listR R t get_item_properties( R
R# R$ R t columnst response_attributest _[1]t st items( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR' r s &( R( R) R* R+ R, R- R
R' ( ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR1 c s
t SetProtocolc B s3 e Z d Z e i e d ƒ Z d „ Z d „ Z RS( s" Set federation protocol propertiess .SetProtocolc C sm t t | ƒ i | ƒ } | i d d d d d ƒ| i d d d d t d d ƒ| i d
d d d d ƒ| S(
NR R s R s* Federation protocol to modify (name or ID)s --identity-providers R sM Identity provider that supports (name or ID) (required)s --mappings s' Mapping that is to be used (name or ID)( R R: R
R R ( R
R R ( ( s_ /tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/identity/v3/federation_protocol.pyR
ƒ s c C s | i i i } | i p | i i i d ƒ d S| i i i | i | i
| i ƒ } t | i ƒ } | i | d <| i
d ƒ | d