huaweicloudsdkdrs 3.1.85__py2.py3-none-any.whl → 3.1.132__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.
Files changed (192) hide show
  1. huaweicloudsdkdrs/v3/__init__.py +48 -0
  2. huaweicloudsdkdrs/v3/drs_async_client.py +1140 -43
  3. huaweicloudsdkdrs/v3/drs_client.py +1140 -43
  4. huaweicloudsdkdrs/v3/model/__init__.py +48 -0
  5. huaweicloudsdkdrs/v3/model/add_data_transformation_req.py +138 -0
  6. huaweicloudsdkdrs/v3/model/api_http_null_resp.py +84 -0
  7. huaweicloudsdkdrs/v3/model/batch_job_action_req.py +9 -9
  8. huaweicloudsdkdrs/v3/model/compare_job_content_detail_info.py +202 -0
  9. huaweicloudsdkdrs/v3/model/compare_job_info.py +376 -0
  10. huaweicloudsdkdrs/v3/model/create_compare_result_file_request.py +196 -0
  11. huaweicloudsdkdrs/v3/model/create_compare_result_file_response.py +116 -0
  12. huaweicloudsdkdrs/v3/model/create_data_compare_database_object.py +115 -0
  13. huaweicloudsdkdrs/v3/model/create_data_compare_transformation_info.py +142 -0
  14. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_req.py +346 -0
  15. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_request.py +168 -0
  16. huaweicloudsdkdrs/v3/model/create_data_level_table_compare_job_response.py +116 -0
  17. huaweicloudsdkdrs/v3/model/create_job_req.py +67 -9
  18. huaweicloudsdkdrs/v3/model/create_object_compare_job_req.py +115 -0
  19. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_request.py +168 -0
  20. huaweicloudsdkdrs/v3/model/create_object_level_compare_job_response.py +116 -0
  21. huaweicloudsdkdrs/v3/model/data_compare_overview_info.py +173 -0
  22. huaweicloudsdkdrs/v3/model/delete_compare_job_request.py +171 -0
  23. huaweicloudsdkdrs/v3/model/delete_compare_job_response.py +116 -0
  24. huaweicloudsdkdrs/v3/model/download_compare_result_file_request.py +255 -0
  25. huaweicloudsdkdrs/v3/model/download_compare_result_file_response.py +85 -0
  26. huaweicloudsdkdrs/v3/model/endpoint.py +28 -3
  27. huaweicloudsdkdrs/v3/model/export_compare_result_req.py +172 -0
  28. huaweicloudsdkdrs/v3/model/failed_to_bind_eip_child_info.py +144 -0
  29. huaweicloudsdkdrs/v3/model/kafka_security.py +290 -29
  30. huaweicloudsdkdrs/v3/model/list_available_node_types_request.py +257 -0
  31. huaweicloudsdkdrs/v3/model/list_available_node_types_response.py +116 -0
  32. huaweicloudsdkdrs/v3/model/list_content_compare_detail_request.py +316 -0
  33. huaweicloudsdkdrs/v3/model/list_content_compare_detail_response.py +145 -0
  34. huaweicloudsdkdrs/v3/model/list_content_compare_difference_request.py +287 -0
  35. huaweicloudsdkdrs/v3/model/list_content_compare_difference_response.py +232 -0
  36. huaweicloudsdkdrs/v3/model/list_content_compare_overview_request.py +229 -0
  37. huaweicloudsdkdrs/v3/model/list_content_compare_overview_response.py +145 -0
  38. huaweicloudsdkdrs/v3/model/list_data_compare_detail_request.py +374 -0
  39. huaweicloudsdkdrs/v3/model/list_data_compare_detail_response.py +145 -0
  40. huaweicloudsdkdrs/v3/model/list_data_compare_overview_request.py +258 -0
  41. huaweicloudsdkdrs/v3/model/list_data_compare_overview_response.py +145 -0
  42. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_request.py +201 -0
  43. huaweicloudsdkdrs/v3/model/list_data_level_table_compare_jobs_response.py +145 -0
  44. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_request.py +258 -0
  45. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_detail_response.py +145 -0
  46. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_request.py +143 -0
  47. huaweicloudsdkdrs/v3/model/list_obeject_level_compare_overview_response.py +319 -0
  48. huaweicloudsdkdrs/v3/model/modify_job_req.py +3 -3
  49. huaweicloudsdkdrs/v3/model/node_content_compare_detail_result.py +405 -0
  50. huaweicloudsdkdrs/v3/model/node_content_compare_overview_result.py +173 -0
  51. huaweicloudsdkdrs/v3/model/objects_compare_detail_info.py +260 -0
  52. huaweicloudsdkdrs/v3/model/objects_compare_overview_info.py +202 -0
  53. huaweicloudsdkdrs/v3/model/public_ip_config.py +170 -0
  54. huaweicloudsdkdrs/v3/model/query_job_resp.py +129 -13
  55. huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
  56. huaweicloudsdkdrs/v3/model/query_support_node_type_bean.py +144 -0
  57. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_request.py +171 -0
  58. huaweicloudsdkdrs/v3/model/start_promptly_data_level_table_compare_job_response.py +116 -0
  59. huaweicloudsdkdrs/v3/model/sync_policy_req.py +32 -3
  60. huaweicloudsdkdrs/v3/model/table_line_compare_result_info.py +289 -0
  61. huaweicloudsdkdrs/v3/region/drs_region.py +15 -0
  62. huaweicloudsdkdrs/v5/__init__.py +81 -1
  63. huaweicloudsdkdrs/v5/drs_async_client.py +2408 -750
  64. huaweicloudsdkdrs/v5/drs_client.py +2408 -750
  65. huaweicloudsdkdrs/v5/model/__init__.py +81 -1
  66. huaweicloudsdkdrs/v5/model/action_params.py +82 -3
  67. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  68. huaweicloudsdkdrs/v5/model/agency_role.py +144 -0
  69. huaweicloudsdkdrs/v5/model/async_create_job_req.py +32 -3
  70. huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
  71. huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
  72. huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
  73. huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
  74. huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
  75. huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
  76. huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
  77. huaweicloudsdkdrs/v5/model/base_endpoint.py +6 -6
  78. huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
  79. huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
  80. huaweicloudsdkdrs/v5/model/check_data_filter_response.py +35 -6
  81. huaweicloudsdkdrs/v5/model/children_job_list_resp.py +3 -3
  82. huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
  83. huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
  84. huaweicloudsdkdrs/v5/model/collect_columns_response.py +35 -6
  85. huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +35 -6
  86. huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +35 -6
  87. huaweicloudsdkdrs/v5/model/collect_position_async_response.py +35 -6
  88. huaweicloudsdkdrs/v5/model/compare_job_info.py +65 -7
  89. huaweicloudsdkdrs/v5/model/compare_result_info.py +28 -3
  90. huaweicloudsdkdrs/v5/model/compare_task_params.py +32 -3
  91. huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
  92. huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
  93. huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
  94. huaweicloudsdkdrs/v5/model/content_diff_detail_info.py +231 -0
  95. huaweicloudsdkdrs/v5/model/content_diff_detail_vo.py +202 -0
  96. huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
  97. huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
  98. huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
  99. huaweicloudsdkdrs/v5/model/create_job_req.py +32 -3
  100. huaweicloudsdkdrs/v5/model/create_job_response.py +139 -19
  101. huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
  102. huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
  103. huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
  104. huaweicloudsdkdrs/v5/model/data_process_info.py +32 -3
  105. huaweicloudsdkdrs/v5/model/db_object_filtering_result.py +148 -3
  106. huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
  107. huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
  108. huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
  109. huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
  110. huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
  111. huaweicloudsdkdrs/v5/model/delete_user_driver_req.py +142 -0
  112. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_request.py +140 -0
  113. huaweicloudsdkdrs/v5/model/delete_user_jdbc_driver_response.py +116 -0
  114. huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
  115. huaweicloudsdkdrs/v5/model/failed_to_bind_eip_child_info.py +144 -0
  116. huaweicloudsdkdrs/v5/model/health_compare_job.py +9 -9
  117. huaweicloudsdkdrs/v5/model/job_base_info.py +35 -6
  118. huaweicloudsdkdrs/v5/model/job_detail_resp.py +122 -6
  119. huaweicloudsdkdrs/v5/model/job_endpoint_info.py +3 -3
  120. huaweicloudsdkdrs/v5/model/job_list_resp.py +3 -3
  121. huaweicloudsdkdrs/v5/model/job_node_vpc_info.py +3 -3
  122. huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
  123. huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
  124. huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
  125. huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
  126. huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
  127. huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
  128. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_request.py +201 -0
  129. huaweicloudsdkdrs/v5/model/list_user_jdbc_drivers_response.py +145 -0
  130. huaweicloudsdkdrs/v5/model/lists_agency_permissions_request.py +201 -0
  131. huaweicloudsdkdrs/v5/model/lists_agency_permissions_response.py +145 -0
  132. huaweicloudsdkdrs/v5/model/modify_compare_policy_req.py +288 -0
  133. huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
  134. huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
  135. huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
  136. huaweicloudsdkdrs/v5/model/objects_health_compare_overview_info.py +202 -0
  137. huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
  138. huaweicloudsdkdrs/v5/model/policy_config.py +32 -3
  139. huaweicloudsdkdrs/v5/model/public_ip_config.py +170 -0
  140. huaweicloudsdkdrs/v5/model/replay_config_info.py +282 -0
  141. huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
  142. huaweicloudsdkdrs/v5/model/replay_error_sql_resp.py +173 -0
  143. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +289 -0
  144. huaweicloudsdkdrs/v5/model/replay_shard_statics_resp.py +226 -0
  145. huaweicloudsdkdrs/v5/model/replay_slow_sql_resp.py +202 -0
  146. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +402 -0
  147. huaweicloudsdkdrs/v5/model/replaying_sql_resp.py +318 -0
  148. huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
  149. huaweicloudsdkdrs/v5/model/show_agency_info_request.py +143 -0
  150. huaweicloudsdkdrs/v5/model/show_agency_info_response.py +174 -0
  151. huaweicloudsdkdrs/v5/model/show_compare_policy_response.py +3 -3
  152. huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +35 -6
  153. huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
  154. huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
  155. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_request.py +171 -0
  156. huaweicloudsdkdrs/v5/model/show_health_compare_job_detail_response.py +261 -0
  157. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_request.py +171 -0
  158. huaweicloudsdkdrs/v5/model/show_health_object_compare_job_overview_response.py +116 -0
  159. huaweicloudsdkdrs/v5/model/show_job_detail_request.py +3 -3
  160. huaweicloudsdkdrs/v5/model/show_position_result_response.py +32 -3
  161. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +461 -0
  162. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +319 -0
  163. huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
  164. huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
  165. huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
  166. huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +35 -6
  167. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_request.py +168 -0
  168. huaweicloudsdkdrs/v5/model/sync_user_jdbc_driver_response.py +116 -0
  169. huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
  170. huaweicloudsdkdrs/v5/model/update_agency_policy_request.py +168 -0
  171. huaweicloudsdkdrs/v5/model/update_agency_policy_request_body.py +142 -0
  172. huaweicloudsdkdrs/v5/model/update_agency_policy_response.py +116 -0
  173. huaweicloudsdkdrs/v5/model/update_compare_policy_request.py +168 -0
  174. huaweicloudsdkdrs/v5/model/update_compare_policy_response.py +116 -0
  175. huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
  176. huaweicloudsdkdrs/v5/model/update_data_progress_response.py +35 -6
  177. huaweicloudsdkdrs/v5/model/update_job_req.py +3 -3
  178. huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
  179. huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
  180. huaweicloudsdkdrs/v5/model/update_user_driver_req.py +142 -0
  181. huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
  182. huaweicloudsdkdrs/v5/model/upload_jdbc_driver_request_body.py +3 -3
  183. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request.py +168 -0
  184. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_request_body.py +114 -0
  185. huaweicloudsdkdrs/v5/model/upload_user_jdbc_driver_response.py +116 -0
  186. huaweicloudsdkdrs/v5/region/drs_region.py +15 -0
  187. {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/METADATA +2 -2
  188. {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/RECORD +191 -63
  189. {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/WHEEL +1 -1
  190. huaweicloudsdkdrs/v5/model/create_job_resp.py +0 -227
  191. {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/LICENSE +0 -0
  192. {huaweicloudsdkdrs-3.1.85.dist-info → huaweicloudsdkdrs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,327 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateConnectionReq:
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
+ 'name': 'str',
21
+ 'db_type': 'str',
22
+ 'config': 'ConnectionConfig',
23
+ 'description': 'str',
24
+ 'endpoint': 'BaseEndpoint',
25
+ 'vpc': 'CloudVpcInfo',
26
+ 'ssl': 'EndpointSslConfig',
27
+ 'cloud': 'CloudBaseInfo',
28
+ 'enterprise_project_id': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'name': 'name',
33
+ 'db_type': 'db_type',
34
+ 'config': 'config',
35
+ 'description': 'description',
36
+ 'endpoint': 'endpoint',
37
+ 'vpc': 'vpc',
38
+ 'ssl': 'ssl',
39
+ 'cloud': 'cloud',
40
+ 'enterprise_project_id': 'enterprise_project_id'
41
+ }
42
+
43
+ def __init__(self, name=None, db_type=None, config=None, description=None, endpoint=None, vpc=None, ssl=None, cloud=None, enterprise_project_id=None):
44
+ """UpdateConnectionReq
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param name: 连接名称。
49
+ :type name: str
50
+ :param db_type: 数据库类型。
51
+ :type db_type: str
52
+ :param config:
53
+ :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
54
+ :param description: 连接描述。
55
+ :type description: str
56
+ :param endpoint:
57
+ :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
58
+ :param vpc:
59
+ :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
60
+ :param ssl:
61
+ :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
62
+ :param cloud:
63
+ :type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
64
+ :param enterprise_project_id: 企业项目ID。
65
+ :type enterprise_project_id: str
66
+ """
67
+
68
+
69
+
70
+ self._name = None
71
+ self._db_type = None
72
+ self._config = None
73
+ self._description = None
74
+ self._endpoint = None
75
+ self._vpc = None
76
+ self._ssl = None
77
+ self._cloud = None
78
+ self._enterprise_project_id = None
79
+ self.discriminator = None
80
+
81
+ if name is not None:
82
+ self.name = name
83
+ if db_type is not None:
84
+ self.db_type = db_type
85
+ if config is not None:
86
+ self.config = config
87
+ if description is not None:
88
+ self.description = description
89
+ if endpoint is not None:
90
+ self.endpoint = endpoint
91
+ if vpc is not None:
92
+ self.vpc = vpc
93
+ if ssl is not None:
94
+ self.ssl = ssl
95
+ if cloud is not None:
96
+ self.cloud = cloud
97
+ if enterprise_project_id is not None:
98
+ self.enterprise_project_id = enterprise_project_id
99
+
100
+ @property
101
+ def name(self):
102
+ """Gets the name of this UpdateConnectionReq.
103
+
104
+ 连接名称。
105
+
106
+ :return: The name of this UpdateConnectionReq.
107
+ :rtype: str
108
+ """
109
+ return self._name
110
+
111
+ @name.setter
112
+ def name(self, name):
113
+ """Sets the name of this UpdateConnectionReq.
114
+
115
+ 连接名称。
116
+
117
+ :param name: The name of this UpdateConnectionReq.
118
+ :type name: str
119
+ """
120
+ self._name = name
121
+
122
+ @property
123
+ def db_type(self):
124
+ """Gets the db_type of this UpdateConnectionReq.
125
+
126
+ 数据库类型。
127
+
128
+ :return: The db_type of this UpdateConnectionReq.
129
+ :rtype: str
130
+ """
131
+ return self._db_type
132
+
133
+ @db_type.setter
134
+ def db_type(self, db_type):
135
+ """Sets the db_type of this UpdateConnectionReq.
136
+
137
+ 数据库类型。
138
+
139
+ :param db_type: The db_type of this UpdateConnectionReq.
140
+ :type db_type: str
141
+ """
142
+ self._db_type = db_type
143
+
144
+ @property
145
+ def config(self):
146
+ """Gets the config of this UpdateConnectionReq.
147
+
148
+ :return: The config of this UpdateConnectionReq.
149
+ :rtype: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
150
+ """
151
+ return self._config
152
+
153
+ @config.setter
154
+ def config(self, config):
155
+ """Sets the config of this UpdateConnectionReq.
156
+
157
+ :param config: The config of this UpdateConnectionReq.
158
+ :type config: :class:`huaweicloudsdkdrs.v5.ConnectionConfig`
159
+ """
160
+ self._config = config
161
+
162
+ @property
163
+ def description(self):
164
+ """Gets the description of this UpdateConnectionReq.
165
+
166
+ 连接描述。
167
+
168
+ :return: The description of this UpdateConnectionReq.
169
+ :rtype: str
170
+ """
171
+ return self._description
172
+
173
+ @description.setter
174
+ def description(self, description):
175
+ """Sets the description of this UpdateConnectionReq.
176
+
177
+ 连接描述。
178
+
179
+ :param description: The description of this UpdateConnectionReq.
180
+ :type description: str
181
+ """
182
+ self._description = description
183
+
184
+ @property
185
+ def endpoint(self):
186
+ """Gets the endpoint of this UpdateConnectionReq.
187
+
188
+ :return: The endpoint of this UpdateConnectionReq.
189
+ :rtype: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
190
+ """
191
+ return self._endpoint
192
+
193
+ @endpoint.setter
194
+ def endpoint(self, endpoint):
195
+ """Sets the endpoint of this UpdateConnectionReq.
196
+
197
+ :param endpoint: The endpoint of this UpdateConnectionReq.
198
+ :type endpoint: :class:`huaweicloudsdkdrs.v5.BaseEndpoint`
199
+ """
200
+ self._endpoint = endpoint
201
+
202
+ @property
203
+ def vpc(self):
204
+ """Gets the vpc of this UpdateConnectionReq.
205
+
206
+ :return: The vpc of this UpdateConnectionReq.
207
+ :rtype: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
208
+ """
209
+ return self._vpc
210
+
211
+ @vpc.setter
212
+ def vpc(self, vpc):
213
+ """Sets the vpc of this UpdateConnectionReq.
214
+
215
+ :param vpc: The vpc of this UpdateConnectionReq.
216
+ :type vpc: :class:`huaweicloudsdkdrs.v5.CloudVpcInfo`
217
+ """
218
+ self._vpc = vpc
219
+
220
+ @property
221
+ def ssl(self):
222
+ """Gets the ssl of this UpdateConnectionReq.
223
+
224
+ :return: The ssl of this UpdateConnectionReq.
225
+ :rtype: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
226
+ """
227
+ return self._ssl
228
+
229
+ @ssl.setter
230
+ def ssl(self, ssl):
231
+ """Sets the ssl of this UpdateConnectionReq.
232
+
233
+ :param ssl: The ssl of this UpdateConnectionReq.
234
+ :type ssl: :class:`huaweicloudsdkdrs.v5.EndpointSslConfig`
235
+ """
236
+ self._ssl = ssl
237
+
238
+ @property
239
+ def cloud(self):
240
+ """Gets the cloud of this UpdateConnectionReq.
241
+
242
+ :return: The cloud of this UpdateConnectionReq.
243
+ :rtype: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
244
+ """
245
+ return self._cloud
246
+
247
+ @cloud.setter
248
+ def cloud(self, cloud):
249
+ """Sets the cloud of this UpdateConnectionReq.
250
+
251
+ :param cloud: The cloud of this UpdateConnectionReq.
252
+ :type cloud: :class:`huaweicloudsdkdrs.v5.CloudBaseInfo`
253
+ """
254
+ self._cloud = cloud
255
+
256
+ @property
257
+ def enterprise_project_id(self):
258
+ """Gets the enterprise_project_id of this UpdateConnectionReq.
259
+
260
+ 企业项目ID。
261
+
262
+ :return: The enterprise_project_id of this UpdateConnectionReq.
263
+ :rtype: str
264
+ """
265
+ return self._enterprise_project_id
266
+
267
+ @enterprise_project_id.setter
268
+ def enterprise_project_id(self, enterprise_project_id):
269
+ """Sets the enterprise_project_id of this UpdateConnectionReq.
270
+
271
+ 企业项目ID。
272
+
273
+ :param enterprise_project_id: The enterprise_project_id of this UpdateConnectionReq.
274
+ :type enterprise_project_id: str
275
+ """
276
+ self._enterprise_project_id = enterprise_project_id
277
+
278
+ def to_dict(self):
279
+ """Returns the model properties as a dict"""
280
+ result = {}
281
+
282
+ for attr, _ in six.iteritems(self.openapi_types):
283
+ value = getattr(self, attr)
284
+ if isinstance(value, list):
285
+ result[attr] = list(map(
286
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
287
+ value
288
+ ))
289
+ elif hasattr(value, "to_dict"):
290
+ result[attr] = value.to_dict()
291
+ elif isinstance(value, dict):
292
+ result[attr] = dict(map(
293
+ lambda item: (item[0], item[1].to_dict())
294
+ if hasattr(item[1], "to_dict") else item,
295
+ value.items()
296
+ ))
297
+ else:
298
+ if attr in self.sensitive_list:
299
+ result[attr] = "****"
300
+ else:
301
+ result[attr] = value
302
+
303
+ return result
304
+
305
+ def to_str(self):
306
+ """Returns the string representation of the model"""
307
+ import simplejson as json
308
+ if six.PY2:
309
+ import sys
310
+ reload(sys)
311
+ sys.setdefaultencoding("utf-8")
312
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
313
+
314
+ def __repr__(self):
315
+ """For `print`"""
316
+ return self.to_str()
317
+
318
+ def __eq__(self, other):
319
+ """Returns true if both objects are equal"""
320
+ if not isinstance(other, UpdateConnectionReq):
321
+ return False
322
+
323
+ return self.__dict__ == other.__dict__
324
+
325
+ def __ne__(self, other):
326
+ """Returns true if both objects are not equal"""
327
+ return not self == other
@@ -19,35 +19,42 @@ class UpdateDataProgressResponse(SdkResponse):
19
19
 
20
20
  openapi_types = {
21
21
  'id': 'str',
22
- 'status': 'str'
22
+ 'status': 'str',
23
+ 'job_id': 'str'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'id': 'id',
27
- 'status': 'status'
28
+ 'status': 'status',
29
+ 'job_id': 'job_id'
28
30
  }
29
31
 
30
- def __init__(self, id=None, status=None):
32
+ def __init__(self, id=None, status=None, job_id=None):
31
33
  """UpdateDataProgressResponse
32
34
 
33
35
  The model defined in huaweicloud sdk
34
36
 
35
37
  :param id: 查询结果id
36
38
  :type id: str
37
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
38
40
  :type status: str
41
+ :param job_id: 任务ID
42
+ :type job_id: str
39
43
  """
40
44
 
41
45
  super(UpdateDataProgressResponse, self).__init__()
42
46
 
43
47
  self._id = None
44
48
  self._status = None
49
+ self._job_id = None
45
50
  self.discriminator = None
46
51
 
47
52
  if id is not None:
48
53
  self.id = id
49
54
  if status is not None:
50
55
  self.status = status
56
+ if job_id is not None:
57
+ self.job_id = job_id
51
58
 
52
59
  @property
53
60
  def id(self):
@@ -75,7 +82,7 @@ class UpdateDataProgressResponse(SdkResponse):
75
82
  def status(self):
76
83
  """Gets the status of this UpdateDataProgressResponse.
77
84
 
78
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
79
86
 
80
87
  :return: The status of this UpdateDataProgressResponse.
81
88
  :rtype: str
@@ -86,13 +93,35 @@ class UpdateDataProgressResponse(SdkResponse):
86
93
  def status(self, status):
87
94
  """Sets the status of this UpdateDataProgressResponse.
88
95
 
89
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
90
97
 
91
98
  :param status: The status of this UpdateDataProgressResponse.
92
99
  :type status: str
93
100
  """
94
101
  self._status = status
95
102
 
103
+ @property
104
+ def job_id(self):
105
+ """Gets the job_id of this UpdateDataProgressResponse.
106
+
107
+ 任务ID
108
+
109
+ :return: The job_id of this UpdateDataProgressResponse.
110
+ :rtype: str
111
+ """
112
+ return self._job_id
113
+
114
+ @job_id.setter
115
+ def job_id(self, job_id):
116
+ """Sets the job_id of this UpdateDataProgressResponse.
117
+
118
+ 任务ID
119
+
120
+ :param job_id: The job_id of this UpdateDataProgressResponse.
121
+ :type job_id: str
122
+ """
123
+ self._job_id = job_id
124
+
96
125
  def to_dict(self):
97
126
  """Returns the model properties as a dict"""
98
127
  result = {}
@@ -31,7 +31,7 @@ class UpdateJobReq:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param type: 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。
34
+ :param type: 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 - notify:更新任务异常通知信息。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。
35
35
  :type type: str
36
36
  :param params:
37
37
  :type params: :class:`huaweicloudsdkdrs.v5.UpdateJob`
@@ -50,7 +50,7 @@ class UpdateJobReq:
50
50
  def type(self):
51
51
  """Gets the type of this UpdateJobReq.
52
52
 
53
- 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。
53
+ 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 - notify:更新任务异常通知信息。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。
54
54
 
55
55
  :return: The type of this UpdateJobReq.
56
56
  :rtype: str
@@ -61,7 +61,7 @@ class UpdateJobReq:
61
61
  def type(self, type):
62
62
  """Sets the type of this UpdateJobReq.
63
63
 
64
- 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。
64
+ 更新指定ID任务详情类型。 场景一:更新单个任务详情,取值: - name:更新该任务名称。 - description:更新该任务描述。 - re_create:配置中任务三天以后虚拟机删除后重建。 - expired_days:更新任务异常自动结束时间,单位为天。 - notify:更新任务异常通知信息。 场景二:更新批量异步任务详情,取值: - all:批量异步创建的任务,参数校验不通过,需要指定全部参数进行更新时。 - network:批量异步创建的任务,测试连接不通过,需要更新源库/目标库信息时。 - policy:批量异步创建的任务,需要更新任务配置时。 - db_object:批量异步创建的任务,需要更新对象信息时。 - precheck:批量异步创建的任务,需要重新预检查时。
65
65
 
66
66
  :param type: The type of this UpdateJobReq.
67
67
  :type type: str
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateReplicationJobRequest:
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
+ 'job_id': 'str',
21
+ 'x_language': 'str',
22
+ 'body': 'ModifyOfflineTaskReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'job_id': 'job_id',
27
+ 'x_language': 'X-Language',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, job_id=None, x_language=None, body=None):
32
+ """UpdateReplicationJobRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param job_id: 备份迁移任务ID。
37
+ :type job_id: str
38
+ :param x_language: 请求语言类型。 en-us:英文 zh-cn:中文
39
+ :type x_language: str
40
+ :param body: Body of the UpdateReplicationJobRequest
41
+ :type body: :class:`huaweicloudsdkdrs.v5.ModifyOfflineTaskReq`
42
+ """
43
+
44
+
45
+
46
+ self._job_id = None
47
+ self._x_language = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.job_id = job_id
52
+ if x_language is not None:
53
+ self.x_language = x_language
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def job_id(self):
59
+ """Gets the job_id of this UpdateReplicationJobRequest.
60
+
61
+ 备份迁移任务ID。
62
+
63
+ :return: The job_id of this UpdateReplicationJobRequest.
64
+ :rtype: str
65
+ """
66
+ return self._job_id
67
+
68
+ @job_id.setter
69
+ def job_id(self, job_id):
70
+ """Sets the job_id of this UpdateReplicationJobRequest.
71
+
72
+ 备份迁移任务ID。
73
+
74
+ :param job_id: The job_id of this UpdateReplicationJobRequest.
75
+ :type job_id: str
76
+ """
77
+ self._job_id = job_id
78
+
79
+ @property
80
+ def x_language(self):
81
+ """Gets the x_language of this UpdateReplicationJobRequest.
82
+
83
+ 请求语言类型。 en-us:英文 zh-cn:中文
84
+
85
+ :return: The x_language of this UpdateReplicationJobRequest.
86
+ :rtype: str
87
+ """
88
+ return self._x_language
89
+
90
+ @x_language.setter
91
+ def x_language(self, x_language):
92
+ """Sets the x_language of this UpdateReplicationJobRequest.
93
+
94
+ 请求语言类型。 en-us:英文 zh-cn:中文
95
+
96
+ :param x_language: The x_language of this UpdateReplicationJobRequest.
97
+ :type x_language: str
98
+ """
99
+ self._x_language = x_language
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this UpdateReplicationJobRequest.
104
+
105
+ :return: The body of this UpdateReplicationJobRequest.
106
+ :rtype: :class:`huaweicloudsdkdrs.v5.ModifyOfflineTaskReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this UpdateReplicationJobRequest.
113
+
114
+ :param body: The body of this UpdateReplicationJobRequest.
115
+ :type body: :class:`huaweicloudsdkdrs.v5.ModifyOfflineTaskReq`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, UpdateReplicationJobRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other