Skip to content

Commit 2db6510

Browse files
author
Gregory-Bessonov
authored
Release 1.33.1: Improvements on integration with 3rd party services (#54)
1 parent 4065e94 commit 2db6510

File tree

90 files changed

+125
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+125
-112
lines changed

.readthedocs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Build documentation in the docs/ directory with Sphinx
9+
sphinx:
10+
configuration: docs/conf.py

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ A log of changes by version and date.
66
======= ========== =====
77
Version Date Notes
88
======= ========== =====
9+
1.33.1 03/23/2023 Improvements on integration with 3rd party services
910
1.33.0 03/10/2023 Added support for Pure1 sustainability
1011
1.32.0 02/10/2023 Added FlashArray 2.21 client
1112
1.31.0 01/25/2023 Added FlashBlade 2.7 and 2.8 clients

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# The short X.Y version
3030
version = u'1.33'
3131
# The full version, including alpha/beta/rc tags
32-
release = u'1.33.0'
32+
release = u'1.33.1'
3333

3434

3535
# -- General configuration ---------------------------------------------------

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "py-pure-client"
3-
version = "1.33.0"
3+
version = "1.33.1"
44
description = "Pure Storage Python clients for FlashArray, FlashBlade, and Pure1 APIs"
55
authors = [
66
{ name = "Pure Storage", email = "[email protected]" }
@@ -22,7 +22,7 @@ dependencies = [
2222
'paramiko >=2.11.0, <= 2.12.0',
2323
'pyjwt >=2.0.0, <=2.4.0',
2424
'requests >=2.20.1, <=2.28.1',
25-
'typing >=3.7.4.1, <=3.7.4.3',
25+
'typing >=3.7.4.1, <=3.7.4.3; python_version < "3.5"',
2626
]
2727

2828
[project.urls]

pypureclient/client_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
USER_AGENT_TEMPLATE = 'pypureclient/1.33.0/{prod}/{rest_version}/{sys}/{rel}'
1+
USER_AGENT_TEMPLATE = 'pypureclient/1.33.1/{prod}/{rest_version}/{sys}/{rel}'

pypureclient/flasharray/FA_2_0/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Client(object):
2121
DEFAULT_TIMEOUT = 15.0
2222
DEFAULT_RETRIES = 5
2323
# Format: client/client_version/endpoint/endpoint_version/system/release
24-
USER_AGENT = USER_AGENT_TEMPLATE.format(prod='FA', sys=platform.system(), rel=platform.release())
24+
USER_AGENT = USER_AGENT_TEMPLATE.format(prod='FA', rest_version='2.0', sys=platform.system(), rel=platform.release())
2525

2626
def __init__(self, target, id_token=None, private_key_file=None, private_key_password=None,
2727
username=None, client_id=None, key_id=None, issuer=None, api_token=None,

pypureclient/flasharray/FA_2_0/models/qos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def __setattr__(self, key, value):
6666
if value < 1048576:
6767
raise ValueError("Invalid value for `bandwidth_limit`, must be a value greater than or equal to `1048576`")
6868
if key == "iops_limit" and value is not None:
69-
if value > 104857600:
70-
raise ValueError("Invalid value for `iops_limit`, value must be less than or equal to `104857600`")
69+
if value > 100000000:
70+
raise ValueError("Invalid value for `iops_limit`, value must be less than or equal to `100000000`")
7171
if value < 100:
7272
raise ValueError("Invalid value for `iops_limit`, must be a value greater than or equal to `100`")
7373
self.__dict__[key] = value

pypureclient/flasharray/FA_2_1/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Client(object):
2121
DEFAULT_TIMEOUT = 15.0
2222
DEFAULT_RETRIES = 5
2323
# Format: client/client_version/endpoint/endpoint_version/system/release
24-
USER_AGENT = USER_AGENT_TEMPLATE.format(prod='FA', sys=platform.system(), rel=platform.release())
24+
USER_AGENT = USER_AGENT_TEMPLATE.format(prod='FA', rest_version='2.1', sys=platform.system(), rel=platform.release())
2525

2626
def __init__(self, target, id_token=None, private_key_file=None, private_key_password=None,
2727
username=None, client_id=None, key_id=None, issuer=None, api_token=None,

pypureclient/flasharray/FA_2_1/models/qos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def __setattr__(self, key, value):
6666
if value < 1048576:
6767
raise ValueError("Invalid value for `bandwidth_limit`, must be a value greater than or equal to `1048576`")
6868
if key == "iops_limit" and value is not None:
69-
if value > 104857600:
70-
raise ValueError("Invalid value for `iops_limit`, value must be less than or equal to `104857600`")
69+
if value > 100000000:
70+
raise ValueError("Invalid value for `iops_limit`, value must be less than or equal to `100000000`")
7171
if value < 100:
7272
raise ValueError("Invalid value for `iops_limit`, must be a value greater than or equal to `100`")
7373
self.__dict__[key] = value

pypureclient/flasharray/FA_2_10/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Client(object):
2121
DEFAULT_TIMEOUT = 15.0
2222
DEFAULT_RETRIES = 5
2323
# Format: client/client_version/endpoint/endpoint_version/system/release
24-
USER_AGENT = USER_AGENT_TEMPLATE.format(prod='FA', sys=platform.system(), rel=platform.release())
24+
USER_AGENT = USER_AGENT_TEMPLATE.format(prod='FA', rest_version='2.10', sys=platform.system(), rel=platform.release())
2525

2626
def __init__(self, target, id_token=None, private_key_file=None, private_key_password=None,
2727
username=None, client_id=None, key_id=None, issuer=None, api_token=None,

0 commit comments

Comments
 (0)