Skip to content

Commit 0e6c703

Browse files
author
Zach Olstein
committed
Version 1.14.0
Adds support for Pure Storage FlashArray REST versions 1.12, 1.13, and 1.14 New Features: - Added the ability to pass custom parameters into underlying HTTP request. Added the parameter request_kwargs which takes a dictionary that we will pass into each call to requests.request, allowing users to customize (e.g.) call timeouts. See the documentation of the requests library for more information about supported parameters. New APIs: - set_volume(self, volume, pgroup): Set an attribute of a volume. - create_conglomerate_volume(self, volume): Create a conglomerate volume. Requires the use of REST API 1.13 or later. - move_volume(self, volume, container): Move a volume to a new pod or vgroup. Requires the use of REST API 1.13 or later. - list_admins(self, **kwargs): Return a list of dictionaries desribing local admins. Requires use of REST API 1.14 or later. - create_admin(self, admin, **kwargs): Create an admin. Requires use of REST API 1.14 or later. - delete_admin(self, admin, **kwargs): Delete an admin. Requires use of REST API 1.14 or later. - set_admin(self, admin, **kwargs): Set an attribute of an admin. Requires use of REST API 1.14 or later. - get_admin(self, admin): Return a dictionary describing an admin. - create_vgroup(self, vgroup): Create a vgroup. Requires use of REST API 1.13 or later. - destroy_vgroup(self, vgroup): Destroy a vgroup. Requires use of REST API 1.13 or later. - eradicate_vgroup(self, vgroup): Eradicate a vgroup. Requires use of REST API 1.13 or later. - get_vgroup(self, vgroup, **kwargs): Return a dictionary describing a vgroup. Requires use of REST API 1.13 or later. - list_vgroups(self, vgroup, **kwargs): Return a list of dictionaries describing each vgroup. Requires use of REST API 1.13 or later. - recover_vgroup(self, vgroup): Recover a destroyed vgroup. Requires use of REST API 1.13 or later. - rename_vgroup(self, vgroup): Rename a vgroup. Requires use of REST API 1.13 or later. - set_vgroup(self, vgroup, **kwargs): Set an attribute of a vgroup. Requires use of REST API 1.13 or later. - create_pod(self, pod): Create a pod. Requires use of REST API 1.13 or later. - clone_pod(self, source, dest, **kwargs): Clone an existing pod to a new one. Requires use of REST API 1.13 or later. - destroy_pod(self, pod): Destroy a pod. Requires use of REST API 1.13 or later. - eradicate_pod(self, pod): Eradicate a pod. Requires use of REST API 1.13 or later. - get_pod(self, pod, **kwargs): Return a dictionary describing a pod. Requires use of REST API 1.13 or later. - add_pod(self, pod, array): Add an array to a pod. Requires use of REST API 1.13 or later. - remove_pod(self, pod, array): Remove an array from a pod. Requires use of REST API 1.13 or later. - list_pods(self, **kwargs): Return a list of dictionaries describing each pod. Requires use of REST API 1.13 or later. - rename_pod(self, pod, name): Rename a pod. Requires use of REST API 1.13 or later. - recover_pod(self, pod): Recover a destroyed pod. Requires use of REST API 1.13 or later. - list_certificates(self): Return a list of dictionaries describing each certificate. Requires use of REST API 1.12 or later. - create_certificate(self, name, **kwargs): Create a new certificate. Requires use of REST API 1.12 or later. - delete_certificate(self, name, **kwargs): Delete a certificate. Requires use of REST API 1.12 or later. - create_kmip(self, name, **kwargs): Create a kmip configuration. Requires use of REST API 1.12 or later. - delete_kmip(self, name, **kwargs): Delete a kmip configuration. Requires use of REST API 1.12 or later. - list_kmip(self: Return a list of dictionaries describing each kmip configuration. Requires use of REST API 1.12 or later. - get_kmip(self, name): Return a dictionary describing the kmip configuration. Requires use of REST API 1.12 or later. - set_kmip(self, name, **kwargs): Set an attribute of a kmip configuration. Requires use of REST API 1.12 or later. - test_kmip(self, name): Test a kmip configuration. Requires use of REST API 1.12 or later. - get_smtp(self): Return a dictionary describing the smtp configuration. Requires use of REST API 1.14 or later. - set_smtp(self): Set an attribute of the smtp configuration. Requires use of REST API 1.14 or later.
1 parent 43934a7 commit 0e6c703

File tree

7 files changed

+895
-134
lines changed

7 files changed

+895
-134
lines changed

README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ This library requires the use of python 2.6 or later and the third-party
1111
library "requests".
1212

1313
Additionally, this library can only be used communicate with Flash Arrays that
14-
support one or more REST API versions between 1.0 and 1.11; currently, this
14+
support one or more REST API versions between 1.0 and 1.14; currently, this
1515
includes any Flash Array running Purity 3.4.0 or later.
1616

1717

1818
Capabilities
1919
============
20-
This library supports all functionality offered by REST API versions up to 1.11.
20+
This library supports all functionality offered by REST API versions up to 1.14.
2121

2222
Note that different versions of the REST API offer different functionality, and
2323
some operations may be unusable except on certain versions of the REST API. For
@@ -47,13 +47,10 @@ From the root directory of the rest-client
4747
$ PYTHONPATH=$(pwd):$PYTHONPATH py.test test/*.py
4848

4949

50-
51-
5250
Files
5351
=====
5452
* purestorage/ -- Contains library code.
5553
* docs/ -- Contains API documentation, Makefile and conf.py.
5654
* CHANGES.rst -- Library change log.
5755
* LICENSE.txt -- Library BSD 2-Clause license.
5856
* README.txt -- This document.
59-

docs/changelog.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Version Date Notes
1212
1.6.1 05/30/2016 Minor bug fixes and sync code between GitHub and PyPI
1313
1.8.0 11/02/2016 Add support for REST 1.7 and 1.8
1414
1.11.0 09/05/2017 Add support for REST 1.9, 1.10, and 1.11
15-
1.11.1 09/06/2017 Minor setup.py change for new PyPI interface
16-
1.11.2 09/07/2017 Minor setup.py change for new PyPI interface
17-
1.11.3 09/07/2017 Minor setup.py change for new PyPI interface
15+
1.11.1 09/06/2017 Minor setup.py change for new PyPI interface
16+
1.11.2 09/07/2017 Minor setup.py change for new PyPI interface
17+
1.11.3 09/07/2017 Minor setup.py change for new PyPI interface
18+
1.14.0 04/27/2017 Add support for REST 1.12, 1.13, and 1.14
1819
======= ========== =====

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
# built documents.
5353
#
5454
# The short X.Y version.
55-
version = '1.11'
55+
version = '1.14'
5656
# The full version, including alpha/beta/rc tags.
57-
release = '1.11.3'
57+
release = '1.14.0'
5858

5959
# The language for content autogenerated by Sphinx. Refer to documentation
6060
# for a list of supported languages.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Pure Storage FlashArray REST Client Documentation
2-
================================================
2+
=================================================
33

44
.. toctree::
55
:hidden:

0 commit comments

Comments
 (0)