Add reno note for create_object and update_object
Change-Id: I4dfa51cad077e615cc24550b83a5d15862434c92
This commit is contained in:
parent
0391757eab
commit
d0ce33abfa
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- create_object() now has a "metadata" parameter that can be used to create
|
||||||
|
an object with metadata of each key and value pair in that dictionary
|
||||||
|
- Add an update_object() function that updates the metadata of a swift object
|
@ -4689,14 +4689,14 @@ class OpenStackCloud(object):
|
|||||||
'Failed at action ({action}) [{error}]:'.format(**r))
|
'Failed at action ({action}) [{error}]:'.format(**r))
|
||||||
|
|
||||||
def update_object(self, container, name, metadata=None, **headers):
|
def update_object(self, container, name, metadata=None, **headers):
|
||||||
"""Update the metadtata of an object
|
"""Update the metadata of an object
|
||||||
|
|
||||||
:param container: The name of the container the object is in
|
:param container: The name of the container the object is in
|
||||||
:param name: Name for the object within the container.
|
:param name: Name for the object within the container.
|
||||||
:param headers: These will be passed through to the object update
|
|
||||||
API as HTTP Headers.
|
|
||||||
:param metadata: This dict will get changed into headers that set
|
:param metadata: This dict will get changed into headers that set
|
||||||
metadata of the object
|
metadata of the object
|
||||||
|
:param headers: These will be passed through to the object update
|
||||||
|
API as HTTP Headers.
|
||||||
|
|
||||||
:raises: ``OpenStackCloudException`` on operation error.
|
:raises: ``OpenStackCloudException`` on operation error.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user