Skip to content

Commit

Permalink
Merge pull request #37 from tlewis-ps/master
Browse files Browse the repository at this point in the history
PR for adding version 1.12.2, which restores Python 3.7+ compatibility
  • Loading branch information
tlewis-ps authored Mar 27, 2021
2 parents 9f29ad6 + 652835c commit 711a9a0
Show file tree
Hide file tree
Showing 17 changed files with 167 additions and 137 deletions.
4 changes: 2 additions & 2 deletions PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Metadata-Version: 1.12.1
Metadata-Version: 1.12.2
Name: purity_fb
Version: 1.12.1
Version: 1.12.2
Summary: Pure Storage FlashBlade REST 1.12 Python SDK.
License: Apache 2.0
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

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

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

## Release Notes

### Package version 1.12.2

#### Fixes
- The `PerformanceReplication` and `RelationshipPerformanceReplication` models have been modified to rename the `async` attribute to `periodic`.
- This potentially **breaking change** was necessary to restore compatibility with Python 3.7+, where `async` is a reserved keyword.
- 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.

#### Improvements
- This release is compatible with Python 3.7+

### Package version 1.12.1
- This release of the purity_fb Python REST SDK accompanies the 3.2.0 release of Purity//FB.

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

## Requirements

* __Python 2.7 or Python 3.4-3.6__
* __Python 2.7+ or Python 3.4+__
* certifi
* python-dateutil
* six >= 1.10
Expand Down
2 changes: 1 addition & 1 deletion docs/PerformanceReplication.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | A non-modifiable, globally unique ID chosen by the system. | [optional]
**name** | **str** | The name of the object (e.g., a file system or snapshot). | [optional]
**async** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
**periodic** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
**time** | **int** | Sample time in milliseconds since UNIX epoch. | [optional]

