huaweicloudsdkdrs 3.1.115__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.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/METADATA +2 -2
  56. {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/RECORD +59 -19
  57. {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/LICENSE +0 -0
  58. {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/WHEEL +0 -0
  59. {huaweicloudsdkdrs-3.1.115.dist-info → huaweicloudsdkdrs-3.1.117.dist-info}/top_level.txt +0 -0
@@ -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 ChangeToPeriodResponse(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
+ 'order_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'order_id': 'order_id'
26
+ }
27
+
28
+ def __init__(self, order_id=None):
29
+ """ChangeToPeriodResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param order_id: 订单ID。
34
+ :type order_id: str
35
+ """
36
+
37
+ super(ChangeToPeriodResponse, self).__init__()
38
+
39
+ self._order_id = None
40
+ self.discriminator = None
41
+
42
+ if order_id is not None:
43
+ self.order_id = order_id
44
+
45
+ @property
46
+ def order_id(self):
47
+ """Gets the order_id of this ChangeToPeriodResponse.
48
+
49
+ 订单ID。
50
+
51
+ :return: The order_id of this ChangeToPeriodResponse.
52
+ :rtype: str
53
+ """
54
+ return self._order_id
55
+
56
+ @order_id.setter
57
+ def order_id(self, order_id):
58
+ """Sets the order_id of this ChangeToPeriodResponse.
59
+
60
+ 订单ID。
61
+
62
+ :param order_id: The order_id of this ChangeToPeriodResponse.
63
+ :type order_id: str
64
+ """
65
+ self._order_id = order_id
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, ChangeToPeriodResponse):
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
@@ -36,7 +36,7 @@ class CheckDataFilterResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class CheckDataFilterResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this CheckDataFilterResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this CheckDataFilterResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class CheckDataFilterResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this CheckDataFilterResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this CheckDataFilterResponse.
99
99
  :type status: str
@@ -0,0 +1,171 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CleanAlarmsRequest:
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
+ 'job_id': 'str',
22
+ 'alarm_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'job_id': 'job_id',
28
+ 'alarm_id': 'alarm_id'
29
+ }
30
+
31
+ def __init__(self, x_language=None, job_id=None, alarm_id=None):
32
+ """CleanAlarmsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 请求语言类型。
37
+ :type x_language: str
38
+ :param job_id: 任务ID。
39
+ :type job_id: str
40
+ :param alarm_id: DDL序列号。
41
+ :type alarm_id: str
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._job_id = None
48
+ self._alarm_id = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.job_id = job_id
54
+ self.alarm_id = alarm_id
55
+
56
+ @property
57
+ def x_language(self):
58
+ """Gets the x_language of this CleanAlarmsRequest.
59
+
60
+ 请求语言类型。
61
+
62
+ :return: The x_language of this CleanAlarmsRequest.
63
+ :rtype: str
64
+ """
65
+ return self._x_language
66
+
67
+ @x_language.setter
68
+ def x_language(self, x_language):
69
+ """Sets the x_language of this CleanAlarmsRequest.
70
+
71
+ 请求语言类型。
72
+
73
+ :param x_language: The x_language of this CleanAlarmsRequest.
74
+ :type x_language: str
75
+ """
76
+ self._x_language = x_language
77
+
78
+ @property
79
+ def job_id(self):
80
+ """Gets the job_id of this CleanAlarmsRequest.
81
+
82
+ 任务ID。
83
+
84
+ :return: The job_id of this CleanAlarmsRequest.
85
+ :rtype: str
86
+ """
87
+ return self._job_id
88
+
89
+ @job_id.setter
90
+ def job_id(self, job_id):
91
+ """Sets the job_id of this CleanAlarmsRequest.
92
+
93
+ 任务ID。
94
+
95
+ :param job_id: The job_id of this CleanAlarmsRequest.
96
+ :type job_id: str
97
+ """
98
+ self._job_id = job_id
99
+
100
+ @property
101
+ def alarm_id(self):
102
+ """Gets the alarm_id of this CleanAlarmsRequest.
103
+
104
+ DDL序列号。
105
+
106
+ :return: The alarm_id of this CleanAlarmsRequest.
107
+ :rtype: str
108
+ """
109
+ return self._alarm_id
110
+
111
+ @alarm_id.setter
112
+ def alarm_id(self, alarm_id):
113
+ """Sets the alarm_id of this CleanAlarmsRequest.
114
+
115
+ DDL序列号。
116
+
117
+ :param alarm_id: The alarm_id of this CleanAlarmsRequest.
118
+ :type alarm_id: str
119
+ """
120
+ self._alarm_id = alarm_id
121
+
122
+ def to_dict(self):
123
+ """Returns the model properties as a dict"""
124
+ result = {}
125
+
126
+ for attr, _ in six.iteritems(self.openapi_types):
127
+ value = getattr(self, attr)
128
+ if isinstance(value, list):
129
+ result[attr] = list(map(
130
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
131
+ value
132
+ ))
133
+ elif hasattr(value, "to_dict"):
134
+ result[attr] = value.to_dict()
135
+ elif isinstance(value, dict):
136
+ result[attr] = dict(map(
137
+ lambda item: (item[0], item[1].to_dict())
138
+ if hasattr(item[1], "to_dict") else item,
139
+ value.items()
140
+ ))
141
+ else:
142
+ if attr in self.sensitive_list:
143
+ result[attr] = "****"
144
+ else:
145
+ result[attr] = value
146
+
147
+ return result
148
+
149
+ def to_str(self):
150
+ """Returns the string representation of the model"""
151
+ import simplejson as json
152
+ if six.PY2:
153
+ import sys
154
+ reload(sys)
155
+ sys.setdefaultencoding("utf-8")
156
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
157
+
158
+ def __repr__(self):
159
+ """For `print`"""
160
+ return self.to_str()
161
+
162
+ def __eq__(self, other):
163
+ """Returns true if both objects are equal"""
164
+ if not isinstance(other, CleanAlarmsRequest):
165
+ return False
166
+
167
+ return self.__dict__ == other.__dict__
168
+
169
+ def __ne__(self, other):
170
+ """Returns true if both objects are not equal"""
171
+ 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 CleanAlarmsResponse(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
+ """CleanAlarmsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 空响应体。
34
+ :type body: object
35
+ """
36
+
37
+ super(CleanAlarmsResponse, 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 CleanAlarmsResponse.
48
+
49
+ 空响应体。
50
+
51
+ :return: The body of this CleanAlarmsResponse.
52
+ :rtype: object
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this CleanAlarmsResponse.
59
+
60
+ 空响应体。
61
+
62
+ :param body: The body of this CleanAlarmsResponse.
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, CleanAlarmsResponse):
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
@@ -36,7 +36,7 @@ class CollectColumnsResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class CollectColumnsResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this CollectColumnsResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this CollectColumnsResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class CollectColumnsResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this CollectColumnsResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this CollectColumnsResponse.
99
99
  :type status: str
@@ -36,7 +36,7 @@ class CollectDbObjectsAsyncResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class CollectDbObjectsAsyncResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this CollectDbObjectsAsyncResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this CollectDbObjectsAsyncResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class CollectDbObjectsAsyncResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this CollectDbObjectsAsyncResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this CollectDbObjectsAsyncResponse.
99
99
  :type status: str
@@ -36,7 +36,7 @@ class CollectDbObjectsInfoResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class CollectDbObjectsInfoResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this CollectDbObjectsInfoResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this CollectDbObjectsInfoResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class CollectDbObjectsInfoResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this CollectDbObjectsInfoResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this CollectDbObjectsInfoResponse.
99
99
  :type status: str
@@ -36,7 +36,7 @@ class CollectPositionAsyncResponse(SdkResponse):
36
36
 
37
37
  :param id: 查询结果id
38
38
  :type id: str
39
- :param status: 查询状态
39
+ :param status: 查询状态 pending:处理中 failed:失败 success:成功
40
40
  :type status: str
41
41
  :param job_id: 任务ID
42
42
  :type job_id: str
@@ -82,7 +82,7 @@ class CollectPositionAsyncResponse(SdkResponse):
82
82
  def status(self):
83
83
  """Gets the status of this CollectPositionAsyncResponse.
84
84
 
85
- 查询状态
85
+ 查询状态 pending:处理中 failed:失败 success:成功
86
86
 
87
87
  :return: The status of this CollectPositionAsyncResponse.
88
88
  :rtype: str
@@ -93,7 +93,7 @@ class CollectPositionAsyncResponse(SdkResponse):
93
93
  def status(self, status):
94
94
  """Sets the status of this CollectPositionAsyncResponse.
95
95
 
96
- 查询状态
96
+ 查询状态 pending:处理中 failed:失败 success:成功
97
97
 
98
98
  :param status: The status of this CollectPositionAsyncResponse.
99
99
  :type status: str
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ConnectionConfig:
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
+ 'driver_name': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'driver_name': 'driver_name'
25
+ }
26
+
27
+ def __init__(self, driver_name=None):
28
+ """ConnectionConfig
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param driver_name: 驱动程序名称。
33
+ :type driver_name: str
34
+ """
35
+
36
+
37
+
38
+ self._driver_name = None
39
+ self.discriminator = None
40
+
41
+ if driver_name is not None:
42
+ self.driver_name = driver_name
43
+
44
+ @property
45
+ def driver_name(self):
46
+ """Gets the driver_name of this ConnectionConfig.
47
+
48
+ 驱动程序名称。
49
+
50
+ :return: The driver_name of this ConnectionConfig.
51
+ :rtype: str
52
+ """
53
+ return self._driver_name
54
+
55
+ @driver_name.setter
56
+ def driver_name(self, driver_name):
57
+ """Sets the driver_name of this ConnectionConfig.
58
+
59
+ 驱动程序名称。
60
+
61
+ :param driver_name: The driver_name of this ConnectionConfig.
62
+ :type driver_name: str
63
+ """
64
+ self._driver_name = driver_name
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, ConnectionConfig):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other