Skip to content

Commit 4dcfcad

Browse files
fa-ui-botmtillajev
authored andcommitted
Release 1.73.1
1 parent af37815 commit 4dcfcad

File tree

5 files changed

+10
-21
lines changed

5 files changed

+10
-21
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "py-pure-client"
3-
version = "1.73.0"
3+
version = "1.73.1"
44
description = "Pure Storage Python clients for FlashArray, FlashBlade, and Pure1 APIs"
55
authors = [
66
{ name = "Pure Storage", email = "support@purestorage.com" }

pypureclient/_transport/configuration.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,11 @@ def auth_settings(self):
177177
auth['AuthorizationHeader'] = {
178178
'type': 'api_key',
179179
'in': 'header',
180-
'key': 'x-auth-token',
180+
'key': 'Authorization',
181181
'value': self.get_api_key_with_prefix(
182182
'AuthorizationHeader',
183183
),
184184
}
185-
if 'ApiToken' in self.api_key:
186-
auth['ApiToken'] = {
187-
'type': 'api_key',
188-
'in': 'header',
189-
'key': 'api-token',
190-
'value': self.get_api_key_with_prefix(
191-
'ApiToken',
192-
),
193-
}
194185
return auth
195186
def get_host_settings(self):
196187
"""Gets an array of host settings
@@ -199,11 +190,7 @@ def get_host_settings(self):
199190
"""
200191
return [
201192
{
202-
'url': "http://[array]",
203-
'description': "No description provided",
204-
},
205-
{
206-
'url': "https://[array]",
193+
'url': "https://api-staging.pure1.purestorage.com",
207194
'description': "No description provided",
208195
}
209196
]

pypureclient/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__name__ = 'py-pure-client'
2-
__version__ = '1.73.0'
2+
__version__ = '1.73.1'
33
__default_user_agent__ = 'pure/{}/{}'.format(__name__, __version__)

pypureclient/token_manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,17 @@ def _request_access_token(self):
182182
'subject_token_type': 'urn:ietf:params:oauth:token-type:jwt',
183183
'subject_token': self._id_token}
184184
headers = {
185-
Headers.x_request_id: str(uuid.uuid4())
185+
Headers.x_request_id: str(uuid.uuid4()),
186+
'Content-Type': 'application/x-www-form-urlencoded',
187+
'accept': 'application/json',
186188
}
187189
try:
188190
with create_api_client(self._configuration, self._user_agent) as api_client:
189191
response_data = api_client.call_api(
190192
resource_path=self._token_endpoint,
191193
method="POST",
192194
header_params=headers,
193-
body=post_data,
195+
post_params=post_data,
194196
response_types_map = {'200': "bytearray"},
195197
_return_http_data_only=True,
196198
_request_timeout=self._timeout

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from setuptools import setup, find_packages # noqa: H301
1010

1111
NAME = 'py-pure-client'
12-
VERSION = '1.73.0'
12+
VERSION = '1.73.1'
1313

1414
REQUIRES = [
1515
'certifi >= 2024.07.04',
@@ -33,7 +33,7 @@
3333
author='Pure Storage',
3434
author_email='openconnect@purestorage.com',
3535
url='https://github.com/PureStorage-OpenConnect/py-pure-client',
36-
download_url='https://github.com/PureStorage-OpenConnect/py-pure-client/archive/1.73.0.tar.gz',
36+
download_url='https://github.com/PureStorage-OpenConnect/py-pure-client/archive/1.73.1.tar.gz',
3737
keywords=['Swagger', 'Pure Storage', 'Python', 'clients', 'REST', 'API', 'FlashArray', 'FlashBlade', 'Pure1'],
3838
license='BSD 2-Clause',
3939
license_files = ('LICENSE.txt',),

0 commit comments

Comments
 (0)