Skip to content

Commit f81620c

Browse files
authored
Update client code for 874e4929b5b38f33ccf652a72015432c90340a8d (#19)
1 parent a67fc98 commit f81620c

File tree

8 files changed

+111
-111
lines changed

8 files changed

+111
-111
lines changed

swagger_client/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@
4444
from swagger_client.models.dapp_contract_security_response import DappContractSecurityResponse
4545
from swagger_client.models.get_access_token_request import GetAccessTokenRequest
4646
from swagger_client.models.get_access_token_response import GetAccessTokenResponse
47+
from swagger_client.models.get_defi_info_response import GetDefiInfoResponse
48+
from swagger_client.models.get_defi_info_response_result import GetDefiInfoResponseResult
49+
from swagger_client.models.get_defi_info_response_result_owner import GetDefiInfoResponseResultOwner
4750
from swagger_client.models.json_object import JSONObject
48-
from swagger_client.models.mapstringstring import Mapstringstring
51+
from swagger_client.models.map_string_string import MapStringString
4952
from swagger_client.models.parse_abi_data_request import ParseAbiDataRequest
5053
from swagger_client.models.parse_abi_data_response import ParseAbiDataResponse
5154
from swagger_client.models.response_wrapper_address_contract import ResponseWrapperAddressContract
5255
from swagger_client.models.response_wrapper_address_contract_result import ResponseWrapperAddressContractResult
5356
from swagger_client.models.response_wrapper_contract_approve_response import ResponseWrapperContractApproveResponse
5457
from swagger_client.models.response_wrapper_dapp_contract_security_response import ResponseWrapperDappContractSecurityResponse
5558
from swagger_client.models.response_wrapper_get_access_token_response import ResponseWrapperGetAccessTokenResponse
56-
from swagger_client.models.response_wrapper_get_defi_info import ResponseWrapperGetDefiInfo
57-
from swagger_client.models.response_wrapper_get_defi_info_result import ResponseWrapperGetDefiInfoResult
58-
from swagger_client.models.response_wrapper_get_defi_info_result_owner import ResponseWrapperGetDefiInfoResultOwner
5959
from swagger_client.models.response_wrapper_get_nft_info import ResponseWrapperGetNftInfo
6060
from swagger_client.models.response_wrapper_get_nft_info_result import ResponseWrapperGetNftInfoResult
6161
from swagger_client.models.response_wrapper_get_nft_info_result_privileged_burn import ResponseWrapperGetNftInfoResultPrivilegedBurn
@@ -70,7 +70,7 @@
7070
from swagger_client.models.response_wrapper_list_get_chains_list import ResponseWrapperListGetChainsList
7171
from swagger_client.models.response_wrapper_list_get_chains_list_result import ResponseWrapperListGetChainsListResult
7272
from swagger_client.models.response_wrapper_list_json_object import ResponseWrapperListJSONObject
73-
from swagger_client.models.response_wrapper_mapstringstring import ResponseWrapperMapstringstring
73+
from swagger_client.models.response_wrapper_map_string_string import ResponseWrapperMapStringString
7474
from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse
7575
from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite
7676
from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult

swagger_client/api/defi_controller_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_defi_info_using_get(self, contract_addresses, chain_id, **kwargs): # no
4444
:param str contract_addresses: Defi protocol address (required)
4545
:param str chain_id: Chain id, (eth: 1, bsc: 56) (required)
4646
:param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)
47-
:return: ResponseWrapperGetDefiInfo
47+
:return: GetDefiInfoResponse
4848
If the method is called asynchronously,
4949
returns the request thread.
5050
"""
@@ -67,7 +67,7 @@ def get_defi_info_using_get_with_http_info(self, contract_addresses, chain_id, *
6767
:param str contract_addresses: Defi protocol address (required)
6868
:param str chain_id: Chain id, (eth: 1, bsc: 56) (required)
6969
:param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)
70-
:return: ResponseWrapperGetDefiInfo
70+
:return: GetDefiInfoResponse
7171
If the method is called asynchronously,
7272
returns the request thread.
7373
"""
@@ -129,7 +129,7 @@ def get_defi_info_using_get_with_http_info(self, contract_addresses, chain_id, *
129129
body=body_params,
130130
post_params=form_params,
131131
files=local_var_files,
132-
response_type='ResponseWrapperGetDefiInfo', # noqa: E501
132+
response_type='GetDefiInfoResponse', # noqa: E501
133133
auth_settings=auth_settings,
134134
async_req=params.get('async_req'),
135135
_return_http_data_only=params.get('_return_http_data_only'),

swagger_client/models/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
from swagger_client.models.dapp_contract_security_response import DappContractSecurityResponse
3131
from swagger_client.models.get_access_token_request import GetAccessTokenRequest
3232
from swagger_client.models.get_access_token_response import GetAccessTokenResponse
33+
from swagger_client.models.get_defi_info_response import GetDefiInfoResponse
34+
from swagger_client.models.get_defi_info_response_result import GetDefiInfoResponseResult
35+
from swagger_client.models.get_defi_info_response_result_owner import GetDefiInfoResponseResultOwner
3336
from swagger_client.models.json_object import JSONObject
34-
from swagger_client.models.mapstringstring import Mapstringstring
37+
from swagger_client.models.map_string_string import MapStringString
3538
from swagger_client.models.parse_abi_data_request import ParseAbiDataRequest
3639
from swagger_client.models.parse_abi_data_response import ParseAbiDataResponse
3740
from swagger_client.models.response_wrapper_address_contract import ResponseWrapperAddressContract
3841
from swagger_client.models.response_wrapper_address_contract_result import ResponseWrapperAddressContractResult
3942
from swagger_client.models.response_wrapper_contract_approve_response import ResponseWrapperContractApproveResponse
4043
from swagger_client.models.response_wrapper_dapp_contract_security_response import ResponseWrapperDappContractSecurityResponse
4144
from swagger_client.models.response_wrapper_get_access_token_response import ResponseWrapperGetAccessTokenResponse
42-
from swagger_client.models.response_wrapper_get_defi_info import ResponseWrapperGetDefiInfo
43-
from swagger_client.models.response_wrapper_get_defi_info_result import ResponseWrapperGetDefiInfoResult
44-
from swagger_client.models.response_wrapper_get_defi_info_result_owner import ResponseWrapperGetDefiInfoResultOwner
4545
from swagger_client.models.response_wrapper_get_nft_info import ResponseWrapperGetNftInfo
4646
from swagger_client.models.response_wrapper_get_nft_info_result import ResponseWrapperGetNftInfoResult
4747
from swagger_client.models.response_wrapper_get_nft_info_result_privileged_burn import ResponseWrapperGetNftInfoResultPrivilegedBurn
@@ -56,7 +56,7 @@
5656
from swagger_client.models.response_wrapper_list_get_chains_list import ResponseWrapperListGetChainsList
5757
from swagger_client.models.response_wrapper_list_get_chains_list_result import ResponseWrapperListGetChainsListResult
5858
from swagger_client.models.response_wrapper_list_json_object import ResponseWrapperListJSONObject
59-
from swagger_client.models.response_wrapper_mapstringstring import ResponseWrapperMapstringstring
59+
from swagger_client.models.response_wrapper_map_string_string import ResponseWrapperMapStringString
6060
from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse
6161
from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite
6262
from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult

swagger_client/models/response_wrapper_get_defi_info.py renamed to swagger_client/models/get_defi_info_response.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import six
1717

18-
class ResponseWrapperGetDefiInfo(object):
18+
class GetDefiInfoResponse(object):
1919
"""NOTE: This class is auto generated by the swagger code generator program.
2020
2121
Do not edit the class manually.
@@ -30,7 +30,7 @@ class ResponseWrapperGetDefiInfo(object):
3030
swagger_types = {
3131
'code': 'int',
3232
'message': 'str',
33-
'result': 'ResponseWrapperGetDefiInfoResult'
33+
'result': 'GetDefiInfoResponseResult'
3434
}
3535

3636
attribute_map = {
@@ -40,7 +40,7 @@ class ResponseWrapperGetDefiInfo(object):
4040
}
4141

4242
def __init__(self, code=None, message=None, result=None): # noqa: E501
43-
"""ResponseWrapperGetDefiInfo - a model defined in Swagger""" # noqa: E501
43+
"""GetDefiInfoResponse - a model defined in Swagger""" # noqa: E501
4444
self._code = None
4545
self._message = None
4646
self._result = None
@@ -54,67 +54,67 @@ def __init__(self, code=None, message=None, result=None): # noqa: E501
5454

5555
@property
5656
def code(self):
57-
"""Gets the code of this ResponseWrapperGetDefiInfo. # noqa: E501
57+
"""Gets the code of this GetDefiInfoResponse. # noqa: E501
5858
5959
Code 1:Success # noqa: E501
6060
61-
:return: The code of this ResponseWrapperGetDefiInfo. # noqa: E501
61+
:return: The code of this GetDefiInfoResponse. # noqa: E501
6262
:rtype: int
6363
"""
6464
return self._code
6565

6666
@code.setter
6767
def code(self, code):
68-
"""Sets the code of this ResponseWrapperGetDefiInfo.
68+
"""Sets the code of this GetDefiInfoResponse.
6969
7070
Code 1:Success # noqa: E501
7171
72-
:param code: The code of this ResponseWrapperGetDefiInfo. # noqa: E501
72+
:param code: The code of this GetDefiInfoResponse. # noqa: E501
7373
:type: int
7474
"""
7575

7676
self._code = code
7777

7878
@property
7979
def message(self):
80-
"""Gets the message of this ResponseWrapperGetDefiInfo. # noqa: E501
80+
"""Gets the message of this GetDefiInfoResponse. # noqa: E501
8181
8282
Response message # noqa: E501
8383
84-
:return: The message of this ResponseWrapperGetDefiInfo. # noqa: E501
84+
:return: The message of this GetDefiInfoResponse. # noqa: E501
8585
:rtype: str
8686
"""
8787
return self._message
8888

8989
@message.setter
9090
def message(self, message):
91-
"""Sets the message of this ResponseWrapperGetDefiInfo.
91+
"""Sets the message of this GetDefiInfoResponse.
9292
9393
Response message # noqa: E501
9494
95-
:param message: The message of this ResponseWrapperGetDefiInfo. # noqa: E501
95+
:param message: The message of this GetDefiInfoResponse. # noqa: E501
9696
:type: str
9797
"""
9898

9999
self._message = message
100100

101101
@property
102102
def result(self):
103-
"""Gets the result of this ResponseWrapperGetDefiInfo. # noqa: E501
103+
"""Gets the result of this GetDefiInfoResponse. # noqa: E501
104104
105105
106-
:return: The result of this ResponseWrapperGetDefiInfo. # noqa: E501
107-
:rtype: ResponseWrapperGetDefiInfoResult
106+
:return: The result of this GetDefiInfoResponse. # noqa: E501
107+
:rtype: GetDefiInfoResponseResult
108108
"""
109109
return self._result
110110

111111
@result.setter
112112
def result(self, result):
113-
"""Sets the result of this ResponseWrapperGetDefiInfo.
113+
"""Sets the result of this GetDefiInfoResponse.
114114
115115
116-
:param result: The result of this ResponseWrapperGetDefiInfo. # noqa: E501
117-
:type: ResponseWrapperGetDefiInfoResult
116+
:param result: The result of this GetDefiInfoResponse. # noqa: E501
117+
:type: GetDefiInfoResponseResult
118118
"""
119119

120120
self._result = result
@@ -140,7 +140,7 @@ def to_dict(self):
140140
))
141141
else:
142142
result[attr] = value
143-
if issubclass(ResponseWrapperGetDefiInfo, dict):
143+
if issubclass(GetDefiInfoResponse, dict):
144144
for key, value in self.items():
145145
result[key] = value
146146

@@ -156,7 +156,7 @@ def __repr__(self):
156156

157157
def __eq__(self, other):
158158
"""Returns true if both objects are equal"""
159-
if not isinstance(other, ResponseWrapperGetDefiInfo):
159+
if not isinstance(other, GetDefiInfoResponse):
160160
return False
161161

162162
return self.__dict__ == other.__dict__

0 commit comments

Comments
 (0)