From 0c09d0c525f111111dafb0dcaf069ea2e018c0dd Mon Sep 17 00:00:00 2001 From: GoPlusBot Date: Thu, 6 Jul 2023 09:52:52 +0000 Subject: [PATCH] Update client code for ee41599ea21797be07c8a827396f6ec00efddd1e --- swagger_client/__init__.py | 1 + swagger_client/models/__init__.py | 1 + ...se_wrapper_token_security_locked_detail.py | 168 ++++++++++++++++++ ...ponse_wrapper_token_security_lp_holders.py | 10 +- 4 files changed, 175 insertions(+), 5 deletions(-) create mode 100644 swagger_client/models/response_wrapper_token_security_locked_detail.py diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py index ed7e9c3..5c0893b 100644 --- a/swagger_client/__init__.py +++ b/swagger_client/__init__.py @@ -77,6 +77,7 @@ from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex +from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult from swagger_client.models.response_wrapperobject import ResponseWrapperobject diff --git a/swagger_client/models/__init__.py b/swagger_client/models/__init__.py index 81cfaab..1128878 100644 --- a/swagger_client/models/__init__.py +++ b/swagger_client/models/__init__.py @@ -63,6 +63,7 @@ from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex +from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult from swagger_client.models.response_wrapperobject import ResponseWrapperobject diff --git a/swagger_client/models/response_wrapper_token_security_locked_detail.py b/swagger_client/models/response_wrapper_token_security_locked_detail.py new file mode 100644 index 0000000..4137fad --- /dev/null +++ b/swagger_client/models/response_wrapper_token_security_locked_detail.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperTokenSecurityLockedDetail(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'amount': 'str', + 'opt_time': 'str', + 'end_time': 'str' + } + + attribute_map = { + 'amount': 'amount', + 'opt_time': 'opt_time', + 'end_time': 'end_time' + } + + def __init__(self, amount=None, opt_time=None, end_time=None): # noqa: E501 + """ResponseWrapperTokenSecurityLockedDetail - a model defined in Swagger""" # noqa: E501 + self._amount = None + self._opt_time = None + self._end_time = None + self.discriminator = None + if amount is not None: + self.amount = amount + if opt_time is not None: + self.opt_time = opt_time + if end_time is not None: + self.end_time = end_time + + @property + def amount(self): + """Gets the amount of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + + \"amount\" describes the number of token locked # noqa: E501 + + :return: The amount of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this ResponseWrapperTokenSecurityLockedDetail. + + \"amount\" describes the number of token locked # noqa: E501 + + :param amount: The amount of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + :type: str + """ + + self._amount = amount + + @property + def opt_time(self): + """Gets the opt_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + + \"opt_time\" describes when the token was locked # noqa: E501 + + :return: The opt_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + :rtype: str + """ + return self._opt_time + + @opt_time.setter + def opt_time(self, opt_time): + """Sets the opt_time of this ResponseWrapperTokenSecurityLockedDetail. + + \"opt_time\" describes when the token was locked # noqa: E501 + + :param opt_time: The opt_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + :type: str + """ + + self._opt_time = opt_time + + @property + def end_time(self): + """Gets the end_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + + \"end_time\" describes when the token will be unlocked # noqa: E501 + + :return: The end_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + :rtype: str + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this ResponseWrapperTokenSecurityLockedDetail. + + \"end_time\" describes when the token will be unlocked # noqa: E501 + + :param end_time: The end_time of this ResponseWrapperTokenSecurityLockedDetail. # noqa: E501 + :type: str + """ + + self._end_time = end_time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperTokenSecurityLockedDetail, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperTokenSecurityLockedDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/response_wrapper_token_security_lp_holders.py b/swagger_client/models/response_wrapper_token_security_lp_holders.py index 1bdff5d..be350bf 100644 --- a/swagger_client/models/response_wrapper_token_security_lp_holders.py +++ b/swagger_client/models/response_wrapper_token_security_lp_holders.py @@ -32,7 +32,7 @@ class ResponseWrapperTokenSecurityLpHolders(object): 'is_contract': 'int', 'address': 'str', 'balance': 'str', - 'locked_detail': 'list[str]', + 'locked_detail': 'list[ResponseWrapperTokenSecurityLockedDetail]', 'tag': 'str', 'percent': 'str' } @@ -168,10 +168,10 @@ def balance(self, balance): def locked_detail(self): """Gets the locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 - It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. In every objetc, \"amount\" describes the number of token locked, \"end_time\" describes when the token will be unlocked, \"opt_time\" describes when the token was locked.(Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501 + It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501 :return: The locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 - :rtype: list[str] + :rtype: list[ResponseWrapperTokenSecurityLockedDetail] """ return self._locked_detail @@ -179,10 +179,10 @@ def locked_detail(self): def locked_detail(self, locked_detail): """Sets the locked_detail of this ResponseWrapperTokenSecurityLpHolders. - It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. In every objetc, \"amount\" describes the number of token locked, \"end_time\" describes when the token will be unlocked, \"opt_time\" describes when the token was locked.(Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501 + It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501 :param locked_detail: The locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 - :type: list[str] + :type: list[ResponseWrapperTokenSecurityLockedDetail] """ self._locked_detail = locked_detail