Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
µEYc@s«ddlZddlZddljjjZddlmZ	ddlm
Z
ddlmZddlm
Z
e	jeƒZejejƒde
jfd„ƒYƒZdS(iÿÿÿÿN(t_utils(tdiscover(t
exceptions(tbasetBaseGenericPluginc
BsÝeZdZd
d
d
d
d
d
d
d
d
d
d
ed„Zejd
d„ƒZe	d„ƒZ
e	d„ƒZe	d„ƒZe	d„ƒZ
e
jd„ƒZ
e	d„ƒZejd	„ƒZd
„Zd„Zed„ZRS(sÑAn identity plugin that is not version dependent.

    Internally we will construct a version dependent plugin with the resolved
    URL and then proxy all calls from the base plugin to the versioned one.
    cCs‰tt|ƒjd|d|
ƒ|p(||_|p7||_||_||_||_|	|_|
|_	||_
||_d|_
dS(Ntauth_urltreauthenticate(tsuperRt__init__t_project_idt
_project_namet_project_domain_idt_project_domain_namet
_domain_idt_domain_namet	_trust_idt_default_domain_idt_default_domain_nametNonet_plugin(tselfRt	tenant_idttenant_namet
project_idtproject_nametproject_domain_idtproject_domain_namet	domain_idtdomain_namettrust_idtdefault_domain_idtdefault_domain_nameR((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyR#s
							cCsdS(sÆCreate a plugin from the given parameters.

        This function will be called multiple times with the version and url
        of a potential endpoint. If a plugin can be constructed that fits the
        params then it should return it. If not return None and then another
        call will be made with other available URLs.

        :param session: A session object.
        :type session: keystoneauth1.session.Session
        :param tuple version: A tuple of the API version at the URL.
        :param str url: The base URL for this version.
        :param str raw_status: The status that was in the discovery field.

        :returns: A plugin that can match the parameters or None if nothing.
        N(R(Rtsessiontversionturlt
raw_status((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyt
create_plugin?scCs"t|j|j|j|jgƒS(s®Are there domain parameters.

        Domain parameters are v3 only so returns if any are set.

        :returns: True if a domain parameter is set, false otherwise.
        (tanyR
RRR(R((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyt_has_domain_scopeRscCs,i|jd6|jd6|jd6|jd6S(s4Return the parameters that are common to v2 plugins.RRRR(RR	R
R(R((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyt
_v2_params]s


cCsTi|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6S(	s4Return the parameters that are common to v3 plugins.RRRRRRRR(RR	R
RRR
RR(R((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyt
_v3_paramses






cCs|jp|jS(N(RR(R((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyRqscCs
||_dS(N(R(Rtvalue((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyRuscCs|jp|jS(N(RR(R((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyRyscCs
||_dS(N(R(RR)((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyR}sc
CsÉd}y|j||jdtƒ}WnÆtjtjtjfk
rítj	d|jƒt
j
|jƒ}|jjƒ}|j
dƒrÀ|jr¥tjdƒ‚n|j|d|jƒ}q¬|j
dƒr¬|j|d|jƒ}q¬n¿X|jpý|j}|jd	t|ƒƒ}t}xl|D]d}	|	d
}
tjd|
ƒr\|jr\t}q%n|j||
|	dd|	dƒ}|r%Pq%q%W|r¬|r¬tjdƒ‚n|r¶|Stjd
ƒ‚dS(Nt
authenticatedshFailed to discover available identity versions when contacting %s. Attempting to parse version from URL.s/v2.0s.Cannot use v2 authentication with domain scopeiis/v3itreverseR!R"R#s1Could not determine a suitable URL for the plugin(ii(ii(i(Rt
get_discoveryRtFalseRtDiscoveryFailuret	HttpErrortConnectionErrortLOGtwarningturlparsetpathtlowert
startswithR&R$RRtversion_datatboolRt
version_matchtTrue(RR tplugintdisct	url_partsR4R+t	disc_datatv2_with_domain_scopetdataR!((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyt_do_create_pluginsP		
	
	


		


cKs1|js|j|ƒ|_n|jj||S(N(RRAtget_auth_ref(RR tkwargs((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyRBÂs	cCsf|stƒ‚ni|jd6|jd6|jd6|jd6|jd6|jd6|jd6|jd6S(	NRRRRRRRR(	tNotImplementedRR	R
RRR
RR(Rt_implemented((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pytget_cache_id_elementsÈs






N(t__name__t
__module__t__doc__RR:RtabctabstractmethodR$tpropertyR&R'R(RtsetterRRARBR-RF(((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyRs2	A	(RJtsixtsix.moves.urllib.parsetmovesturllibtparseR3t
keystoneauth1RtutilsRRtkeystoneauth1.identityRt
get_loggerRGR1t
add_metaclasstABCMetatBaseIdentityPluginR(((sX/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.pyt<module>
s