[[Back to Model list]](index.md#documentation-for-models) [[Back to API list]](index.md#endpoint-properties) [[Back to Overview]](index.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/RelationshipPerformanceReplication.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | A non-modifiable, globally unique ID chosen by the system. | [optional]
**async** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
**periodic** | [**ReplicationPerformance**](ReplicationPerformance.md) | Total bytes transmitted or received per second for asynchronous replication. | [optional]
**remote** | [**FixedReferenceNoResourceType**](FixedReferenceNoResourceType.md) | Reference to a remote array. | [optional]
**time** | **int** | Sample time in milliseconds since UNIX epoch. | [optional]

Expand Down
16 changes: 13 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

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

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

## Release Notes

### Package version 1.12.2

#### Fixes
- The `PerformanceReplication` and `RelationshipPerformanceReplication` models have been modified to rename the `async` attribute to `periodic`.
- This potentially **breaking change** was necessary to restore compatibility with Python 3.7+, where `async` is a reserved keyword.
- 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.

#### Improvements
- This release is compatible with Python 3.7+

### Package version 1.12.1
- This release of the purity_fb Python REST SDK accompanies the 3.2.0 release of Purity//FB.

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

## Requirements

* __Python 2.7 or Python 3.4-3.6__
* __Python 2.7+ or Python 3.4+__
* certifi
* python-dateutil
* six >= 1.10
Expand Down
16 changes: 13 additions & 3 deletions purity_fb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@ Pure Storage FlashBlade REST 1.12 Python SDK. Compatible with REST API versions
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

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

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

## Release Notes

### Package version 1.12.2

#### Fixes
- The `PerformanceReplication` and `RelationshipPerformanceReplication` models have been modified to rename the `async` attribute to `periodic`.
- This potentially **breaking change** was necessary to restore compatibility with Python 3.7+, where `async` is a reserved keyword.
- 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.

#### Improvements
- This release is compatible with Python 3.7+

### Package version 1.12.1
- This release of the purity_fb Python REST SDK accompanies the 3.2.0 release of Purity//FB.

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

## Requirements

* __Python 2.7 or Python 3.4-3.6__
* __Python 2.7+ or Python 3.4+__
* certifi
* python-dateutil
* six >= 1.10
Expand Down
30 changes: 15 additions & 15 deletions purity_fb/purity_fb_1dot10/models/performance_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,32 @@ class PerformanceReplication(object):
swagger_types = {
'id': 'str',
'name': 'str',
'async': 'ReplicationPerformance',
'periodic': 'ReplicationPerformance',
'time': 'int'
}

attribute_map = {
'id': 'id',
'name': 'name',
'async': 'async',
'periodic': 'async',
'time': 'time'
}

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

self._id = None
self._name = None
self._async = None
self._periodic = None
self._time = None
self.discriminator = None

if id is not None:
self.id = id
if name is not None:
self.name = name
if async is not None:
self.async = async
if periodic is not None:
self.periodic = periodic
if time is not None:
self.time = time

Expand Down Expand Up @@ -114,27 +114,27 @@ def name(self, name):
self._name = name

@property
def async(self):
"""Gets the async of this PerformanceReplication. # noqa: E501
def periodic(self):
"""Gets the periodic of this PerformanceReplication. # noqa: E501
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
:return: The async of this PerformanceReplication. # noqa: E501
:return: The periodic of this PerformanceReplication. # noqa: E501
:rtype: ReplicationPerformance
"""
return self._async
return self._periodic

@async.setter
def async(self, async):
"""Sets the async of this PerformanceReplication.
@periodic.setter
def periodic(self, periodic):
"""Sets the periodic of this PerformanceReplication.
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
:param async: The async of this PerformanceReplication. # noqa: E501
:param periodic: The periodic of this PerformanceReplication. # noqa: E501
:type: ReplicationPerformance
"""

self._async = async
self._periodic = periodic

@property
def time(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,31 @@ class RelationshipPerformanceReplication(object):
"""
swagger_types = {
'id': 'str',
'async': 'ReplicationPerformance',
'periodic': 'ReplicationPerformance',
'remote': 'FixedReferenceNoResourceType',
'time': 'int'
}

attribute_map = {
'id': 'id',
'async': 'async',
'periodic': 'async',
'remote': 'remote',
'time': 'time'
}

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

self._id = None
self._async = None
self._periodic = None
self._remote = None
self._time = None
self.discriminator = None

if id is not None:
self.id = id
if async is not None:
self.async = async
if periodic is not None:
self.periodic = periodic
if remote is not None:
self.remote = remote
if time is not None:
Expand Down Expand Up @@ -91,27 +91,27 @@ def id(self, id):
self._id = id

@property
def async(self):
"""Gets the async of this RelationshipPerformanceReplication. # noqa: E501
def periodic(self):
"""Gets the periodic of this RelationshipPerformanceReplication. # noqa: E501
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
:return: The async of this RelationshipPerformanceReplication. # noqa: E501
:return: The periodic of this RelationshipPerformanceReplication. # noqa: E501
:rtype: ReplicationPerformance
"""
return self._async
return self._periodic

@async.setter
def async(self, async):
"""Sets the async of this RelationshipPerformanceReplication.
@periodic.setter
def periodic(self, periodic):
"""Sets the periodic of this RelationshipPerformanceReplication.
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
:param async: The async of this RelationshipPerformanceReplication. # noqa: E501
:param periodic: The periodic of this RelationshipPerformanceReplication. # noqa: E501
:type: ReplicationPerformance
"""

self._async = async
self._periodic = periodic

@property
def remote(self):
Expand Down
30 changes: 15 additions & 15 deletions purity_fb/purity_fb_1dot11/models/performance_replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,32 @@ class PerformanceReplication(object):
swagger_types = {
'id': 'str',
'name': 'str',
'async': 'ReplicationPerformance',
'periodic': 'ReplicationPerformance',
'time': 'int'
}

attribute_map = {
'id': 'id',
'name': 'name',
'async': 'async',
'periodic': 'async',
'time': 'time'
}

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

self._id = None
self._name = None
self._async = None
self._periodic = None
self._time = None
self.discriminator = None

if id is not None:
self.id = id
if name is not None:
self.name = name
if async is not None:
self.async = async
if periodic is not None:
self.periodic = periodic
if time is not None:
self.time = time

Expand Down Expand Up @@ -114,27 +114,27 @@ def name(self, name):
self._name = name

@property
def async(self):
"""Gets the async of this PerformanceReplication. # noqa: E501
def periodic(self):
"""Gets the periodic of this PerformanceReplication. # noqa: E501
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
:return: The async of this PerformanceReplication. # noqa: E501
:return: The periodic of this PerformanceReplication. # noqa: E501
:rtype: ReplicationPerformance
"""
return self._async
return self._periodic

@async.setter
def async(self, async):
"""Sets the async of this PerformanceReplication.
@periodic.setter
def periodic(self, periodic):
"""Sets the periodic of this PerformanceReplication.
Total bytes transmitted or received per second for asynchronous replication. # noqa: E501
:param async: The async of this PerformanceReplication. # noqa: E501
:param periodic: The periodic of this PerformanceReplication. # noqa: E501
:type: ReplicationPerformance
"""

self._async = async
self._periodic = periodic

@property
def time(self):
Expand Down
Loading

0 comments on commit 711a9a0

Please sign in to comment.