Skip to content

Commit a9b3755

Browse files
committed
- include 1.17 change
- update documentation
1 parent e2e1d6a commit a9b3755

File tree

5 files changed

+45
-34
lines changed

5 files changed

+45
-34
lines changed

README.rst

Lines changed: 2 additions & 2 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 FlashArrays that
14-
support one or more REST API versions between 1.0 and 1.17; currently, this
14+
support one or more REST API versions between 1.0 and 1.18; currently, this
1515
includes any FlashArray running Purity 3.4.0 or later.
1616

1717

1818
Capabilities
1919
============
20-
This library supports all functionality offered by FlashArray REST API versions from 1.0 up to 1.17.
20+
This library supports all functionality offered by FlashArray REST API versions from 1.0 up to 1.18.
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

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ Version Date Notes
1919
1.14.1 07/09/2018 Add support for managing offload targets.
2020
1.16.0 10/26/2018 Add support for REST 1.15 and 1.16
2121
1.17.0 08/23/2019 Add support for REST 1.17
22+
1.18.0 11/05/2019 Add support for REST 1.18
2223
======= ========== =====

docs/conf.py

Lines changed: 13 additions & 13 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.17'
55+
version = '1.18'
5656
# The full version, including alpha/beta/rc tags.
57-
release = '1.17.0'
57+
release = '1.18.0'
5858

5959
# The language for content autogenerated by Sphinx. Refer to documentation
6060
# for a list of supported languages.
@@ -174,21 +174,21 @@
174174
# -- Options for LaTeX output --------------------------------------------------
175175

176176
latex_elements = {
177-
# The paper size ('letterpaper' or 'a4paper').
178-
#'papersize': 'letterpaper',
177+
# The paper size ('letterpaper' or 'a4paper').
178+
#'papersize': 'letterpaper',
179179

180-
# The font size ('10pt', '11pt' or '12pt').
181-
#'pointsize': '10pt',
180+
# The font size ('10pt', '11pt' or '12pt').
181+
#'pointsize': '10pt',
182182

183-
# Additional stuff for the LaTeX preamble.
184-
#'preamble': '',
183+
# Additional stuff for the LaTeX preamble.
184+
#'preamble': '',
185185
}
186186

187187
# Grouping the document tree into LaTeX files. List of tuples
188188
# (source start file, target name, title, author, documentclass [howto/manual]).
189189
latex_documents = [
190-
('index', 'PureStorageRESTClient.tex', u'Pure Storage REST Client Documentation',
191-
u'Pure Storage', 'manual'),
190+
('index', 'PureStorageRESTClient.tex', u'Pure Storage REST Client Documentation',
191+
u'Pure Storage', 'manual'),
192192
]
193193

194194
# The name of an image file (relative to this directory) to place at the top of
@@ -231,9 +231,9 @@
231231
# (source start file, target name, title, author,
232232
# dir menu entry, description, category)
233233
texinfo_documents = [
234-
('index', 'PureStorageRESTClient', u'Pure Storage REST Client Documentation',
235-
u'Pure Storage', 'PureStorageRESTClient', 'One line description of project.',
236-
'Miscellaneous'),
234+
('index', 'PureStorageRESTClient', u'Pure Storage REST Client Documentation',
235+
u'Pure Storage', 'PureStorageRESTClient', 'One line description of project.',
236+
'Miscellaneous'),
237237
]
238238

239239
# Documents to append as an appendix to all manuals.

