volcengine-python-sdk 4.0.26__py2.py3-none-any.whl → 4.0.27__py2.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 volcengine-python-sdk might be problematic. Click here for more details.
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/METADATA +1 -1
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/RECORD +168 -44
- volcenginesdkacep/__init__.py +15 -0
- volcenginesdkacep/api/acep_api.py +485 -0
- volcenginesdkacep/models/__init__.py +15 -0
- volcenginesdkacep/models/backup_data_request.py +176 -0
- volcenginesdkacep/models/backup_data_response.py +149 -0
- volcenginesdkacep/models/delete_backup_data_request.py +150 -0
- volcenginesdkacep/models/delete_backup_data_response.py +123 -0
- volcenginesdkacep/models/detail_for_backup_data_output.py +201 -0
- volcenginesdkacep/models/detail_for_delete_backup_data_output.py +175 -0
- volcenginesdkacep/models/detail_for_restore_data_output.py +175 -0
- volcenginesdkacep/models/get_dc_bandwidth_daily_peak_request.py +204 -0
- volcenginesdkacep/models/get_dc_bandwidth_daily_peak_response.py +123 -0
- volcenginesdkacep/models/list_backup_data_request.py +254 -0
- volcenginesdkacep/models/list_backup_data_response.py +149 -0
- volcenginesdkacep/models/restore_data_request.py +203 -0
- volcenginesdkacep/models/restore_data_response.py +149 -0
- volcenginesdkacep/models/row_for_get_dc_bandwidth_daily_peak_output.py +253 -0
- volcenginesdkacep/models/row_for_list_backup_data_output.py +799 -0
- volcenginesdkclb/__init__.py +10 -0
- volcenginesdkclb/api/clb_api.py +194 -0
- volcenginesdkclb/models/__init__.py +10 -0
- volcenginesdkclb/models/access_log_for_describe_network_load_balancer_attributes_output.py +175 -0
- volcenginesdkclb/models/add_domain_extension_for_modify_listener_domain_extensions_input.py +175 -0
- volcenginesdkclb/models/convert_load_balancer_billing_type_request.py +27 -1
- volcenginesdkclb/models/describe_listener_attributes_response.py +27 -1
- volcenginesdkclb/models/describe_network_load_balancer_attributes_response.py +27 -1
- volcenginesdkclb/models/describe_nlb_server_groups_request.py +53 -1
- volcenginesdkclb/models/domain_extension_for_describe_listener_attributes_output.py +201 -0
- volcenginesdkclb/models/domain_extension_for_describe_listeners_output.py +201 -0
- volcenginesdkclb/models/listener_for_describe_listeners_output.py +27 -1
- volcenginesdkclb/models/modify_domain_extension_for_modify_listener_domain_extensions_input.py +175 -0
- volcenginesdkclb/models/modify_listener_domain_extensions_request.py +202 -0
- volcenginesdkclb/models/modify_listener_domain_extensions_response.py +123 -0
- volcenginesdkclb/models/modify_network_load_balancer_access_log_request.py +202 -0
- volcenginesdkclb/models/modify_network_load_balancer_access_log_response.py +123 -0
- volcenginesdkclb/models/remove_domain_extension_for_modify_listener_domain_extensions_input.py +123 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkcore/interceptor/interceptors/build_request_interceptor.py +4 -0
- volcenginesdkcore/interceptor/interceptors/sign_request_interceptor.py +1 -1
- volcenginesdkdbw/__init__.py +18 -0
- volcenginesdkdbw/api/dbw_api.py +388 -0
- volcenginesdkdbw/models/__init__.py +18 -0
- volcenginesdkdbw/models/column_for_get_table_info_output.py +331 -0
- volcenginesdkdbw/models/execute_sql_request.py +231 -0
- volcenginesdkdbw/models/execute_sql_response.py +123 -0
- volcenginesdkdbw/models/foreign_key_for_get_table_info_output.py +279 -0
- volcenginesdkdbw/models/get_table_info_request.py +205 -0
- volcenginesdkdbw/models/get_table_info_response.py +123 -0
- volcenginesdkdbw/models/index_for_get_table_info_output.py +201 -0
- volcenginesdkdbw/models/item_for_list_databases_output.py +279 -0
- volcenginesdkdbw/models/list_databases_request.py +203 -0
- volcenginesdkdbw/models/list_databases_response.py +149 -0
- volcenginesdkdbw/models/list_tables_request.py +230 -0
- volcenginesdkdbw/models/list_tables_response.py +149 -0
- volcenginesdkdbw/models/partition_options_for_get_table_info_output.py +175 -0
- volcenginesdkdbw/models/result_for_execute_sql_output.py +305 -0
- volcenginesdkdbw/models/row_for_execute_sql_output.py +123 -0
- volcenginesdkdbw/models/running_info_for_execute_sql_output.py +201 -0
- volcenginesdkdbw/models/table_meta_for_get_table_info_output.py +383 -0
- volcenginesdkdbw/models/table_options_for_get_table_info_output.py +331 -0
- volcenginesdkgraph/__init__.py +48 -0
- volcenginesdkgraph/api/graph_api.py +951 -78
- volcenginesdkgraph/models/__init__.py +48 -0
- volcenginesdkgraph/models/availability_zone_for_list_graph_rag_service_output.py +253 -0
- volcenginesdkgraph/models/bg3_link_for_list_graph_rag_service_output.py +175 -0
- volcenginesdkgraph/models/bytestore_info_for_list_graph_rag_service_output.py +201 -0
- volcenginesdkgraph/models/conf_checker_for_get_conf_checker_output.py +409 -0
- volcenginesdkgraph/models/conf_checker_for_update_conf_checker_input.py +409 -0
- volcenginesdkgraph/models/conf_checker_for_validate_conf_checker_input.py +409 -0
- volcenginesdkgraph/models/convert_value_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/create_instance_request.py +29 -3
- volcenginesdkgraph/models/first_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/get_conf_checker_request.py +253 -0
- volcenginesdkgraph/models/get_conf_checker_response.py +123 -0
- volcenginesdkgraph/models/graphrag_add_knowledge_base_request.py +178 -0
- volcenginesdkgraph/models/graphrag_add_knowledge_base_response.py +95 -0
- volcenginesdkgraph/models/image_info_for_list_graph_rag_service_output.py +227 -0
- volcenginesdkgraph/models/info_for_list_graph_rag_service_output.py +175 -0
- volcenginesdkgraph/models/info_for_list_tablet_task_output.py +201 -0
- volcenginesdkgraph/models/ins_spec_for_list_graph_rag_service_output.py +175 -0
- volcenginesdkgraph/models/list_graph_rag_service_request.py +178 -0
- volcenginesdkgraph/models/list_graph_rag_service_response.py +149 -0
- volcenginesdkgraph/models/list_tablet_server_request.py +150 -0
- volcenginesdkgraph/models/list_tablet_server_response.py +149 -0
- volcenginesdkgraph/models/list_tablet_task_request.py +177 -0
- volcenginesdkgraph/models/list_tablet_task_response.py +123 -0
- volcenginesdkgraph/models/list_tablets_request.py +254 -0
- volcenginesdkgraph/models/list_tablets_response.py +123 -0
- volcenginesdkgraph/models/migrate_tablet_replica_request.py +257 -0
- volcenginesdkgraph/models/migrate_tablet_replica_response.py +123 -0
- volcenginesdkgraph/models/pending_schedule_replica_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/replica_info_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/replicas_to_close_for_list_tablet_task_output.py +227 -0
- volcenginesdkgraph/models/replicas_to_delete_for_list_tablet_task_output.py +227 -0
- volcenginesdkgraph/models/replicas_to_failover_by_promote_for_list_tablet_task_output.py +149 -0
- volcenginesdkgraph/models/replicas_to_failover_by_reopen_for_list_tablet_task_output.py +149 -0
- volcenginesdkgraph/models/replicas_to_open_or_add_for_list_tablet_task_output.py +227 -0
- volcenginesdkgraph/models/second_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/storage_info_for_list_graph_rag_service_output.py +149 -0
- volcenginesdkgraph/models/tablet_info_for_list_tablets_output.py +149 -0
- volcenginesdkgraph/models/tablet_server_info_for_list_tablet_server_output.py +227 -0
- volcenginesdkgraph/models/tablet_task_info_for_list_tablet_task_output.py +435 -0
- volcenginesdkgraph/models/tablet_to_merge_for_list_tablet_task_output.py +149 -0
- volcenginesdkgraph/models/tablet_to_split_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/tablets_to_delete_for_list_tablet_task_output.py +175 -0
- volcenginesdkgraph/models/tag_for_list_graph_rag_service_output.py +149 -0
- volcenginesdkgraph/models/update_conf_checker_request.py +123 -0
- volcenginesdkgraph/models/update_conf_checker_response.py +123 -0
- volcenginesdkgraph/models/validate_conf_checker_request.py +123 -0
- volcenginesdkgraph/models/validate_conf_checker_response.py +149 -0
- volcenginesdkgraph/models/value_for_list_tablets_output.py +201 -0
- volcenginesdkgraph/models/ve_graph_info_for_list_graph_rag_service_output.py +851 -0
- volcenginesdklivesaas/__init__.py +3 -0
- volcenginesdklivesaas/models/__init__.py +3 -0
- volcenginesdklivesaas/models/auto_start_config_for_create_activity_apiv2_input.py +175 -0
- volcenginesdklivesaas/models/auto_start_config_for_get_activity_basic_config_api_output.py +175 -0
- volcenginesdklivesaas/models/auto_start_config_for_update_activity_basic_config_api_input.py +175 -0
- volcenginesdklivesaas/models/create_activity_apiv2_request.py +27 -1
- volcenginesdklivesaas/models/get_activity_basic_config_api_response.py +79 -1
- volcenginesdklivesaas/models/update_activity_basic_config_api_request.py +53 -1
- volcenginesdkvefaas/__init__.py +4 -0
- volcenginesdkvefaas/api/vefaas_api.py +194 -0
- volcenginesdkvefaas/models/__init__.py +4 -0
- volcenginesdkvefaas/models/enable_user_cr_vpc_tunnel_request.py +124 -0
- volcenginesdkvefaas/models/enable_user_cr_vpc_tunnel_response.py +149 -0
- volcenginesdkvefaas/models/query_user_cr_vpc_tunnel_request.py +124 -0
- volcenginesdkvefaas/models/query_user_cr_vpc_tunnel_response.py +123 -0
- volcenginesdkvke/models/scheduled_instance_policy_for_create_scaling_policy_input.py +27 -1
- volcenginesdkvke/models/scheduled_instance_policy_for_list_scaling_policies_output.py +27 -1
- volcenginesdkvke/models/scheduled_instance_policy_for_update_scaling_policy_input.py +27 -1
- volcenginesdkvod20250101/__init__.py +26 -0
- volcenginesdkvod20250101/api/vod20250101_api.py +888 -112
- volcenginesdkvod20250101/models/__init__.py +26 -0
- volcenginesdkvod20250101/models/create_ai_termbase_request.py +256 -0
- volcenginesdkvod20250101/models/create_ai_termbase_response.py +123 -0
- volcenginesdkvod20250101/models/delete_ai_term_item_request.py +177 -0
- volcenginesdkvod20250101/models/delete_ai_term_item_response.py +95 -0
- volcenginesdkvod20250101/models/delete_ai_termbase_request.py +151 -0
- volcenginesdkvod20250101/models/delete_ai_termbase_response.py +95 -0
- volcenginesdkvod20250101/models/get_ai_termbase_request.py +151 -0
- volcenginesdkvod20250101/models/get_ai_termbase_response.py +123 -0
- volcenginesdkvod20250101/models/list_ai_termbase_request.py +124 -0
- volcenginesdkvod20250101/models/list_ai_termbase_response.py +123 -0
- volcenginesdkvod20250101/models/process_config_for_submit_ai_translation_workflow_input.py +53 -1
- volcenginesdkvod20250101/models/process_config_for_update_ai_translation_project_config_input.py +149 -0
- volcenginesdkvod20250101/models/scenario_for_create_ai_termbase_input.py +95 -0
- volcenginesdkvod20250101/models/set_ai_term_item_request.py +177 -0
- volcenginesdkvod20250101/models/set_ai_term_item_response.py +95 -0
- volcenginesdkvod20250101/models/term_item_for_create_ai_termbase_output.py +149 -0
- volcenginesdkvod20250101/models/term_item_for_get_ai_termbase_output.py +149 -0
- volcenginesdkvod20250101/models/term_item_for_list_ai_termbase_output.py +149 -0
- volcenginesdkvod20250101/models/term_item_for_set_ai_term_item_input.py +149 -0
- volcenginesdkvod20250101/models/termbase_config_for_submit_ai_translation_workflow_input.py +123 -0
- volcenginesdkvod20250101/models/termbase_for_create_ai_termbase_output.py +279 -0
- volcenginesdkvod20250101/models/termbase_for_get_ai_termbase_output.py +279 -0
- volcenginesdkvod20250101/models/termbase_for_list_ai_termbase_output.py +279 -0
- volcenginesdkvod20250101/models/translation_config_for_submit_ai_translation_workflow_input.py +27 -1
- volcenginesdkvod20250101/models/update_ai_termbase_request.py +203 -0
- volcenginesdkvod20250101/models/update_ai_termbase_response.py +95 -0
- volcenginesdkvod20250101/models/update_ai_translation_project_config_request.py +204 -0
- volcenginesdkvod20250101/models/update_ai_translation_project_config_response.py +95 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/WHEEL +0 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/licenses/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/licenses/NOTICE.md +0 -0
- {volcengine_python_sdk-4.0.26.dist-info → volcengine_python_sdk-4.0.27.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
graph
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TabletServerInfoForListTabletServerOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'addr': 'str',
|
|
37
|
+
'idc': 'str',
|
|
38
|
+
'schedule_state': 'str',
|
|
39
|
+
'state': 'str',
|
|
40
|
+
'tablet_manager_addr': 'str'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'addr': 'Addr',
|
|
45
|
+
'idc': 'Idc',
|
|
46
|
+
'schedule_state': 'ScheduleState',
|
|
47
|
+
'state': 'State',
|
|
48
|
+
'tablet_manager_addr': 'TabletManagerAddr'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, addr=None, idc=None, schedule_state=None, state=None, tablet_manager_addr=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""TabletServerInfoForListTabletServerOutput - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._addr = None
|
|
58
|
+
self._idc = None
|
|
59
|
+
self._schedule_state = None
|
|
60
|
+
self._state = None
|
|
61
|
+
self._tablet_manager_addr = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
if addr is not None:
|
|
65
|
+
self.addr = addr
|
|
66
|
+
if idc is not None:
|
|
67
|
+
self.idc = idc
|
|
68
|
+
if schedule_state is not None:
|
|
69
|
+
self.schedule_state = schedule_state
|
|
70
|
+
if state is not None:
|
|
71
|
+
self.state = state
|
|
72
|
+
if tablet_manager_addr is not None:
|
|
73
|
+
self.tablet_manager_addr = tablet_manager_addr
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def addr(self):
|
|
77
|
+
"""Gets the addr of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:return: The addr of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._addr
|
|
84
|
+
|
|
85
|
+
@addr.setter
|
|
86
|
+
def addr(self, addr):
|
|
87
|
+
"""Sets the addr of this TabletServerInfoForListTabletServerOutput.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:param addr: The addr of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
91
|
+
:type: str
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._addr = addr
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def idc(self):
|
|
98
|
+
"""Gets the idc of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:return: The idc of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._idc
|
|
105
|
+
|
|
106
|
+
@idc.setter
|
|
107
|
+
def idc(self, idc):
|
|
108
|
+
"""Sets the idc of this TabletServerInfoForListTabletServerOutput.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:param idc: The idc of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
112
|
+
:type: str
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
self._idc = idc
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def schedule_state(self):
|
|
119
|
+
"""Gets the schedule_state of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:return: The schedule_state of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._schedule_state
|
|
126
|
+
|
|
127
|
+
@schedule_state.setter
|
|
128
|
+
def schedule_state(self, schedule_state):
|
|
129
|
+
"""Sets the schedule_state of this TabletServerInfoForListTabletServerOutput.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param schedule_state: The schedule_state of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
133
|
+
:type: str
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
self._schedule_state = schedule_state
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def state(self):
|
|
140
|
+
"""Gets the state of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:return: The state of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
144
|
+
:rtype: str
|
|
145
|
+
"""
|
|
146
|
+
return self._state
|
|
147
|
+
|
|
148
|
+
@state.setter
|
|
149
|
+
def state(self, state):
|
|
150
|
+
"""Sets the state of this TabletServerInfoForListTabletServerOutput.
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
:param state: The state of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
154
|
+
:type: str
|
|
155
|
+
"""
|
|
156
|
+
|
|
157
|
+
self._state = state
|
|
158
|
+
|
|
159
|
+
@property
|
|
160
|
+
def tablet_manager_addr(self):
|
|
161
|
+
"""Gets the tablet_manager_addr of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:return: The tablet_manager_addr of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
165
|
+
:rtype: str
|
|
166
|
+
"""
|
|
167
|
+
return self._tablet_manager_addr
|
|
168
|
+
|
|
169
|
+
@tablet_manager_addr.setter
|
|
170
|
+
def tablet_manager_addr(self, tablet_manager_addr):
|
|
171
|
+
"""Sets the tablet_manager_addr of this TabletServerInfoForListTabletServerOutput.
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
:param tablet_manager_addr: The tablet_manager_addr of this TabletServerInfoForListTabletServerOutput. # noqa: E501
|
|
175
|
+
:type: str
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
self._tablet_manager_addr = tablet_manager_addr
|
|
179
|
+
|
|
180
|
+
def to_dict(self):
|
|
181
|
+
"""Returns the model properties as a dict"""
|
|
182
|
+
result = {}
|
|
183
|
+
|
|
184
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
185
|
+
value = getattr(self, attr)
|
|
186
|
+
if isinstance(value, list):
|
|
187
|
+
result[attr] = list(map(
|
|
188
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
189
|
+
value
|
|
190
|
+
))
|
|
191
|
+
elif hasattr(value, "to_dict"):
|
|
192
|
+
result[attr] = value.to_dict()
|
|
193
|
+
elif isinstance(value, dict):
|
|
194
|
+
result[attr] = dict(map(
|
|
195
|
+
lambda item: (item[0], item[1].to_dict())
|
|
196
|
+
if hasattr(item[1], "to_dict") else item,
|
|
197
|
+
value.items()
|
|
198
|
+
))
|
|
199
|
+
else:
|
|
200
|
+
result[attr] = value
|
|
201
|
+
if issubclass(TabletServerInfoForListTabletServerOutput, dict):
|
|
202
|
+
for key, value in self.items():
|
|
203
|
+
result[key] = value
|
|
204
|
+
|
|
205
|
+
return result
|
|
206
|
+
|
|
207
|
+
def to_str(self):
|
|
208
|
+
"""Returns the string representation of the model"""
|
|
209
|
+
return pprint.pformat(self.to_dict())
|
|
210
|
+
|
|
211
|
+
def __repr__(self):
|
|
212
|
+
"""For `print` and `pprint`"""
|
|
213
|
+
return self.to_str()
|
|
214
|
+
|
|
215
|
+
def __eq__(self, other):
|
|
216
|
+
"""Returns true if both objects are equal"""
|
|
217
|
+
if not isinstance(other, TabletServerInfoForListTabletServerOutput):
|
|
218
|
+
return False
|
|
219
|
+
|
|
220
|
+
return self.to_dict() == other.to_dict()
|
|
221
|
+
|
|
222
|
+
def __ne__(self, other):
|
|
223
|
+
"""Returns true if both objects are not equal"""
|
|
224
|
+
if not isinstance(other, TabletServerInfoForListTabletServerOutput):
|
|
225
|
+
return True
|
|
226
|
+
|
|
227
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
graph
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from volcenginesdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class TabletTaskInfoForListTabletTaskOutput(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'enqueue_time': 'int',
|
|
37
|
+
'reason': 'str',
|
|
38
|
+
'replicas_to_close': 'list[ReplicasToCloseForListTabletTaskOutput]',
|
|
39
|
+
'replicas_to_delete': 'list[ReplicasToDeleteForListTabletTaskOutput]',
|
|
40
|
+
'replicas_to_failover_by_promote': 'list[ReplicasToFailoverByPromoteForListTabletTaskOutput]',
|
|
41
|
+
'replicas_to_failover_by_reopen': 'list[ReplicasToFailoverByReopenForListTabletTaskOutput]',
|
|
42
|
+
'replicas_to_open_or_add': 'list[ReplicasToOpenOrAddForListTabletTaskOutput]',
|
|
43
|
+
'start_time': 'int',
|
|
44
|
+
'tablet_to_merge': 'TabletToMergeForListTabletTaskOutput',
|
|
45
|
+
'tablet_to_split': 'TabletToSplitForListTabletTaskOutput',
|
|
46
|
+
'tablets_to_delete': 'list[TabletsToDeleteForListTabletTaskOutput]',
|
|
47
|
+
'task_id': 'int',
|
|
48
|
+
'task_type': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'enqueue_time': 'EnqueueTime',
|
|
53
|
+
'reason': 'Reason',
|
|
54
|
+
'replicas_to_close': 'ReplicasToClose',
|
|
55
|
+
'replicas_to_delete': 'ReplicasToDelete',
|
|
56
|
+
'replicas_to_failover_by_promote': 'ReplicasToFailoverByPromote',
|
|
57
|
+
'replicas_to_failover_by_reopen': 'ReplicasToFailoverByReopen',
|
|
58
|
+
'replicas_to_open_or_add': 'ReplicasToOpenOrAdd',
|
|
59
|
+
'start_time': 'StartTime',
|
|
60
|
+
'tablet_to_merge': 'TabletToMerge',
|
|
61
|
+
'tablet_to_split': 'TabletToSplit',
|
|
62
|
+
'tablets_to_delete': 'TabletsToDelete',
|
|
63
|
+
'task_id': 'TaskId',
|
|
64
|
+
'task_type': 'TaskType'
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
def __init__(self, enqueue_time=None, reason=None, replicas_to_close=None, replicas_to_delete=None, replicas_to_failover_by_promote=None, replicas_to_failover_by_reopen=None, replicas_to_open_or_add=None, start_time=None, tablet_to_merge=None, tablet_to_split=None, tablets_to_delete=None, task_id=None, task_type=None, _configuration=None): # noqa: E501
|
|
68
|
+
"""TabletTaskInfoForListTabletTaskOutput - a model defined in Swagger""" # noqa: E501
|
|
69
|
+
if _configuration is None:
|
|
70
|
+
_configuration = Configuration()
|
|
71
|
+
self._configuration = _configuration
|
|
72
|
+
|
|
73
|
+
self._enqueue_time = None
|
|
74
|
+
self._reason = None
|
|
75
|
+
self._replicas_to_close = None
|
|
76
|
+
self._replicas_to_delete = None
|
|
77
|
+
self._replicas_to_failover_by_promote = None
|
|
78
|
+
self._replicas_to_failover_by_reopen = None
|
|
79
|
+
self._replicas_to_open_or_add = None
|
|
80
|
+
self._start_time = None
|
|
81
|
+
self._tablet_to_merge = None
|
|
82
|
+
self._tablet_to_split = None
|
|
83
|
+
self._tablets_to_delete = None
|
|
84
|
+
self._task_id = None
|
|
85
|
+
self._task_type = None
|
|
86
|
+
self.discriminator = None
|
|
87
|
+
|
|
88
|
+
if enqueue_time is not None:
|
|
89
|
+
self.enqueue_time = enqueue_time
|
|
90
|
+
if reason is not None:
|
|
91
|
+
self.reason = reason
|
|
92
|
+
if replicas_to_close is not None:
|
|
93
|
+
self.replicas_to_close = replicas_to_close
|
|
94
|
+
if replicas_to_delete is not None:
|
|
95
|
+
self.replicas_to_delete = replicas_to_delete
|
|
96
|
+
if replicas_to_failover_by_promote is not None:
|
|
97
|
+
self.replicas_to_failover_by_promote = replicas_to_failover_by_promote
|
|
98
|
+
if replicas_to_failover_by_reopen is not None:
|
|
99
|
+
self.replicas_to_failover_by_reopen = replicas_to_failover_by_reopen
|
|
100
|
+
if replicas_to_open_or_add is not None:
|
|
101
|
+
self.replicas_to_open_or_add = replicas_to_open_or_add
|
|
102
|
+
if start_time is not None:
|
|
103
|
+
self.start_time = start_time
|
|
104
|
+
if tablet_to_merge is not None:
|
|
105
|
+
self.tablet_to_merge = tablet_to_merge
|
|
106
|
+
if tablet_to_split is not None:
|
|
107
|
+
self.tablet_to_split = tablet_to_split
|
|
108
|
+
if tablets_to_delete is not None:
|
|
109
|
+
self.tablets_to_delete = tablets_to_delete
|
|
110
|
+
if task_id is not None:
|
|
111
|
+
self.task_id = task_id
|
|
112
|
+
if task_type is not None:
|
|
113
|
+
self.task_type = task_type
|
|
114
|
+
|
|
115
|
+
@property
|
|
116
|
+
def enqueue_time(self):
|
|
117
|
+
"""Gets the enqueue_time of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:return: The enqueue_time of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
121
|
+
:rtype: int
|
|
122
|
+
"""
|
|
123
|
+
return self._enqueue_time
|
|
124
|
+
|
|
125
|
+
@enqueue_time.setter
|
|
126
|
+
def enqueue_time(self, enqueue_time):
|
|
127
|
+
"""Sets the enqueue_time of this TabletTaskInfoForListTabletTaskOutput.
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param enqueue_time: The enqueue_time of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
131
|
+
:type: int
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
self._enqueue_time = enqueue_time
|
|
135
|
+
|
|
136
|
+
@property
|
|
137
|
+
def reason(self):
|
|
138
|
+
"""Gets the reason of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:return: The reason of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._reason
|
|
145
|
+
|
|
146
|
+
@reason.setter
|
|
147
|
+
def reason(self, reason):
|
|
148
|
+
"""Sets the reason of this TabletTaskInfoForListTabletTaskOutput.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
:param reason: The reason of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
152
|
+
:type: str
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
self._reason = reason
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def replicas_to_close(self):
|
|
159
|
+
"""Gets the replicas_to_close of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
:return: The replicas_to_close of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
163
|
+
:rtype: list[ReplicasToCloseForListTabletTaskOutput]
|
|
164
|
+
"""
|
|
165
|
+
return self._replicas_to_close
|
|
166
|
+
|
|
167
|
+
@replicas_to_close.setter
|
|
168
|
+
def replicas_to_close(self, replicas_to_close):
|
|
169
|
+
"""Sets the replicas_to_close of this TabletTaskInfoForListTabletTaskOutput.
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
:param replicas_to_close: The replicas_to_close of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
173
|
+
:type: list[ReplicasToCloseForListTabletTaskOutput]
|
|
174
|
+
"""
|
|
175
|
+
|
|
176
|
+
self._replicas_to_close = replicas_to_close
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
def replicas_to_delete(self):
|
|
180
|
+
"""Gets the replicas_to_delete of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:return: The replicas_to_delete of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
184
|
+
:rtype: list[ReplicasToDeleteForListTabletTaskOutput]
|
|
185
|
+
"""
|
|
186
|
+
return self._replicas_to_delete
|
|
187
|
+
|
|
188
|
+
@replicas_to_delete.setter
|
|
189
|
+
def replicas_to_delete(self, replicas_to_delete):
|
|
190
|
+
"""Sets the replicas_to_delete of this TabletTaskInfoForListTabletTaskOutput.
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:param replicas_to_delete: The replicas_to_delete of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
194
|
+
:type: list[ReplicasToDeleteForListTabletTaskOutput]
|
|
195
|
+
"""
|
|
196
|
+
|
|
197
|
+
self._replicas_to_delete = replicas_to_delete
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
def replicas_to_failover_by_promote(self):
|
|
201
|
+
"""Gets the replicas_to_failover_by_promote of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
:return: The replicas_to_failover_by_promote of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
205
|
+
:rtype: list[ReplicasToFailoverByPromoteForListTabletTaskOutput]
|
|
206
|
+
"""
|
|
207
|
+
return self._replicas_to_failover_by_promote
|
|
208
|
+
|
|
209
|
+
@replicas_to_failover_by_promote.setter
|
|
210
|
+
def replicas_to_failover_by_promote(self, replicas_to_failover_by_promote):
|
|
211
|
+
"""Sets the replicas_to_failover_by_promote of this TabletTaskInfoForListTabletTaskOutput.
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
:param replicas_to_failover_by_promote: The replicas_to_failover_by_promote of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
215
|
+
:type: list[ReplicasToFailoverByPromoteForListTabletTaskOutput]
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
self._replicas_to_failover_by_promote = replicas_to_failover_by_promote
|
|
219
|
+
|
|
220
|
+
@property
|
|
221
|
+
def replicas_to_failover_by_reopen(self):
|
|
222
|
+
"""Gets the replicas_to_failover_by_reopen of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
:return: The replicas_to_failover_by_reopen of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
226
|
+
:rtype: list[ReplicasToFailoverByReopenForListTabletTaskOutput]
|
|
227
|
+
"""
|
|
228
|
+
return self._replicas_to_failover_by_reopen
|
|
229
|
+
|
|
230
|
+
@replicas_to_failover_by_reopen.setter
|
|
231
|
+
def replicas_to_failover_by_reopen(self, replicas_to_failover_by_reopen):
|
|
232
|
+
"""Sets the replicas_to_failover_by_reopen of this TabletTaskInfoForListTabletTaskOutput.
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
:param replicas_to_failover_by_reopen: The replicas_to_failover_by_reopen of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
236
|
+
:type: list[ReplicasToFailoverByReopenForListTabletTaskOutput]
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
self._replicas_to_failover_by_reopen = replicas_to_failover_by_reopen
|
|
240
|
+
|
|
241
|
+
@property
|
|
242
|
+
def replicas_to_open_or_add(self):
|
|
243
|
+
"""Gets the replicas_to_open_or_add of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
:return: The replicas_to_open_or_add of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
247
|
+
:rtype: list[ReplicasToOpenOrAddForListTabletTaskOutput]
|
|
248
|
+
"""
|
|
249
|
+
return self._replicas_to_open_or_add
|
|
250
|
+
|
|
251
|
+
@replicas_to_open_or_add.setter
|
|
252
|
+
def replicas_to_open_or_add(self, replicas_to_open_or_add):
|
|
253
|
+
"""Sets the replicas_to_open_or_add of this TabletTaskInfoForListTabletTaskOutput.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
:param replicas_to_open_or_add: The replicas_to_open_or_add of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
257
|
+
:type: list[ReplicasToOpenOrAddForListTabletTaskOutput]
|
|
258
|
+
"""
|
|
259
|
+
|
|
260
|
+
self._replicas_to_open_or_add = replicas_to_open_or_add
|
|
261
|
+
|
|
262
|
+
@property
|
|
263
|
+
def start_time(self):
|
|
264
|
+
"""Gets the start_time of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
:return: The start_time of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
268
|
+
:rtype: int
|
|
269
|
+
"""
|
|
270
|
+
return self._start_time
|
|
271
|
+
|
|
272
|
+
@start_time.setter
|
|
273
|
+
def start_time(self, start_time):
|
|
274
|
+
"""Sets the start_time of this TabletTaskInfoForListTabletTaskOutput.
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
:param start_time: The start_time of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
278
|
+
:type: int
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
self._start_time = start_time
|
|
282
|
+
|
|
283
|
+
@property
|
|
284
|
+
def tablet_to_merge(self):
|
|
285
|
+
"""Gets the tablet_to_merge of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
:return: The tablet_to_merge of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
289
|
+
:rtype: TabletToMergeForListTabletTaskOutput
|
|
290
|
+
"""
|
|
291
|
+
return self._tablet_to_merge
|
|
292
|
+
|
|
293
|
+
@tablet_to_merge.setter
|
|
294
|
+
def tablet_to_merge(self, tablet_to_merge):
|
|
295
|
+
"""Sets the tablet_to_merge of this TabletTaskInfoForListTabletTaskOutput.
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
:param tablet_to_merge: The tablet_to_merge of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
299
|
+
:type: TabletToMergeForListTabletTaskOutput
|
|
300
|
+
"""
|
|
301
|
+
|
|
302
|
+
self._tablet_to_merge = tablet_to_merge
|
|
303
|
+
|
|
304
|
+
@property
|
|
305
|
+
def tablet_to_split(self):
|
|
306
|
+
"""Gets the tablet_to_split of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
:return: The tablet_to_split of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
310
|
+
:rtype: TabletToSplitForListTabletTaskOutput
|
|
311
|
+
"""
|
|
312
|
+
return self._tablet_to_split
|
|
313
|
+
|
|
314
|
+
@tablet_to_split.setter
|
|
315
|
+
def tablet_to_split(self, tablet_to_split):
|
|
316
|
+
"""Sets the tablet_to_split of this TabletTaskInfoForListTabletTaskOutput.
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
:param tablet_to_split: The tablet_to_split of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
320
|
+
:type: TabletToSplitForListTabletTaskOutput
|
|
321
|
+
"""
|
|
322
|
+
|
|
323
|
+
self._tablet_to_split = tablet_to_split
|
|
324
|
+
|
|
325
|
+
@property
|
|
326
|
+
def tablets_to_delete(self):
|
|
327
|
+
"""Gets the tablets_to_delete of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
:return: The tablets_to_delete of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
331
|
+
:rtype: list[TabletsToDeleteForListTabletTaskOutput]
|
|
332
|
+
"""
|
|
333
|
+
return self._tablets_to_delete
|
|
334
|
+
|
|
335
|
+
@tablets_to_delete.setter
|
|
336
|
+
def tablets_to_delete(self, tablets_to_delete):
|
|
337
|
+
"""Sets the tablets_to_delete of this TabletTaskInfoForListTabletTaskOutput.
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
:param tablets_to_delete: The tablets_to_delete of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
341
|
+
:type: list[TabletsToDeleteForListTabletTaskOutput]
|
|
342
|
+
"""
|
|
343
|
+
|
|
344
|
+
self._tablets_to_delete = tablets_to_delete
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
def task_id(self):
|
|
348
|
+
"""Gets the task_id of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
:return: The task_id of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
352
|
+
:rtype: int
|
|
353
|
+
"""
|
|
354
|
+
return self._task_id
|
|
355
|
+
|
|
356
|
+
@task_id.setter
|
|
357
|
+
def task_id(self, task_id):
|
|
358
|
+
"""Sets the task_id of this TabletTaskInfoForListTabletTaskOutput.
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
:param task_id: The task_id of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
362
|
+
:type: int
|
|
363
|
+
"""
|
|
364
|
+
|
|
365
|
+
self._task_id = task_id
|
|
366
|
+
|
|
367
|
+
@property
|
|
368
|
+
def task_type(self):
|
|
369
|
+
"""Gets the task_type of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
:return: The task_type of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
373
|
+
:rtype: str
|
|
374
|
+
"""
|
|
375
|
+
return self._task_type
|
|
376
|
+
|
|
377
|
+
@task_type.setter
|
|
378
|
+
def task_type(self, task_type):
|
|
379
|
+
"""Sets the task_type of this TabletTaskInfoForListTabletTaskOutput.
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
:param task_type: The task_type of this TabletTaskInfoForListTabletTaskOutput. # noqa: E501
|
|
383
|
+
:type: str
|
|
384
|
+
"""
|
|
385
|
+
|
|
386
|
+
self._task_type = task_type
|
|
387
|
+
|
|
388
|
+
def to_dict(self):
|
|
389
|
+
"""Returns the model properties as a dict"""
|
|
390
|
+
result = {}
|
|
391
|
+
|
|
392
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
393
|
+
value = getattr(self, attr)
|
|
394
|
+
if isinstance(value, list):
|
|
395
|
+
result[attr] = list(map(
|
|
396
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
397
|
+
value
|
|
398
|
+
))
|
|
399
|
+
elif hasattr(value, "to_dict"):
|
|
400
|
+
result[attr] = value.to_dict()
|
|
401
|
+
elif isinstance(value, dict):
|
|
402
|
+
result[attr] = dict(map(
|
|
403
|
+
lambda item: (item[0], item[1].to_dict())
|
|
404
|
+
if hasattr(item[1], "to_dict") else item,
|
|
405
|
+
value.items()
|
|
406
|
+
))
|
|
407
|
+
else:
|
|
408
|
+
result[attr] = value
|
|
409
|
+
if issubclass(TabletTaskInfoForListTabletTaskOutput, dict):
|
|
410
|
+
for key, value in self.items():
|
|
411
|
+
result[key] = value
|
|
412
|
+
|
|
413
|
+
return result
|
|
414
|
+
|
|
415
|
+
def to_str(self):
|
|
416
|
+
"""Returns the string representation of the model"""
|
|
417
|
+
return pprint.pformat(self.to_dict())
|
|
418
|
+
|
|
419
|
+
def __repr__(self):
|
|
420
|
+
"""For `print` and `pprint`"""
|
|
421
|
+
return self.to_str()
|
|
422
|
+
|
|
423
|
+
def __eq__(self, other):
|
|
424
|
+
"""Returns true if both objects are equal"""
|
|
425
|
+
if not isinstance(other, TabletTaskInfoForListTabletTaskOutput):
|
|
426
|
+
return False
|
|
427
|
+
|
|
428
|
+
return self.to_dict() == other.to_dict()
|
|
429
|
+
|
|
430
|
+
def __ne__(self, other):
|
|
431
|
+
"""Returns true if both objects are not equal"""
|
|
432
|
+
if not isinstance(other, TabletTaskInfoForListTabletTaskOutput):
|
|
433
|
+
return True
|
|
434
|
+
|
|
435
|
+
return self.to_dict() != other.to_dict()
|