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@szddlZddlZddlmZddlmZdefd„ƒYZdefd„ƒYZd„Zd	„Z	dS(
iÿÿÿÿN(t
positional(tsessiontAdaptercBseZdZdZdZeƒddddddddddidddddd„ƒZd„Zd„Z	dd„Z
dd„Zdd„Zdd„Z
dd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zedd„ƒZed„ƒZRS(sè
An instance of a session with local variables.

    A session is a global object that is shared around amongst many clients. It
    therefore contains state that is relevant to everyone. There is a lot of
    state such as the service type and region_name that are only relevant to a
    particular client that is using the session. An adapter provides a wrapper
    of client local data around the global session object.

    :param session: The session object to wrap.
    :type session: keystoneauth1.session.Session
    :param str service_type: The default service_type for URL discovery.
    :param str service_name: The default service_name for URL discovery.
    :param str interface: The default interface for URL discovery.
    :param str region_name: The default region_name for URL discovery.
    :param str endpoint_override: Always use this endpoint URL for requests
                                  for this client.
    :param tuple version: The version that this API targets.
    :param auth: An auth plugin to use instead of the session one.
    :type auth: keystoneauth1.plugin.BaseAuthPlugin
    :param str user_agent: The User-Agent string to set.
    :param int connect_retries: the maximum number of retries that should
                                be attempted for connection errors.
                                Default None - use session default which
                                is don't retry.
    :param logger: A logging object to use for requests that pass through this
                   adapter.
    :type logger: logging.Logger
    :param dict allow: Extra filters to pass when discovering API versions.
                       (optional)
    :param dict additional_headers: Additional headers that should be attached
                                    to every request passing through the
                                    adapter. Headers of the same name specified
                                    per request will take priority.
    :param str client_name: The name of the client that created the adapter.
                            This will be used to create the user_agent.
    :param str client_version: The version of the client that created the
                               adapter. This will be used to create the
                               user_agent.
    :param bool allow_version_hack: Allow keystoneauth to hack up catalog
                                    URLS to support older schemes.
                                    (optional, default True)
    :param str global_request_id: A global_request_id (in the form of
                                  ``req-$uuid``) that will be passed on all
                                  requests. Enables cross project request id
                                  tracking.
    cCsµ||_||_||_||_||_||_||_|	|_||_|
|_	||_
||_|
pui|_||_
||_|rŸ||_n|r±||_ndS(N(Rtservice_typetservice_namet	interfacetregion_nametendpoint_overridetversiont
user_agenttauthtconnect_retriestloggertallowtadditional_headerstallow_version_hacktglobal_request_idtclient_nametclient_version(tselfRRRRRRRR
R	RRR
RRRRR((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyt__init__Hs&
														cCsÄ|jr|jd|jƒn|jr>|jd|jƒn|jr]|jd|jƒn|jr||jd|jƒn|jr›|jd|jƒn|jdk	rÀ|jd|jƒndS(NRRRRRR(Rt
setdefaultRRRRRtNone(Rtkwargs((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyt_set_endpoint_filter_kwargsks					cKsË|jdiƒ}|j|ƒ|jr>|jd|jƒn|jr]|jd|jƒn|jr||jd|jƒn|jdk	r¡|jd|jƒn|jrÀ|jd|jƒn|jrß|jd|jƒnt	|j
t
jtfƒr;|j
r|jd|j
ƒn|jrH|jd	|jƒqHn
tjd
ƒx9|jjƒD](\}}|jdiƒj||ƒqXW|jdk	rµ|jdiƒjd|jƒn|j
j|||S(
Ntendpoint_filterRR
R	RRR
RRsdUsing keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1.theaderssX-OpenStack-Request-ID(RRRR
R	RRRR
t
isinstanceRtSessionRRRtwarningstwarnRtitemsRtrequest(RturltmethodRRtktv((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR ys4
							
 cCs|jj|p|jƒS(s˜Return a token as provided by the auth plugin.

        :param auth: The auth plugin to use for token. Overrides the plugin
                     on the session. (optional)
        :type auth: keystoneauth1.plugin.BaseAuthPlugin

        :raises keystoneauth1.exceptions.auth.AuthorizationFailure: if a new
            token fetch fails.

        :returns: A valid token.
        :rtype: :class:`str`
        (Rt	get_tokenR
(RR
((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR%¡s
cKs9|jr|jS|j|ƒ|jj|p2|j|S(s³Get an endpoint as provided by the auth plugin.

        :param auth: The auth plugin to use for token. Overrides the plugin on
                     the session. (optional)
        :type auth: keystoneauth1.plugin.BaseAuthPlugin

        :raises keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin: if a
            plugin is not available.

        :returns: An endpoint if available or None.
        :rtype: :class:`str`
        (RRRtget_endpointR
(RR
R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR&°s
	
cCs|jj|p|jƒS(s$Invalidate an authentication plugin.(Rt
invalidateR
(RR
((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR'ÃscCs|jj|p|jƒS(sDReturn the authenticated user_id as provided by the auth plugin.

        :param auth: The auth plugin to use for token. Overrides the plugin
                     on the session. (optional)
        :type auth: keystoneauth1.plugin.BaseAuthPlugin

        :raises keystoneauth1.exceptions.auth.AuthorizationFailure:
            if a new token fetch fails.
        :raises keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin:
            if a plugin is not available.

        :returns: Current `user_id` or None if not supported by plugin.
        :rtype: :class:`str`
        (Rtget_user_idR
(RR
((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR(ÇscCs|jj|p|jƒS(sJReturn the authenticated project_id as provided by the auth plugin.

        :param auth: The auth plugin to use for token. Overrides the plugin
                     on the session. (optional)
        :type auth: keystoneauth1.plugin.BaseAuthPlugin

        :raises keystoneauth1.exceptions.auth.AuthorizationFailure:
            if a new token fetch fails.
        :raises keystoneauth1.exceptions.auth_plugins.MissingAuthPlugin:
            if a plugin is not available.

        :returns: Current `project_id` or None if not supported by plugin.
        :rtype: :class:`str`
        (Rtget_project_idR
(RR
((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR)ØscKs|j|d|S(NtGET(R (RR!R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytgetéscKs|j|d|S(NtHEAD(R (RR!R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytheadìscKs|j|d|S(NtPOST(R (RR!R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytpostïscKs|j|d|S(NtPUT(R (RR!R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytputòscKs|j|d|S(NtPATCH(R (RR!R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytpatchõscKs|j|d|S(NtDELETE(R (RR!R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytdeleteøscCs*|jddƒ}|jddddtjjd|ƒdd	ƒ|jd
dddtjjddƒddƒ|jd
dddtjjddƒddƒ|jddddtjjddƒddƒ|jddddtjjddƒddƒ|jddddtjjddƒddƒdS(súAttach arguments to a given argparse Parser for Adapters.

        :param parser: The argparse parser to attach options to.
        :type parser: argparse.ArgumentParser
        :param str service_type: Default service_type value. (optional)
        sService OptionssbOptions controlling the specialization of the API Connection from information found in the catalogs--os-service-typetmetavars<name>tdefaulttOS_SERVICE_TYPEthelps(Service type to request from the catalogs--os-service-nametOS_SERVICE_NAMEs(Service name to request from the catalogs--os-interfacetOS_INTERFACEtpublics.API Interface to use [public, internal, admin]s--os-region-nametOS_REGION_NAMEsRegion of the cloud to uses--os-endpoint-overridetOS_ENDPOINT_OVERRIDEs6Endpoint to use instead of the endpoint in the catalogs--os-api-versiontOS_API_VERSIONs'Which version of the service API to useN(tadd_argument_grouptadd_argumenttostenvironR+R(tclstparserRt
adapter_group((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pytregister_argparse_argumentsüsB	c
Csì|jƒjddƒ}|jdjd|jƒƒdjd|jƒƒƒ}|jdjd|ƒddd	tjjd
jd|ƒdƒddjd|ƒƒ|jd
jd|ƒddd	tjjdjd|ƒdƒddjd|ƒƒ|jdjd|ƒddd	tjjdjd|ƒdƒddjd|ƒƒ|jdjd|ƒddd	tjjdjd|ƒdƒddjd|ƒƒ|jdjd|ƒddd	tjjdjd|ƒdƒddjd|ƒƒdS(s,Attach arguments to a given argparse Parser for Adapters.

        :param parser: The argparse parser to attach options to.
        :type parser: argparse.ArgumentParser
        :param str service_type: Name of a service to generate additional
                                 arguments for.
        t-t_s{service_type} Service OptionsRsqOptions controlling the specialization of the {service_type} API Connection from information found in the catalogs --os-{service_type}-service-typeR6s<name>R7sOS_{service_type}_SERVICE_TYPER9sGService type to request from the catalog for the {service_type} services --os-{service_type}-service-namesOS_{service_type}_SERVICE_NAMEsGService name to request from the catalog for the {service_type} services--os-{service_type}-interfacesOS_{service_type}_INTERFACEsMAPI Interface to use for the {service_type} service [public, internal, admin]s--os-{service_type}-api-versionsOS_{service_type}_API_VERSIONsFWhich version of the service API to use for the {service_type} services%--os-{service_type}-endpoint-overrides#OS_{service_type}_ENDPOINT_OVERRIDEsUEndpoint to use for the {service_type} service instead of the endpoint in the catalogN(
tuppertreplaceR@tformatttitleRARBRCR+R(RDRERtservice_envRF((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyt#register_service_argparse_arguments.sf								
					
					
					
					N(t__name__t
__module__t__doc__RRRRRRR R%R&R'R(R)R+R-R/R1R3R5tclassmethodRGRO(((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyRs6.					(						1tLegacyJsonAdaptercBseZdZd„ZRS(sMake something that looks like an old HTTPClient.

    A common case when using an adapter is that we want an interface similar to
    the HTTPClients of old which returned the body as JSON as well.

    You probably don't want this if you are starting from scratch.
    cOsœ|jdiƒ}|jddƒy|jdƒ|d<Wntk
rLnXtt|ƒj||Ž}y|jƒ}Wntk
r‘d}nX||fS(NRtAcceptsapplication/jsontbodytjson(	RtpoptKeyErrortsuperRTR RWt
ValueErrorR(RtargsRRtrespRV((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyR €s


(RPRQRRR (((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyRTwscOstj||ŽS(N(RRG(R\R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyt#register_adapter_argparse_arguments•scOstj||ŽS(N(RRO(R\R((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyt+register_service_adapter_argparse_arguments›s(
RBRRt
keystoneauth1RtobjectRRTR^R_(((sJ/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/adapter.pyt<module>
sÿc