summaryrefslogtreecommitdiff
path: root/doc/source/index.rst
diff options
context:
space:
mode:
authorAlan Meadows <alan.meadows@gmail.com>2015-03-12 20:21:20 -0700
committerAlan Meadows <alan.meadows@gmail.com>2015-03-13 07:01:55 -0700
commitf00f769da53d7b257a68e57d9f8fcc22648cb601 (patch)
treedcddd4f58606c661f2487d7ca1a01b0e246e0167 /doc/source/index.rst
parentcc4c402f099304e2657347a5e33745de884157c3 (diff)
downloadpython-glanceclient-f00f769da53d7b257a68e57d9f8fcc22648cb601.tar.gz
add examples for properties and doc build script
* add image property examples for v1 and v2 * add standard sphinx doc build helper Change-Id: I2f8dff884d9f22cc582aabcbbbbaea6d6fe725c0
Diffstat (limited to 'doc/source/index.rst')
-rw-r--r--doc/source/index.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 7d0d95f..fc88cbd 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -10,6 +10,7 @@ In order to use the python api directly, you must first obtain an auth token and
>>> image.update(data=open('/tmp/myimage.iso', 'rb'))
>>> print image.status
'active'
+ >>> image.update(properties=dict(my_custom_property='value'))
>>> with open('/tmp/copyimage.iso', 'wb') as f:
for chunk in image.data:
f.write(chunk)