purestorage/purestorage.py

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def set_eula(self, **kwargs):
359359
360360
:param \*\*kwargs: See the REST API Guide on your array for the
361361
documentation on the request:
362-
**PUT eula**
362+
**PUT array/eula**
363363
:returns: EULA agreement and a dictionary describing the EULA
364364
acceptance status on the array.
365365
:rtype: ResponseDict
@@ -1177,7 +1177,7 @@ def connect_nfs_offload(self, name, **kwargs):
11771177
:type name: str
11781178
:param \*\*kwargs: See the REST API Guide on your array for the
11791179
documentation on the request:
1180-
**POST offload/nfs/{}**
1180+
**POST nfs_offload/{}**
11811181
:type \*\*kwargs: optional
11821182
11831183
:returns: A dictionary describing the nfs target.
@@ -1193,7 +1193,7 @@ def connect_s3_offload(self, name, **kwargs):
11931193
:type name: str
11941194
:param \*\*kwargs: See the REST API Guide on your array for the
11951195
documentation on the request:
1196-
**POST offload/s3/{}**
1196+
**POST s3_offload/{}**
11971197
:type \*\*kwargs: optional
11981198
11991199
:returns: A dictionary describing the S3 target.
@@ -1273,7 +1273,7 @@ def list_nfs_offload(self, **kwargs):
12731273
12741274
:param \*\*kwargs: See the REST API Guide on your array for the
12751275
documentation on the request:
1276-
**GET offload/nfs**
1276+
**GET nfs_offload**
12771277
:type \*\*kwargs: optional
12781278
12791279
:returns: A list of dictionaries describing NFS offload connections.
@@ -1287,7 +1287,7 @@ def list_s3_offload(self, **kwargs):
12871287
12881288
:param \*\*kwargs: See the REST API Guide on your array for the
12891289
documentation on the request:
1290-
**GET offload/s3**
1290+
**GET s3_offload**
12911291
:type \*\*kwargs: optional
12921292
12931293
:returns: A list of dictionaries describing S3 offload connections.
@@ -1301,7 +1301,7 @@ def list_azure_offload(self, **kwargs):
13011301
13021302
:param \*\*kwargs: See the REST API Guide on your array for the
13031303
documentation on the request:
1304-
**GET offload/azure**
1304+
**GET azure_offload**
13051305
:type \*\*kwargs: optional
13061306
13071307
:returns: A list of dictionaries describing Azure Blob offload connections.
@@ -1339,7 +1339,7 @@ def get_nfs_offload(self, name, **kwargs):
13391339
:type offload: str
13401340
:param \*\*kwargs: See the REST API Guide on your array for the
13411341
documentation on the request:
1342-
**GET offload/nfs/::offload**
1342+
**GET nfs_offload/::offload**
13431343
:type \*\*kwargs: optional
13441344
13451345
:returns: A dictionary describing the nfs offload connection.
@@ -1361,7 +1361,7 @@ def get_s3_offload(self, name, **kwargs):
13611361
:type offload: str
13621362
:param \*\*kwargs: See the REST API Guide on your array for the
13631363
documentation on the request:
1364-
**GET offload/s3/::offload**
1364+
**GET s3_offload/::offload**
13651365
:type \*\*kwargs: optional
13661366
13671367
:returns: A dictionary describing the S3 offload connection.
@@ -1377,7 +1377,7 @@ def get_azure_offload(self, name, **kwargs):
13771377
:type offload: str
13781378
:param \*\*kwargs: See the REST API Guide on your array for the
13791379
documentation on the request:
1380-
**GET offload/azure/::offload**
1380+
**GET azure_offload/::offload**
13811381
:type \*\*kwargs: optional
13821382
13831383
:returns: A dictionary describing the Azure Blob offload connection.
@@ -1419,6 +1419,10 @@ def get_network_interface(self, interface, **kwargs):
14191419
14201420
:param interface: Name of network interface to get information about.
14211421
:type interface: str
1422+
:param \*\*kwargs: See the REST API Guide on your array for the
1423+
documentation on the request:
1424+
**GET network/:network_component**
1425+
:type \*\*kwargs: optional
14221426
14231427
:returns: A dictionary describing the interface.
14241428
:rtype: ResponseDict
@@ -1429,6 +1433,11 @@ def get_network_interface(self, interface, **kwargs):
14291433
def list_network_interfaces(self, **kwargs):
14301434
"""Get a list of dictionaries describing network interfaces.
14311435
1436+
:param \*\*kwargs: See the REST API Guide on your array for the
1437+
documentation on the request:
1438+
**GET network**
1439+
:type \*\*kwargs: optional
1440+
14321441
:returns: A list of dictionaries describing each network interface.
14331442
:rtype: ResponseList
14341443
@@ -3527,6 +3536,10 @@ def get_kmip(self, name, **kwargs):
35273536
35283537
:param name: The name of the KMIP config to operate on.
35293538
:type name: string
3539+
:param \*\*kwargs: See the REST API Guide on your array for the
3540+
documentation on the request:
3541+
**GET kmip/:kmip**
3542+
:type \*\*kwargs: optional
35303543
35313544
:returns: A list of dictionaries containing the requested kmip configuration.
35323545
:rtype: ResponseList
@@ -3760,8 +3773,6 @@ def get_app_node(self, app_name, **kwargs):
37603773
def schedule_maintenance_window(self, **kwargs):
37613774
"""Schedule a maintenance window and return a dictionary describing it.
37623775
3763-
:param name: Name of the maintenance window to be scheduled.
3764-
:type name: str
37653776
:param \*\*kwargs: See the REST API Guide on your array for the
37663777
documentation on the request:
37673778
**POST maintenance_window**
@@ -3771,20 +3782,20 @@ def schedule_maintenance_window(self, **kwargs):
37713782
:rtype: ResponseDict
37723783
37733784
"""
3774-
37753785
return self._request("POST", "maintenance_window", kwargs)
37763786

37773787
def unschedule_maintenance_window(self, **kwargs):
37783788
"""Unschedule a maintenance window and return a dictionary describing it.
37793789
3780-
:param name: Name of the maintenance window to be unscheduled.
3781-
:type name: str
3790+
:param \*\*kwargs: See the REST API Guide on your array for the
3791+
documentation on the request:
3792+
**DELETE maintenance_window**
3793+
:type \*\*kwargs: optional
37823794
37833795
:returns: A dictionary describing the unscheduled maintenance window.
37843796
:rtype: ResponseDict
37853797
37863798
"""
3787-
37883799
return self._request("DELETE", "maintenance_window", kwargs)
37893800

37903801
def list_maintenance_windows(self, **kwargs):
@@ -3924,7 +3935,7 @@ class PureError(Exception):
39243935
"""
39253936
def __init__(self, reason):
39263937
self.reason = reason
3927-
super(PureError, self).__init__()
3938+
super(PureError, self).__init__(reason)
39283939

39293940
def __str__(self):
39303941
return "PureError: {0}".format(self.reason)
@@ -3971,4 +3982,3 @@ def __str__(self):
39713982
"version {1} at {2}: {3}\n{4}")
39723983
return msg.format(self.code, self.rest_version, self.target,
39733984
self.reason, self.text)
3974-

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
setup(
88
name="purestorage",
9-
version="1.17.0",
9+
version="1.18.0",
1010
description="Pure Storage FlashArray REST Client",
1111
keywords=["pure", "storage", "flasharray", "rest", "client"],
1212
url="https://github.com/purestorage/rest-client",
13-
download_url="https://github.com/purestorage/rest-client/archive/1.17.0.tar.gz",
13+
download_url="https://github.com/purestorage/rest-client/archive/1.18.0.tar.gz",
1414
author="Pure Storage",
1515
author_email = "wes@purestorage.com",
1616
license="BSD 2-Clause",

0 commit comments

Comments
 (0)