diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py index f6997e5..206d283 100644 --- a/swagger_client/__init__.py +++ b/swagger_client/__init__.py @@ -25,8 +25,10 @@ from swagger_client.api.defi_controller_api import DefiControllerApi from swagger_client.api.lock_controller_api import LockControllerApi from swagger_client.api.nft_controller_api import NftControllerApi +from swagger_client.api.sec_ware_open_controller_api import SecWareOpenControllerApi from swagger_client.api.token_controller_api import TokenControllerApi from swagger_client.api.token_controller_v_1_api import TokenControllerV1Api +from swagger_client.api.transaction_security_controller_api import TransactionSecurityControllerApi from swagger_client.api.website_controller_api import WebsiteControllerApi # import ApiClient from swagger_client.api_client import ApiClient @@ -34,6 +36,8 @@ # import models into sdk package from swagger_client.models.abi_address_info import AbiAddressInfo from swagger_client.models.abi_param_info import AbiParamInfo +from swagger_client.models.address_info import AddressInfo +from swagger_client.models.allowance_change import AllowanceChange from swagger_client.models.approve_address_info import ApproveAddressInfo from swagger_client.models.approve_erc1155_result import ApproveErc1155Result from swagger_client.models.approve_nft1155_list_response import ApproveNFT1155ListResponse @@ -46,15 +50,27 @@ from swagger_client.models.contracts import Contracts from swagger_client.models.contracts_security import ContractsSecurity from swagger_client.models.dapp_contract_security_response import DappContractSecurityResponse +from swagger_client.models.erc20_balance_change import ERC20BalanceChange +from swagger_client.models.erc20_change import ERC20Change +from swagger_client.models.erc721_balance_change import ERC721BalanceChange +from swagger_client.models.erc721_change import ERC721Change +from swagger_client.models.flag import Flag from swagger_client.models.get_access_token_request import GetAccessTokenRequest from swagger_client.models.get_access_token_response import GetAccessTokenResponse from swagger_client.models.get_defi_info_response import GetDefiInfoResponse from swagger_client.models.get_defi_info_response_result import GetDefiInfoResponseResult from swagger_client.models.get_defi_info_response_result_owner import GetDefiInfoResponseResultOwner from swagger_client.models.json_object import JSONObject +from swagger_client.models.log_entry import LogEntry from swagger_client.models.map_string_string import MapStringString +from swagger_client.models.native_balance_change import NativeBalanceChange +from swagger_client.models.native_change import NativeChange from swagger_client.models.new_allowance import NewAllowance from swagger_client.models.nft_locker_response import NftLockerResponse +from swagger_client.models.open_scan_address_resp import OpenScanAddressResp +from swagger_client.models.page_response_ta_nft_locker_lock_info import PageResponseTaNftLockerLockInfo +from swagger_client.models.page_response_ta_token_locker_lock_info import PageResponseTaTokenLockerLockInfo +from swagger_client.models.page_response_v4_nft_locker_lock_infos import PageResponseV4NftLockerLockInfos from swagger_client.models.parse_abi_data_request import ParseAbiDataRequest from swagger_client.models.parse_abi_data_response import ParseAbiDataResponse from swagger_client.models.response_wrapper_address_contract import ResponseWrapperAddressContract @@ -69,6 +85,17 @@ from swagger_client.models.response_wrapper_get_nft_info_result_same_nfts import ResponseWrapperGetNftInfoResultSameNfts from swagger_client.models.response_wrapper_get_nft_info_result_self_destruct import ResponseWrapperGetNftInfoResultSelfDestruct from swagger_client.models.response_wrapper_get_nft_info_result_transfer_without_approval import ResponseWrapperGetNftInfoResultTransferWithoutApproval +from swagger_client.models.response_wrapper_get_scan_result import ResponseWrapperGetScanResult +from swagger_client.models.response_wrapper_get_scan_result_result import ResponseWrapperGetScanResultResult +from swagger_client.models.response_wrapper_get_scan_result_result_address_poisoned import ResponseWrapperGetScanResultResultAddressPoisoned +from swagger_client.models.response_wrapper_get_scan_result_result_address_poisoned_risk_detail import ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail +from swagger_client.models.response_wrapper_get_scan_result_result_approval_risk import ResponseWrapperGetScanResultResultApprovalRisk +from swagger_client.models.response_wrapper_get_scan_result_result_approval_risk_erc20_risk import ResponseWrapperGetScanResultResultApprovalRiskErc20Risk +from swagger_client.models.response_wrapper_get_scan_result_result_approval_risk_risk_detail import ResponseWrapperGetScanResultResultApprovalRiskRiskDetail +from swagger_client.models.response_wrapper_get_scan_result_result_stablecoin_depeg import ResponseWrapperGetScanResultResultStablecoinDepeg +from swagger_client.models.response_wrapper_get_scan_result_result_stablecoin_depeg_risk_detail import ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail +from swagger_client.models.response_wrapper_get_scan_result_result_token_attention import ResponseWrapperGetScanResultResultTokenAttention +from swagger_client.models.response_wrapper_get_scan_result_result_token_attention_risk_detail import ResponseWrapperGetScanResultResultTokenAttentionRiskDetail from swagger_client.models.response_wrapper_json_object import ResponseWrapperJSONObject from swagger_client.models.response_wrapper_list_approve_nft1155_list_response import ResponseWrapperListApproveNFT1155ListResponse from swagger_client.models.response_wrapper_list_approve_nft_list_response import ResponseWrapperListApproveNFTListResponse @@ -78,6 +105,10 @@ from swagger_client.models.response_wrapper_list_json_object import ResponseWrapperListJSONObject from swagger_client.models.response_wrapper_map_string_string import ResponseWrapperMapStringString from swagger_client.models.response_wrapper_nft_locker_response import ResponseWrapperNftLockerResponse +from swagger_client.models.response_wrapper_open_scan_address_resp import ResponseWrapperOpenScanAddressResp +from swagger_client.models.response_wrapper_page_response_ta_nft_locker_lock_info import ResponseWrapperPageResponseTaNftLockerLockInfo +from swagger_client.models.response_wrapper_page_response_ta_token_locker_lock_info import ResponseWrapperPageResponseTaTokenLockerLockInfo +from swagger_client.models.response_wrapper_page_response_v4_nft_locker_lock_infos import ResponseWrapperPageResponseV4NftLockerLockInfos from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult @@ -127,7 +158,10 @@ from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders from swagger_client.models.response_wrapper_token_security_nft_list import ResponseWrapperTokenSecurityNFTList from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult +from swagger_client.models.response_wrapper_transaction_security_response import ResponseWrapperTransactionSecurityResponse +from swagger_client.models.response_wrapper_v4_lp_locker_lock_info_resp import ResponseWrapperV4LpLockerLockInfoResp from swagger_client.models.response_wrapperobject import ResponseWrapperobject +from swagger_client.models.response_wrapperstring import ResponseWrapperstring from swagger_client.models.solana_allowance_upgrade import SolanaAllowanceUpgrade from swagger_client.models.solana_ownership_change import SolanaOwnershipChange from swagger_client.models.solana_prerun_tx_request import SolanaPrerunTxRequest @@ -136,7 +170,13 @@ from swagger_client.models.solana_tx_asset_changes import SolanaTxAssetChanges from swagger_client.models.solana_tx_change_detail import SolanaTxChangeDetail from swagger_client.models.solana_tx_sol_change import SolanaTxSolChange +from swagger_client.models.ta_nft_locker_lock_info import TaNftLockerLockInfo from swagger_client.models.ta_nft_locker_lock_infoobject import TaNftLockerLockInfoobject +from swagger_client.models.ta_token_locker_lock_info import TaTokenLockerLockInfo from swagger_client.models.ta_token_locker_lock_infoobject import TaTokenLockerLockInfoobject from swagger_client.models.ta_token_security_response import TaTokenSecurityResponse from swagger_client.models.token_locker_response import TokenLockerResponse +from swagger_client.models.transaction_security_request import TransactionSecurityRequest +from swagger_client.models.transaction_security_response import TransactionSecurityResponse +from swagger_client.models.v4_lp_locker_lock_info_resp import V4LpLockerLockInfoResp +from swagger_client.models.v4_nft_locker_lock_infos import V4NftLockerLockInfos diff --git a/swagger_client/api/__init__.py b/swagger_client/api/__init__.py index 8df0ee1..2097137 100644 --- a/swagger_client/api/__init__.py +++ b/swagger_client/api/__init__.py @@ -13,6 +13,8 @@ from swagger_client.api.defi_controller_api import DefiControllerApi from swagger_client.api.lock_controller_api import LockControllerApi from swagger_client.api.nft_controller_api import NftControllerApi +from swagger_client.api.sec_ware_open_controller_api import SecWareOpenControllerApi from swagger_client.api.token_controller_api import TokenControllerApi from swagger_client.api.token_controller_v_1_api import TokenControllerV1Api +from swagger_client.api.transaction_security_controller_api import TransactionSecurityControllerApi from swagger_client.api.website_controller_api import WebsiteControllerApi diff --git a/swagger_client/api/lock_controller_api.py b/swagger_client/api/lock_controller_api.py index 359bfa2..602dbcd 100644 --- a/swagger_client/api/lock_controller_api.py +++ b/swagger_client/api/lock_controller_api.py @@ -32,6 +32,107 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def get_nft_locker_lock_infos_list_using_get(self, page_num, page_size, **kwargs): # noqa: E501 + """get lpv3 locker infos # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_nft_locker_lock_infos_list_using_get(page_num, page_size, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page_num: pageNum (required) + :param int page_size: pageSize (required) + :return: ResponseWrapperPageResponseTaNftLockerLockInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_nft_locker_lock_infos_list_using_get_with_http_info(page_num, page_size, **kwargs) # noqa: E501 + else: + (data) = self.get_nft_locker_lock_infos_list_using_get_with_http_info(page_num, page_size, **kwargs) # noqa: E501 + return data + + def get_nft_locker_lock_infos_list_using_get_with_http_info(self, page_num, page_size, **kwargs): # noqa: E501 + """get lpv3 locker infos # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_nft_locker_lock_infos_list_using_get_with_http_info(page_num, page_size, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page_num: pageNum (required) + :param int page_size: pageSize (required) + :return: ResponseWrapperPageResponseTaNftLockerLockInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page_num', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_nft_locker_lock_infos_list_using_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'page_num' is set + if ('page_num' not in params or + params['page_num'] is None): + raise ValueError("Missing the required parameter `page_num` when calling `get_nft_locker_lock_infos_list_using_get`") # noqa: E501 + # verify the required parameter 'page_size' is set + if ('page_size' not in params or + params['page_size'] is None): + raise ValueError("Missing the required parameter `page_size` when calling `get_nft_locker_lock_infos_list_using_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_num' in params: + query_params.append(('pageNum', params['page_num'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('pageSize', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/open/api/v1/locks/lpv3s', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseWrapperPageResponseTaNftLockerLockInfo', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_nft_lockers_using_get(self, chain_id, page_num, page_size, pool_address, **kwargs): # noqa: E501 """Get lpv3 locker info # noqa: E501 @@ -273,3 +374,221 @@ def get_token_lockers_using_get_with_http_info(self, chain_id, page_num, page_si _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def get_v4_nft_locker_lock_infos_list_using_get(self, page_num, page_size, **kwargs): # noqa: E501 + """get lpv4 locker infos # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_v4_nft_locker_lock_infos_list_using_get(page_num, page_size, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page_num: pageNum (required) + :param int page_size: pageSize (required) + :return: ResponseWrapperPageResponseV4NftLockerLockInfos + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_v4_nft_locker_lock_infos_list_using_get_with_http_info(page_num, page_size, **kwargs) # noqa: E501 + else: + (data) = self.get_v4_nft_locker_lock_infos_list_using_get_with_http_info(page_num, page_size, **kwargs) # noqa: E501 + return data + + def get_v4_nft_locker_lock_infos_list_using_get_with_http_info(self, page_num, page_size, **kwargs): # noqa: E501 + """get lpv4 locker infos # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_v4_nft_locker_lock_infos_list_using_get_with_http_info(page_num, page_size, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int page_num: pageNum (required) + :param int page_size: pageSize (required) + :return: ResponseWrapperPageResponseV4NftLockerLockInfos + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['page_num', 'page_size'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_v4_nft_locker_lock_infos_list_using_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'page_num' is set + if ('page_num' not in params or + params['page_num'] is None): + raise ValueError("Missing the required parameter `page_num` when calling `get_v4_nft_locker_lock_infos_list_using_get`") # noqa: E501 + # verify the required parameter 'page_size' is set + if ('page_size' not in params or + params['page_size'] is None): + raise ValueError("Missing the required parameter `page_size` when calling `get_v4_nft_locker_lock_infos_list_using_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page_num' in params: + query_params.append(('pageNum', params['page_num'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('pageSize', params['page_size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/open/api/v1/locks/lpv4s', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseWrapperPageResponseV4NftLockerLockInfos', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_v4_nft_lockers_using_get(self, chain_id, page_num, page_size, pool_id, **kwargs): # noqa: E501 + """get v4 nft locker info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_v4_nft_lockers_using_get(chain_id, page_num, page_size, pool_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str chain_id: chainId (required) + :param int page_num: pageNum (required) + :param int page_size: pageSize (required) + :param str pool_id: poolId (required) + :return: ResponseWrapperV4LpLockerLockInfoResp + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_v4_nft_lockers_using_get_with_http_info(chain_id, page_num, page_size, pool_id, **kwargs) # noqa: E501 + else: + (data) = self.get_v4_nft_lockers_using_get_with_http_info(chain_id, page_num, page_size, pool_id, **kwargs) # noqa: E501 + return data + + def get_v4_nft_lockers_using_get_with_http_info(self, chain_id, page_num, page_size, pool_id, **kwargs): # noqa: E501 + """get v4 nft locker info # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_v4_nft_lockers_using_get_with_http_info(chain_id, page_num, page_size, pool_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str chain_id: chainId (required) + :param int page_num: pageNum (required) + :param int page_size: pageSize (required) + :param str pool_id: poolId (required) + :return: ResponseWrapperV4LpLockerLockInfoResp + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['chain_id', 'page_num', 'page_size', 'pool_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_v4_nft_lockers_using_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'chain_id' is set + if ('chain_id' not in params or + params['chain_id'] is None): + raise ValueError("Missing the required parameter `chain_id` when calling `get_v4_nft_lockers_using_get`") # noqa: E501 + # verify the required parameter 'page_num' is set + if ('page_num' not in params or + params['page_num'] is None): + raise ValueError("Missing the required parameter `page_num` when calling `get_v4_nft_lockers_using_get`") # noqa: E501 + # verify the required parameter 'page_size' is set + if ('page_size' not in params or + params['page_size'] is None): + raise ValueError("Missing the required parameter `page_size` when calling `get_v4_nft_lockers_using_get`") # noqa: E501 + # verify the required parameter 'pool_id' is set + if ('pool_id' not in params or + params['pool_id'] is None): + raise ValueError("Missing the required parameter `pool_id` when calling `get_v4_nft_lockers_using_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'chain_id' in params: + query_params.append(('chainId', params['chain_id'])) # noqa: E501 + if 'page_num' in params: + query_params.append(('pageNum', params['page_num'])) # noqa: E501 + if 'page_size' in params: + query_params.append(('pageSize', params['page_size'])) # noqa: E501 + if 'pool_id' in params: + query_params.append(('poolId', params['pool_id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/open/api/v1/locks/lpv4', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseWrapperV4LpLockerLockInfoResp', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/sec_ware_open_controller_api.py b/swagger_client/api/sec_ware_open_controller_api.py new file mode 100644 index 0000000..7c3ab38 --- /dev/null +++ b/swagger_client/api/sec_ware_open_controller_api.py @@ -0,0 +1,235 @@ +# 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 +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class SecWareOpenControllerApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_scan_result_using_get(self, request_id, **kwargs): # noqa: E501 + """Get address scan result # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_scan_result_using_get(request_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str request_id: request_id (required) + :param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) + :return: ResponseWrapperGetScanResult + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_scan_result_using_get_with_http_info(request_id, **kwargs) # noqa: E501 + else: + (data) = self.get_scan_result_using_get_with_http_info(request_id, **kwargs) # noqa: E501 + return data + + def get_scan_result_using_get_with_http_info(self, request_id, **kwargs): # noqa: E501 + """Get address scan result # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_scan_result_using_get_with_http_info(request_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str request_id: request_id (required) + :param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) + :return: ResponseWrapperGetScanResult + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['request_id', 'authorization'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_scan_result_using_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'request_id' is set + if ('request_id' not in params or + params['request_id'] is None): + raise ValueError("Missing the required parameter `request_id` when calling `get_scan_result_using_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'request_id' in params: + query_params.append(('request_id', params['request_id'])) # noqa: E501 + + header_params = {} + if 'authorization' in params: + header_params['Authorization'] = params['authorization'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/address/result', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseWrapperGetScanResult', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def scan_address_using_get(self, address, chain_id, **kwargs): # noqa: E501 + """Start address security scan # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.scan_address_using_get(address, chain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str address: address (required) + :param str chain_id: chain_id (required) + :param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) + :return: ResponseWrapperOpenScanAddressResp + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.scan_address_using_get_with_http_info(address, chain_id, **kwargs) # noqa: E501 + else: + (data) = self.scan_address_using_get_with_http_info(address, chain_id, **kwargs) # noqa: E501 + return data + + def scan_address_using_get_with_http_info(self, address, chain_id, **kwargs): # noqa: E501 + """Start address security scan # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.scan_address_using_get_with_http_info(address, chain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str address: address (required) + :param str chain_id: chain_id (required) + :param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) + :return: ResponseWrapperOpenScanAddressResp + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['address', 'chain_id', 'authorization'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method scan_address_using_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'address' is set + if ('address' not in params or + params['address'] is None): + raise ValueError("Missing the required parameter `address` when calling `scan_address_using_get`") # noqa: E501 + # verify the required parameter 'chain_id' is set + if ('chain_id' not in params or + params['chain_id'] is None): + raise ValueError("Missing the required parameter `chain_id` when calling `scan_address_using_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'chain_id' in params: + path_params['chain_id'] = params['chain_id'] # noqa: E501 + + query_params = [] + if 'address' in params: + query_params.append(('address', params['address'])) # noqa: E501 + + header_params = {} + if 'authorization' in params: + header_params['Authorization'] = params['authorization'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/address/scan/{chain_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseWrapperOpenScanAddressResp', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/api/transaction_security_controller_api.py b/swagger_client/api/transaction_security_controller_api.py new file mode 100644 index 0000000..b4a090e --- /dev/null +++ b/swagger_client/api/transaction_security_controller_api.py @@ -0,0 +1,134 @@ +# 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 +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from swagger_client.api_client import ApiClient + + +class TransactionSecurityControllerApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_transaction_security_info_using_post(self, body, **kwargs): # noqa: E501 + """Transaction Simulation # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_security_info_using_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TransactionSecurityRequest body: transactionSecurityRequest (required) + :param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) + :return: ResponseWrapperTransactionSecurityResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_transaction_security_info_using_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.get_transaction_security_info_using_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def get_transaction_security_info_using_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Transaction Simulation # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_transaction_security_info_using_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param TransactionSecurityRequest body: transactionSecurityRequest (required) + :param str authorization: Authorization (test:Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) + :return: ResponseWrapperTransactionSecurityResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'authorization'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_transaction_security_info_using_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `get_transaction_security_info_using_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'authorization' in params: + header_params['Authorization'] = params['authorization'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['*/*']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/transaction_simulation', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ResponseWrapperTransactionSecurityResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/swagger_client/models/__init__.py b/swagger_client/models/__init__.py index e2140b9..68449c7 100644 --- a/swagger_client/models/__init__.py +++ b/swagger_client/models/__init__.py @@ -16,6 +16,8 @@ # import models into model package from swagger_client.models.abi_address_info import AbiAddressInfo from swagger_client.models.abi_param_info import AbiParamInfo +from swagger_client.models.address_info import AddressInfo +from swagger_client.models.allowance_change import AllowanceChange from swagger_client.models.approve_address_info import ApproveAddressInfo from swagger_client.models.approve_erc1155_result import ApproveErc1155Result from swagger_client.models.approve_nft1155_list_response import ApproveNFT1155ListResponse @@ -28,15 +30,27 @@ from swagger_client.models.contracts import Contracts from swagger_client.models.contracts_security import ContractsSecurity from swagger_client.models.dapp_contract_security_response import DappContractSecurityResponse +from swagger_client.models.erc20_balance_change import ERC20BalanceChange +from swagger_client.models.erc20_change import ERC20Change +from swagger_client.models.erc721_balance_change import ERC721BalanceChange +from swagger_client.models.erc721_change import ERC721Change +from swagger_client.models.flag import Flag from swagger_client.models.get_access_token_request import GetAccessTokenRequest from swagger_client.models.get_access_token_response import GetAccessTokenResponse from swagger_client.models.get_defi_info_response import GetDefiInfoResponse from swagger_client.models.get_defi_info_response_result import GetDefiInfoResponseResult from swagger_client.models.get_defi_info_response_result_owner import GetDefiInfoResponseResultOwner from swagger_client.models.json_object import JSONObject +from swagger_client.models.log_entry import LogEntry from swagger_client.models.map_string_string import MapStringString +from swagger_client.models.native_balance_change import NativeBalanceChange +from swagger_client.models.native_change import NativeChange from swagger_client.models.new_allowance import NewAllowance from swagger_client.models.nft_locker_response import NftLockerResponse +from swagger_client.models.open_scan_address_resp import OpenScanAddressResp +from swagger_client.models.page_response_ta_nft_locker_lock_info import PageResponseTaNftLockerLockInfo +from swagger_client.models.page_response_ta_token_locker_lock_info import PageResponseTaTokenLockerLockInfo +from swagger_client.models.page_response_v4_nft_locker_lock_infos import PageResponseV4NftLockerLockInfos from swagger_client.models.parse_abi_data_request import ParseAbiDataRequest from swagger_client.models.parse_abi_data_response import ParseAbiDataResponse from swagger_client.models.response_wrapper_address_contract import ResponseWrapperAddressContract @@ -51,6 +65,17 @@ from swagger_client.models.response_wrapper_get_nft_info_result_same_nfts import ResponseWrapperGetNftInfoResultSameNfts from swagger_client.models.response_wrapper_get_nft_info_result_self_destruct import ResponseWrapperGetNftInfoResultSelfDestruct from swagger_client.models.response_wrapper_get_nft_info_result_transfer_without_approval import ResponseWrapperGetNftInfoResultTransferWithoutApproval +from swagger_client.models.response_wrapper_get_scan_result import ResponseWrapperGetScanResult +from swagger_client.models.response_wrapper_get_scan_result_result import ResponseWrapperGetScanResultResult +from swagger_client.models.response_wrapper_get_scan_result_result_address_poisoned import ResponseWrapperGetScanResultResultAddressPoisoned +from swagger_client.models.response_wrapper_get_scan_result_result_address_poisoned_risk_detail import ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail +from swagger_client.models.response_wrapper_get_scan_result_result_approval_risk import ResponseWrapperGetScanResultResultApprovalRisk +from swagger_client.models.response_wrapper_get_scan_result_result_approval_risk_erc20_risk import ResponseWrapperGetScanResultResultApprovalRiskErc20Risk +from swagger_client.models.response_wrapper_get_scan_result_result_approval_risk_risk_detail import ResponseWrapperGetScanResultResultApprovalRiskRiskDetail +from swagger_client.models.response_wrapper_get_scan_result_result_stablecoin_depeg import ResponseWrapperGetScanResultResultStablecoinDepeg +from swagger_client.models.response_wrapper_get_scan_result_result_stablecoin_depeg_risk_detail import ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail +from swagger_client.models.response_wrapper_get_scan_result_result_token_attention import ResponseWrapperGetScanResultResultTokenAttention +from swagger_client.models.response_wrapper_get_scan_result_result_token_attention_risk_detail import ResponseWrapperGetScanResultResultTokenAttentionRiskDetail from swagger_client.models.response_wrapper_json_object import ResponseWrapperJSONObject from swagger_client.models.response_wrapper_list_approve_nft1155_list_response import ResponseWrapperListApproveNFT1155ListResponse from swagger_client.models.response_wrapper_list_approve_nft_list_response import ResponseWrapperListApproveNFTListResponse @@ -60,6 +85,10 @@ from swagger_client.models.response_wrapper_list_json_object import ResponseWrapperListJSONObject from swagger_client.models.response_wrapper_map_string_string import ResponseWrapperMapStringString from swagger_client.models.response_wrapper_nft_locker_response import ResponseWrapperNftLockerResponse +from swagger_client.models.response_wrapper_open_scan_address_resp import ResponseWrapperOpenScanAddressResp +from swagger_client.models.response_wrapper_page_response_ta_nft_locker_lock_info import ResponseWrapperPageResponseTaNftLockerLockInfo +from swagger_client.models.response_wrapper_page_response_ta_token_locker_lock_info import ResponseWrapperPageResponseTaTokenLockerLockInfo +from swagger_client.models.response_wrapper_page_response_v4_nft_locker_lock_infos import ResponseWrapperPageResponseV4NftLockerLockInfos from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult @@ -109,7 +138,10 @@ from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders from swagger_client.models.response_wrapper_token_security_nft_list import ResponseWrapperTokenSecurityNFTList from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult +from swagger_client.models.response_wrapper_transaction_security_response import ResponseWrapperTransactionSecurityResponse +from swagger_client.models.response_wrapper_v4_lp_locker_lock_info_resp import ResponseWrapperV4LpLockerLockInfoResp from swagger_client.models.response_wrapperobject import ResponseWrapperobject +from swagger_client.models.response_wrapperstring import ResponseWrapperstring from swagger_client.models.solana_allowance_upgrade import SolanaAllowanceUpgrade from swagger_client.models.solana_ownership_change import SolanaOwnershipChange from swagger_client.models.solana_prerun_tx_request import SolanaPrerunTxRequest @@ -118,7 +150,13 @@ from swagger_client.models.solana_tx_asset_changes import SolanaTxAssetChanges from swagger_client.models.solana_tx_change_detail import SolanaTxChangeDetail from swagger_client.models.solana_tx_sol_change import SolanaTxSolChange +from swagger_client.models.ta_nft_locker_lock_info import TaNftLockerLockInfo from swagger_client.models.ta_nft_locker_lock_infoobject import TaNftLockerLockInfoobject +from swagger_client.models.ta_token_locker_lock_info import TaTokenLockerLockInfo from swagger_client.models.ta_token_locker_lock_infoobject import TaTokenLockerLockInfoobject from swagger_client.models.ta_token_security_response import TaTokenSecurityResponse from swagger_client.models.token_locker_response import TokenLockerResponse +from swagger_client.models.transaction_security_request import TransactionSecurityRequest +from swagger_client.models.transaction_security_response import TransactionSecurityResponse +from swagger_client.models.v4_lp_locker_lock_info_resp import V4LpLockerLockInfoResp +from swagger_client.models.v4_nft_locker_lock_infos import V4NftLockerLockInfos diff --git a/swagger_client/models/address_info.py b/swagger_client/models/address_info.py new file mode 100644 index 0000000..1774425 --- /dev/null +++ b/swagger_client/models/address_info.py @@ -0,0 +1,136 @@ +# 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 AddressInfo(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 = { + 'address': 'str', + 'storage_keys': 'list[str]' + } + + attribute_map = { + 'address': 'address', + 'storage_keys': 'storage_keys' + } + + def __init__(self, address=None, storage_keys=None): # noqa: E501 + """AddressInfo - a model defined in Swagger""" # noqa: E501 + self._address = None + self._storage_keys = None + self.discriminator = None + if address is not None: + self.address = address + if storage_keys is not None: + self.storage_keys = storage_keys + + @property + def address(self): + """Gets the address of this AddressInfo. # noqa: E501 + + + :return: The address of this AddressInfo. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this AddressInfo. + + + :param address: The address of this AddressInfo. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def storage_keys(self): + """Gets the storage_keys of this AddressInfo. # noqa: E501 + + + :return: The storage_keys of this AddressInfo. # noqa: E501 + :rtype: list[str] + """ + return self._storage_keys + + @storage_keys.setter + def storage_keys(self, storage_keys): + """Sets the storage_keys of this AddressInfo. + + + :param storage_keys: The storage_keys of this AddressInfo. # noqa: E501 + :type: list[str] + """ + + self._storage_keys = storage_keys + + 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(AddressInfo, 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, AddressInfo): + 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/allowance_change.py b/swagger_client/models/allowance_change.py new file mode 100644 index 0000000..ebe4fa4 --- /dev/null +++ b/swagger_client/models/allowance_change.py @@ -0,0 +1,188 @@ +# 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 AllowanceChange(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', + 'contract_address': 'str', + 'owner': 'str', + 'spender': 'str' + } + + attribute_map = { + 'amount': 'amount', + 'contract_address': 'contract_address', + 'owner': 'owner', + 'spender': 'spender' + } + + def __init__(self, amount=None, contract_address=None, owner=None, spender=None): # noqa: E501 + """AllowanceChange - a model defined in Swagger""" # noqa: E501 + self._amount = None + self._contract_address = None + self._owner = None + self._spender = None + self.discriminator = None + if amount is not None: + self.amount = amount + if contract_address is not None: + self.contract_address = contract_address + if owner is not None: + self.owner = owner + if spender is not None: + self.spender = spender + + @property + def amount(self): + """Gets the amount of this AllowanceChange. # noqa: E501 + + + :return: The amount of this AllowanceChange. # noqa: E501 + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this AllowanceChange. + + + :param amount: The amount of this AllowanceChange. # noqa: E501 + :type: str + """ + + self._amount = amount + + @property + def contract_address(self): + """Gets the contract_address of this AllowanceChange. # noqa: E501 + + + :return: The contract_address of this AllowanceChange. # noqa: E501 + :rtype: str + """ + return self._contract_address + + @contract_address.setter + def contract_address(self, contract_address): + """Sets the contract_address of this AllowanceChange. + + + :param contract_address: The contract_address of this AllowanceChange. # noqa: E501 + :type: str + """ + + self._contract_address = contract_address + + @property + def owner(self): + """Gets the owner of this AllowanceChange. # noqa: E501 + + + :return: The owner of this AllowanceChange. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this AllowanceChange. + + + :param owner: The owner of this AllowanceChange. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def spender(self): + """Gets the spender of this AllowanceChange. # noqa: E501 + + + :return: The spender of this AllowanceChange. # noqa: E501 + :rtype: str + """ + return self._spender + + @spender.setter + def spender(self, spender): + """Sets the spender of this AllowanceChange. + + + :param spender: The spender of this AllowanceChange. # noqa: E501 + :type: str + """ + + self._spender = spender + + 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(AllowanceChange, 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, AllowanceChange): + 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/erc20_balance_change.py b/swagger_client/models/erc20_balance_change.py new file mode 100644 index 0000000..9ad7ac4 --- /dev/null +++ b/swagger_client/models/erc20_balance_change.py @@ -0,0 +1,136 @@ +# 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 ERC20BalanceChange(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 = { + 'address': 'str', + 'erc20_change': 'list[ERC20Change]' + } + + attribute_map = { + 'address': 'address', + 'erc20_change': 'erc20_change' + } + + def __init__(self, address=None, erc20_change=None): # noqa: E501 + """ERC20BalanceChange - a model defined in Swagger""" # noqa: E501 + self._address = None + self._erc20_change = None + self.discriminator = None + if address is not None: + self.address = address + if erc20_change is not None: + self.erc20_change = erc20_change + + @property + def address(self): + """Gets the address of this ERC20BalanceChange. # noqa: E501 + + + :return: The address of this ERC20BalanceChange. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this ERC20BalanceChange. + + + :param address: The address of this ERC20BalanceChange. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def erc20_change(self): + """Gets the erc20_change of this ERC20BalanceChange. # noqa: E501 + + + :return: The erc20_change of this ERC20BalanceChange. # noqa: E501 + :rtype: list[ERC20Change] + """ + return self._erc20_change + + @erc20_change.setter + def erc20_change(self, erc20_change): + """Sets the erc20_change of this ERC20BalanceChange. + + + :param erc20_change: The erc20_change of this ERC20BalanceChange. # noqa: E501 + :type: list[ERC20Change] + """ + + self._erc20_change = erc20_change + + 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(ERC20BalanceChange, 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, ERC20BalanceChange): + 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/erc20_change.py b/swagger_client/models/erc20_change.py new file mode 100644 index 0000000..97bafc3 --- /dev/null +++ b/swagger_client/models/erc20_change.py @@ -0,0 +1,136 @@ +# 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 ERC20Change(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 = { + 'change': 'str', + 'token_address': 'str' + } + + attribute_map = { + 'change': 'change', + 'token_address': 'token_address' + } + + def __init__(self, change=None, token_address=None): # noqa: E501 + """ERC20Change - a model defined in Swagger""" # noqa: E501 + self._change = None + self._token_address = None + self.discriminator = None + if change is not None: + self.change = change + if token_address is not None: + self.token_address = token_address + + @property + def change(self): + """Gets the change of this ERC20Change. # noqa: E501 + + + :return: The change of this ERC20Change. # noqa: E501 + :rtype: str + """ + return self._change + + @change.setter + def change(self, change): + """Sets the change of this ERC20Change. + + + :param change: The change of this ERC20Change. # noqa: E501 + :type: str + """ + + self._change = change + + @property + def token_address(self): + """Gets the token_address of this ERC20Change. # noqa: E501 + + + :return: The token_address of this ERC20Change. # noqa: E501 + :rtype: str + """ + return self._token_address + + @token_address.setter + def token_address(self, token_address): + """Sets the token_address of this ERC20Change. + + + :param token_address: The token_address of this ERC20Change. # noqa: E501 + :type: str + """ + + self._token_address = token_address + + 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(ERC20Change, 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, ERC20Change): + 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/erc721_balance_change.py b/swagger_client/models/erc721_balance_change.py new file mode 100644 index 0000000..97af85b --- /dev/null +++ b/swagger_client/models/erc721_balance_change.py @@ -0,0 +1,136 @@ +# 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 ERC721BalanceChange(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 = { + 'address': 'str', + 'erc721_change': 'list[ERC721Change]' + } + + attribute_map = { + 'address': 'address', + 'erc721_change': 'erc721_change' + } + + def __init__(self, address=None, erc721_change=None): # noqa: E501 + """ERC721BalanceChange - a model defined in Swagger""" # noqa: E501 + self._address = None + self._erc721_change = None + self.discriminator = None + if address is not None: + self.address = address + if erc721_change is not None: + self.erc721_change = erc721_change + + @property + def address(self): + """Gets the address of this ERC721BalanceChange. # noqa: E501 + + + :return: The address of this ERC721BalanceChange. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this ERC721BalanceChange. + + + :param address: The address of this ERC721BalanceChange. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def erc721_change(self): + """Gets the erc721_change of this ERC721BalanceChange. # noqa: E501 + + + :return: The erc721_change of this ERC721BalanceChange. # noqa: E501 + :rtype: list[ERC721Change] + """ + return self._erc721_change + + @erc721_change.setter + def erc721_change(self, erc721_change): + """Sets the erc721_change of this ERC721BalanceChange. + + + :param erc721_change: The erc721_change of this ERC721BalanceChange. # noqa: E501 + :type: list[ERC721Change] + """ + + self._erc721_change = erc721_change + + 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(ERC721BalanceChange, 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, ERC721BalanceChange): + 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/erc721_change.py b/swagger_client/models/erc721_change.py new file mode 100644 index 0000000..2d837b8 --- /dev/null +++ b/swagger_client/models/erc721_change.py @@ -0,0 +1,162 @@ +# 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 ERC721Change(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 = { + 'received': 'bool', + 'token_address': 'str', + 'token_id': 'str' + } + + attribute_map = { + 'received': 'received', + 'token_address': 'token_address', + 'token_id': 'token_id' + } + + def __init__(self, received=None, token_address=None, token_id=None): # noqa: E501 + """ERC721Change - a model defined in Swagger""" # noqa: E501 + self._received = None + self._token_address = None + self._token_id = None + self.discriminator = None + if received is not None: + self.received = received + if token_address is not None: + self.token_address = token_address + if token_id is not None: + self.token_id = token_id + + @property + def received(self): + """Gets the received of this ERC721Change. # noqa: E501 + + + :return: The received of this ERC721Change. # noqa: E501 + :rtype: bool + """ + return self._received + + @received.setter + def received(self, received): + """Sets the received of this ERC721Change. + + + :param received: The received of this ERC721Change. # noqa: E501 + :type: bool + """ + + self._received = received + + @property + def token_address(self): + """Gets the token_address of this ERC721Change. # noqa: E501 + + + :return: The token_address of this ERC721Change. # noqa: E501 + :rtype: str + """ + return self._token_address + + @token_address.setter + def token_address(self, token_address): + """Sets the token_address of this ERC721Change. + + + :param token_address: The token_address of this ERC721Change. # noqa: E501 + :type: str + """ + + self._token_address = token_address + + @property + def token_id(self): + """Gets the token_id of this ERC721Change. # noqa: E501 + + + :return: The token_id of this ERC721Change. # noqa: E501 + :rtype: str + """ + return self._token_id + + @token_id.setter + def token_id(self, token_id): + """Sets the token_id of this ERC721Change. + + + :param token_id: The token_id of this ERC721Change. # noqa: E501 + :type: str + """ + + self._token_id = token_id + + 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(ERC721Change, 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, ERC721Change): + 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/flag.py b/swagger_client/models/flag.py new file mode 100644 index 0000000..62f306e --- /dev/null +++ b/swagger_client/models/flag.py @@ -0,0 +1,136 @@ +# 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 Flag(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 = { + 'message': 'str', + 'type': 'str' + } + + attribute_map = { + 'message': 'message', + 'type': 'type' + } + + def __init__(self, message=None, type=None): # noqa: E501 + """Flag - a model defined in Swagger""" # noqa: E501 + self._message = None + self._type = None + self.discriminator = None + if message is not None: + self.message = message + if type is not None: + self.type = type + + @property + def message(self): + """Gets the message of this Flag. # noqa: E501 + + + :return: The message of this Flag. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this Flag. + + + :param message: The message of this Flag. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def type(self): + """Gets the type of this Flag. # noqa: E501 + + + :return: The type of this Flag. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this Flag. + + + :param type: The type of this Flag. # noqa: E501 + :type: str + """ + + self._type = type + + 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(Flag, 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, Flag): + 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/log_entry.py b/swagger_client/models/log_entry.py new file mode 100644 index 0000000..983abcf --- /dev/null +++ b/swagger_client/models/log_entry.py @@ -0,0 +1,162 @@ +# 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 LogEntry(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 = { + 'address': 'str', + 'data': 'str', + 'topics': 'list[str]' + } + + attribute_map = { + 'address': 'address', + 'data': 'data', + 'topics': 'topics' + } + + def __init__(self, address=None, data=None, topics=None): # noqa: E501 + """LogEntry - a model defined in Swagger""" # noqa: E501 + self._address = None + self._data = None + self._topics = None + self.discriminator = None + if address is not None: + self.address = address + if data is not None: + self.data = data + if topics is not None: + self.topics = topics + + @property + def address(self): + """Gets the address of this LogEntry. # noqa: E501 + + + :return: The address of this LogEntry. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this LogEntry. + + + :param address: The address of this LogEntry. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def data(self): + """Gets the data of this LogEntry. # noqa: E501 + + + :return: The data of this LogEntry. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this LogEntry. + + + :param data: The data of this LogEntry. # noqa: E501 + :type: str + """ + + self._data = data + + @property + def topics(self): + """Gets the topics of this LogEntry. # noqa: E501 + + + :return: The topics of this LogEntry. # noqa: E501 + :rtype: list[str] + """ + return self._topics + + @topics.setter + def topics(self, topics): + """Sets the topics of this LogEntry. + + + :param topics: The topics of this LogEntry. # noqa: E501 + :type: list[str] + """ + + self._topics = topics + + 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(LogEntry, 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, LogEntry): + 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/native_balance_change.py b/swagger_client/models/native_balance_change.py new file mode 100644 index 0000000..9b0267d --- /dev/null +++ b/swagger_client/models/native_balance_change.py @@ -0,0 +1,136 @@ +# 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 NativeBalanceChange(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 = { + 'address': 'str', + 'native_change': 'NativeChange' + } + + attribute_map = { + 'address': 'address', + 'native_change': 'native_change' + } + + def __init__(self, address=None, native_change=None): # noqa: E501 + """NativeBalanceChange - a model defined in Swagger""" # noqa: E501 + self._address = None + self._native_change = None + self.discriminator = None + if address is not None: + self.address = address + if native_change is not None: + self.native_change = native_change + + @property + def address(self): + """Gets the address of this NativeBalanceChange. # noqa: E501 + + + :return: The address of this NativeBalanceChange. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this NativeBalanceChange. + + + :param address: The address of this NativeBalanceChange. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def native_change(self): + """Gets the native_change of this NativeBalanceChange. # noqa: E501 + + + :return: The native_change of this NativeBalanceChange. # noqa: E501 + :rtype: NativeChange + """ + return self._native_change + + @native_change.setter + def native_change(self, native_change): + """Sets the native_change of this NativeBalanceChange. + + + :param native_change: The native_change of this NativeBalanceChange. # noqa: E501 + :type: NativeChange + """ + + self._native_change = native_change + + 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(NativeBalanceChange, 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, NativeBalanceChange): + 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/native_change.py b/swagger_client/models/native_change.py new file mode 100644 index 0000000..db09d80 --- /dev/null +++ b/swagger_client/models/native_change.py @@ -0,0 +1,162 @@ +# 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 NativeChange(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 = { + 'after': 'str', + 'before': 'str', + 'change': 'str' + } + + attribute_map = { + 'after': 'after', + 'before': 'before', + 'change': 'change' + } + + def __init__(self, after=None, before=None, change=None): # noqa: E501 + """NativeChange - a model defined in Swagger""" # noqa: E501 + self._after = None + self._before = None + self._change = None + self.discriminator = None + if after is not None: + self.after = after + if before is not None: + self.before = before + if change is not None: + self.change = change + + @property + def after(self): + """Gets the after of this NativeChange. # noqa: E501 + + + :return: The after of this NativeChange. # noqa: E501 + :rtype: str + """ + return self._after + + @after.setter + def after(self, after): + """Sets the after of this NativeChange. + + + :param after: The after of this NativeChange. # noqa: E501 + :type: str + """ + + self._after = after + + @property + def before(self): + """Gets the before of this NativeChange. # noqa: E501 + + + :return: The before of this NativeChange. # noqa: E501 + :rtype: str + """ + return self._before + + @before.setter + def before(self, before): + """Sets the before of this NativeChange. + + + :param before: The before of this NativeChange. # noqa: E501 + :type: str + """ + + self._before = before + + @property + def change(self): + """Gets the change of this NativeChange. # noqa: E501 + + + :return: The change of this NativeChange. # noqa: E501 + :rtype: str + """ + return self._change + + @change.setter + def change(self, change): + """Sets the change of this NativeChange. + + + :param change: The change of this NativeChange. # noqa: E501 + :type: str + """ + + self._change = change + + 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(NativeChange, 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, NativeChange): + 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/open_scan_address_resp.py b/swagger_client/models/open_scan_address_resp.py new file mode 100644 index 0000000..c1b84da --- /dev/null +++ b/swagger_client/models/open_scan_address_resp.py @@ -0,0 +1,136 @@ +# 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 OpenScanAddressResp(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 = { + 'request_id': 'str', + 'status': 'bool' + } + + attribute_map = { + 'request_id': 'request_id', + 'status': 'status' + } + + def __init__(self, request_id=None, status=None): # noqa: E501 + """OpenScanAddressResp - a model defined in Swagger""" # noqa: E501 + self._request_id = None + self._status = None + self.discriminator = None + if request_id is not None: + self.request_id = request_id + if status is not None: + self.status = status + + @property + def request_id(self): + """Gets the request_id of this OpenScanAddressResp. # noqa: E501 + + + :return: The request_id of this OpenScanAddressResp. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this OpenScanAddressResp. + + + :param request_id: The request_id of this OpenScanAddressResp. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def status(self): + """Gets the status of this OpenScanAddressResp. # noqa: E501 + + + :return: The status of this OpenScanAddressResp. # noqa: E501 + :rtype: bool + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this OpenScanAddressResp. + + + :param status: The status of this OpenScanAddressResp. # noqa: E501 + :type: bool + """ + + self._status = status + + 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(OpenScanAddressResp, 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, OpenScanAddressResp): + 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/page_response_ta_nft_locker_lock_info.py b/swagger_client/models/page_response_ta_nft_locker_lock_info.py new file mode 100644 index 0000000..a14f8da --- /dev/null +++ b/swagger_client/models/page_response_ta_nft_locker_lock_info.py @@ -0,0 +1,188 @@ +# 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 PageResponseTaNftLockerLockInfo(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 = { + 'list': 'list[TaNftLockerLockInfo]', + 'page_num': 'int', + 'page_size': 'int', + 'total_count': 'int' + } + + attribute_map = { + 'list': 'list', + 'page_num': 'pageNum', + 'page_size': 'pageSize', + 'total_count': 'totalCount' + } + + def __init__(self, list=None, page_num=None, page_size=None, total_count=None): # noqa: E501 + """PageResponseTaNftLockerLockInfo - a model defined in Swagger""" # noqa: E501 + self._list = None + self._page_num = None + self._page_size = None + self._total_count = None + self.discriminator = None + if list is not None: + self.list = list + if page_num is not None: + self.page_num = page_num + if page_size is not None: + self.page_size = page_size + if total_count is not None: + self.total_count = total_count + + @property + def list(self): + """Gets the list of this PageResponseTaNftLockerLockInfo. # noqa: E501 + + + :return: The list of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: list[TaNftLockerLockInfo] + """ + return self._list + + @list.setter + def list(self, list): + """Sets the list of this PageResponseTaNftLockerLockInfo. + + + :param list: The list of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :type: list[TaNftLockerLockInfo] + """ + + self._list = list + + @property + def page_num(self): + """Gets the page_num of this PageResponseTaNftLockerLockInfo. # noqa: E501 + + + :return: The page_num of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._page_num + + @page_num.setter + def page_num(self, page_num): + """Sets the page_num of this PageResponseTaNftLockerLockInfo. + + + :param page_num: The page_num of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :type: int + """ + + self._page_num = page_num + + @property + def page_size(self): + """Gets the page_size of this PageResponseTaNftLockerLockInfo. # noqa: E501 + + + :return: The page_size of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this PageResponseTaNftLockerLockInfo. + + + :param page_size: The page_size of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def total_count(self): + """Gets the total_count of this PageResponseTaNftLockerLockInfo. # noqa: E501 + + + :return: The total_count of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this PageResponseTaNftLockerLockInfo. + + + :param total_count: The total_count of this PageResponseTaNftLockerLockInfo. # noqa: E501 + :type: int + """ + + self._total_count = total_count + + 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(PageResponseTaNftLockerLockInfo, 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, PageResponseTaNftLockerLockInfo): + 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/page_response_ta_token_locker_lock_info.py b/swagger_client/models/page_response_ta_token_locker_lock_info.py new file mode 100644 index 0000000..0dc2c37 --- /dev/null +++ b/swagger_client/models/page_response_ta_token_locker_lock_info.py @@ -0,0 +1,188 @@ +# 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 PageResponseTaTokenLockerLockInfo(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 = { + 'list': 'list[TaTokenLockerLockInfo]', + 'page_num': 'int', + 'page_size': 'int', + 'total_count': 'int' + } + + attribute_map = { + 'list': 'list', + 'page_num': 'pageNum', + 'page_size': 'pageSize', + 'total_count': 'totalCount' + } + + def __init__(self, list=None, page_num=None, page_size=None, total_count=None): # noqa: E501 + """PageResponseTaTokenLockerLockInfo - a model defined in Swagger""" # noqa: E501 + self._list = None + self._page_num = None + self._page_size = None + self._total_count = None + self.discriminator = None + if list is not None: + self.list = list + if page_num is not None: + self.page_num = page_num + if page_size is not None: + self.page_size = page_size + if total_count is not None: + self.total_count = total_count + + @property + def list(self): + """Gets the list of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + + + :return: The list of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: list[TaTokenLockerLockInfo] + """ + return self._list + + @list.setter + def list(self, list): + """Sets the list of this PageResponseTaTokenLockerLockInfo. + + + :param list: The list of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: list[TaTokenLockerLockInfo] + """ + + self._list = list + + @property + def page_num(self): + """Gets the page_num of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + + + :return: The page_num of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._page_num + + @page_num.setter + def page_num(self, page_num): + """Sets the page_num of this PageResponseTaTokenLockerLockInfo. + + + :param page_num: The page_num of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._page_num = page_num + + @property + def page_size(self): + """Gets the page_size of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + + + :return: The page_size of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this PageResponseTaTokenLockerLockInfo. + + + :param page_size: The page_size of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def total_count(self): + """Gets the total_count of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + + + :return: The total_count of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this PageResponseTaTokenLockerLockInfo. + + + :param total_count: The total_count of this PageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._total_count = total_count + + 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(PageResponseTaTokenLockerLockInfo, 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, PageResponseTaTokenLockerLockInfo): + 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/page_response_v4_nft_locker_lock_infos.py b/swagger_client/models/page_response_v4_nft_locker_lock_infos.py new file mode 100644 index 0000000..b8aea77 --- /dev/null +++ b/swagger_client/models/page_response_v4_nft_locker_lock_infos.py @@ -0,0 +1,188 @@ +# 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 PageResponseV4NftLockerLockInfos(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 = { + 'list': 'list[V4NftLockerLockInfos]', + 'page_num': 'int', + 'page_size': 'int', + 'total_count': 'int' + } + + attribute_map = { + 'list': 'list', + 'page_num': 'pageNum', + 'page_size': 'pageSize', + 'total_count': 'totalCount' + } + + def __init__(self, list=None, page_num=None, page_size=None, total_count=None): # noqa: E501 + """PageResponseV4NftLockerLockInfos - a model defined in Swagger""" # noqa: E501 + self._list = None + self._page_num = None + self._page_size = None + self._total_count = None + self.discriminator = None + if list is not None: + self.list = list + if page_num is not None: + self.page_num = page_num + if page_size is not None: + self.page_size = page_size + if total_count is not None: + self.total_count = total_count + + @property + def list(self): + """Gets the list of this PageResponseV4NftLockerLockInfos. # noqa: E501 + + + :return: The list of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: list[V4NftLockerLockInfos] + """ + return self._list + + @list.setter + def list(self, list): + """Sets the list of this PageResponseV4NftLockerLockInfos. + + + :param list: The list of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :type: list[V4NftLockerLockInfos] + """ + + self._list = list + + @property + def page_num(self): + """Gets the page_num of this PageResponseV4NftLockerLockInfos. # noqa: E501 + + + :return: The page_num of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: int + """ + return self._page_num + + @page_num.setter + def page_num(self, page_num): + """Sets the page_num of this PageResponseV4NftLockerLockInfos. + + + :param page_num: The page_num of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :type: int + """ + + self._page_num = page_num + + @property + def page_size(self): + """Gets the page_size of this PageResponseV4NftLockerLockInfos. # noqa: E501 + + + :return: The page_size of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this PageResponseV4NftLockerLockInfos. + + + :param page_size: The page_size of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def total_count(self): + """Gets the total_count of this PageResponseV4NftLockerLockInfos. # noqa: E501 + + + :return: The total_count of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: int + """ + return self._total_count + + @total_count.setter + def total_count(self, total_count): + """Sets the total_count of this PageResponseV4NftLockerLockInfos. + + + :param total_count: The total_count of this PageResponseV4NftLockerLockInfos. # noqa: E501 + :type: int + """ + + self._total_count = total_count + + 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(PageResponseV4NftLockerLockInfos, 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, PageResponseV4NftLockerLockInfos): + 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_get_scan_result.py b/swagger_client/models/response_wrapper_get_scan_result.py new file mode 100644 index 0000000..41447f8 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperGetScanResult(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'ResponseWrapperGetScanResultResult' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperGetScanResult - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperGetScanResult. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperGetScanResult. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperGetScanResult. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperGetScanResult. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperGetScanResult. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperGetScanResult. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperGetScanResult. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperGetScanResult. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperGetScanResult. # noqa: E501 + + + :return: The result of this ResponseWrapperGetScanResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResult + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperGetScanResult. + + + :param result: The result of this ResponseWrapperGetScanResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResult + """ + + self._result = result + + 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(ResponseWrapperGetScanResult, 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, ResponseWrapperGetScanResult): + 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_get_scan_result_result.py b/swagger_client/models/response_wrapper_get_scan_result_result.py new file mode 100644 index 0000000..288a625 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result.py @@ -0,0 +1,428 @@ +# 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 ResponseWrapperGetScanResultResult(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 = { + 'chain_id': 'str', + 'approval_risk': 'ResponseWrapperGetScanResultResultApprovalRisk', + 'token_attention': 'ResponseWrapperGetScanResultResultTokenAttention', + 'nft_attention': 'ResponseWrapperGetScanResultResultTokenAttention', + 'stablecoin_depeg': 'ResponseWrapperGetScanResultResultStablecoinDepeg', + 'address_poisoned': 'ResponseWrapperGetScanResultResultAddressPoisoned', + 'excessive_gas_fee': 'ResponseWrapperGetScanResultResultAddressPoisoned', + 'nft_risk': 'ResponseWrapperGetScanResultResultTokenAttention', + 'nft_stolen': 'ResponseWrapperGetScanResultResultAddressPoisoned', + 'scan_time': 'str', + 'request_id': 'str', + 'token_risk': 'ResponseWrapperGetScanResultResultTokenAttention', + 'risky_address_interaction': 'ResponseWrapperGetScanResultResultAddressPoisoned' + } + + attribute_map = { + 'chain_id': 'chain_id', + 'approval_risk': 'approval_risk', + 'token_attention': 'token_attention', + 'nft_attention': 'nft_attention', + 'stablecoin_depeg': 'stablecoin_depeg', + 'address_poisoned': 'address_poisoned', + 'excessive_gas_fee': 'excessive_gas_fee', + 'nft_risk': 'nft_risk', + 'nft_stolen': 'nft_stolen', + 'scan_time': 'scan_time', + 'request_id': 'request_id', + 'token_risk': 'token_risk', + 'risky_address_interaction': 'risky_address_interaction' + } + + def __init__(self, chain_id=None, approval_risk=None, token_attention=None, nft_attention=None, stablecoin_depeg=None, address_poisoned=None, excessive_gas_fee=None, nft_risk=None, nft_stolen=None, scan_time=None, request_id=None, token_risk=None, risky_address_interaction=None): # noqa: E501 + """ResponseWrapperGetScanResultResult - a model defined in Swagger""" # noqa: E501 + self._chain_id = None + self._approval_risk = None + self._token_attention = None + self._nft_attention = None + self._stablecoin_depeg = None + self._address_poisoned = None + self._excessive_gas_fee = None + self._nft_risk = None + self._nft_stolen = None + self._scan_time = None + self._request_id = None + self._token_risk = None + self._risky_address_interaction = None + self.discriminator = None + if chain_id is not None: + self.chain_id = chain_id + if approval_risk is not None: + self.approval_risk = approval_risk + if token_attention is not None: + self.token_attention = token_attention + if nft_attention is not None: + self.nft_attention = nft_attention + if stablecoin_depeg is not None: + self.stablecoin_depeg = stablecoin_depeg + if address_poisoned is not None: + self.address_poisoned = address_poisoned + if excessive_gas_fee is not None: + self.excessive_gas_fee = excessive_gas_fee + if nft_risk is not None: + self.nft_risk = nft_risk + if nft_stolen is not None: + self.nft_stolen = nft_stolen + if scan_time is not None: + self.scan_time = scan_time + if request_id is not None: + self.request_id = request_id + if token_risk is not None: + self.token_risk = token_risk + if risky_address_interaction is not None: + self.risky_address_interaction = risky_address_interaction + + @property + def chain_id(self): + """Gets the chain_id of this ResponseWrapperGetScanResultResult. # noqa: E501 + + Chain ID # noqa: E501 + + :return: The chain_id of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: str + """ + return self._chain_id + + @chain_id.setter + def chain_id(self, chain_id): + """Sets the chain_id of this ResponseWrapperGetScanResultResult. + + Chain ID # noqa: E501 + + :param chain_id: The chain_id of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: str + """ + + self._chain_id = chain_id + + @property + def approval_risk(self): + """Gets the approval_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The approval_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultApprovalRisk + """ + return self._approval_risk + + @approval_risk.setter + def approval_risk(self, approval_risk): + """Sets the approval_risk of this ResponseWrapperGetScanResultResult. + + + :param approval_risk: The approval_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultApprovalRisk + """ + + self._approval_risk = approval_risk + + @property + def token_attention(self): + """Gets the token_attention of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The token_attention of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultTokenAttention + """ + return self._token_attention + + @token_attention.setter + def token_attention(self, token_attention): + """Sets the token_attention of this ResponseWrapperGetScanResultResult. + + + :param token_attention: The token_attention of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultTokenAttention + """ + + self._token_attention = token_attention + + @property + def nft_attention(self): + """Gets the nft_attention of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The nft_attention of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultTokenAttention + """ + return self._nft_attention + + @nft_attention.setter + def nft_attention(self, nft_attention): + """Sets the nft_attention of this ResponseWrapperGetScanResultResult. + + + :param nft_attention: The nft_attention of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultTokenAttention + """ + + self._nft_attention = nft_attention + + @property + def stablecoin_depeg(self): + """Gets the stablecoin_depeg of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The stablecoin_depeg of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultStablecoinDepeg + """ + return self._stablecoin_depeg + + @stablecoin_depeg.setter + def stablecoin_depeg(self, stablecoin_depeg): + """Sets the stablecoin_depeg of this ResponseWrapperGetScanResultResult. + + + :param stablecoin_depeg: The stablecoin_depeg of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultStablecoinDepeg + """ + + self._stablecoin_depeg = stablecoin_depeg + + @property + def address_poisoned(self): + """Gets the address_poisoned of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The address_poisoned of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultAddressPoisoned + """ + return self._address_poisoned + + @address_poisoned.setter + def address_poisoned(self, address_poisoned): + """Sets the address_poisoned of this ResponseWrapperGetScanResultResult. + + + :param address_poisoned: The address_poisoned of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultAddressPoisoned + """ + + self._address_poisoned = address_poisoned + + @property + def excessive_gas_fee(self): + """Gets the excessive_gas_fee of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The excessive_gas_fee of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultAddressPoisoned + """ + return self._excessive_gas_fee + + @excessive_gas_fee.setter + def excessive_gas_fee(self, excessive_gas_fee): + """Sets the excessive_gas_fee of this ResponseWrapperGetScanResultResult. + + + :param excessive_gas_fee: The excessive_gas_fee of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultAddressPoisoned + """ + + self._excessive_gas_fee = excessive_gas_fee + + @property + def nft_risk(self): + """Gets the nft_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The nft_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultTokenAttention + """ + return self._nft_risk + + @nft_risk.setter + def nft_risk(self, nft_risk): + """Sets the nft_risk of this ResponseWrapperGetScanResultResult. + + + :param nft_risk: The nft_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultTokenAttention + """ + + self._nft_risk = nft_risk + + @property + def nft_stolen(self): + """Gets the nft_stolen of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The nft_stolen of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultAddressPoisoned + """ + return self._nft_stolen + + @nft_stolen.setter + def nft_stolen(self, nft_stolen): + """Sets the nft_stolen of this ResponseWrapperGetScanResultResult. + + + :param nft_stolen: The nft_stolen of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultAddressPoisoned + """ + + self._nft_stolen = nft_stolen + + @property + def scan_time(self): + """Gets the scan_time of this ResponseWrapperGetScanResultResult. # noqa: E501 + + Scan initiation time. UTC+0. # noqa: E501 + + :return: The scan_time of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: str + """ + return self._scan_time + + @scan_time.setter + def scan_time(self, scan_time): + """Sets the scan_time of this ResponseWrapperGetScanResultResult. + + Scan initiation time. UTC+0. # noqa: E501 + + :param scan_time: The scan_time of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: str + """ + + self._scan_time = scan_time + + @property + def request_id(self): + """Gets the request_id of this ResponseWrapperGetScanResultResult. # noqa: E501 + + Request ID # noqa: E501 + + :return: The request_id of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: str + """ + return self._request_id + + @request_id.setter + def request_id(self, request_id): + """Sets the request_id of this ResponseWrapperGetScanResultResult. + + Request ID # noqa: E501 + + :param request_id: The request_id of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: str + """ + + self._request_id = request_id + + @property + def token_risk(self): + """Gets the token_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The token_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultTokenAttention + """ + return self._token_risk + + @token_risk.setter + def token_risk(self, token_risk): + """Sets the token_risk of this ResponseWrapperGetScanResultResult. + + + :param token_risk: The token_risk of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultTokenAttention + """ + + self._token_risk = token_risk + + @property + def risky_address_interaction(self): + """Gets the risky_address_interaction of this ResponseWrapperGetScanResultResult. # noqa: E501 + + + :return: The risky_address_interaction of this ResponseWrapperGetScanResultResult. # noqa: E501 + :rtype: ResponseWrapperGetScanResultResultAddressPoisoned + """ + return self._risky_address_interaction + + @risky_address_interaction.setter + def risky_address_interaction(self, risky_address_interaction): + """Sets the risky_address_interaction of this ResponseWrapperGetScanResultResult. + + + :param risky_address_interaction: The risky_address_interaction of this ResponseWrapperGetScanResultResult. # noqa: E501 + :type: ResponseWrapperGetScanResultResultAddressPoisoned + """ + + self._risky_address_interaction = risky_address_interaction + + 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(ResponseWrapperGetScanResultResult, 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, ResponseWrapperGetScanResultResult): + 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_get_scan_result_result_address_poisoned.py b/swagger_client/models/response_wrapper_get_scan_result_result_address_poisoned.py new file mode 100644 index 0000000..e52e0ae --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_address_poisoned.py @@ -0,0 +1,136 @@ +# 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 ResponseWrapperGetScanResultResultAddressPoisoned(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 = { + 'risk_num': 'int', + 'risk_detail': 'list[ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail]' + } + + attribute_map = { + 'risk_num': 'risk_num', + 'risk_detail': 'risk_detail' + } + + def __init__(self, risk_num=None, risk_detail=None): # noqa: E501 + """ResponseWrapperGetScanResultResultAddressPoisoned - a model defined in Swagger""" # noqa: E501 + self._risk_num = None + self._risk_detail = None + self.discriminator = None + if risk_num is not None: + self.risk_num = risk_num + if risk_detail is not None: + self.risk_detail = risk_detail + + @property + def risk_num(self): + """Gets the risk_num of this ResponseWrapperGetScanResultResultAddressPoisoned. # noqa: E501 + + + :return: The risk_num of this ResponseWrapperGetScanResultResultAddressPoisoned. # noqa: E501 + :rtype: int + """ + return self._risk_num + + @risk_num.setter + def risk_num(self, risk_num): + """Sets the risk_num of this ResponseWrapperGetScanResultResultAddressPoisoned. + + + :param risk_num: The risk_num of this ResponseWrapperGetScanResultResultAddressPoisoned. # noqa: E501 + :type: int + """ + + self._risk_num = risk_num + + @property + def risk_detail(self): + """Gets the risk_detail of this ResponseWrapperGetScanResultResultAddressPoisoned. # noqa: E501 + + + :return: The risk_detail of this ResponseWrapperGetScanResultResultAddressPoisoned. # noqa: E501 + :rtype: list[ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail] + """ + return self._risk_detail + + @risk_detail.setter + def risk_detail(self, risk_detail): + """Sets the risk_detail of this ResponseWrapperGetScanResultResultAddressPoisoned. + + + :param risk_detail: The risk_detail of this ResponseWrapperGetScanResultResultAddressPoisoned. # noqa: E501 + :type: list[ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail] + """ + + self._risk_detail = risk_detail + + 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(ResponseWrapperGetScanResultResultAddressPoisoned, 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, ResponseWrapperGetScanResultResultAddressPoisoned): + 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_get_scan_result_result_address_poisoned_risk_detail.py b/swagger_client/models/response_wrapper_get_scan_result_result_address_poisoned_risk_detail.py new file mode 100644 index 0000000..d3b4891 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_address_poisoned_risk_detail.py @@ -0,0 +1,136 @@ +# 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 ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail(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 = { + 'transaction_time': 'str', + 'transaction_hash': 'str' + } + + attribute_map = { + 'transaction_time': 'transaction_time', + 'transaction_hash': 'transaction_hash' + } + + def __init__(self, transaction_time=None, transaction_hash=None): # noqa: E501 + """ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail - a model defined in Swagger""" # noqa: E501 + self._transaction_time = None + self._transaction_hash = None + self.discriminator = None + if transaction_time is not None: + self.transaction_time = transaction_time + if transaction_hash is not None: + self.transaction_hash = transaction_hash + + @property + def transaction_time(self): + """Gets the transaction_time of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. # noqa: E501 + + + :return: The transaction_time of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. # noqa: E501 + :rtype: str + """ + return self._transaction_time + + @transaction_time.setter + def transaction_time(self, transaction_time): + """Sets the transaction_time of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. + + + :param transaction_time: The transaction_time of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. # noqa: E501 + :type: str + """ + + self._transaction_time = transaction_time + + @property + def transaction_hash(self): + """Gets the transaction_hash of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. # noqa: E501 + + + :return: The transaction_hash of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. # noqa: E501 + :rtype: str + """ + return self._transaction_hash + + @transaction_hash.setter + def transaction_hash(self, transaction_hash): + """Sets the transaction_hash of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. + + + :param transaction_hash: The transaction_hash of this ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail. # noqa: E501 + :type: str + """ + + self._transaction_hash = transaction_hash + + 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(ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail, 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, ResponseWrapperGetScanResultResultAddressPoisonedRiskDetail): + 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_get_scan_result_result_approval_risk.py b/swagger_client/models/response_wrapper_get_scan_result_result_approval_risk.py new file mode 100644 index 0000000..8bef317 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_approval_risk.py @@ -0,0 +1,136 @@ +# 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 ResponseWrapperGetScanResultResultApprovalRisk(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 = { + 'risk_num': 'int', + 'risk_detail': 'list[ResponseWrapperGetScanResultResultApprovalRiskRiskDetail]' + } + + attribute_map = { + 'risk_num': 'risk_num', + 'risk_detail': 'risk_detail' + } + + def __init__(self, risk_num=None, risk_detail=None): # noqa: E501 + """ResponseWrapperGetScanResultResultApprovalRisk - a model defined in Swagger""" # noqa: E501 + self._risk_num = None + self._risk_detail = None + self.discriminator = None + if risk_num is not None: + self.risk_num = risk_num + if risk_detail is not None: + self.risk_detail = risk_detail + + @property + def risk_num(self): + """Gets the risk_num of this ResponseWrapperGetScanResultResultApprovalRisk. # noqa: E501 + + + :return: The risk_num of this ResponseWrapperGetScanResultResultApprovalRisk. # noqa: E501 + :rtype: int + """ + return self._risk_num + + @risk_num.setter + def risk_num(self, risk_num): + """Sets the risk_num of this ResponseWrapperGetScanResultResultApprovalRisk. + + + :param risk_num: The risk_num of this ResponseWrapperGetScanResultResultApprovalRisk. # noqa: E501 + :type: int + """ + + self._risk_num = risk_num + + @property + def risk_detail(self): + """Gets the risk_detail of this ResponseWrapperGetScanResultResultApprovalRisk. # noqa: E501 + + + :return: The risk_detail of this ResponseWrapperGetScanResultResultApprovalRisk. # noqa: E501 + :rtype: list[ResponseWrapperGetScanResultResultApprovalRiskRiskDetail] + """ + return self._risk_detail + + @risk_detail.setter + def risk_detail(self, risk_detail): + """Sets the risk_detail of this ResponseWrapperGetScanResultResultApprovalRisk. + + + :param risk_detail: The risk_detail of this ResponseWrapperGetScanResultResultApprovalRisk. # noqa: E501 + :type: list[ResponseWrapperGetScanResultResultApprovalRiskRiskDetail] + """ + + self._risk_detail = risk_detail + + 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(ResponseWrapperGetScanResultResultApprovalRisk, 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, ResponseWrapperGetScanResultResultApprovalRisk): + 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_get_scan_result_result_approval_risk_erc20_risk.py b/swagger_client/models/response_wrapper_get_scan_result_result_approval_risk_erc20_risk.py new file mode 100644 index 0000000..08e5efe --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_approval_risk_erc20_risk.py @@ -0,0 +1,240 @@ +# 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 ResponseWrapperGetScanResultResultApprovalRiskErc20Risk(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 = { + 'transaction_time': 'str', + 'token_address': 'str', + 'token_symbol': 'str', + 'approved_amount': 'str', + 'transaction_hash': 'str', + 'approved_address': 'str' + } + + attribute_map = { + 'transaction_time': 'transaction_time', + 'token_address': 'token_address', + 'token_symbol': 'token_symbol', + 'approved_amount': 'approved_amount', + 'transaction_hash': 'transaction_hash', + 'approved_address': 'approved_address' + } + + def __init__(self, transaction_time=None, token_address=None, token_symbol=None, approved_amount=None, transaction_hash=None, approved_address=None): # noqa: E501 + """ResponseWrapperGetScanResultResultApprovalRiskErc20Risk - a model defined in Swagger""" # noqa: E501 + self._transaction_time = None + self._token_address = None + self._token_symbol = None + self._approved_amount = None + self._transaction_hash = None + self._approved_address = None + self.discriminator = None + if transaction_time is not None: + self.transaction_time = transaction_time + if token_address is not None: + self.token_address = token_address + if token_symbol is not None: + self.token_symbol = token_symbol + if approved_amount is not None: + self.approved_amount = approved_amount + if transaction_hash is not None: + self.transaction_hash = transaction_hash + if approved_address is not None: + self.approved_address = approved_address + + @property + def transaction_time(self): + """Gets the transaction_time of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + + + :return: The transaction_time of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :rtype: str + """ + return self._transaction_time + + @transaction_time.setter + def transaction_time(self, transaction_time): + """Sets the transaction_time of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. + + + :param transaction_time: The transaction_time of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :type: str + """ + + self._transaction_time = transaction_time + + @property + def token_address(self): + """Gets the token_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + + + :return: The token_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :rtype: str + """ + return self._token_address + + @token_address.setter + def token_address(self, token_address): + """Sets the token_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. + + + :param token_address: The token_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :type: str + """ + + self._token_address = token_address + + @property + def token_symbol(self): + """Gets the token_symbol of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + + + :return: The token_symbol of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :rtype: str + """ + return self._token_symbol + + @token_symbol.setter + def token_symbol(self, token_symbol): + """Sets the token_symbol of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. + + + :param token_symbol: The token_symbol of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :type: str + """ + + self._token_symbol = token_symbol + + @property + def approved_amount(self): + """Gets the approved_amount of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + + + :return: The approved_amount of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :rtype: str + """ + return self._approved_amount + + @approved_amount.setter + def approved_amount(self, approved_amount): + """Sets the approved_amount of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. + + + :param approved_amount: The approved_amount of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :type: str + """ + + self._approved_amount = approved_amount + + @property + def transaction_hash(self): + """Gets the transaction_hash of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + + + :return: The transaction_hash of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :rtype: str + """ + return self._transaction_hash + + @transaction_hash.setter + def transaction_hash(self, transaction_hash): + """Sets the transaction_hash of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. + + + :param transaction_hash: The transaction_hash of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :type: str + """ + + self._transaction_hash = transaction_hash + + @property + def approved_address(self): + """Gets the approved_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + + + :return: The approved_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :rtype: str + """ + return self._approved_address + + @approved_address.setter + def approved_address(self, approved_address): + """Sets the approved_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. + + + :param approved_address: The approved_address of this ResponseWrapperGetScanResultResultApprovalRiskErc20Risk. # noqa: E501 + :type: str + """ + + self._approved_address = approved_address + + 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(ResponseWrapperGetScanResultResultApprovalRiskErc20Risk, 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, ResponseWrapperGetScanResultResultApprovalRiskErc20Risk): + 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_get_scan_result_result_approval_risk_risk_detail.py b/swagger_client/models/response_wrapper_get_scan_result_result_approval_risk_risk_detail.py new file mode 100644 index 0000000..c8ffc19 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_approval_risk_risk_detail.py @@ -0,0 +1,110 @@ +# 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 ResponseWrapperGetScanResultResultApprovalRiskRiskDetail(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 = { + 'erc20_risk': 'list[ResponseWrapperGetScanResultResultApprovalRiskErc20Risk]' + } + + attribute_map = { + 'erc20_risk': 'erc20_risk' + } + + def __init__(self, erc20_risk=None): # noqa: E501 + """ResponseWrapperGetScanResultResultApprovalRiskRiskDetail - a model defined in Swagger""" # noqa: E501 + self._erc20_risk = None + self.discriminator = None + if erc20_risk is not None: + self.erc20_risk = erc20_risk + + @property + def erc20_risk(self): + """Gets the erc20_risk of this ResponseWrapperGetScanResultResultApprovalRiskRiskDetail. # noqa: E501 + + + :return: The erc20_risk of this ResponseWrapperGetScanResultResultApprovalRiskRiskDetail. # noqa: E501 + :rtype: list[ResponseWrapperGetScanResultResultApprovalRiskErc20Risk] + """ + return self._erc20_risk + + @erc20_risk.setter + def erc20_risk(self, erc20_risk): + """Sets the erc20_risk of this ResponseWrapperGetScanResultResultApprovalRiskRiskDetail. + + + :param erc20_risk: The erc20_risk of this ResponseWrapperGetScanResultResultApprovalRiskRiskDetail. # noqa: E501 + :type: list[ResponseWrapperGetScanResultResultApprovalRiskErc20Risk] + """ + + self._erc20_risk = erc20_risk + + 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(ResponseWrapperGetScanResultResultApprovalRiskRiskDetail, 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, ResponseWrapperGetScanResultResultApprovalRiskRiskDetail): + 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_get_scan_result_result_stablecoin_depeg.py b/swagger_client/models/response_wrapper_get_scan_result_result_stablecoin_depeg.py new file mode 100644 index 0000000..cd6b839 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_stablecoin_depeg.py @@ -0,0 +1,136 @@ +# 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 ResponseWrapperGetScanResultResultStablecoinDepeg(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 = { + 'risk_num': 'int', + 'risk_detail': 'list[ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail]' + } + + attribute_map = { + 'risk_num': 'risk_num', + 'risk_detail': 'risk_detail' + } + + def __init__(self, risk_num=None, risk_detail=None): # noqa: E501 + """ResponseWrapperGetScanResultResultStablecoinDepeg - a model defined in Swagger""" # noqa: E501 + self._risk_num = None + self._risk_detail = None + self.discriminator = None + if risk_num is not None: + self.risk_num = risk_num + if risk_detail is not None: + self.risk_detail = risk_detail + + @property + def risk_num(self): + """Gets the risk_num of this ResponseWrapperGetScanResultResultStablecoinDepeg. # noqa: E501 + + + :return: The risk_num of this ResponseWrapperGetScanResultResultStablecoinDepeg. # noqa: E501 + :rtype: int + """ + return self._risk_num + + @risk_num.setter + def risk_num(self, risk_num): + """Sets the risk_num of this ResponseWrapperGetScanResultResultStablecoinDepeg. + + + :param risk_num: The risk_num of this ResponseWrapperGetScanResultResultStablecoinDepeg. # noqa: E501 + :type: int + """ + + self._risk_num = risk_num + + @property + def risk_detail(self): + """Gets the risk_detail of this ResponseWrapperGetScanResultResultStablecoinDepeg. # noqa: E501 + + + :return: The risk_detail of this ResponseWrapperGetScanResultResultStablecoinDepeg. # noqa: E501 + :rtype: list[ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail] + """ + return self._risk_detail + + @risk_detail.setter + def risk_detail(self, risk_detail): + """Sets the risk_detail of this ResponseWrapperGetScanResultResultStablecoinDepeg. + + + :param risk_detail: The risk_detail of this ResponseWrapperGetScanResultResultStablecoinDepeg. # noqa: E501 + :type: list[ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail] + """ + + self._risk_detail = risk_detail + + 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(ResponseWrapperGetScanResultResultStablecoinDepeg, 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, ResponseWrapperGetScanResultResultStablecoinDepeg): + 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_get_scan_result_result_stablecoin_depeg_risk_detail.py b/swagger_client/models/response_wrapper_get_scan_result_result_stablecoin_depeg_risk_detail.py new file mode 100644 index 0000000..35d14a6 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_stablecoin_depeg_risk_detail.py @@ -0,0 +1,162 @@ +# 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 ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail(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 = { + 'fall_percent': 'str', + 'token_address': 'str', + 'token_symbol': 'str' + } + + attribute_map = { + 'fall_percent': 'fall_percent', + 'token_address': 'token_address', + 'token_symbol': 'token_symbol' + } + + def __init__(self, fall_percent=None, token_address=None, token_symbol=None): # noqa: E501 + """ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail - a model defined in Swagger""" # noqa: E501 + self._fall_percent = None + self._token_address = None + self._token_symbol = None + self.discriminator = None + if fall_percent is not None: + self.fall_percent = fall_percent + if token_address is not None: + self.token_address = token_address + if token_symbol is not None: + self.token_symbol = token_symbol + + @property + def fall_percent(self): + """Gets the fall_percent of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + + + :return: The fall_percent of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + :rtype: str + """ + return self._fall_percent + + @fall_percent.setter + def fall_percent(self, fall_percent): + """Sets the fall_percent of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. + + + :param fall_percent: The fall_percent of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + :type: str + """ + + self._fall_percent = fall_percent + + @property + def token_address(self): + """Gets the token_address of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + + + :return: The token_address of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + :rtype: str + """ + return self._token_address + + @token_address.setter + def token_address(self, token_address): + """Sets the token_address of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. + + + :param token_address: The token_address of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + :type: str + """ + + self._token_address = token_address + + @property + def token_symbol(self): + """Gets the token_symbol of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + + + :return: The token_symbol of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + :rtype: str + """ + return self._token_symbol + + @token_symbol.setter + def token_symbol(self, token_symbol): + """Sets the token_symbol of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. + + + :param token_symbol: The token_symbol of this ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail. # noqa: E501 + :type: str + """ + + self._token_symbol = token_symbol + + 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(ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail, 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, ResponseWrapperGetScanResultResultStablecoinDepegRiskDetail): + 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_get_scan_result_result_token_attention.py b/swagger_client/models/response_wrapper_get_scan_result_result_token_attention.py new file mode 100644 index 0000000..d9d8a4e --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_token_attention.py @@ -0,0 +1,136 @@ +# 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 ResponseWrapperGetScanResultResultTokenAttention(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 = { + 'risk_num': 'int', + 'risk_detail': 'list[ResponseWrapperGetScanResultResultTokenAttentionRiskDetail]' + } + + attribute_map = { + 'risk_num': 'risk_num', + 'risk_detail': 'risk_detail' + } + + def __init__(self, risk_num=None, risk_detail=None): # noqa: E501 + """ResponseWrapperGetScanResultResultTokenAttention - a model defined in Swagger""" # noqa: E501 + self._risk_num = None + self._risk_detail = None + self.discriminator = None + if risk_num is not None: + self.risk_num = risk_num + if risk_detail is not None: + self.risk_detail = risk_detail + + @property + def risk_num(self): + """Gets the risk_num of this ResponseWrapperGetScanResultResultTokenAttention. # noqa: E501 + + + :return: The risk_num of this ResponseWrapperGetScanResultResultTokenAttention. # noqa: E501 + :rtype: int + """ + return self._risk_num + + @risk_num.setter + def risk_num(self, risk_num): + """Sets the risk_num of this ResponseWrapperGetScanResultResultTokenAttention. + + + :param risk_num: The risk_num of this ResponseWrapperGetScanResultResultTokenAttention. # noqa: E501 + :type: int + """ + + self._risk_num = risk_num + + @property + def risk_detail(self): + """Gets the risk_detail of this ResponseWrapperGetScanResultResultTokenAttention. # noqa: E501 + + + :return: The risk_detail of this ResponseWrapperGetScanResultResultTokenAttention. # noqa: E501 + :rtype: list[ResponseWrapperGetScanResultResultTokenAttentionRiskDetail] + """ + return self._risk_detail + + @risk_detail.setter + def risk_detail(self, risk_detail): + """Sets the risk_detail of this ResponseWrapperGetScanResultResultTokenAttention. + + + :param risk_detail: The risk_detail of this ResponseWrapperGetScanResultResultTokenAttention. # noqa: E501 + :type: list[ResponseWrapperGetScanResultResultTokenAttentionRiskDetail] + """ + + self._risk_detail = risk_detail + + 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(ResponseWrapperGetScanResultResultTokenAttention, 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, ResponseWrapperGetScanResultResultTokenAttention): + 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_get_scan_result_result_token_attention_risk_detail.py b/swagger_client/models/response_wrapper_get_scan_result_result_token_attention_risk_detail.py new file mode 100644 index 0000000..d4ced89 --- /dev/null +++ b/swagger_client/models/response_wrapper_get_scan_result_result_token_attention_risk_detail.py @@ -0,0 +1,136 @@ +# 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 ResponseWrapperGetScanResultResultTokenAttentionRiskDetail(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 = { + 'token_address': 'str', + 'token_symbol': 'str' + } + + attribute_map = { + 'token_address': 'token_address', + 'token_symbol': 'token_symbol' + } + + def __init__(self, token_address=None, token_symbol=None): # noqa: E501 + """ResponseWrapperGetScanResultResultTokenAttentionRiskDetail - a model defined in Swagger""" # noqa: E501 + self._token_address = None + self._token_symbol = None + self.discriminator = None + if token_address is not None: + self.token_address = token_address + if token_symbol is not None: + self.token_symbol = token_symbol + + @property + def token_address(self): + """Gets the token_address of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. # noqa: E501 + + + :return: The token_address of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. # noqa: E501 + :rtype: str + """ + return self._token_address + + @token_address.setter + def token_address(self, token_address): + """Sets the token_address of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. + + + :param token_address: The token_address of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. # noqa: E501 + :type: str + """ + + self._token_address = token_address + + @property + def token_symbol(self): + """Gets the token_symbol of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. # noqa: E501 + + + :return: The token_symbol of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. # noqa: E501 + :rtype: str + """ + return self._token_symbol + + @token_symbol.setter + def token_symbol(self, token_symbol): + """Sets the token_symbol of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. + + + :param token_symbol: The token_symbol of this ResponseWrapperGetScanResultResultTokenAttentionRiskDetail. # noqa: E501 + :type: str + """ + + self._token_symbol = token_symbol + + 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(ResponseWrapperGetScanResultResultTokenAttentionRiskDetail, 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, ResponseWrapperGetScanResultResultTokenAttentionRiskDetail): + 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_open_scan_address_resp.py b/swagger_client/models/response_wrapper_open_scan_address_resp.py new file mode 100644 index 0000000..bd095b5 --- /dev/null +++ b/swagger_client/models/response_wrapper_open_scan_address_resp.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperOpenScanAddressResp(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'OpenScanAddressResp' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperOpenScanAddressResp - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperOpenScanAddressResp. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperOpenScanAddressResp. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + + + :return: The result of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + :rtype: OpenScanAddressResp + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperOpenScanAddressResp. + + + :param result: The result of this ResponseWrapperOpenScanAddressResp. # noqa: E501 + :type: OpenScanAddressResp + """ + + self._result = result + + 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(ResponseWrapperOpenScanAddressResp, 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, ResponseWrapperOpenScanAddressResp): + 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_page_response_ta_nft_locker_lock_info.py b/swagger_client/models/response_wrapper_page_response_ta_nft_locker_lock_info.py new file mode 100644 index 0000000..3c306b2 --- /dev/null +++ b/swagger_client/models/response_wrapper_page_response_ta_nft_locker_lock_info.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperPageResponseTaNftLockerLockInfo(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'PageResponseTaNftLockerLockInfo' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperPageResponseTaNftLockerLockInfo - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperPageResponseTaNftLockerLockInfo. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperPageResponseTaNftLockerLockInfo. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + + + :return: The result of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + :rtype: PageResponseTaNftLockerLockInfo + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperPageResponseTaNftLockerLockInfo. + + + :param result: The result of this ResponseWrapperPageResponseTaNftLockerLockInfo. # noqa: E501 + :type: PageResponseTaNftLockerLockInfo + """ + + self._result = result + + 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(ResponseWrapperPageResponseTaNftLockerLockInfo, 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, ResponseWrapperPageResponseTaNftLockerLockInfo): + 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_page_response_ta_token_locker_lock_info.py b/swagger_client/models/response_wrapper_page_response_ta_token_locker_lock_info.py new file mode 100644 index 0000000..d975db7 --- /dev/null +++ b/swagger_client/models/response_wrapper_page_response_ta_token_locker_lock_info.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperPageResponseTaTokenLockerLockInfo(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'PageResponseTaTokenLockerLockInfo' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperPageResponseTaTokenLockerLockInfo - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperPageResponseTaTokenLockerLockInfo. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperPageResponseTaTokenLockerLockInfo. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + + + :return: The result of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + :rtype: PageResponseTaTokenLockerLockInfo + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperPageResponseTaTokenLockerLockInfo. + + + :param result: The result of this ResponseWrapperPageResponseTaTokenLockerLockInfo. # noqa: E501 + :type: PageResponseTaTokenLockerLockInfo + """ + + self._result = result + + 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(ResponseWrapperPageResponseTaTokenLockerLockInfo, 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, ResponseWrapperPageResponseTaTokenLockerLockInfo): + 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_page_response_v4_nft_locker_lock_infos.py b/swagger_client/models/response_wrapper_page_response_v4_nft_locker_lock_infos.py new file mode 100644 index 0000000..cf805ce --- /dev/null +++ b/swagger_client/models/response_wrapper_page_response_v4_nft_locker_lock_infos.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperPageResponseV4NftLockerLockInfos(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'PageResponseV4NftLockerLockInfos' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperPageResponseV4NftLockerLockInfos - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperPageResponseV4NftLockerLockInfos. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperPageResponseV4NftLockerLockInfos. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + + + :return: The result of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + :rtype: PageResponseV4NftLockerLockInfos + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperPageResponseV4NftLockerLockInfos. + + + :param result: The result of this ResponseWrapperPageResponseV4NftLockerLockInfos. # noqa: E501 + :type: PageResponseV4NftLockerLockInfos + """ + + self._result = result + + 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(ResponseWrapperPageResponseV4NftLockerLockInfos, 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, ResponseWrapperPageResponseV4NftLockerLockInfos): + 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_transaction_security_response.py b/swagger_client/models/response_wrapper_transaction_security_response.py new file mode 100644 index 0000000..9c10dc7 --- /dev/null +++ b/swagger_client/models/response_wrapper_transaction_security_response.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperTransactionSecurityResponse(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'TransactionSecurityResponse' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperTransactionSecurityResponse - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperTransactionSecurityResponse. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperTransactionSecurityResponse. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + + + :return: The result of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + :rtype: TransactionSecurityResponse + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperTransactionSecurityResponse. + + + :param result: The result of this ResponseWrapperTransactionSecurityResponse. # noqa: E501 + :type: TransactionSecurityResponse + """ + + self._result = result + + 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(ResponseWrapperTransactionSecurityResponse, 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, ResponseWrapperTransactionSecurityResponse): + 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_v4_lp_locker_lock_info_resp.py b/swagger_client/models/response_wrapper_v4_lp_locker_lock_info_resp.py new file mode 100644 index 0000000..607a458 --- /dev/null +++ b/swagger_client/models/response_wrapper_v4_lp_locker_lock_info_resp.py @@ -0,0 +1,166 @@ +# 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 ResponseWrapperV4LpLockerLockInfoResp(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'V4LpLockerLockInfoResp' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperV4LpLockerLockInfoResp - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperV4LpLockerLockInfoResp. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperV4LpLockerLockInfoResp. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + + + :return: The result of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + :rtype: V4LpLockerLockInfoResp + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperV4LpLockerLockInfoResp. + + + :param result: The result of this ResponseWrapperV4LpLockerLockInfoResp. # noqa: E501 + :type: V4LpLockerLockInfoResp + """ + + self._result = result + + 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(ResponseWrapperV4LpLockerLockInfoResp, 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, ResponseWrapperV4LpLockerLockInfoResp): + 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_wrapperstring.py b/swagger_client/models/response_wrapperstring.py new file mode 100644 index 0000000..e825082 --- /dev/null +++ b/swagger_client/models/response_wrapperstring.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 ResponseWrapperstring(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 = { + 'code': 'int', + 'message': 'str', + 'result': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message', + 'result': 'result' + } + + def __init__(self, code=None, message=None, result=None): # noqa: E501 + """ResponseWrapperstring - a model defined in Swagger""" # noqa: E501 + self._code = None + self._message = None + self._result = None + self.discriminator = None + if code is not None: + self.code = code + if message is not None: + self.message = message + if result is not None: + self.result = result + + @property + def code(self): + """Gets the code of this ResponseWrapperstring. # noqa: E501 + + Code 1:Success # noqa: E501 + + :return: The code of this ResponseWrapperstring. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this ResponseWrapperstring. + + Code 1:Success # noqa: E501 + + :param code: The code of this ResponseWrapperstring. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this ResponseWrapperstring. # noqa: E501 + + Response message # noqa: E501 + + :return: The message of this ResponseWrapperstring. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this ResponseWrapperstring. + + Response message # noqa: E501 + + :param message: The message of this ResponseWrapperstring. # noqa: E501 + :type: str + """ + + self._message = message + + @property + def result(self): + """Gets the result of this ResponseWrapperstring. # noqa: E501 + + Response result # noqa: E501 + + :return: The result of this ResponseWrapperstring. # noqa: E501 + :rtype: str + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this ResponseWrapperstring. + + Response result # noqa: E501 + + :param result: The result of this ResponseWrapperstring. # noqa: E501 + :type: str + """ + + self._result = result + + 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(ResponseWrapperstring, 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, ResponseWrapperstring): + 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/ta_nft_locker_lock_info.py b/swagger_client/models/ta_nft_locker_lock_info.py new file mode 100644 index 0000000..f6b3db8 --- /dev/null +++ b/swagger_client/models/ta_nft_locker_lock_info.py @@ -0,0 +1,336 @@ +# 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 TaNftLockerLockInfo(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 = { + 'end_time': 'int', + 'liquidity': 'float', + 'lock_id': 'str', + 'locked_percent': 'str', + 'nft_id': 'str', + 'nft_position_manager': 'str', + 'owner': 'str', + 'pool': 'str', + 'start_time': 'int' + } + + attribute_map = { + 'end_time': 'endTime', + 'liquidity': 'liquidity', + 'lock_id': 'lockId', + 'locked_percent': 'lockedPercent', + 'nft_id': 'nftId', + 'nft_position_manager': 'nftPositionManager', + 'owner': 'owner', + 'pool': 'pool', + 'start_time': 'startTime' + } + + def __init__(self, end_time=None, liquidity=None, lock_id=None, locked_percent=None, nft_id=None, nft_position_manager=None, owner=None, pool=None, start_time=None): # noqa: E501 + """TaNftLockerLockInfo - a model defined in Swagger""" # noqa: E501 + self._end_time = None + self._liquidity = None + self._lock_id = None + self._locked_percent = None + self._nft_id = None + self._nft_position_manager = None + self._owner = None + self._pool = None + self._start_time = None + self.discriminator = None + if end_time is not None: + self.end_time = end_time + if liquidity is not None: + self.liquidity = liquidity + if lock_id is not None: + self.lock_id = lock_id + if locked_percent is not None: + self.locked_percent = locked_percent + if nft_id is not None: + self.nft_id = nft_id + if nft_position_manager is not None: + self.nft_position_manager = nft_position_manager + if owner is not None: + self.owner = owner + if pool is not None: + self.pool = pool + if start_time is not None: + self.start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this TaNftLockerLockInfo. # noqa: E501 + + 解锁时间戳 # noqa: E501 + + :return: The end_time of this TaNftLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this TaNftLockerLockInfo. + + 解锁时间戳 # noqa: E501 + + :param end_time: The end_time of this TaNftLockerLockInfo. # noqa: E501 + :type: int + """ + + self._end_time = end_time + + @property + def liquidity(self): + """Gets the liquidity of this TaNftLockerLockInfo. # noqa: E501 + + liquidity # noqa: E501 + + :return: The liquidity of this TaNftLockerLockInfo. # noqa: E501 + :rtype: float + """ + return self._liquidity + + @liquidity.setter + def liquidity(self, liquidity): + """Sets the liquidity of this TaNftLockerLockInfo. + + liquidity # noqa: E501 + + :param liquidity: The liquidity of this TaNftLockerLockInfo. # noqa: E501 + :type: float + """ + + self._liquidity = liquidity + + @property + def lock_id(self): + """Gets the lock_id of this TaNftLockerLockInfo. # noqa: E501 + + lock id # noqa: E501 + + :return: The lock_id of this TaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._lock_id + + @lock_id.setter + def lock_id(self, lock_id): + """Sets the lock_id of this TaNftLockerLockInfo. + + lock id # noqa: E501 + + :param lock_id: The lock_id of this TaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._lock_id = lock_id + + @property + def locked_percent(self): + """Gets the locked_percent of this TaNftLockerLockInfo. # noqa: E501 + + 锁仓比例 # noqa: E501 + + :return: The locked_percent of this TaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._locked_percent + + @locked_percent.setter + def locked_percent(self, locked_percent): + """Sets the locked_percent of this TaNftLockerLockInfo. + + 锁仓比例 # noqa: E501 + + :param locked_percent: The locked_percent of this TaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._locked_percent = locked_percent + + @property + def nft_id(self): + """Gets the nft_id of this TaNftLockerLockInfo. # noqa: E501 + + nft id # noqa: E501 + + :return: The nft_id of this TaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._nft_id + + @nft_id.setter + def nft_id(self, nft_id): + """Sets the nft_id of this TaNftLockerLockInfo. + + nft id # noqa: E501 + + :param nft_id: The nft_id of this TaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._nft_id = nft_id + + @property + def nft_position_manager(self): + """Gets the nft_position_manager of this TaNftLockerLockInfo. # noqa: E501 + + nft Position Manager # noqa: E501 + + :return: The nft_position_manager of this TaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._nft_position_manager + + @nft_position_manager.setter + def nft_position_manager(self, nft_position_manager): + """Sets the nft_position_manager of this TaNftLockerLockInfo. + + nft Position Manager # noqa: E501 + + :param nft_position_manager: The nft_position_manager of this TaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._nft_position_manager = nft_position_manager + + @property + def owner(self): + """Gets the owner of this TaNftLockerLockInfo. # noqa: E501 + + user address # noqa: E501 + + :return: The owner of this TaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this TaNftLockerLockInfo. + + user address # noqa: E501 + + :param owner: The owner of this TaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def pool(self): + """Gets the pool of this TaNftLockerLockInfo. # noqa: E501 + + pool address # noqa: E501 + + :return: The pool of this TaNftLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._pool + + @pool.setter + def pool(self, pool): + """Sets the pool of this TaNftLockerLockInfo. + + pool address # noqa: E501 + + :param pool: The pool of this TaNftLockerLockInfo. # noqa: E501 + :type: str + """ + + self._pool = pool + + @property + def start_time(self): + """Gets the start_time of this TaNftLockerLockInfo. # noqa: E501 + + 开始时间戳 # noqa: E501 + + :return: The start_time of this TaNftLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this TaNftLockerLockInfo. + + 开始时间戳 # noqa: E501 + + :param start_time: The start_time of this TaNftLockerLockInfo. # noqa: E501 + :type: int + """ + + self._start_time = start_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(TaNftLockerLockInfo, 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, TaNftLockerLockInfo): + 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/ta_token_locker_lock_info.py b/swagger_client/models/ta_token_locker_lock_info.py new file mode 100644 index 0000000..2d42f93 --- /dev/null +++ b/swagger_client/models/ta_token_locker_lock_info.py @@ -0,0 +1,336 @@ +# 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 TaTokenLockerLockInfo(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', + 'end_time': 'int', + 'is_lp_token': 'int', + 'lock_id': 'str', + 'locked_percent': 'str', + 'owner': 'str', + 'start_time': 'int', + 'token': 'str', + 'unlocked_amount': 'str' + } + + attribute_map = { + 'amount': 'amount', + 'end_time': 'endTime', + 'is_lp_token': 'isLpToken', + 'lock_id': 'lockId', + 'locked_percent': 'lockedPercent', + 'owner': 'owner', + 'start_time': 'startTime', + 'token': 'token', + 'unlocked_amount': 'unlockedAmount' + } + + def __init__(self, amount=None, end_time=None, is_lp_token=None, lock_id=None, locked_percent=None, owner=None, start_time=None, token=None, unlocked_amount=None): # noqa: E501 + """TaTokenLockerLockInfo - a model defined in Swagger""" # noqa: E501 + self._amount = None + self._end_time = None + self._is_lp_token = None + self._lock_id = None + self._locked_percent = None + self._owner = None + self._start_time = None + self._token = None + self._unlocked_amount = None + self.discriminator = None + if amount is not None: + self.amount = amount + if end_time is not None: + self.end_time = end_time + if is_lp_token is not None: + self.is_lp_token = is_lp_token + if lock_id is not None: + self.lock_id = lock_id + if locked_percent is not None: + self.locked_percent = locked_percent + if owner is not None: + self.owner = owner + if start_time is not None: + self.start_time = start_time + if token is not None: + self.token = token + if unlocked_amount is not None: + self.unlocked_amount = unlocked_amount + + @property + def amount(self): + """Gets the amount of this TaTokenLockerLockInfo. # noqa: E501 + + amount # noqa: E501 + + :return: The amount of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this TaTokenLockerLockInfo. + + amount # noqa: E501 + + :param amount: The amount of this TaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._amount = amount + + @property + def end_time(self): + """Gets the end_time of this TaTokenLockerLockInfo. # noqa: E501 + + endTime # noqa: E501 + + :return: The end_time of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this TaTokenLockerLockInfo. + + endTime # noqa: E501 + + :param end_time: The end_time of this TaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._end_time = end_time + + @property + def is_lp_token(self): + """Gets the is_lp_token of this TaTokenLockerLockInfo. # noqa: E501 + + is lp token -1:unknow,0:no,1:yes # noqa: E501 + + :return: The is_lp_token of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._is_lp_token + + @is_lp_token.setter + def is_lp_token(self, is_lp_token): + """Sets the is_lp_token of this TaTokenLockerLockInfo. + + is lp token -1:unknow,0:no,1:yes # noqa: E501 + + :param is_lp_token: The is_lp_token of this TaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._is_lp_token = is_lp_token + + @property + def lock_id(self): + """Gets the lock_id of this TaTokenLockerLockInfo. # noqa: E501 + + lock id # noqa: E501 + + :return: The lock_id of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._lock_id + + @lock_id.setter + def lock_id(self, lock_id): + """Sets the lock_id of this TaTokenLockerLockInfo. + + lock id # noqa: E501 + + :param lock_id: The lock_id of this TaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._lock_id = lock_id + + @property + def locked_percent(self): + """Gets the locked_percent of this TaTokenLockerLockInfo. # noqa: E501 + + lockedPercent # noqa: E501 + + :return: The locked_percent of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._locked_percent + + @locked_percent.setter + def locked_percent(self, locked_percent): + """Sets the locked_percent of this TaTokenLockerLockInfo. + + lockedPercent # noqa: E501 + + :param locked_percent: The locked_percent of this TaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._locked_percent = locked_percent + + @property + def owner(self): + """Gets the owner of this TaTokenLockerLockInfo. # noqa: E501 + + user address # noqa: E501 + + :return: The owner of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this TaTokenLockerLockInfo. + + user address # noqa: E501 + + :param owner: The owner of this TaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def start_time(self): + """Gets the start_time of this TaTokenLockerLockInfo. # noqa: E501 + + startTime # noqa: E501 + + :return: The start_time of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this TaTokenLockerLockInfo. + + startTime # noqa: E501 + + :param start_time: The start_time of this TaTokenLockerLockInfo. # noqa: E501 + :type: int + """ + + self._start_time = start_time + + @property + def token(self): + """Gets the token of this TaTokenLockerLockInfo. # noqa: E501 + + token contract address # noqa: E501 + + :return: The token of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this TaTokenLockerLockInfo. + + token contract address # noqa: E501 + + :param token: The token of this TaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def unlocked_amount(self): + """Gets the unlocked_amount of this TaTokenLockerLockInfo. # noqa: E501 + + unlockedAmount # noqa: E501 + + :return: The unlocked_amount of this TaTokenLockerLockInfo. # noqa: E501 + :rtype: str + """ + return self._unlocked_amount + + @unlocked_amount.setter + def unlocked_amount(self, unlocked_amount): + """Sets the unlocked_amount of this TaTokenLockerLockInfo. + + unlockedAmount # noqa: E501 + + :param unlocked_amount: The unlocked_amount of this TaTokenLockerLockInfo. # noqa: E501 + :type: str + """ + + self._unlocked_amount = unlocked_amount + + 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(TaTokenLockerLockInfo, 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, TaTokenLockerLockInfo): + 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/transaction_security_request.py b/swagger_client/models/transaction_security_request.py new file mode 100644 index 0000000..7742afd --- /dev/null +++ b/swagger_client/models/transaction_security_request.py @@ -0,0 +1,396 @@ +# 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 TransactionSecurityRequest(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 = { + 'access_list': 'list[AddressInfo]', + 'chain_id': 'str', + 'data': 'str', + '_from': 'str', + 'gas_limit': 'str', + 'gas_price': 'str', + 'max_fee_per_gas': 'str', + 'max_priority_fee_per_gas': 'str', + 'nonce': 'str', + 'to': 'str', + 'url': 'str', + 'value': 'str' + } + + attribute_map = { + 'access_list': 'access_list', + 'chain_id': 'chain_id', + 'data': 'data', + '_from': 'from', + 'gas_limit': 'gas_limit', + 'gas_price': 'gas_price', + 'max_fee_per_gas': 'max_fee_per_gas', + 'max_priority_fee_per_gas': 'max_priority_fee_per_gas', + 'nonce': 'nonce', + 'to': 'to', + 'url': 'url', + 'value': 'value' + } + + def __init__(self, access_list=None, chain_id=None, data=None, _from=None, gas_limit=None, gas_price=None, max_fee_per_gas=None, max_priority_fee_per_gas=None, nonce=None, to=None, url=None, value=None): # noqa: E501 + """TransactionSecurityRequest - a model defined in Swagger""" # noqa: E501 + self._access_list = None + self._chain_id = None + self._data = None + self.__from = None + self._gas_limit = None + self._gas_price = None + self._max_fee_per_gas = None + self._max_priority_fee_per_gas = None + self._nonce = None + self._to = None + self._url = None + self._value = None + self.discriminator = None + if access_list is not None: + self.access_list = access_list + if chain_id is not None: + self.chain_id = chain_id + if data is not None: + self.data = data + if _from is not None: + self._from = _from + if gas_limit is not None: + self.gas_limit = gas_limit + if gas_price is not None: + self.gas_price = gas_price + if max_fee_per_gas is not None: + self.max_fee_per_gas = max_fee_per_gas + if max_priority_fee_per_gas is not None: + self.max_priority_fee_per_gas = max_priority_fee_per_gas + if nonce is not None: + self.nonce = nonce + if to is not None: + self.to = to + if url is not None: + self.url = url + if value is not None: + self.value = value + + @property + def access_list(self): + """Gets the access_list of this TransactionSecurityRequest. # noqa: E501 + + + :return: The access_list of this TransactionSecurityRequest. # noqa: E501 + :rtype: list[AddressInfo] + """ + return self._access_list + + @access_list.setter + def access_list(self, access_list): + """Sets the access_list of this TransactionSecurityRequest. + + + :param access_list: The access_list of this TransactionSecurityRequest. # noqa: E501 + :type: list[AddressInfo] + """ + + self._access_list = access_list + + @property + def chain_id(self): + """Gets the chain_id of this TransactionSecurityRequest. # noqa: E501 + + + :return: The chain_id of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._chain_id + + @chain_id.setter + def chain_id(self, chain_id): + """Sets the chain_id of this TransactionSecurityRequest. + + + :param chain_id: The chain_id of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._chain_id = chain_id + + @property + def data(self): + """Gets the data of this TransactionSecurityRequest. # noqa: E501 + + + :return: The data of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this TransactionSecurityRequest. + + + :param data: The data of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._data = data + + @property + def _from(self): + """Gets the _from of this TransactionSecurityRequest. # noqa: E501 + + + :return: The _from of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self.__from + + @_from.setter + def _from(self, _from): + """Sets the _from of this TransactionSecurityRequest. + + + :param _from: The _from of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self.__from = _from + + @property + def gas_limit(self): + """Gets the gas_limit of this TransactionSecurityRequest. # noqa: E501 + + + :return: The gas_limit of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._gas_limit + + @gas_limit.setter + def gas_limit(self, gas_limit): + """Sets the gas_limit of this TransactionSecurityRequest. + + + :param gas_limit: The gas_limit of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._gas_limit = gas_limit + + @property + def gas_price(self): + """Gets the gas_price of this TransactionSecurityRequest. # noqa: E501 + + + :return: The gas_price of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._gas_price + + @gas_price.setter + def gas_price(self, gas_price): + """Sets the gas_price of this TransactionSecurityRequest. + + + :param gas_price: The gas_price of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._gas_price = gas_price + + @property + def max_fee_per_gas(self): + """Gets the max_fee_per_gas of this TransactionSecurityRequest. # noqa: E501 + + + :return: The max_fee_per_gas of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._max_fee_per_gas + + @max_fee_per_gas.setter + def max_fee_per_gas(self, max_fee_per_gas): + """Sets the max_fee_per_gas of this TransactionSecurityRequest. + + + :param max_fee_per_gas: The max_fee_per_gas of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._max_fee_per_gas = max_fee_per_gas + + @property + def max_priority_fee_per_gas(self): + """Gets the max_priority_fee_per_gas of this TransactionSecurityRequest. # noqa: E501 + + + :return: The max_priority_fee_per_gas of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._max_priority_fee_per_gas + + @max_priority_fee_per_gas.setter + def max_priority_fee_per_gas(self, max_priority_fee_per_gas): + """Sets the max_priority_fee_per_gas of this TransactionSecurityRequest. + + + :param max_priority_fee_per_gas: The max_priority_fee_per_gas of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._max_priority_fee_per_gas = max_priority_fee_per_gas + + @property + def nonce(self): + """Gets the nonce of this TransactionSecurityRequest. # noqa: E501 + + + :return: The nonce of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._nonce + + @nonce.setter + def nonce(self, nonce): + """Sets the nonce of this TransactionSecurityRequest. + + + :param nonce: The nonce of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._nonce = nonce + + @property + def to(self): + """Gets the to of this TransactionSecurityRequest. # noqa: E501 + + + :return: The to of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this TransactionSecurityRequest. + + + :param to: The to of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._to = to + + @property + def url(self): + """Gets the url of this TransactionSecurityRequest. # noqa: E501 + + + :return: The url of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this TransactionSecurityRequest. + + + :param url: The url of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def value(self): + """Gets the value of this TransactionSecurityRequest. # noqa: E501 + + + :return: The value of this TransactionSecurityRequest. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TransactionSecurityRequest. + + + :param value: The value of this TransactionSecurityRequest. # noqa: E501 + :type: str + """ + + self._value = value + + 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(TransactionSecurityRequest, 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, TransactionSecurityRequest): + 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/transaction_security_response.py b/swagger_client/models/transaction_security_response.py new file mode 100644 index 0000000..5f9748c --- /dev/null +++ b/swagger_client/models/transaction_security_response.py @@ -0,0 +1,422 @@ +# 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 TransactionSecurityResponse(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 = { + 'erc20_allowance_changes': 'list[AllowanceChange]', + 'erc20_balance_changes': 'list[ERC20BalanceChange]', + 'erc721_balance_changes': 'list[ERC721BalanceChange]', + 'flagged': 'list[Flag]', + 'is_revert': 'bool', + 'is_simulated': 'bool', + 'logs': 'list[LogEntry]', + 'native_balance_changes': 'list[NativeBalanceChange]', + 'revert_reason': 'str', + 'simulate_failed_reason': 'str', + 'suspicious_addresses': 'list[AddressInfo]', + 'suspicious_url': 'bool', + 'used_gas': 'int' + } + + attribute_map = { + 'erc20_allowance_changes': 'erc20_allowance_changes', + 'erc20_balance_changes': 'erc20_balance_changes', + 'erc721_balance_changes': 'erc721_balance_changes', + 'flagged': 'flagged', + 'is_revert': 'is_revert', + 'is_simulated': 'is_simulated', + 'logs': 'logs', + 'native_balance_changes': 'native_balance_changes', + 'revert_reason': 'revert_reason', + 'simulate_failed_reason': 'simulate_failed_reason', + 'suspicious_addresses': 'suspicious_addresses', + 'suspicious_url': 'suspicious_url', + 'used_gas': 'used_gas' + } + + def __init__(self, erc20_allowance_changes=None, erc20_balance_changes=None, erc721_balance_changes=None, flagged=None, is_revert=None, is_simulated=None, logs=None, native_balance_changes=None, revert_reason=None, simulate_failed_reason=None, suspicious_addresses=None, suspicious_url=None, used_gas=None): # noqa: E501 + """TransactionSecurityResponse - a model defined in Swagger""" # noqa: E501 + self._erc20_allowance_changes = None + self._erc20_balance_changes = None + self._erc721_balance_changes = None + self._flagged = None + self._is_revert = None + self._is_simulated = None + self._logs = None + self._native_balance_changes = None + self._revert_reason = None + self._simulate_failed_reason = None + self._suspicious_addresses = None + self._suspicious_url = None + self._used_gas = None + self.discriminator = None + if erc20_allowance_changes is not None: + self.erc20_allowance_changes = erc20_allowance_changes + if erc20_balance_changes is not None: + self.erc20_balance_changes = erc20_balance_changes + if erc721_balance_changes is not None: + self.erc721_balance_changes = erc721_balance_changes + if flagged is not None: + self.flagged = flagged + if is_revert is not None: + self.is_revert = is_revert + if is_simulated is not None: + self.is_simulated = is_simulated + if logs is not None: + self.logs = logs + if native_balance_changes is not None: + self.native_balance_changes = native_balance_changes + if revert_reason is not None: + self.revert_reason = revert_reason + if simulate_failed_reason is not None: + self.simulate_failed_reason = simulate_failed_reason + if suspicious_addresses is not None: + self.suspicious_addresses = suspicious_addresses + if suspicious_url is not None: + self.suspicious_url = suspicious_url + if used_gas is not None: + self.used_gas = used_gas + + @property + def erc20_allowance_changes(self): + """Gets the erc20_allowance_changes of this TransactionSecurityResponse. # noqa: E501 + + + :return: The erc20_allowance_changes of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[AllowanceChange] + """ + return self._erc20_allowance_changes + + @erc20_allowance_changes.setter + def erc20_allowance_changes(self, erc20_allowance_changes): + """Sets the erc20_allowance_changes of this TransactionSecurityResponse. + + + :param erc20_allowance_changes: The erc20_allowance_changes of this TransactionSecurityResponse. # noqa: E501 + :type: list[AllowanceChange] + """ + + self._erc20_allowance_changes = erc20_allowance_changes + + @property + def erc20_balance_changes(self): + """Gets the erc20_balance_changes of this TransactionSecurityResponse. # noqa: E501 + + + :return: The erc20_balance_changes of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[ERC20BalanceChange] + """ + return self._erc20_balance_changes + + @erc20_balance_changes.setter + def erc20_balance_changes(self, erc20_balance_changes): + """Sets the erc20_balance_changes of this TransactionSecurityResponse. + + + :param erc20_balance_changes: The erc20_balance_changes of this TransactionSecurityResponse. # noqa: E501 + :type: list[ERC20BalanceChange] + """ + + self._erc20_balance_changes = erc20_balance_changes + + @property + def erc721_balance_changes(self): + """Gets the erc721_balance_changes of this TransactionSecurityResponse. # noqa: E501 + + + :return: The erc721_balance_changes of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[ERC721BalanceChange] + """ + return self._erc721_balance_changes + + @erc721_balance_changes.setter + def erc721_balance_changes(self, erc721_balance_changes): + """Sets the erc721_balance_changes of this TransactionSecurityResponse. + + + :param erc721_balance_changes: The erc721_balance_changes of this TransactionSecurityResponse. # noqa: E501 + :type: list[ERC721BalanceChange] + """ + + self._erc721_balance_changes = erc721_balance_changes + + @property + def flagged(self): + """Gets the flagged of this TransactionSecurityResponse. # noqa: E501 + + + :return: The flagged of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[Flag] + """ + return self._flagged + + @flagged.setter + def flagged(self, flagged): + """Sets the flagged of this TransactionSecurityResponse. + + + :param flagged: The flagged of this TransactionSecurityResponse. # noqa: E501 + :type: list[Flag] + """ + + self._flagged = flagged + + @property + def is_revert(self): + """Gets the is_revert of this TransactionSecurityResponse. # noqa: E501 + + + :return: The is_revert of this TransactionSecurityResponse. # noqa: E501 + :rtype: bool + """ + return self._is_revert + + @is_revert.setter + def is_revert(self, is_revert): + """Sets the is_revert of this TransactionSecurityResponse. + + + :param is_revert: The is_revert of this TransactionSecurityResponse. # noqa: E501 + :type: bool + """ + + self._is_revert = is_revert + + @property + def is_simulated(self): + """Gets the is_simulated of this TransactionSecurityResponse. # noqa: E501 + + + :return: The is_simulated of this TransactionSecurityResponse. # noqa: E501 + :rtype: bool + """ + return self._is_simulated + + @is_simulated.setter + def is_simulated(self, is_simulated): + """Sets the is_simulated of this TransactionSecurityResponse. + + + :param is_simulated: The is_simulated of this TransactionSecurityResponse. # noqa: E501 + :type: bool + """ + + self._is_simulated = is_simulated + + @property + def logs(self): + """Gets the logs of this TransactionSecurityResponse. # noqa: E501 + + + :return: The logs of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[LogEntry] + """ + return self._logs + + @logs.setter + def logs(self, logs): + """Sets the logs of this TransactionSecurityResponse. + + + :param logs: The logs of this TransactionSecurityResponse. # noqa: E501 + :type: list[LogEntry] + """ + + self._logs = logs + + @property + def native_balance_changes(self): + """Gets the native_balance_changes of this TransactionSecurityResponse. # noqa: E501 + + + :return: The native_balance_changes of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[NativeBalanceChange] + """ + return self._native_balance_changes + + @native_balance_changes.setter + def native_balance_changes(self, native_balance_changes): + """Sets the native_balance_changes of this TransactionSecurityResponse. + + + :param native_balance_changes: The native_balance_changes of this TransactionSecurityResponse. # noqa: E501 + :type: list[NativeBalanceChange] + """ + + self._native_balance_changes = native_balance_changes + + @property + def revert_reason(self): + """Gets the revert_reason of this TransactionSecurityResponse. # noqa: E501 + + + :return: The revert_reason of this TransactionSecurityResponse. # noqa: E501 + :rtype: str + """ + return self._revert_reason + + @revert_reason.setter + def revert_reason(self, revert_reason): + """Sets the revert_reason of this TransactionSecurityResponse. + + + :param revert_reason: The revert_reason of this TransactionSecurityResponse. # noqa: E501 + :type: str + """ + + self._revert_reason = revert_reason + + @property + def simulate_failed_reason(self): + """Gets the simulate_failed_reason of this TransactionSecurityResponse. # noqa: E501 + + + :return: The simulate_failed_reason of this TransactionSecurityResponse. # noqa: E501 + :rtype: str + """ + return self._simulate_failed_reason + + @simulate_failed_reason.setter + def simulate_failed_reason(self, simulate_failed_reason): + """Sets the simulate_failed_reason of this TransactionSecurityResponse. + + + :param simulate_failed_reason: The simulate_failed_reason of this TransactionSecurityResponse. # noqa: E501 + :type: str + """ + + self._simulate_failed_reason = simulate_failed_reason + + @property + def suspicious_addresses(self): + """Gets the suspicious_addresses of this TransactionSecurityResponse. # noqa: E501 + + + :return: The suspicious_addresses of this TransactionSecurityResponse. # noqa: E501 + :rtype: list[AddressInfo] + """ + return self._suspicious_addresses + + @suspicious_addresses.setter + def suspicious_addresses(self, suspicious_addresses): + """Sets the suspicious_addresses of this TransactionSecurityResponse. + + + :param suspicious_addresses: The suspicious_addresses of this TransactionSecurityResponse. # noqa: E501 + :type: list[AddressInfo] + """ + + self._suspicious_addresses = suspicious_addresses + + @property + def suspicious_url(self): + """Gets the suspicious_url of this TransactionSecurityResponse. # noqa: E501 + + + :return: The suspicious_url of this TransactionSecurityResponse. # noqa: E501 + :rtype: bool + """ + return self._suspicious_url + + @suspicious_url.setter + def suspicious_url(self, suspicious_url): + """Sets the suspicious_url of this TransactionSecurityResponse. + + + :param suspicious_url: The suspicious_url of this TransactionSecurityResponse. # noqa: E501 + :type: bool + """ + + self._suspicious_url = suspicious_url + + @property + def used_gas(self): + """Gets the used_gas of this TransactionSecurityResponse. # noqa: E501 + + + :return: The used_gas of this TransactionSecurityResponse. # noqa: E501 + :rtype: int + """ + return self._used_gas + + @used_gas.setter + def used_gas(self, used_gas): + """Sets the used_gas of this TransactionSecurityResponse. + + + :param used_gas: The used_gas of this TransactionSecurityResponse. # noqa: E501 + :type: int + """ + + self._used_gas = used_gas + + 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(TransactionSecurityResponse, 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, TransactionSecurityResponse): + 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/v4_lp_locker_lock_info_resp.py b/swagger_client/models/v4_lp_locker_lock_info_resp.py new file mode 100644 index 0000000..6ad89b6 --- /dev/null +++ b/swagger_client/models/v4_lp_locker_lock_info_resp.py @@ -0,0 +1,280 @@ +# 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 V4LpLockerLockInfoResp(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 = { + 'end_time': 'int', + 'lock_id': 'str', + 'nft_id': 'str', + 'nft_position_manager': 'str', + 'owner': 'str', + 'pool_id': 'str', + 'start_time': 'int' + } + + attribute_map = { + 'end_time': 'endTime', + 'lock_id': 'lockId', + 'nft_id': 'nftId', + 'nft_position_manager': 'nftPositionManager', + 'owner': 'owner', + 'pool_id': 'poolId', + 'start_time': 'startTime' + } + + def __init__(self, end_time=None, lock_id=None, nft_id=None, nft_position_manager=None, owner=None, pool_id=None, start_time=None): # noqa: E501 + """V4LpLockerLockInfoResp - a model defined in Swagger""" # noqa: E501 + self._end_time = None + self._lock_id = None + self._nft_id = None + self._nft_position_manager = None + self._owner = None + self._pool_id = None + self._start_time = None + self.discriminator = None + if end_time is not None: + self.end_time = end_time + if lock_id is not None: + self.lock_id = lock_id + if nft_id is not None: + self.nft_id = nft_id + if nft_position_manager is not None: + self.nft_position_manager = nft_position_manager + if owner is not None: + self.owner = owner + if pool_id is not None: + self.pool_id = pool_id + if start_time is not None: + self.start_time = start_time + + @property + def end_time(self): + """Gets the end_time of this V4LpLockerLockInfoResp. # noqa: E501 + + 解锁时间戳 # noqa: E501 + + :return: The end_time of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: int + """ + return self._end_time + + @end_time.setter + def end_time(self, end_time): + """Sets the end_time of this V4LpLockerLockInfoResp. + + 解锁时间戳 # noqa: E501 + + :param end_time: The end_time of this V4LpLockerLockInfoResp. # noqa: E501 + :type: int + """ + + self._end_time = end_time + + @property + def lock_id(self): + """Gets the lock_id of this V4LpLockerLockInfoResp. # noqa: E501 + + lock id # noqa: E501 + + :return: The lock_id of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: str + """ + return self._lock_id + + @lock_id.setter + def lock_id(self, lock_id): + """Sets the lock_id of this V4LpLockerLockInfoResp. + + lock id # noqa: E501 + + :param lock_id: The lock_id of this V4LpLockerLockInfoResp. # noqa: E501 + :type: str + """ + + self._lock_id = lock_id + + @property + def nft_id(self): + """Gets the nft_id of this V4LpLockerLockInfoResp. # noqa: E501 + + nft id # noqa: E501 + + :return: The nft_id of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: str + """ + return self._nft_id + + @nft_id.setter + def nft_id(self, nft_id): + """Sets the nft_id of this V4LpLockerLockInfoResp. + + nft id # noqa: E501 + + :param nft_id: The nft_id of this V4LpLockerLockInfoResp. # noqa: E501 + :type: str + """ + + self._nft_id = nft_id + + @property + def nft_position_manager(self): + """Gets the nft_position_manager of this V4LpLockerLockInfoResp. # noqa: E501 + + nft Position Manager # noqa: E501 + + :return: The nft_position_manager of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: str + """ + return self._nft_position_manager + + @nft_position_manager.setter + def nft_position_manager(self, nft_position_manager): + """Sets the nft_position_manager of this V4LpLockerLockInfoResp. + + nft Position Manager # noqa: E501 + + :param nft_position_manager: The nft_position_manager of this V4LpLockerLockInfoResp. # noqa: E501 + :type: str + """ + + self._nft_position_manager = nft_position_manager + + @property + def owner(self): + """Gets the owner of this V4LpLockerLockInfoResp. # noqa: E501 + + user address # noqa: E501 + + :return: The owner of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this V4LpLockerLockInfoResp. + + user address # noqa: E501 + + :param owner: The owner of this V4LpLockerLockInfoResp. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def pool_id(self): + """Gets the pool_id of this V4LpLockerLockInfoResp. # noqa: E501 + + pool id # noqa: E501 + + :return: The pool_id of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: str + """ + return self._pool_id + + @pool_id.setter + def pool_id(self, pool_id): + """Sets the pool_id of this V4LpLockerLockInfoResp. + + pool id # noqa: E501 + + :param pool_id: The pool_id of this V4LpLockerLockInfoResp. # noqa: E501 + :type: str + """ + + self._pool_id = pool_id + + @property + def start_time(self): + """Gets the start_time of this V4LpLockerLockInfoResp. # noqa: E501 + + 开始时间戳 # noqa: E501 + + :return: The start_time of this V4LpLockerLockInfoResp. # noqa: E501 + :rtype: int + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """Sets the start_time of this V4LpLockerLockInfoResp. + + 开始时间戳 # noqa: E501 + + :param start_time: The start_time of this V4LpLockerLockInfoResp. # noqa: E501 + :type: int + """ + + self._start_time = start_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(V4LpLockerLockInfoResp, 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, V4LpLockerLockInfoResp): + 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/v4_nft_locker_lock_infos.py b/swagger_client/models/v4_nft_locker_lock_infos.py new file mode 100644 index 0000000..5cbcde3 --- /dev/null +++ b/swagger_client/models/v4_nft_locker_lock_infos.py @@ -0,0 +1,224 @@ +# 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 V4NftLockerLockInfos(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 = { + 'chain_id': 'str', + 'lock_list': 'list[TaNftLockerLockInfo]', + 'nft_position_manager': 'str', + 'pool_id': 'str', + 'url': 'str' + } + + attribute_map = { + 'chain_id': 'chainId', + 'lock_list': 'lockList', + 'nft_position_manager': 'nftPositionManager', + 'pool_id': 'poolId', + 'url': 'url' + } + + def __init__(self, chain_id=None, lock_list=None, nft_position_manager=None, pool_id=None, url=None): # noqa: E501 + """V4NftLockerLockInfos - a model defined in Swagger""" # noqa: E501 + self._chain_id = None + self._lock_list = None + self._nft_position_manager = None + self._pool_id = None + self._url = None + self.discriminator = None + if chain_id is not None: + self.chain_id = chain_id + if lock_list is not None: + self.lock_list = lock_list + if nft_position_manager is not None: + self.nft_position_manager = nft_position_manager + if pool_id is not None: + self.pool_id = pool_id + if url is not None: + self.url = url + + @property + def chain_id(self): + """Gets the chain_id of this V4NftLockerLockInfos. # noqa: E501 + + chain id # noqa: E501 + + :return: The chain_id of this V4NftLockerLockInfos. # noqa: E501 + :rtype: str + """ + return self._chain_id + + @chain_id.setter + def chain_id(self, chain_id): + """Sets the chain_id of this V4NftLockerLockInfos. + + chain id # noqa: E501 + + :param chain_id: The chain_id of this V4NftLockerLockInfos. # noqa: E501 + :type: str + """ + + self._chain_id = chain_id + + @property + def lock_list(self): + """Gets the lock_list of this V4NftLockerLockInfos. # noqa: E501 + + lock info list # noqa: E501 + + :return: The lock_list of this V4NftLockerLockInfos. # noqa: E501 + :rtype: list[TaNftLockerLockInfo] + """ + return self._lock_list + + @lock_list.setter + def lock_list(self, lock_list): + """Sets the lock_list of this V4NftLockerLockInfos. + + lock info list # noqa: E501 + + :param lock_list: The lock_list of this V4NftLockerLockInfos. # noqa: E501 + :type: list[TaNftLockerLockInfo] + """ + + self._lock_list = lock_list + + @property + def nft_position_manager(self): + """Gets the nft_position_manager of this V4NftLockerLockInfos. # noqa: E501 + + nft Position Manager # noqa: E501 + + :return: The nft_position_manager of this V4NftLockerLockInfos. # noqa: E501 + :rtype: str + """ + return self._nft_position_manager + + @nft_position_manager.setter + def nft_position_manager(self, nft_position_manager): + """Sets the nft_position_manager of this V4NftLockerLockInfos. + + nft Position Manager # noqa: E501 + + :param nft_position_manager: The nft_position_manager of this V4NftLockerLockInfos. # noqa: E501 + :type: str + """ + + self._nft_position_manager = nft_position_manager + + @property + def pool_id(self): + """Gets the pool_id of this V4NftLockerLockInfos. # noqa: E501 + + pool id # noqa: E501 + + :return: The pool_id of this V4NftLockerLockInfos. # noqa: E501 + :rtype: str + """ + return self._pool_id + + @pool_id.setter + def pool_id(self, pool_id): + """Sets the pool_id of this V4NftLockerLockInfos. + + pool id # noqa: E501 + + :param pool_id: The pool_id of this V4NftLockerLockInfos. # noqa: E501 + :type: str + """ + + self._pool_id = pool_id + + @property + def url(self): + """Gets the url of this V4NftLockerLockInfos. # noqa: E501 + + url # noqa: E501 + + :return: The url of this V4NftLockerLockInfos. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this V4NftLockerLockInfos. + + url # noqa: E501 + + :param url: The url of this V4NftLockerLockInfos. # noqa: E501 + :type: str + """ + + self._url = url + + 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(V4NftLockerLockInfos, 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, V4NftLockerLockInfos): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other