huaweicloudsdkdwr 3.1.160__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huaweicloudsdkdwr might be problematic. Click here for more details.
- huaweicloudsdkdwr/__init__.py +0 -0
- huaweicloudsdkdwr/v1/__init__.py +93 -0
- huaweicloudsdkdwr/v1/dwr_async_client.py +1519 -0
- huaweicloudsdkdwr/v1/dwr_client.py +1516 -0
- huaweicloudsdkdwr/v1/model/__init__.py +90 -0
- huaweicloudsdkdwr/v1/model/build_progress.py +231 -0
- huaweicloudsdkdwr/v1/model/charge_info.py +230 -0
- huaweicloudsdkdwr/v1/model/collection_base_info.py +142 -0
- huaweicloudsdkdwr/v1/model/create_collection_body.py +281 -0
- huaweicloudsdkdwr/v1/model/create_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_index_body.py +166 -0
- huaweicloudsdkdwr/v1/model/create_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/create_store_body.py +248 -0
- huaweicloudsdkdwr/v1/model/create_store_data.py +335 -0
- huaweicloudsdkdwr/v1/model/create_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/create_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/decribe_collection_data.py +344 -0
- huaweicloudsdkdwr/v1/model/delete_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_entities_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/delete_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_index_response.py +145 -0
- huaweicloudsdkdwr/v1/model/delete_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/delete_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/delete_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_collection_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_body.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_index_data.py +166 -0
- huaweicloudsdkdwr/v1/model/describe_index_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_index_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_job_body.py +114 -0
- huaweicloudsdkdwr/v1/model/describe_job_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_job_response.py +170 -0
- huaweicloudsdkdwr/v1/model/describe_store_request.py +111 -0
- huaweicloudsdkdwr/v1/model/describe_store_response.py +170 -0
- huaweicloudsdkdwr/v1/model/entities_data.py +114 -0
- huaweicloudsdkdwr/v1/model/field.py +229 -0
- huaweicloudsdkdwr/v1/model/field_data.py +285 -0
- huaweicloudsdkdwr/v1/model/flavor.py +142 -0
- huaweicloudsdkdwr/v1/model/get_index_progress_body.py +170 -0
- huaweicloudsdkdwr/v1/model/get_progress_data.py +167 -0
- huaweicloudsdkdwr/v1/model/get_progress_request.py +111 -0
- huaweicloudsdkdwr/v1/model/get_progress_response.py +170 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_body.py +282 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_request.py +111 -0
- huaweicloudsdkdwr/v1/model/hybrid_search_response.py +170 -0
- huaweicloudsdkdwr/v1/model/index_desc.py +198 -0
- huaweicloudsdkdwr/v1/model/index_params.py +171 -0
- huaweicloudsdkdwr/v1/model/insert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/insert_entities_data.py +143 -0
- huaweicloudsdkdwr/v1/model/insert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/insert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/job_data.py +316 -0
- huaweicloudsdkdwr/v1/model/list_collection_data.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collection_details.py +260 -0
- huaweicloudsdkdwr/v1/model/list_collections_body.py +143 -0
- huaweicloudsdkdwr/v1/model/list_collections_request.py +111 -0
- huaweicloudsdkdwr/v1/model/list_collections_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_jobs_data.py +115 -0
- huaweicloudsdkdwr/v1/model/list_jobs_request.py +231 -0
- huaweicloudsdkdwr/v1/model/list_jobs_response.py +170 -0
- huaweicloudsdkdwr/v1/model/list_store_data.py +114 -0
- huaweicloudsdkdwr/v1/model/list_stores_request.py +84 -0
- huaweicloudsdkdwr/v1/model/list_stores_response.py +170 -0
- huaweicloudsdkdwr/v1/model/load_collection_body.py +142 -0
- huaweicloudsdkdwr/v1/model/load_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/load_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/primary_field.py +142 -0
- huaweicloudsdkdwr/v1/model/query_entities_body.py +257 -0
- huaweicloudsdkdwr/v1/model/query_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/query_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/release_collection_request.py +111 -0
- huaweicloudsdkdwr/v1/model/release_collection_response.py +145 -0
- huaweicloudsdkdwr/v1/model/rerank.py +143 -0
- huaweicloudsdkdwr/v1/model/search_entities_body.py +343 -0
- huaweicloudsdkdwr/v1/model/search_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/search_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/model/store_data.py +364 -0
- huaweicloudsdkdwr/v1/model/store_info.py +114 -0
- huaweicloudsdkdwr/v1/model/sub_search.py +258 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_body.py +170 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_data.py +142 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_request.py +111 -0
- huaweicloudsdkdwr/v1/model/upsert_entities_response.py +170 -0
- huaweicloudsdkdwr/v1/region/__init__.py +0 -0
- huaweicloudsdkdwr/v1/region/dwr_region.py +43 -0
- huaweicloudsdkdwr/v3/__init__.py +76 -0
- huaweicloudsdkdwr/v3/dwr_async_client.py +1622 -0
- huaweicloudsdkdwr/v3/dwr_client.py +1619 -0
- huaweicloudsdkdwr/v3/model/__init__.py +73 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_request.py +114 -0
- huaweicloudsdkdwr/v3/model/accept_service_contract_response.py +137 -0
- huaweicloudsdkdwr/v3/model/action.py +427 -0
- huaweicloudsdkdwr/v3/model/action_result.py +228 -0
- huaweicloudsdkdwr/v3/model/action_template_item.py +144 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/async_invoke_api_start_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_request.py +84 -0
- huaweicloudsdkdwr/v3/model/check_workflow_authentication_response.py +477 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_request.py +139 -0
- huaweicloudsdkdwr/v3/model/create_my_action_template_response.py +419 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_request.py +84 -0
- huaweicloudsdkdwr/v3/model/create_workflow_authentication_response.py +137 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/create_workflow_request_body.py +281 -0
- huaweicloudsdkdwr/v3/model/create_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_request.py +114 -0
- huaweicloudsdkdwr/v3/model/delete_my_action_template_response.py +137 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_request.py +114 -0
- huaweicloudsdkdwr/v3/model/delete_workflow_response.py +137 -0
- huaweicloudsdkdwr/v3/model/execute_workflow_body.py +167 -0
- huaweicloudsdkdwr/v3/model/execution.py +289 -0
- huaweicloudsdkdwr/v3/model/express_config.py +144 -0
- huaweicloudsdkdwr/v3/model/func_vpc.py +260 -0
- huaweicloudsdkdwr/v3/model/graph_item.py +202 -0
- huaweicloudsdkdwr/v3/model/input.py +370 -0
- huaweicloudsdkdwr/v3/model/input_para_type.py +84 -0
- huaweicloudsdkdwr/v3/model/input_para_value_type.py +89 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_request.py +231 -0
- huaweicloudsdkdwr/v3/model/list_my_action_template_response.py +303 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_request.py +202 -0
- huaweicloudsdkdwr/v3/model/list_system_templates_response.py +332 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_request.py +259 -0
- huaweicloudsdkdwr/v3/model/list_workflow_instance_response.py +303 -0
- huaweicloudsdkdwr/v3/model/list_workflows_request.py +173 -0
- huaweicloudsdkdwr/v3/model/list_workflows_response.py +303 -0
- huaweicloudsdkdwr/v3/model/node_execution.py +289 -0
- huaweicloudsdkdwr/v3/model/policy.py +144 -0
- huaweicloudsdkdwr/v3/model/provided_action.py +564 -0
- huaweicloudsdkdwr/v3/model/public_template_item.py +285 -0
- huaweicloudsdkdwr/v3/model/public_template_register_type.py +87 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_request.py +142 -0
- huaweicloudsdkdwr/v3/model/restore_workflow_execution_response.py +274 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_request.py +202 -0
- huaweicloudsdkdwr/v3/model/show_public_action_list_response.py +332 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_public_template_info_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_service_contract_response.py +245 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_system_template_detail_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_third_template_info_response.py +212 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_request.py +114 -0
- huaweicloudsdkdwr/v3/model/show_workflow_info_response.py +332 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_request.py +142 -0
- huaweicloudsdkdwr/v3/model/show_workflow_instance_response.py +535 -0
- huaweicloudsdkdwr/v3/model/state.py +345 -0
- huaweicloudsdkdwr/v3/model/statement.py +144 -0
- huaweicloudsdkdwr/v3/model/third_action_template_item.py +285 -0
- huaweicloudsdkdwr/v3/model/third_template_request_body.py +430 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_request.py +139 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_response.py +274 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_request.py +114 -0
- huaweicloudsdkdwr/v3/model/update_my_action_template_to_deprecated_response.py +137 -0
- huaweicloudsdkdwr/v3/model/update_workflow_body.py +115 -0
- huaweicloudsdkdwr/v3/model/update_workflow_request.py +139 -0
- huaweicloudsdkdwr/v3/model/update_workflow_response.py +274 -0
- huaweicloudsdkdwr/v3/region/__init__.py +0 -0
- huaweicloudsdkdwr/v3/region/dwr_region.py +43 -0
- huaweicloudsdkdwr-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkdwr-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkdwr-3.1.160.dist-info/RECORD +171 -0
- huaweicloudsdkdwr-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkdwr-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
|
|
5
|
+
# import models into model package
|
|
6
|
+
from huaweicloudsdkdwr.v1.model.build_progress import BuildProgress
|
|
7
|
+
from huaweicloudsdkdwr.v1.model.charge_info import ChargeInfo
|
|
8
|
+
from huaweicloudsdkdwr.v1.model.collection_base_info import CollectionBaseInfo
|
|
9
|
+
from huaweicloudsdkdwr.v1.model.create_collection_body import CreateCollectionBody
|
|
10
|
+
from huaweicloudsdkdwr.v1.model.create_collection_request import CreateCollectionRequest
|
|
11
|
+
from huaweicloudsdkdwr.v1.model.create_collection_response import CreateCollectionResponse
|
|
12
|
+
from huaweicloudsdkdwr.v1.model.create_index_body import CreateIndexBody
|
|
13
|
+
from huaweicloudsdkdwr.v1.model.create_index_request import CreateIndexRequest
|
|
14
|
+
from huaweicloudsdkdwr.v1.model.create_index_response import CreateIndexResponse
|
|
15
|
+
from huaweicloudsdkdwr.v1.model.create_store_body import CreateStoreBody
|
|
16
|
+
from huaweicloudsdkdwr.v1.model.create_store_data import CreateStoreData
|
|
17
|
+
from huaweicloudsdkdwr.v1.model.create_store_request import CreateStoreRequest
|
|
18
|
+
from huaweicloudsdkdwr.v1.model.create_store_response import CreateStoreResponse
|
|
19
|
+
from huaweicloudsdkdwr.v1.model.decribe_collection_data import DecribeCollectionData
|
|
20
|
+
from huaweicloudsdkdwr.v1.model.delete_collection_request import DeleteCollectionRequest
|
|
21
|
+
from huaweicloudsdkdwr.v1.model.delete_collection_response import DeleteCollectionResponse
|
|
22
|
+
from huaweicloudsdkdwr.v1.model.delete_entities_body import DeleteEntitiesBody
|
|
23
|
+
from huaweicloudsdkdwr.v1.model.delete_entities_request import DeleteEntitiesRequest
|
|
24
|
+
from huaweicloudsdkdwr.v1.model.delete_entities_response import DeleteEntitiesResponse
|
|
25
|
+
from huaweicloudsdkdwr.v1.model.delete_index_body import DeleteIndexBody
|
|
26
|
+
from huaweicloudsdkdwr.v1.model.delete_index_request import DeleteIndexRequest
|
|
27
|
+
from huaweicloudsdkdwr.v1.model.delete_index_response import DeleteIndexResponse
|
|
28
|
+
from huaweicloudsdkdwr.v1.model.delete_store_data import DeleteStoreData
|
|
29
|
+
from huaweicloudsdkdwr.v1.model.delete_store_request import DeleteStoreRequest
|
|
30
|
+
from huaweicloudsdkdwr.v1.model.delete_store_response import DeleteStoreResponse
|
|
31
|
+
from huaweicloudsdkdwr.v1.model.describe_collection_request import DescribeCollectionRequest
|
|
32
|
+
from huaweicloudsdkdwr.v1.model.describe_collection_response import DescribeCollectionResponse
|
|
33
|
+
from huaweicloudsdkdwr.v1.model.describe_index_body import DescribeIndexBody
|
|
34
|
+
from huaweicloudsdkdwr.v1.model.describe_index_data import DescribeIndexData
|
|
35
|
+
from huaweicloudsdkdwr.v1.model.describe_index_request import DescribeIndexRequest
|
|
36
|
+
from huaweicloudsdkdwr.v1.model.describe_index_response import DescribeIndexResponse
|
|
37
|
+
from huaweicloudsdkdwr.v1.model.describe_job_body import DescribeJobBody
|
|
38
|
+
from huaweicloudsdkdwr.v1.model.describe_job_request import DescribeJobRequest
|
|
39
|
+
from huaweicloudsdkdwr.v1.model.describe_job_response import DescribeJobResponse
|
|
40
|
+
from huaweicloudsdkdwr.v1.model.describe_store_request import DescribeStoreRequest
|
|
41
|
+
from huaweicloudsdkdwr.v1.model.describe_store_response import DescribeStoreResponse
|
|
42
|
+
from huaweicloudsdkdwr.v1.model.entities_data import EntitiesData
|
|
43
|
+
from huaweicloudsdkdwr.v1.model.field import Field
|
|
44
|
+
from huaweicloudsdkdwr.v1.model.field_data import FieldData
|
|
45
|
+
from huaweicloudsdkdwr.v1.model.flavor import Flavor
|
|
46
|
+
from huaweicloudsdkdwr.v1.model.get_index_progress_body import GetIndexProgressBody
|
|
47
|
+
from huaweicloudsdkdwr.v1.model.get_progress_data import GetProgressData
|
|
48
|
+
from huaweicloudsdkdwr.v1.model.get_progress_request import GetProgressRequest
|
|
49
|
+
from huaweicloudsdkdwr.v1.model.get_progress_response import GetProgressResponse
|
|
50
|
+
from huaweicloudsdkdwr.v1.model.hybrid_search_body import HybridSearchBody
|
|
51
|
+
from huaweicloudsdkdwr.v1.model.hybrid_search_request import HybridSearchRequest
|
|
52
|
+
from huaweicloudsdkdwr.v1.model.hybrid_search_response import HybridSearchResponse
|
|
53
|
+
from huaweicloudsdkdwr.v1.model.index_desc import IndexDesc
|
|
54
|
+
from huaweicloudsdkdwr.v1.model.index_params import IndexParams
|
|
55
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_body import InsertEntitiesBody
|
|
56
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_data import InsertEntitiesData
|
|
57
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_request import InsertEntitiesRequest
|
|
58
|
+
from huaweicloudsdkdwr.v1.model.insert_entities_response import InsertEntitiesResponse
|
|
59
|
+
from huaweicloudsdkdwr.v1.model.job_data import JobData
|
|
60
|
+
from huaweicloudsdkdwr.v1.model.list_collection_data import ListCollectionData
|
|
61
|
+
from huaweicloudsdkdwr.v1.model.list_collection_details import ListCollectionDetails
|
|
62
|
+
from huaweicloudsdkdwr.v1.model.list_collections_body import ListCollectionsBody
|
|
63
|
+
from huaweicloudsdkdwr.v1.model.list_collections_request import ListCollectionsRequest
|
|
64
|
+
from huaweicloudsdkdwr.v1.model.list_collections_response import ListCollectionsResponse
|
|
65
|
+
from huaweicloudsdkdwr.v1.model.list_jobs_data import ListJobsData
|
|
66
|
+
from huaweicloudsdkdwr.v1.model.list_jobs_request import ListJobsRequest
|
|
67
|
+
from huaweicloudsdkdwr.v1.model.list_jobs_response import ListJobsResponse
|
|
68
|
+
from huaweicloudsdkdwr.v1.model.list_store_data import ListStoreData
|
|
69
|
+
from huaweicloudsdkdwr.v1.model.list_stores_request import ListStoresRequest
|
|
70
|
+
from huaweicloudsdkdwr.v1.model.list_stores_response import ListStoresResponse
|
|
71
|
+
from huaweicloudsdkdwr.v1.model.load_collection_body import LoadCollectionBody
|
|
72
|
+
from huaweicloudsdkdwr.v1.model.load_collection_request import LoadCollectionRequest
|
|
73
|
+
from huaweicloudsdkdwr.v1.model.load_collection_response import LoadCollectionResponse
|
|
74
|
+
from huaweicloudsdkdwr.v1.model.primary_field import PrimaryField
|
|
75
|
+
from huaweicloudsdkdwr.v1.model.query_entities_body import QueryEntitiesBody
|
|
76
|
+
from huaweicloudsdkdwr.v1.model.query_entities_request import QueryEntitiesRequest
|
|
77
|
+
from huaweicloudsdkdwr.v1.model.query_entities_response import QueryEntitiesResponse
|
|
78
|
+
from huaweicloudsdkdwr.v1.model.release_collection_request import ReleaseCollectionRequest
|
|
79
|
+
from huaweicloudsdkdwr.v1.model.release_collection_response import ReleaseCollectionResponse
|
|
80
|
+
from huaweicloudsdkdwr.v1.model.rerank import Rerank
|
|
81
|
+
from huaweicloudsdkdwr.v1.model.search_entities_body import SearchEntitiesBody
|
|
82
|
+
from huaweicloudsdkdwr.v1.model.search_entities_request import SearchEntitiesRequest
|
|
83
|
+
from huaweicloudsdkdwr.v1.model.search_entities_response import SearchEntitiesResponse
|
|
84
|
+
from huaweicloudsdkdwr.v1.model.store_data import StoreData
|
|
85
|
+
from huaweicloudsdkdwr.v1.model.store_info import StoreInfo
|
|
86
|
+
from huaweicloudsdkdwr.v1.model.sub_search import SubSearch
|
|
87
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_body import UpsertEntitiesBody
|
|
88
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_data import UpsertEntitiesData
|
|
89
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_request import UpsertEntitiesRequest
|
|
90
|
+
from huaweicloudsdkdwr.v1.model.upsert_entities_response import UpsertEntitiesResponse
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class BuildProgress:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'index_name': 'str',
|
|
21
|
+
'field_name': 'str',
|
|
22
|
+
'build_progress': 'float',
|
|
23
|
+
'indexed_rows': 'int',
|
|
24
|
+
'total_rows': 'int'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'index_name': 'index_name',
|
|
29
|
+
'field_name': 'field_name',
|
|
30
|
+
'build_progress': 'build_progress',
|
|
31
|
+
'indexed_rows': 'indexed_rows',
|
|
32
|
+
'total_rows': 'total_rows'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, index_name=None, field_name=None, build_progress=None, indexed_rows=None, total_rows=None):
|
|
36
|
+
r"""BuildProgress
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param index_name: **参数解释:** 索引名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
41
|
+
:type index_name: str
|
|
42
|
+
:param field_name: **参数解释:** 索引对应的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
43
|
+
:type field_name: str
|
|
44
|
+
:param build_progress: **参数解释:** 构建索引的进度。 **约束限制:** 不涉及。 **取值范围:** `[0,1]` **默认取值:** 不涉及。
|
|
45
|
+
:type build_progress: float
|
|
46
|
+
:param indexed_rows: **参数解释:** 已完成索引的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
47
|
+
:type indexed_rows: int
|
|
48
|
+
:param total_rows: **参数解释:** 需要索引的entity的总数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
49
|
+
:type total_rows: int
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._index_name = None
|
|
55
|
+
self._field_name = None
|
|
56
|
+
self._build_progress = None
|
|
57
|
+
self._indexed_rows = None
|
|
58
|
+
self._total_rows = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if index_name is not None:
|
|
62
|
+
self.index_name = index_name
|
|
63
|
+
if field_name is not None:
|
|
64
|
+
self.field_name = field_name
|
|
65
|
+
if build_progress is not None:
|
|
66
|
+
self.build_progress = build_progress
|
|
67
|
+
if indexed_rows is not None:
|
|
68
|
+
self.indexed_rows = indexed_rows
|
|
69
|
+
if total_rows is not None:
|
|
70
|
+
self.total_rows = total_rows
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def index_name(self):
|
|
74
|
+
r"""Gets the index_name of this BuildProgress.
|
|
75
|
+
|
|
76
|
+
**参数解释:** 索引名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
77
|
+
|
|
78
|
+
:return: The index_name of this BuildProgress.
|
|
79
|
+
:rtype: str
|
|
80
|
+
"""
|
|
81
|
+
return self._index_name
|
|
82
|
+
|
|
83
|
+
@index_name.setter
|
|
84
|
+
def index_name(self, index_name):
|
|
85
|
+
r"""Sets the index_name of this BuildProgress.
|
|
86
|
+
|
|
87
|
+
**参数解释:** 索引名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
88
|
+
|
|
89
|
+
:param index_name: The index_name of this BuildProgress.
|
|
90
|
+
:type index_name: str
|
|
91
|
+
"""
|
|
92
|
+
self._index_name = index_name
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def field_name(self):
|
|
96
|
+
r"""Gets the field_name of this BuildProgress.
|
|
97
|
+
|
|
98
|
+
**参数解释:** 索引对应的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
99
|
+
|
|
100
|
+
:return: The field_name of this BuildProgress.
|
|
101
|
+
:rtype: str
|
|
102
|
+
"""
|
|
103
|
+
return self._field_name
|
|
104
|
+
|
|
105
|
+
@field_name.setter
|
|
106
|
+
def field_name(self, field_name):
|
|
107
|
+
r"""Sets the field_name of this BuildProgress.
|
|
108
|
+
|
|
109
|
+
**参数解释:** 索引对应的字段名称。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
110
|
+
|
|
111
|
+
:param field_name: The field_name of this BuildProgress.
|
|
112
|
+
:type field_name: str
|
|
113
|
+
"""
|
|
114
|
+
self._field_name = field_name
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def build_progress(self):
|
|
118
|
+
r"""Gets the build_progress of this BuildProgress.
|
|
119
|
+
|
|
120
|
+
**参数解释:** 构建索引的进度。 **约束限制:** 不涉及。 **取值范围:** `[0,1]` **默认取值:** 不涉及。
|
|
121
|
+
|
|
122
|
+
:return: The build_progress of this BuildProgress.
|
|
123
|
+
:rtype: float
|
|
124
|
+
"""
|
|
125
|
+
return self._build_progress
|
|
126
|
+
|
|
127
|
+
@build_progress.setter
|
|
128
|
+
def build_progress(self, build_progress):
|
|
129
|
+
r"""Sets the build_progress of this BuildProgress.
|
|
130
|
+
|
|
131
|
+
**参数解释:** 构建索引的进度。 **约束限制:** 不涉及。 **取值范围:** `[0,1]` **默认取值:** 不涉及。
|
|
132
|
+
|
|
133
|
+
:param build_progress: The build_progress of this BuildProgress.
|
|
134
|
+
:type build_progress: float
|
|
135
|
+
"""
|
|
136
|
+
self._build_progress = build_progress
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def indexed_rows(self):
|
|
140
|
+
r"""Gets the indexed_rows of this BuildProgress.
|
|
141
|
+
|
|
142
|
+
**参数解释:** 已完成索引的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
143
|
+
|
|
144
|
+
:return: The indexed_rows of this BuildProgress.
|
|
145
|
+
:rtype: int
|
|
146
|
+
"""
|
|
147
|
+
return self._indexed_rows
|
|
148
|
+
|
|
149
|
+
@indexed_rows.setter
|
|
150
|
+
def indexed_rows(self, indexed_rows):
|
|
151
|
+
r"""Sets the indexed_rows of this BuildProgress.
|
|
152
|
+
|
|
153
|
+
**参数解释:** 已完成索引的entity数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
154
|
+
|
|
155
|
+
:param indexed_rows: The indexed_rows of this BuildProgress.
|
|
156
|
+
:type indexed_rows: int
|
|
157
|
+
"""
|
|
158
|
+
self._indexed_rows = indexed_rows
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def total_rows(self):
|
|
162
|
+
r"""Gets the total_rows of this BuildProgress.
|
|
163
|
+
|
|
164
|
+
**参数解释:** 需要索引的entity的总数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
165
|
+
|
|
166
|
+
:return: The total_rows of this BuildProgress.
|
|
167
|
+
:rtype: int
|
|
168
|
+
"""
|
|
169
|
+
return self._total_rows
|
|
170
|
+
|
|
171
|
+
@total_rows.setter
|
|
172
|
+
def total_rows(self, total_rows):
|
|
173
|
+
r"""Sets the total_rows of this BuildProgress.
|
|
174
|
+
|
|
175
|
+
**参数解释:** 需要索引的entity的总数量。 **约束限制:** 不涉及。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
176
|
+
|
|
177
|
+
:param total_rows: The total_rows of this BuildProgress.
|
|
178
|
+
:type total_rows: int
|
|
179
|
+
"""
|
|
180
|
+
self._total_rows = total_rows
|
|
181
|
+
|
|
182
|
+
def to_dict(self):
|
|
183
|
+
"""Returns the model properties as a dict"""
|
|
184
|
+
result = {}
|
|
185
|
+
|
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
187
|
+
value = getattr(self, attr)
|
|
188
|
+
if isinstance(value, list):
|
|
189
|
+
result[attr] = list(map(
|
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
191
|
+
value
|
|
192
|
+
))
|
|
193
|
+
elif hasattr(value, "to_dict"):
|
|
194
|
+
result[attr] = value.to_dict()
|
|
195
|
+
elif isinstance(value, dict):
|
|
196
|
+
result[attr] = dict(map(
|
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
|
199
|
+
value.items()
|
|
200
|
+
))
|
|
201
|
+
else:
|
|
202
|
+
if attr in self.sensitive_list:
|
|
203
|
+
result[attr] = "****"
|
|
204
|
+
else:
|
|
205
|
+
result[attr] = value
|
|
206
|
+
|
|
207
|
+
return result
|
|
208
|
+
|
|
209
|
+
def to_str(self):
|
|
210
|
+
"""Returns the string representation of the model"""
|
|
211
|
+
import simplejson as json
|
|
212
|
+
if six.PY2:
|
|
213
|
+
import sys
|
|
214
|
+
reload(sys)
|
|
215
|
+
sys.setdefaultencoding("utf-8")
|
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, BuildProgress):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.__dict__ == other.__dict__
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
return not self == other
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ChargeInfo:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'charge_mode': 'str',
|
|
21
|
+
'period_type': 'str',
|
|
22
|
+
'period_num': 'int',
|
|
23
|
+
'is_auto_renew': 'bool',
|
|
24
|
+
'is_auto_pay': 'bool'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'charge_mode': 'charge_mode',
|
|
29
|
+
'period_type': 'period_type',
|
|
30
|
+
'period_num': 'period_num',
|
|
31
|
+
'is_auto_renew': 'is_auto_renew',
|
|
32
|
+
'is_auto_pay': 'is_auto_pay'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
def __init__(self, charge_mode=None, period_type=None, period_num=None, is_auto_renew=None, is_auto_pay=None):
|
|
36
|
+
r"""ChargeInfo
|
|
37
|
+
|
|
38
|
+
The model defined in huaweicloud sdk
|
|
39
|
+
|
|
40
|
+
:param charge_mode: **参数解释:** 计费模式。 **约束限制:** 当前只支持按需付费。 **取值范围:** prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。 **默认取值:** 按需付费。
|
|
41
|
+
:type charge_mode: str
|
|
42
|
+
:param period_type: **参数解释:** 订购周期类型。 **约束限制:** “charge_mode”为“prePaid”时生效,且为必选值。 **取值范围:** month:包月。 year:包年。 **默认取值:** 不涉及。
|
|
43
|
+
:type period_type: str
|
|
44
|
+
:param period_num: **参数解释:** 订购的时间。 **约束限制:** “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 **取值范围:** 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3和5。 **默认取值:** 不涉及。
|
|
45
|
+
:type period_num: int
|
|
46
|
+
:param is_auto_renew: **参数解释:** 表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **约束限制:** 在创建包周期实例时可指定。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
47
|
+
:type is_auto_renew: bool
|
|
48
|
+
:param is_auto_pay: **参数解释:** 表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **约束限制:** 在创建包周期时可指定。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
49
|
+
:type is_auto_pay: bool
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
self._charge_mode = None
|
|
55
|
+
self._period_type = None
|
|
56
|
+
self._period_num = None
|
|
57
|
+
self._is_auto_renew = None
|
|
58
|
+
self._is_auto_pay = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
self.charge_mode = charge_mode
|
|
62
|
+
if period_type is not None:
|
|
63
|
+
self.period_type = period_type
|
|
64
|
+
if period_num is not None:
|
|
65
|
+
self.period_num = period_num
|
|
66
|
+
if is_auto_renew is not None:
|
|
67
|
+
self.is_auto_renew = is_auto_renew
|
|
68
|
+
if is_auto_pay is not None:
|
|
69
|
+
self.is_auto_pay = is_auto_pay
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def charge_mode(self):
|
|
73
|
+
r"""Gets the charge_mode of this ChargeInfo.
|
|
74
|
+
|
|
75
|
+
**参数解释:** 计费模式。 **约束限制:** 当前只支持按需付费。 **取值范围:** prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。 **默认取值:** 按需付费。
|
|
76
|
+
|
|
77
|
+
:return: The charge_mode of this ChargeInfo.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._charge_mode
|
|
81
|
+
|
|
82
|
+
@charge_mode.setter
|
|
83
|
+
def charge_mode(self, charge_mode):
|
|
84
|
+
r"""Sets the charge_mode of this ChargeInfo.
|
|
85
|
+
|
|
86
|
+
**参数解释:** 计费模式。 **约束限制:** 当前只支持按需付费。 **取值范围:** prePaid:预付费,即包年/包月。 postPaid:后付费,即按需付费。 **默认取值:** 按需付费。
|
|
87
|
+
|
|
88
|
+
:param charge_mode: The charge_mode of this ChargeInfo.
|
|
89
|
+
:type charge_mode: str
|
|
90
|
+
"""
|
|
91
|
+
self._charge_mode = charge_mode
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def period_type(self):
|
|
95
|
+
r"""Gets the period_type of this ChargeInfo.
|
|
96
|
+
|
|
97
|
+
**参数解释:** 订购周期类型。 **约束限制:** “charge_mode”为“prePaid”时生效,且为必选值。 **取值范围:** month:包月。 year:包年。 **默认取值:** 不涉及。
|
|
98
|
+
|
|
99
|
+
:return: The period_type of this ChargeInfo.
|
|
100
|
+
:rtype: str
|
|
101
|
+
"""
|
|
102
|
+
return self._period_type
|
|
103
|
+
|
|
104
|
+
@period_type.setter
|
|
105
|
+
def period_type(self, period_type):
|
|
106
|
+
r"""Sets the period_type of this ChargeInfo.
|
|
107
|
+
|
|
108
|
+
**参数解释:** 订购周期类型。 **约束限制:** “charge_mode”为“prePaid”时生效,且为必选值。 **取值范围:** month:包月。 year:包年。 **默认取值:** 不涉及。
|
|
109
|
+
|
|
110
|
+
:param period_type: The period_type of this ChargeInfo.
|
|
111
|
+
:type period_type: str
|
|
112
|
+
"""
|
|
113
|
+
self._period_type = period_type
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def period_num(self):
|
|
117
|
+
r"""Gets the period_num of this ChargeInfo.
|
|
118
|
+
|
|
119
|
+
**参数解释:** 订购的时间。 **约束限制:** “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 **取值范围:** 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3和5。 **默认取值:** 不涉及。
|
|
120
|
+
|
|
121
|
+
:return: The period_num of this ChargeInfo.
|
|
122
|
+
:rtype: int
|
|
123
|
+
"""
|
|
124
|
+
return self._period_num
|
|
125
|
+
|
|
126
|
+
@period_num.setter
|
|
127
|
+
def period_num(self, period_num):
|
|
128
|
+
r"""Sets the period_num of this ChargeInfo.
|
|
129
|
+
|
|
130
|
+
**参数解释:** 订购的时间。 **约束限制:** “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 **取值范围:** 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3和5。 **默认取值:** 不涉及。
|
|
131
|
+
|
|
132
|
+
:param period_num: The period_num of this ChargeInfo.
|
|
133
|
+
:type period_num: int
|
|
134
|
+
"""
|
|
135
|
+
self._period_num = period_num
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def is_auto_renew(self):
|
|
139
|
+
r"""Gets the is_auto_renew of this ChargeInfo.
|
|
140
|
+
|
|
141
|
+
**参数解释:** 表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **约束限制:** 在创建包周期实例时可指定。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
142
|
+
|
|
143
|
+
:return: The is_auto_renew of this ChargeInfo.
|
|
144
|
+
:rtype: bool
|
|
145
|
+
"""
|
|
146
|
+
return self._is_auto_renew
|
|
147
|
+
|
|
148
|
+
@is_auto_renew.setter
|
|
149
|
+
def is_auto_renew(self, is_auto_renew):
|
|
150
|
+
r"""Sets the is_auto_renew of this ChargeInfo.
|
|
151
|
+
|
|
152
|
+
**参数解释:** 表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 **约束限制:** 在创建包周期实例时可指定。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
153
|
+
|
|
154
|
+
:param is_auto_renew: The is_auto_renew of this ChargeInfo.
|
|
155
|
+
:type is_auto_renew: bool
|
|
156
|
+
"""
|
|
157
|
+
self._is_auto_renew = is_auto_renew
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def is_auto_pay(self):
|
|
161
|
+
r"""Gets the is_auto_pay of this ChargeInfo.
|
|
162
|
+
|
|
163
|
+
**参数解释:** 表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **约束限制:** 在创建包周期时可指定。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
164
|
+
|
|
165
|
+
:return: The is_auto_pay of this ChargeInfo.
|
|
166
|
+
:rtype: bool
|
|
167
|
+
"""
|
|
168
|
+
return self._is_auto_pay
|
|
169
|
+
|
|
170
|
+
@is_auto_pay.setter
|
|
171
|
+
def is_auto_pay(self, is_auto_pay):
|
|
172
|
+
r"""Sets the is_auto_pay of this ChargeInfo.
|
|
173
|
+
|
|
174
|
+
**参数解释:** 表示是否自动从客户的账户中支付,此字段不影响自动续订的支付方式。 **约束限制:** 在创建包周期时可指定。 **取值范围:** 不涉及。 **默认取值:** 不涉及。
|
|
175
|
+
|
|
176
|
+
:param is_auto_pay: The is_auto_pay of this ChargeInfo.
|
|
177
|
+
:type is_auto_pay: bool
|
|
178
|
+
"""
|
|
179
|
+
self._is_auto_pay = is_auto_pay
|
|
180
|
+
|
|
181
|
+
def to_dict(self):
|
|
182
|
+
"""Returns the model properties as a dict"""
|
|
183
|
+
result = {}
|
|
184
|
+
|
|
185
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
186
|
+
value = getattr(self, attr)
|
|
187
|
+
if isinstance(value, list):
|
|
188
|
+
result[attr] = list(map(
|
|
189
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
190
|
+
value
|
|
191
|
+
))
|
|
192
|
+
elif hasattr(value, "to_dict"):
|
|
193
|
+
result[attr] = value.to_dict()
|
|
194
|
+
elif isinstance(value, dict):
|
|
195
|
+
result[attr] = dict(map(
|
|
196
|
+
lambda item: (item[0], item[1].to_dict())
|
|
197
|
+
if hasattr(item[1], "to_dict") else item,
|
|
198
|
+
value.items()
|
|
199
|
+
))
|
|
200
|
+
else:
|
|
201
|
+
if attr in self.sensitive_list:
|
|
202
|
+
result[attr] = "****"
|
|
203
|
+
else:
|
|
204
|
+
result[attr] = value
|
|
205
|
+
|
|
206
|
+
return result
|
|
207
|
+
|
|
208
|
+
def to_str(self):
|
|
209
|
+
"""Returns the string representation of the model"""
|
|
210
|
+
import simplejson as json
|
|
211
|
+
if six.PY2:
|
|
212
|
+
import sys
|
|
213
|
+
reload(sys)
|
|
214
|
+
sys.setdefaultencoding("utf-8")
|
|
215
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
216
|
+
|
|
217
|
+
def __repr__(self):
|
|
218
|
+
"""For `print`"""
|
|
219
|
+
return self.to_str()
|
|
220
|
+
|
|
221
|
+
def __eq__(self, other):
|
|
222
|
+
"""Returns true if both objects are equal"""
|
|
223
|
+
if not isinstance(other, ChargeInfo):
|
|
224
|
+
return False
|
|
225
|
+
|
|
226
|
+
return self.__dict__ == other.__dict__
|
|
227
|
+
|
|
228
|
+
def __ne__(self, other):
|
|
229
|
+
"""Returns true if both objects are not equal"""
|
|
230
|
+
return not self == other
|