From 652835cbd485c95a86da27f8b661679727ec6ea0 Mon Sep 17 00:00:00 2001 From: Iridium User Date: Fri, 26 Mar 2021 23:06:11 +0000 Subject: [PATCH] This commit contains changes for releasing v1.12.2 of the Python REST SDK - This commit restores Python 3.7+ compatibility by renaming the occurrences of `async` properties with `periodic`. --- PKG-INFO | 4 +-- README.md | 16 ++++++++-- docs/PerformanceReplication.md | 2 +- docs/RelationshipPerformanceReplication.md | 2 +- docs/index.md | 16 ++++++++-- purity_fb/README.md | 16 ++++++++-- .../models/performance_replication.py | 30 +++++++++---------- .../relationship_performance_replication.py | 30 +++++++++---------- .../models/performance_replication.py | 30 +++++++++---------- .../relationship_performance_replication.py | 30 +++++++++---------- purity_fb/purity_fb_1dot12/api_client.py | 2 +- purity_fb/purity_fb_1dot12/configuration.py | 2 +- .../models/performance_replication.py | 30 +++++++++---------- .../relationship_performance_replication.py | 30 +++++++++---------- .../models/performance_replication.py | 30 +++++++++---------- .../relationship_performance_replication.py | 30 +++++++++---------- setup.py | 4 +-- 17 files changed, 167 insertions(+), 137 deletions(-) diff --git a/PKG-INFO b/PKG-INFO index 5b4b89e..4a88432 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -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 diff --git a/README.md b/README.md index c16fe9c..c96600a 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 diff --git a/docs/PerformanceReplication.md b/docs/PerformanceReplication.md index 193e20f..7c1df93 100644 --- a/docs/PerformanceReplication.md +++ b/docs/PerformanceReplication.md @@ -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) diff --git a/docs/RelationshipPerformanceReplication.md b/docs/RelationshipPerformanceReplication.md index a8d467c..8d410ad 100644 --- a/docs/RelationshipPerformanceReplication.md +++ b/docs/RelationshipPerformanceReplication.md @@ -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] diff --git a/docs/index.md b/docs/index.md index cb9874e..f9aa9fb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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. @@ -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 diff --git a/purity_fb/README.md b/purity_fb/README.md index c16fe9c..c96600a 100644 --- a/purity_fb/README.md +++ b/purity_fb/README.md @@ -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. @@ -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 diff --git a/purity_fb/purity_fb_1dot10/models/performance_replication.py b/purity_fb/purity_fb_1dot10/models/performance_replication.py index 01ffc39..5ede0eb 100644 --- a/purity_fb/purity_fb_1dot10/models/performance_replication.py +++ b/purity_fb/purity_fb_1dot10/models/performance_replication.py @@ -38,23 +38,23 @@ 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 @@ -62,8 +62,8 @@ def __init__(self, id=None, name=None, async=None, time=None): # noqa: E501 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 @@ -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): diff --git a/purity_fb/purity_fb_1dot10/models/relationship_performance_replication.py b/purity_fb/purity_fb_1dot10/models/relationship_performance_replication.py index ad59bb6..4e7cf1b 100644 --- a/purity_fb/purity_fb_1dot10/models/relationship_performance_replication.py +++ b/purity_fb/purity_fb_1dot10/models/relationship_performance_replication.py @@ -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: @@ -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): diff --git a/purity_fb/purity_fb_1dot11/models/performance_replication.py b/purity_fb/purity_fb_1dot11/models/performance_replication.py index 871f9ac..506b739 100644 --- a/purity_fb/purity_fb_1dot11/models/performance_replication.py +++ b/purity_fb/purity_fb_1dot11/models/performance_replication.py @@ -38,23 +38,23 @@ 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 @@ -62,8 +62,8 @@ def __init__(self, id=None, name=None, async=None, time=None): # noqa: E501 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 @@ -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): diff --git a/purity_fb/purity_fb_1dot11/models/relationship_performance_replication.py b/purity_fb/purity_fb_1dot11/models/relationship_performance_replication.py index f2cc373..d8bc97d 100644 --- a/purity_fb/purity_fb_1dot11/models/relationship_performance_replication.py +++ b/purity_fb/purity_fb_1dot11/models/relationship_performance_replication.py @@ -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: @@ -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): diff --git a/purity_fb/purity_fb_1dot12/api_client.py b/purity_fb/purity_fb_1dot12/api_client.py index 36c6f05..57c380b 100644 --- a/purity_fb/purity_fb_1dot12/api_client.py +++ b/purity_fb/purity_fb_1dot12/api_client.py @@ -73,7 +73,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None): self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.12.0/python' + self.user_agent = 'Swagger-Codegen/1.12.2/python' @property def user_agent(self): diff --git a/purity_fb/purity_fb_1dot12/configuration.py b/purity_fb/purity_fb_1dot12/configuration.py index f096043..6848992 100644 --- a/purity_fb/purity_fb_1dot12/configuration.py +++ b/purity_fb/purity_fb_1dot12/configuration.py @@ -234,5 +234,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.12\n"\ - "SDK Package Version: 1.12.0".\ + "SDK Package Version: 1.12.2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/purity_fb/purity_fb_1dot12/models/performance_replication.py b/purity_fb/purity_fb_1dot12/models/performance_replication.py index f93f984..f5a3f73 100644 --- a/purity_fb/purity_fb_1dot12/models/performance_replication.py +++ b/purity_fb/purity_fb_1dot12/models/performance_replication.py @@ -38,23 +38,23 @@ 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 @@ -62,8 +62,8 @@ def __init__(self, id=None, name=None, async=None, time=None): # noqa: E501 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 @@ -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): diff --git a/purity_fb/purity_fb_1dot12/models/relationship_performance_replication.py b/purity_fb/purity_fb_1dot12/models/relationship_performance_replication.py index 3140701..dea9f98 100644 --- a/purity_fb/purity_fb_1dot12/models/relationship_performance_replication.py +++ b/purity_fb/purity_fb_1dot12/models/relationship_performance_replication.py @@ -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: @@ -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): diff --git a/purity_fb/purity_fb_1dot9/models/performance_replication.py b/purity_fb/purity_fb_1dot9/models/performance_replication.py index fdb0385..a983197 100644 --- a/purity_fb/purity_fb_1dot9/models/performance_replication.py +++ b/purity_fb/purity_fb_1dot9/models/performance_replication.py @@ -38,23 +38,23 @@ 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 @@ -62,8 +62,8 @@ def __init__(self, id=None, name=None, async=None, time=None): # noqa: E501 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 @@ -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): diff --git a/purity_fb/purity_fb_1dot9/models/relationship_performance_replication.py b/purity_fb/purity_fb_1dot9/models/relationship_performance_replication.py index c3ef568..d775f9e 100644 --- a/purity_fb/purity_fb_1dot9/models/relationship_performance_replication.py +++ b/purity_fb/purity_fb_1dot9/models/relationship_performance_replication.py @@ -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: @@ -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): diff --git a/setup.py b/setup.py index 69cf89a..32ca2e6 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "purity-fb" -VERSION = "1.12.1" +VERSION = "1.12.2" # To install the library, run the following # # python setup.py install @@ -25,7 +25,7 @@ # If any of these requirements are changed, we also need to update `requirements.md` REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] -PYTHON_REQUIRES = ">=2.7, <3.7" +PYTHON_REQUIRES = ">=2.7, >=3.4" setup( name=NAME,