Merge "Add link for Unset keys and update some links in qos_client"
This commit is contained in:
commit
0c3d9d2679
|
@ -41,8 +41,11 @@ class QosSpecsClient(rest_client.RestClient):
|
|||
def create_qos(self, **kwargs):
|
||||
"""Create a QoS Specification.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-blockstorage-v2.html#createQoSSpec
|
||||
For a full list of available parameters, please refer to the official
|
||||
API reference:
|
||||
http://developer.openstack.org/api-ref/block-storage/v2/index.html
|
||||
?expanded=create-qos-specification-detail
|
||||
#quality-of-service-qos-specifications-qos-specs
|
||||
"""
|
||||
post_body = json.dumps({'qos_specs': kwargs})
|
||||
resp, body = self.post('qos-specs', post_body)
|
||||
|
@ -76,8 +79,11 @@ class QosSpecsClient(rest_client.RestClient):
|
|||
def set_qos_key(self, qos_id, **kwargs):
|
||||
"""Set the specified keys/values of QoS specification.
|
||||
|
||||
Available params: see http://developer.openstack.org/
|
||||
api-ref-blockstorage-v2.html#setQoSKey
|
||||
For a full list of available parameters, please refer to the official
|
||||
API reference:
|
||||
http://developer.openstack.org/api-ref/block-storage/v2/index.html
|
||||
?expanded=set-keys-in-qos-specification-detail
|
||||
#quality-of-service-qos-specifications-qos-specs
|
||||
"""
|
||||
put_body = json.dumps({"qos_specs": kwargs})
|
||||
resp, body = self.put('qos-specs/%s' % qos_id, put_body)
|
||||
|
@ -90,7 +96,11 @@ class QosSpecsClient(rest_client.RestClient):
|
|||
|
||||
:param keys: keys to delete from the QoS specification.
|
||||
|
||||
TODO(jordanP): Add a link once LP #1524877 is fixed.
|
||||
For a full list of available parameters, please refer to the official
|
||||
API reference:
|
||||
http://developer.openstack.org/api-ref/block-storage/v2/index.html
|
||||
?expanded=unset-keys-in-qos-specification-detail
|
||||
#quality-of-service-qos-specifications-qos-specs
|
||||
"""
|
||||
put_body = json.dumps({'keys': keys})
|
||||
resp, body = self.put('qos-specs/%s/delete_keys' % qos_id, put_body)
|
||||
|
|
Loading…
Reference in New Issue