diff --git a/README.md b/README.md index 61c75b4..5f2717d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This Rest API enables developers to interact with a hoprd node programatically t This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 3.1.0 -- Package version: 2.1.2 +- Package version: 2.1.3 - Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen ## Requirements. diff --git a/docs/NodeInfoResponse.md b/docs/NodeInfoResponse.md index d267cf5..c404387 100644 --- a/docs/NodeInfoResponse.md +++ b/docs/NodeInfoResponse.md @@ -13,6 +13,8 @@ Name | Type | Description | Notes **hopr_node_safe** | **str** | | **hopr_node_safe_registry** | **str** | | **hopr_token** | **str** | | +**indexer_block** | **int** | | +**indexer_checksum** | **str** | | **is_eligible** | **bool** | | **listening_address** | **list[str]** | | **network** | **str** | | diff --git a/hoprd_sdk/api_client.py b/hoprd_sdk/api_client.py index becb8fc..2e7a63a 100644 --- a/hoprd_sdk/api_client.py +++ b/hoprd_sdk/api_client.py @@ -73,7 +73,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.1.2/python' + self.user_agent = 'Swagger-Codegen/2.1.3/python' def __enter__(self): return self diff --git a/hoprd_sdk/api_client.py.orig b/hoprd_sdk/api_client.py.orig index 5b851bc..53c1103 100644 --- a/hoprd_sdk/api_client.py.orig +++ b/hoprd_sdk/api_client.py.orig @@ -72,7 +72,7 @@ class ApiClient(object): self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.1.2/python' + self.user_agent = 'Swagger-Codegen/2.1.3/python' def __del__(self): self.pool.close() diff --git a/hoprd_sdk/configuration.py b/hoprd_sdk/configuration.py index 5d1b922..cb73af1 100644 --- a/hoprd_sdk/configuration.py +++ b/hoprd_sdk/configuration.py @@ -250,5 +250,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 3.1.0\n"\ - "SDK Package Version: 2.1.2".\ + "SDK Package Version: 2.1.3".\ format(env=sys.platform, pyversion=sys.version) diff --git a/hoprd_sdk/models/node_info_response.py b/hoprd_sdk/models/node_info_response.py index b442329..9b745cb 100644 --- a/hoprd_sdk/models/node_info_response.py +++ b/hoprd_sdk/models/node_info_response.py @@ -38,6 +38,8 @@ class NodeInfoResponse(object): 'hopr_node_safe': 'str', 'hopr_node_safe_registry': 'str', 'hopr_token': 'str', + 'indexer_block': 'int', + 'indexer_checksum': 'str', 'is_eligible': 'bool', 'listening_address': 'list[str]', 'network': 'str' @@ -54,12 +56,14 @@ class NodeInfoResponse(object): 'hopr_node_safe': 'hoprNodeSafe', 'hopr_node_safe_registry': 'hoprNodeSafeRegistry', 'hopr_token': 'hoprToken', + 'indexer_block': 'indexerBlock', + 'indexer_checksum': 'indexerChecksum', 'is_eligible': 'isEligible', 'listening_address': 'listeningAddress', 'network': 'network' } - def __init__(self, announced_address=None, chain=None, channel_closure_period=None, connectivity_status=None, hopr_channels=None, hopr_management_module=None, hopr_network_registry=None, hopr_node_safe=None, hopr_node_safe_registry=None, hopr_token=None, is_eligible=None, listening_address=None, network=None): # noqa: E501 + def __init__(self, announced_address=None, chain=None, channel_closure_period=None, connectivity_status=None, hopr_channels=None, hopr_management_module=None, hopr_network_registry=None, hopr_node_safe=None, hopr_node_safe_registry=None, hopr_token=None, indexer_block=None, indexer_checksum=None, is_eligible=None, listening_address=None, network=None): # noqa: E501 """NodeInfoResponse - a model defined in Swagger""" # noqa: E501 self._announced_address = None self._chain = None @@ -71,6 +75,8 @@ def __init__(self, announced_address=None, chain=None, channel_closure_period=No self._hopr_node_safe = None self._hopr_node_safe_registry = None self._hopr_token = None + self._indexer_block = None + self._indexer_checksum = None self._is_eligible = None self._listening_address = None self._network = None @@ -85,6 +91,8 @@ def __init__(self, announced_address=None, chain=None, channel_closure_period=No self.hopr_node_safe = hopr_node_safe self.hopr_node_safe_registry = hopr_node_safe_registry self.hopr_token = hopr_token + self.indexer_block = indexer_block + self.indexer_checksum = indexer_checksum self.is_eligible = is_eligible self.listening_address = listening_address self.network = network @@ -321,6 +329,52 @@ def hopr_token(self, hopr_token): self._hopr_token = hopr_token + @property + def indexer_block(self): + """Gets the indexer_block of this NodeInfoResponse. # noqa: E501 + + + :return: The indexer_block of this NodeInfoResponse. # noqa: E501 + :rtype: int + """ + return self._indexer_block + + @indexer_block.setter + def indexer_block(self, indexer_block): + """Sets the indexer_block of this NodeInfoResponse. + + + :param indexer_block: The indexer_block of this NodeInfoResponse. # noqa: E501 + :type: int + """ + if indexer_block is None: + raise ValueError("Invalid value for `indexer_block`, must not be `None`") # noqa: E501 + + self._indexer_block = indexer_block + + @property + def indexer_checksum(self): + """Gets the indexer_checksum of this NodeInfoResponse. # noqa: E501 + + + :return: The indexer_checksum of this NodeInfoResponse. # noqa: E501 + :rtype: str + """ + return self._indexer_checksum + + @indexer_checksum.setter + def indexer_checksum(self, indexer_checksum): + """Sets the indexer_checksum of this NodeInfoResponse. + + + :param indexer_checksum: The indexer_checksum of this NodeInfoResponse. # noqa: E501 + :type: str + """ + if indexer_checksum is None: + raise ValueError("Invalid value for `indexer_checksum`, must not be `None`") # noqa: E501 + + self._indexer_checksum = indexer_checksum + @property def is_eligible(self): """Gets the is_eligible of this NodeInfoResponse. # noqa: E501 diff --git a/setup.py b/setup.py index 7b3982c..55d6919 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "hoprd-sdk" -VERSION = "2.1.2" +VERSION = "2.1.3" # To install the library, run the following # # python setup.py install