Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Bump SDK to 2.1.3 #45

Open
wants to merge 1 commit into
base: release/saint-louis
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions docs/NodeInfoResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | |
Expand Down
2 changes: 1 addition & 1 deletion hoprd_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion hoprd_sdk/api_client.py.orig
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion hoprd_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
56 changes: 55 additions & 1 deletion hoprd_sdk/models/node_info_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading