/usr/lib/python2.6/site-packages/keystoneauth1/fixture
NameSizeModeActions
discovery.py82120644editdlrm
discovery.pyc111210644editdlrm
exception.py8210644editdlrm
exception.pyc6440644editdlrm
keystoneauth_betamax.py25960644editdlrm
keystoneauth_betamax.pyc23520644editdlrm
v2.py74350644editdlrm
v2.pyc105430644editdlrm
v3.py145090644editdlrm
v3.pyc193430644editdlrm
__init__.py14800644editdlrm
__init__.pyc10390644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/fixture/discovery.pyc (11121B)
Ñò DVc@sddklZdddgZdZdefd„ƒYZdefd„ƒYZdefd „ƒYZdefd „ƒYZ d S( iÿÿÿÿ(t_utilst DiscoveryListt V2Discoveryt V3Discoveryit DiscoveryBasecBsþeZdZeiƒddd„ƒZed„ƒZei d„ƒZed„ƒZ e i d„ƒZ ed„ƒZ ed„ƒZ e i d„ƒZ ed „ƒZ e i d „ƒZ eiƒd dd „ƒZed „ƒZeidƒd„ƒZRS(s!The basic version discovery structure. All version discovery elements should have access to these values. :param string id: The version id for this version entry. :param string status: The status of this entry. :param DateTime updated: When the API was last updated. cCsLtt|ƒiƒ||_|pd|_|ptidtƒ|_dS(Ntstabletdays( tsuperRt__init__tidtstatustutilst before_utcnowt_DEFAULT_DAYS_AGOtupdated(tselfR R R((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR!s cCs |idƒS(NR (tget(R((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR )scCs||deZdZeiƒdeed„ƒZd„Zd„Z RS(sA Version element for a V3 identity service endpoint. Provides some default values and helper methods for creating a v3 endpoint version structure. Clients should use this instead of creating their own structures. :param href: The url that this entry should point to. :param string id: The version id that should be reported. (optional) Defaults to 'v3.0'. :param bool json: Add JSON media-type elements to the structure. :param bool xml: Add XML media-type elements to the structure. cKs[tt|ƒi|pd||i|ƒ|o|iƒn|o|iƒndS(Nsv3.0(RRRRtadd_json_media_typetadd_xml_media_type(RRR tjsontxmlR,((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyRŸs   cCs|iddddƒdS(s Add the JSON media-type links. The standard structure includes a list of media-types that the endpoint supports. Add JSON to the list. Rsapplication/jsonRs*application/vnd.openstack.identity-v3+jsonN(R (R((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR1ªscCs|iddddƒdS(sžAdd the XML media-type links. The standard structure includes a list of media-types that the endpoint supports. Add XML to the list. Rsapplication/xmlRs)application/vnd.openstack.identity-v3+xmlN(R (R((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR2³sN( R!R"R#R R$R%R0RR1R2(((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR‘s    cBs}eZdZdZeidƒdeeddddeeddeed„ ƒZe d„ƒZ d„Z d„Z d„Z RS( sAA List of version elements. Creates a correctly structured list of identity service endpoints for use in testing with discovery. :param string href: The url that this should be based at. :param bool v2: Add a v2 element. :param bool v3: Add a v3 element. :param string v2_status: The status to use for the v2 element. :param DateTime v2_updated: The update time to use for the v2 element. :param bool v2_html: True to add a html link to the v2 element. :param bool v2_pdf: True to add a pdf link to the v2 element. :param string v3_status: The status to use for the v3 element. :param DateTime v3_updated: The update time to use for the v3 element. :param bool v3_json: True to add a html link to the v2 element. :param bool v3_xml: True to add a pdf link to the v2 element. shttp://keystone.host:5000/ic CsÆtt|ƒidhgd6ƒ|p|i}|oB|idƒd}|i|d|d|d|d|d | ƒn|oB|idƒd }|i|d|d| d| d | d | ƒndS( Ntversionstvaluest/s/v2.0R R RR*R+s/v3R3R4(RRRtTEST_URLtrstriptadd_v2tadd_v3(RRtv2tv3tv2_idtv3_idt v2_statust v2_updatedtv2_htmltv2_pdft v3_statust v3_updatedtv3_jsontv3_xmltv2_hreftv3_href((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyRÒs cCs |ddS(NR5R6((R((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR5äscCs|ii|ƒdS(s{Add a new version structure to the list. :param dict version: A new version structure to add to the list. N(R5R(Rtversion((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyt add_versionèscKs t||}|i|ƒ|S(s[Add a v2 version to the list. The parameters are the same as V2Discovery. (RRK(RRR,tobj((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR:ïs cKs t||}|i|ƒ|S(s[Add a v3 version to the list. The parameters are the same as V3Discovery. (RRK(RRR,RL((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR;øs N(R!R"R#R8R R$R%R0RR&R5RKR:R;(((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyR½s    N( t keystoneauth1RR t__all__R tdictRRRR(((sF/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/fixture/discovery.pyt s I1,