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\dZddlmZddlmZdejfd„ƒYZdejfd„ƒYZdS(s
QoS Specs interface.
iÿÿÿÿ(tbasetQoSSpecscBs eZdZd„Zd„ZRS(sCQoS specs entity represents quality-of-service parameters/requirements.

    A QoS specs is a set of parameters or requirements for quality-of-service
    purpose, which can be associated with volume types (for now).  In future,
    QoS specs may be extended to be associated other entities, such as single
    volume.
    cCsd|jS(Ns<QoSSpecs: %s>(tname(tself((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyt__repr__!scCs|jj|ƒS(N(tmanagertdelete(R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyR$s(t__name__t
__module__t__doc__RR(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyRs	tQoSSpecsManagercBsteZdZeZdd„Zd„Zed„Z	d„Z
d„Zd„Zd„Z
d„Zd	„Zd
„ZRS(s-
    Manage :class:`QoSSpecs` resources.
    cCs|jddƒS(sQGet a list of all qos specs.

        :rtype: list of :class:`QoSSpecs`.
        s
/qos-specst	qos_specs(t_list(Rtsearch_opts((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytlist.scCs|jdtj|ƒdƒS(s‡Get a specific qos specs.

        :param qos_specs: The ID of the :class:`QoSSpecs` to get.
        :rtype: :class:`QoSSpecs`
        s
/qos-specs/%sR(t_getRtgetid(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytget5scCs |jdtj|ƒ|fƒS(säDelete a specific qos specs.

        :param qos_specs: The ID of the :class:`QoSSpecs` to be removed.
        :param force: Flag that indicates whether to delete target qos specs
                      if it was in-use.
        s/qos-specs/%s?force=%s(t_deleteRR(RRtforce((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyR=s	cCs8ii|d6d6}|dj|ƒ|jd|dƒS(sÀCreate a qos specs.

        :param name: Descriptive name of the qos specs, must be unique
        :param specs: A dict of key/value pairs to be set
        :rtype: :class:`QoSSpecs`
        RRs
/qos-specs(tupdatet_create(RRtspecstbody((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytcreateGs
cCs2iid6}|dj|ƒ|jd||ƒS(s±Add/Update keys in qos specs.

        :param qos_specs: The ID of qos specs
        :param specs: A dict of key/value pairs to be set
        :rtype: :class:`QoSSpecs`
        Rs
/qos-specs/%s(Rt_update(RRRR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytset_keysXs
cCs!i|d6}|jd||ƒS(s§Remove keys from a qos specs.

        :param qos_specs: The ID of qos specs
        :param specs: A list of key to be unset
        :rtype: :class:`QoSSpecs`
        tkeyss/qos-specs/%s/delete_keys(R(RRRR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyt
unset_keysgs

cCs|jdtj|ƒdƒS(s¹Get associated entities of a qos specs.

        :param qos_specs: The id of the :class: `QoSSpecs`
        :return: a list of entities that associated with specific qos specs.
        s/qos-specs/%s/associationstqos_associations(RRR(RR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytget_associationstscCsD|jjjdtj|ƒ|fƒ\}}tj||f|ƒS(s½Associate a volume type with specific qos specs.

        :param qos_specs: The qos specs to be associated with
        :param vol_type_id: The volume type id to be associated with
        s&/qos-specs/%s/associate?vol_type_id=%s(tapitclientRRRtcommon_baset
TupleWithMeta(RRtvol_type_idtrespR((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyt	associate}scCsD|jjjdtj|ƒ|fƒ\}}tj||f|ƒS(sµDisassociate qos specs from volume type.

        :param qos_specs: The qos specs to be associated with
        :param vol_type_id: The volume type id to be associated with
        s)/qos-specs/%s/disassociate?vol_type_id=%s(RR RRRR!R"(RRR#R$R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytdisassociateˆscCs>|jjjdtj|ƒƒ\}}tj||f|ƒS(szDisassociate all entities from specific qos specs.

        :param qos_specs: The qos specs to be associated with
        s/qos-specs/%s/disassociate_all(RR RRRR!R"(RRR$R((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pytdisassociate_all“sN(RRR	Rtresource_classtNoneRRtFalseRRRRRR%R&R'(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyR
(s	
			
				N(	R	tcinderclient.apiclientRR!tcinderclienttResourceRtManagerWithFindR
(((sN/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v2/qos_specs.pyt<module>s