Skip to content

Commit 711a9a0

Browse files
authored
Merge pull request #37 from tlewis-ps/master
PR for adding version 1.12.2, which restores Python 3.7+ compatibility
2 parents 9f29ad6 + 652835c commit 711a9a0

17 files changed

Lines changed: 167 additions & 137 deletions

PKG-INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Metadata-Version: 1.12.1
1+
Metadata-Version: 1.12.2
22
Name: purity_fb
3-
Version: 1.12.1
3+
Version: 1.12.2
44
Summary: Pure Storage FlashBlade REST 1.12 Python SDK.
55
License: Apache 2.0

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@ Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: 1.12
7-
- Package version: 1.12.1
8-
- Build package: io.swagger.codegen.languages.PythonClientCodegen
7+
- Package version: 1.12.2
8+
- Build package: com.purestorage.generators.PurePythonClientGenerator
99

1010
For more information, please visit [http://www.purestorage.com](http://www.purestorage.com)
1111

1212
## Release Notes
1313

14+
### Package version 1.12.2
15+
16+
#### Fixes
17+
- The `PerformanceReplication` and `RelationshipPerformanceReplication` models have been modified to rename the `async` attribute to `periodic`.
18+
- This potentially **breaking change** was necessary to restore compatibility with Python 3.7+, where `async` is a reserved keyword.
19+
- For users who referenced the `async` property and don't wish to fix broken code at this time, version `1.12.1` of this package should be used.
20+
21+
#### Improvements
22+
- This release is compatible with Python 3.7+
23+
1424
### Package version 1.12.1
1525
- This release of the purity_fb Python REST SDK accompanies the 3.2.0 release of Purity//FB.
1626

@@ -74,7 +84,7 @@ Be sure to visit the [Purity//FB REST API 1.x Release Notes](https://support.pur
7484

7585
## Requirements
7686

77-
* __Python 2.7 or Python 3.4-3.6__
87+
* __Python 2.7+ or Python 3.4+__
7888
* certifi
7989
* python-dateutil
8090
* six >= 1.10

docs/PerformanceReplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **str** | A non-modifiable, globally unique ID chosen by the system. | [optional]
77
**name** | **str** | The name of the object (e.g., a file system or snapshot). | [optional]
8-
**async** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
8+
**periodic** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
99
**time** | **int** | Sample time in milliseconds since UNIX epoch. | [optional]
1010

1111
[[Back to Model list]](index.md#documentation-for-models) [[Back to API list]](index.md#endpoint-properties) [[Back to Overview]](index.md)

docs/RelationshipPerformanceReplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **str** | A non-modifiable, globally unique ID chosen by the system. | [optional]
7-
**async** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
7+
**periodic** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
88
**remote** | [**FixedReferenceNoResourceType**](FixedReferenceNoResourceType.md) | Reference to a remote array. | [optional]
99
**time** | **int** | Sample time in milliseconds since UNIX epoch. | [optional]
1010

docs/index.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@ Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: 1.12
7-
- Package version: 1.12.1
8-
- Build package: io.swagger.codegen.languages.PythonClientCodegen
7+
- Package version: 1.12.2
8+
- Build package: com.purestorage.generators.PurePythonClientGenerator
99

1010
For more information, please visit [http://www.purestorage.com](http://www.purestorage.com)
1111

1212
## Release Notes
1313

14+
### Package version 1.12.2
15+
16+
#### Fixes
17+
- The `PerformanceReplication` and `RelationshipPerformanceReplication` models have been modified to rename the `async` attribute to `periodic`.
18+
- This potentially **breaking change** was necessary to restore compatibility with Python 3.7+, where `async` is a reserved keyword.
19+
- For users who referenced the `async` property and don't wish to fix broken code at this time, version `1.12.1` of this package should be used.
20+
21+
#### Improvements
22+
- This release is compatible with Python 3.7+
23+
1424
### Package version 1.12.1
1525
- This release of the purity_fb Python REST SDK accompanies the 3.2.0 release of Purity//FB.
1626

@@ -74,7 +84,7 @@ Be sure to visit the [Purity//FB REST API 1.x Release Notes](https://support.pur
7484

7585
## Requirements
7686

77-
* __Python 2.7 or Python 3.4-3.6__
87+
* __Python 2.7+ or Python 3.4+__
7888
* certifi
7989
* python-dateutil
8090
* six >= 1.10

purity_fb/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@ Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: 1.12
7-
- Package version: 1.12.1
8-
- Build package: io.swagger.codegen.languages.PythonClientCodegen
7+
- Package version: 1.12.2
8+
- Build package: com.purestorage.generators.PurePythonClientGenerator
99

1010
For more information, please visit [http://www.purestorage.com](http://www.purestorage.com)
1111

1212
## Release Notes
1313

14+
### Package version 1.12.2
15+
16+
#### Fixes
17+
- The `PerformanceReplication` and `RelationshipPerformanceReplication` models have been modified to rename the `async` attribute to `periodic`.
18+
- This potentially **breaking change** was necessary to restore compatibility with Python 3.7+, where `async` is a reserved keyword.
19+
- For users who referenced the `async` property and don't wish to fix broken code at this time, version `1.12.1` of this package should be used.
20+
21+
#### Improvements
22+
- This release is compatible with Python 3.7+
23+
1424
### Package version 1.12.1
1525
- This release of the purity_fb Python REST SDK accompanies the 3.2.0 release of Purity//FB.
1626

@@ -74,7 +84,7 @@ Be sure to visit the [Purity//FB REST API 1.x Release Notes](https://support.pur
7484

7585
## Requirements
7686

77-
* __Python 2.7 or Python 3.4-3.6__
87+
* __Python 2.7+ or Python 3.4+__
7888
* certifi
7989
* python-dateutil
8090
* six >= 1.10

purity_fb/purity_fb_1dot10/models/performance_replication.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,32 @@ class PerformanceReplication(object):
3838
swagger_types = {
3939
'id': 'str',
4040
'name': 'str',
41-
'async': 'ReplicationPerformance',
41+
'periodic': 'ReplicationPerformance',
4242
'time': 'int'
4343
}
4444

4545
attribute_map = {
4646
'id': 'id',
4747
'name': 'name',
48-
'async': 'async',
48+
'periodic': 'async',
4949
'time': 'time'
5050
}
5151

52-
def __init__(self, id=None, name=None, async=None, time=None): # noqa: E501
52+
def __init__(self, id=None, name=None, periodic=None, time=None): # noqa: E501
5353
"""PerformanceReplication - a model defined in Swagger""" # noqa: E501
5454

5555
self._id = None
5656
self._name = None
57-
self._async = None
57+
self._periodic = None
5858
self._time = None
5959
self.discriminator = None
6060

6161
if id is not None:
6262
self.id = id
6363
if name is not None:
6464
self.name = name
65-
if async is not None:
66-
self.async = async
65+
if periodic is not None:
66+
self.periodic = periodic
6767
if time is not None:
6868
self.time = time
6969

@@ -114,27 +114,27 @@ def name(self, name):
114114
self._name = name
115115

116116
@property
117-
def async(self):
118-
"""Gets the async of this PerformanceReplication. # noqa: E501
117+
def periodic(self):
118+
"""Gets the periodic of this PerformanceReplication. # noqa: E501
119119
120120
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
121121
122-
:return: The async of this PerformanceReplication. # noqa: E501
122+
:return: The periodic of this PerformanceReplication. # noqa: E501
123123
:rtype: ReplicationPerformance
124124
"""
125-
return self._async
125+
return self._periodic
126126

127-
@async.setter
128-
def async(self, async):
129-
"""Sets the async of this PerformanceReplication.
127+
@periodic.setter
128+
def periodic(self, periodic):
129+
"""Sets the periodic of this PerformanceReplication.
130130
131131
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
132132
133-
:param async: The async of this PerformanceReplication. # noqa: E501
133+
:param periodic: The periodic of this PerformanceReplication. # noqa: E501
134134
:type: ReplicationPerformance
135135
"""
136136

137-
self._async = async
137+
self._periodic = periodic
138138

139139
@property
140140
def time(self):

purity_fb/purity_fb_1dot10/models/relationship_performance_replication.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,31 @@ class RelationshipPerformanceReplication(object):
3737
"""
3838
swagger_types = {
3939
'id': 'str',
40-
'async': 'ReplicationPerformance',
40+
'periodic': 'ReplicationPerformance',
4141
'remote': 'FixedReferenceNoResourceType',
4242
'time': 'int'
4343
}
4444

4545
attribute_map = {
4646
'id': 'id',
47-
'async': 'async',
47+
'periodic': 'async',
4848
'remote': 'remote',
4949
'time': 'time'
5050
}
5151

52-
def __init__(self, id=None, async=None, remote=None, time=None): # noqa: E501
52+
def __init__(self, id=None, periodic=None, remote=None, time=None): # noqa: E501
5353
"""RelationshipPerformanceReplication - a model defined in Swagger""" # noqa: E501
5454

5555
self._id = None
56-
self._async = None
56+
self._periodic = None
5757
self._remote = None
5858
self._time = None
5959
self.discriminator = None
6060

6161
if id is not None:
6262
self.id = id
63-
if async is not None:
64-
self.async = async
63+
if periodic is not None:
64+
self.periodic = periodic
6565
if remote is not None:
6666
self.remote = remote
6767
if time is not None:
@@ -91,27 +91,27 @@ def id(self, id):
9191
self._id = id
9292

9393
@property
94-
def async(self):
95-
"""Gets the async of this RelationshipPerformanceReplication. # noqa: E501
94+
def periodic(self):
95+
"""Gets the periodic of this RelationshipPerformanceReplication. # noqa: E501
9696
9797
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
9898
99-
:return: The async of this RelationshipPerformanceReplication. # noqa: E501
99+
:return: The periodic of this RelationshipPerformanceReplication. # noqa: E501
100100
:rtype: ReplicationPerformance
101101
"""
102-
return self._async
102+
return self._periodic
103103

104-
@async.setter
105-
def async(self, async):
106-
"""Sets the async of this RelationshipPerformanceReplication.
104+
@periodic.setter
105+
def periodic(self, periodic):
106+
"""Sets the periodic of this RelationshipPerformanceReplication.
107107
108108
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
109109
110-
:param async: The async of this RelationshipPerformanceReplication. # noqa: E501
110+
:param periodic: The periodic of this RelationshipPerformanceReplication. # noqa: E501
111111
:type: ReplicationPerformance
112112
"""
113113

114-
self._async = async
114+
self._periodic = periodic
115115

116116
@property
117117
def remote(self):

purity_fb/purity_fb_1dot11/models/performance_replication.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,32 @@ class PerformanceReplication(object):
3838
swagger_types = {
3939
'id': 'str',
4040
'name': 'str',
41-
'async': 'ReplicationPerformance',
41+
'periodic': 'ReplicationPerformance',
4242
'time': 'int'
4343
}
4444

4545
attribute_map = {
4646
'id': 'id',
4747
'name': 'name',
48-
'async': 'async',
48+
'periodic': 'async',
4949
'time': 'time'
5050
}
5151

52-
def __init__(self, id=None, name=None, async=None, time=None): # noqa: E501
52+
def __init__(self, id=None, name=None, periodic=None, time=None): # noqa: E501
5353
"""PerformanceReplication - a model defined in Swagger""" # noqa: E501
5454

5555
self._id = None
5656
self._name = None
57-
self._async = None
57+
self._periodic = None
5858
self._time = None
5959
self.discriminator = None
6060

6161
if id is not None:
6262
self.id = id
6363
if name is not None:
6464
self.name = name
65-
if async is not None:
66-
self.async = async
65+
if periodic is not None:
66+
self.periodic = periodic
6767
if time is not None:
6868
self.time = time
6969

@@ -114,27 +114,27 @@ def name(self, name):
114114
self._name = name
115115

116116
@property
117-
def async(self):
118-
"""Gets the async of this PerformanceReplication. # noqa: E501
117+
def periodic(self):
118+
"""Gets the periodic of this PerformanceReplication. # noqa: E501
119119
120120
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
121121
122-
:return: The async of this PerformanceReplication. # noqa: E501
122+
:return: The periodic of this PerformanceReplication. # noqa: E501
123123
:rtype: ReplicationPerformance
124124
"""
125-
return self._async
125+
return self._periodic
126126

127-
@async.setter
128-
def async(self, async):
129-
"""Sets the async of this PerformanceReplication.
127+
@periodic.setter
128+
def periodic(self, periodic):
129+
"""Sets the periodic of this PerformanceReplication.
130130
131131
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
132132
133-
:param async: The async of this PerformanceReplication. # noqa: E501
133+
:param periodic: The periodic of this PerformanceReplication. # noqa: E501
134134
:type: ReplicationPerformance
135135
"""
136136

137-
self._async = async
137+
self._periodic = periodic
138138

139139
@property
140140
def time(self):

0 commit comments

Comments
 (0)