huaweicloudsdkdrs 3.1.116__py2.py3-none-any.whl → 3.1.117__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 (59) hide show
  1. huaweicloudsdkdrs/v3/model/query_job_resp.py +7 -7
  2. huaweicloudsdkdrs/v5/__init__.py +40 -0
  3. huaweicloudsdkdrs/v5/drs_async_client.py +890 -17
  4. huaweicloudsdkdrs/v5/drs_client.py +890 -17
  5. huaweicloudsdkdrs/v5/model/__init__.py +40 -0
  6. huaweicloudsdkdrs/v5/model/backup_file_info.py +201 -0
  7. huaweicloudsdkdrs/v5/model/backup_file_resp.py +173 -0
  8. huaweicloudsdkdrs/v5/model/backup_info.py +171 -0
  9. huaweicloudsdkdrs/v5/model/backup_info_resp.py +173 -0
  10. huaweicloudsdkdrs/v5/model/backup_job_base_info.py +229 -0
  11. huaweicloudsdkdrs/v5/model/backup_job_endpoint_info.py +172 -0
  12. huaweicloudsdkdrs/v5/model/backup_restore_option_info.py +315 -0
  13. huaweicloudsdkdrs/v5/model/change_to_period_request.py +168 -0
  14. huaweicloudsdkdrs/v5/model/change_to_period_response.py +116 -0
  15. huaweicloudsdkdrs/v5/model/check_data_filter_response.py +3 -3
  16. huaweicloudsdkdrs/v5/model/clean_alarms_request.py +171 -0
  17. huaweicloudsdkdrs/v5/model/clean_alarms_response.py +116 -0
  18. huaweicloudsdkdrs/v5/model/collect_columns_response.py +3 -3
  19. huaweicloudsdkdrs/v5/model/collect_db_objects_async_response.py +3 -3
  20. huaweicloudsdkdrs/v5/model/collect_db_objects_info_response.py +3 -3
  21. huaweicloudsdkdrs/v5/model/collect_position_async_response.py +3 -3
  22. huaweicloudsdkdrs/v5/model/connection_config.py +115 -0
  23. huaweicloudsdkdrs/v5/model/connection_resp.py +355 -0
  24. huaweicloudsdkdrs/v5/model/create_connection_req.py +324 -0
  25. huaweicloudsdkdrs/v5/model/create_connection_request.py +140 -0
  26. huaweicloudsdkdrs/v5/model/create_connection_response.py +361 -0
  27. huaweicloudsdkdrs/v5/model/create_offline_task_req.py +182 -0
  28. huaweicloudsdkdrs/v5/model/create_replication_job_request.py +140 -0
  29. huaweicloudsdkdrs/v5/model/create_replication_job_response.py +116 -0
  30. huaweicloudsdkdrs/v5/model/ddl_alarm_resp.py +311 -0
  31. huaweicloudsdkdrs/v5/model/delete_connection_request.py +143 -0
  32. huaweicloudsdkdrs/v5/model/delete_connection_response.py +116 -0
  33. huaweicloudsdkdrs/v5/model/delete_replication_job_request.py +143 -0
  34. huaweicloudsdkdrs/v5/model/delete_replication_job_response.py +116 -0
  35. huaweicloudsdkdrs/v5/model/list_connections_request.py +492 -0
  36. huaweicloudsdkdrs/v5/model/list_connections_response.py +145 -0
  37. huaweicloudsdkdrs/v5/model/list_job_ddls_request.py +288 -0
  38. huaweicloudsdkdrs/v5/model/list_job_ddls_response.py +145 -0
  39. huaweicloudsdkdrs/v5/model/list_replication_jobs_request.py +463 -0
  40. huaweicloudsdkdrs/v5/model/list_replication_jobs_response.py +145 -0
  41. huaweicloudsdkdrs/v5/model/modify_connection_request.py +168 -0
  42. huaweicloudsdkdrs/v5/model/modify_connection_response.py +116 -0
  43. huaweicloudsdkdrs/v5/model/modify_offline_task_req.py +143 -0
  44. huaweicloudsdkdrs/v5/model/offline_task_info.py +342 -0
  45. huaweicloudsdkdrs/v5/model/resource_tag.py +3 -3
  46. huaweicloudsdkdrs/v5/model/show_data_processing_rules_result_response.py +3 -3
  47. huaweicloudsdkdrs/v5/model/show_replication_job_request.py +143 -0
  48. huaweicloudsdkdrs/v5/model/show_replication_job_response.py +390 -0
  49. huaweicloudsdkdrs/v5/model/show_update_object_saving_status_response.py +3 -3
  50. huaweicloudsdkdrs/v5/model/to_period_req.py +198 -0
  51. huaweicloudsdkdrs/v5/model/update_connection_req.py +327 -0
  52. huaweicloudsdkdrs/v5/model/update_data_progress_response.py +3 -3
  53. huaweicloudsdkdrs/v5/model/update_replication_job_request.py +168 -0
  54. huaweicloudsdkdrs/v5/model/update_replication_job_response.py +116 -0
  55. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/METADATA +2 -2
  56. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/RECORD +59 -19
  57. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/LICENSE +0 -0
  58. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/WHEEL +0 -0
  59. {huaweicloudsdkdrs-3.1.116.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/top_level.txt +0 -0
@@ -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 ModifyConnectionRequest:
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
+ 'x_language': 'str',
21
+ 'connection_id': 'str',
22
+ 'body': 'UpdateConnectionReq'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'connection_id': 'connection_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, connection_id=None, body=None):
32
+ """ModifyConnectionRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 请求语言类型。
37
+ :type x_language: str
38
+ :param connection_id: 连接ID
39
+ :type connection_id: str
40
+ :param body: Body of the ModifyConnectionRequest
41
+ :type body: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._connection_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.connection_id = connection_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ """Gets the x_language of this ModifyConnectionRequest.
60
+
61
+ 请求语言类型。
62
+
63
+ :return: The x_language of this ModifyConnectionRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this ModifyConnectionRequest.
71
+
72
+ 请求语言类型。
73
+
74
+ :param x_language: The x_language of this ModifyConnectionRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def connection_id(self):
81
+ """Gets the connection_id of this ModifyConnectionRequest.
82
+
83
+ 连接ID
84
+
85
+ :return: The connection_id of this ModifyConnectionRequest.
86
+ :rtype: str
87
+ """
88
+ return self._connection_id
89
+
90
+ @connection_id.setter
91
+ def connection_id(self, connection_id):
92
+ """Sets the connection_id of this ModifyConnectionRequest.
93
+
94
+ 连接ID
95
+
96
+ :param connection_id: The connection_id of this ModifyConnectionRequest.
97
+ :type connection_id: str
98
+ """
99
+ self._connection_id = connection_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this ModifyConnectionRequest.
104
+
105
+ :return: The body of this ModifyConnectionRequest.
106
+ :rtype: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this ModifyConnectionRequest.
113
+
114
+ :param body: The body of this ModifyConnectionRequest.
115
+ :type body: :class:`huaweicloudsdkdrs.v5.UpdateConnectionReq`
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, ModifyConnectionRequest):
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
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ModifyConnectionResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'body': 'object'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """ModifyConnectionResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 空响应体。
34
+ :type body: object
35
+ """
36
+
37
+ super(ModifyConnectionResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this ModifyConnectionResponse.
48
+
49
+ 空响应体。
50
+
51
+ :return: The body of this ModifyConnectionResponse.
52
+ :rtype: object
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this ModifyConnectionResponse.
59
+
60
+ 空响应体。
61
+
62
+ :param body: The body of this ModifyConnectionResponse.
63
+ :type body: object
64
+ """
65
+ self._body = body
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, ModifyConnectionResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ModifyOfflineTaskReq:
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
+ 'description': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'name': 'name',
26
+ 'description': 'description'
27
+ }
28
+
29
+ def __init__(self, name=None, description=None):
30
+ """ModifyOfflineTaskReq
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param name: 备份迁移任务名称。
35
+ :type name: str
36
+ :param description: 备份迁移任务描述。
37
+ :type description: str
38
+ """
39
+
40
+
41
+
42
+ self._name = None
43
+ self._description = None
44
+ self.discriminator = None
45
+
46
+ self.name = name
47
+ if description is not None:
48
+ self.description = description
49
+
50
+ @property
51
+ def name(self):
52
+ """Gets the name of this ModifyOfflineTaskReq.
53
+
54
+ 备份迁移任务名称。
55
+
56
+ :return: The name of this ModifyOfflineTaskReq.
57
+ :rtype: str
58
+ """
59
+ return self._name
60
+
61
+ @name.setter
62
+ def name(self, name):
63
+ """Sets the name of this ModifyOfflineTaskReq.
64
+
65
+ 备份迁移任务名称。
66
+
67
+ :param name: The name of this ModifyOfflineTaskReq.
68
+ :type name: str
69
+ """
70
+ self._name = name
71
+
72
+ @property
73
+ def description(self):
74
+ """Gets the description of this ModifyOfflineTaskReq.
75
+
76
+ 备份迁移任务描述。
77
+
78
+ :return: The description of this ModifyOfflineTaskReq.
79
+ :rtype: str
80
+ """
81
+ return self._description
82
+
83
+ @description.setter
84
+ def description(self, description):
85
+ """Sets the description of this ModifyOfflineTaskReq.
86
+
87
+ 备份迁移任务描述。
88
+
89
+ :param description: The description of this ModifyOfflineTaskReq.
90
+ :type description: str
91
+ """
92
+ self._description = description
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, ModifyOfflineTaskReq):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other