huaweicloudsdkgaussdbforopengauss 3.1.102__py2.py3-none-any.whl → 3.1.104__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 (31) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +19 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +367 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +367 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +19 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/backup_policy_info.py +314 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_request.py +143 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/confirm_restored_data_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py +201 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py +202 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_version_info.py +143 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_datastore.py +61 -3
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_datastore.py +258 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_request.py +405 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_details_response.py +145 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_result.py +957 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/my_sql_compatibility_result.py +115 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request.py +3 -3
  18. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +3 -3
  19. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request.py +168 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_request_body.py +110 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/set_new_backup_policy_response.py +85 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_request.py +140 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/show_batch_upgrade_candidate_versions_response.py +203 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_request_body.py +115 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_request.py +140 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/upgrade_instances_version_response.py +232 -0
  27. {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info}/METADATA +2 -2
  28. {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info}/RECORD +31 -12
  29. {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info}/LICENSE +0 -0
  30. {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info}/WHEEL +0 -0
  31. {huaweicloudsdkgaussdbforopengauss-3.1.102.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,314 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BackupPolicyInfo:
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
+ 'keep_days': 'int',
21
+ 'start_time': 'str',
22
+ 'period': 'str',
23
+ 'differential_period': 'str',
24
+ 'rate_limit': 'int',
25
+ 'prefetch_block': 'int',
26
+ 'file_split_size': 'int',
27
+ 'enable_standby_backup': 'bool'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'keep_days': 'keep_days',
32
+ 'start_time': 'start_time',
33
+ 'period': 'period',
34
+ 'differential_period': 'differential_period',
35
+ 'rate_limit': 'rate_limit',
36
+ 'prefetch_block': 'prefetch_block',
37
+ 'file_split_size': 'file_split_size',
38
+ 'enable_standby_backup': 'enable_standby_backup'
39
+ }
40
+
41
+ def __init__(self, keep_days=None, start_time=None, period=None, differential_period=None, rate_limit=None, prefetch_block=None, file_split_size=None, enable_standby_backup=None):
42
+ """BackupPolicyInfo
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param keep_days: 备份文件可以保存的天数。取值范围:1-36500天。
47
+ :type keep_days: int
48
+ :param start_time: 备份时间段。自动备份将在该时间段内触发。取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。 HH取值必须比hh大1,mm和MM取值必须相同,且取值必须为00。 取值示例: 21:00-22:00
49
+ :type start_time: str
50
+ :param period: 全量备份周期配置。自动全量备份将在每星期指定的天进行。 取值范围:格式为逗号隔开的数字,数字代表星期。取值示例:1,2,3,4则表示备份周期配置为星期一、星期二、星期三和星期四。
51
+ :type period: str
52
+ :param differential_period: 差异备份间隔时间配置。每次自动差异备份的间隔时间。 取值范围:15、30、60、180、360、720、1440。单位:分钟。 取值示例:30
53
+ :type differential_period: str
54
+ :param rate_limit: 备份限速,默认值为0MB/s,表示不限速。控制备份是备份数据上传OBS的速度,限速用于限制上传备份对上传带宽的影响 取值范围:0~ 1024 最小值:0 MB/s
55
+ :type rate_limit: int
56
+ :param prefetch_block: 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数。当差量修改页面非常集中时(如数据导入场景),可以适当调大 该值;当差量修改页面非常分散时(如随机更新),可以适当调小该值。默认为64,单位个数 取值范围:1 ~ 8192 最小值:1 最大值:8192
57
+ :type prefetch_block: int
58
+ :param file_split_size: 全量、差量备份时产生的备份文件会根据该参数的值进行拆分,可设置范围为0~1024GB,设置需为4的倍数,默认4GB,0GB表示不 限制大小。 取值范围:0 ~ 1024 最小值:0 最大值:1024
59
+ :type file_split_size: int
60
+ :param enable_standby_backup: 是否启用备机备份。(不支持单节点实例及3.100.0以下的实例)
61
+ :type enable_standby_backup: bool
62
+ """
63
+
64
+
65
+
66
+ self._keep_days = None
67
+ self._start_time = None
68
+ self._period = None
69
+ self._differential_period = None
70
+ self._rate_limit = None
71
+ self._prefetch_block = None
72
+ self._file_split_size = None
73
+ self._enable_standby_backup = None
74
+ self.discriminator = None
75
+
76
+ self.keep_days = keep_days
77
+ self.start_time = start_time
78
+ self.period = period
79
+ self.differential_period = differential_period
80
+ if rate_limit is not None:
81
+ self.rate_limit = rate_limit
82
+ if prefetch_block is not None:
83
+ self.prefetch_block = prefetch_block
84
+ if file_split_size is not None:
85
+ self.file_split_size = file_split_size
86
+ if enable_standby_backup is not None:
87
+ self.enable_standby_backup = enable_standby_backup
88
+
89
+ @property
90
+ def keep_days(self):
91
+ """Gets the keep_days of this BackupPolicyInfo.
92
+
93
+ 备份文件可以保存的天数。取值范围:1-36500天。
94
+
95
+ :return: The keep_days of this BackupPolicyInfo.
96
+ :rtype: int
97
+ """
98
+ return self._keep_days
99
+
100
+ @keep_days.setter
101
+ def keep_days(self, keep_days):
102
+ """Sets the keep_days of this BackupPolicyInfo.
103
+
104
+ 备份文件可以保存的天数。取值范围:1-36500天。
105
+
106
+ :param keep_days: The keep_days of this BackupPolicyInfo.
107
+ :type keep_days: int
108
+ """
109
+ self._keep_days = keep_days
110
+
111
+ @property
112
+ def start_time(self):
113
+ """Gets the start_time of this BackupPolicyInfo.
114
+
115
+ 备份时间段。自动备份将在该时间段内触发。取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。 HH取值必须比hh大1,mm和MM取值必须相同,且取值必须为00。 取值示例: 21:00-22:00
116
+
117
+ :return: The start_time of this BackupPolicyInfo.
118
+ :rtype: str
119
+ """
120
+ return self._start_time
121
+
122
+ @start_time.setter
123
+ def start_time(self, start_time):
124
+ """Sets the start_time of this BackupPolicyInfo.
125
+
126
+ 备份时间段。自动备份将在该时间段内触发。取值范围:非空,格式必须为hh:mm-HH:MM且有效,当前时间指UTC时间。 HH取值必须比hh大1,mm和MM取值必须相同,且取值必须为00。 取值示例: 21:00-22:00
127
+
128
+ :param start_time: The start_time of this BackupPolicyInfo.
129
+ :type start_time: str
130
+ """
131
+ self._start_time = start_time
132
+
133
+ @property
134
+ def period(self):
135
+ """Gets the period of this BackupPolicyInfo.
136
+
137
+ 全量备份周期配置。自动全量备份将在每星期指定的天进行。 取值范围:格式为逗号隔开的数字,数字代表星期。取值示例:1,2,3,4则表示备份周期配置为星期一、星期二、星期三和星期四。
138
+
139
+ :return: The period of this BackupPolicyInfo.
140
+ :rtype: str
141
+ """
142
+ return self._period
143
+
144
+ @period.setter
145
+ def period(self, period):
146
+ """Sets the period of this BackupPolicyInfo.
147
+
148
+ 全量备份周期配置。自动全量备份将在每星期指定的天进行。 取值范围:格式为逗号隔开的数字,数字代表星期。取值示例:1,2,3,4则表示备份周期配置为星期一、星期二、星期三和星期四。
149
+
150
+ :param period: The period of this BackupPolicyInfo.
151
+ :type period: str
152
+ """
153
+ self._period = period
154
+
155
+ @property
156
+ def differential_period(self):
157
+ """Gets the differential_period of this BackupPolicyInfo.
158
+
159
+ 差异备份间隔时间配置。每次自动差异备份的间隔时间。 取值范围:15、30、60、180、360、720、1440。单位:分钟。 取值示例:30
160
+
161
+ :return: The differential_period of this BackupPolicyInfo.
162
+ :rtype: str
163
+ """
164
+ return self._differential_period
165
+
166
+ @differential_period.setter
167
+ def differential_period(self, differential_period):
168
+ """Sets the differential_period of this BackupPolicyInfo.
169
+
170
+ 差异备份间隔时间配置。每次自动差异备份的间隔时间。 取值范围:15、30、60、180、360、720、1440。单位:分钟。 取值示例:30
171
+
172
+ :param differential_period: The differential_period of this BackupPolicyInfo.
173
+ :type differential_period: str
174
+ """
175
+ self._differential_period = differential_period
176
+
177
+ @property
178
+ def rate_limit(self):
179
+ """Gets the rate_limit of this BackupPolicyInfo.
180
+
181
+ 备份限速,默认值为0MB/s,表示不限速。控制备份是备份数据上传OBS的速度,限速用于限制上传备份对上传带宽的影响 取值范围:0~ 1024 最小值:0 MB/s
182
+
183
+ :return: The rate_limit of this BackupPolicyInfo.
184
+ :rtype: int
185
+ """
186
+ return self._rate_limit
187
+
188
+ @rate_limit.setter
189
+ def rate_limit(self, rate_limit):
190
+ """Sets the rate_limit of this BackupPolicyInfo.
191
+
192
+ 备份限速,默认值为0MB/s,表示不限速。控制备份是备份数据上传OBS的速度,限速用于限制上传备份对上传带宽的影响 取值范围:0~ 1024 最小值:0 MB/s
193
+
194
+ :param rate_limit: The rate_limit of this BackupPolicyInfo.
195
+ :type rate_limit: int
196
+ """
197
+ self._rate_limit = rate_limit
198
+
199
+ @property
200
+ def prefetch_block(self):
201
+ """Gets the prefetch_block of this BackupPolicyInfo.
202
+
203
+ 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数。当差量修改页面非常集中时(如数据导入场景),可以适当调大 该值;当差量修改页面非常分散时(如随机更新),可以适当调小该值。默认为64,单位个数 取值范围:1 ~ 8192 最小值:1 最大值:8192
204
+
205
+ :return: The prefetch_block of this BackupPolicyInfo.
206
+ :rtype: int
207
+ """
208
+ return self._prefetch_block
209
+
210
+ @prefetch_block.setter
211
+ def prefetch_block(self, prefetch_block):
212
+ """Sets the prefetch_block of this BackupPolicyInfo.
213
+
214
+ 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数。当差量修改页面非常集中时(如数据导入场景),可以适当调大 该值;当差量修改页面非常分散时(如随机更新),可以适当调小该值。默认为64,单位个数 取值范围:1 ~ 8192 最小值:1 最大值:8192
215
+
216
+ :param prefetch_block: The prefetch_block of this BackupPolicyInfo.
217
+ :type prefetch_block: int
218
+ """
219
+ self._prefetch_block = prefetch_block
220
+
221
+ @property
222
+ def file_split_size(self):
223
+ """Gets the file_split_size of this BackupPolicyInfo.
224
+
225
+ 全量、差量备份时产生的备份文件会根据该参数的值进行拆分,可设置范围为0~1024GB,设置需为4的倍数,默认4GB,0GB表示不 限制大小。 取值范围:0 ~ 1024 最小值:0 最大值:1024
226
+
227
+ :return: The file_split_size of this BackupPolicyInfo.
228
+ :rtype: int
229
+ """
230
+ return self._file_split_size
231
+
232
+ @file_split_size.setter
233
+ def file_split_size(self, file_split_size):
234
+ """Sets the file_split_size of this BackupPolicyInfo.
235
+
236
+ 全量、差量备份时产生的备份文件会根据该参数的值进行拆分,可设置范围为0~1024GB,设置需为4的倍数,默认4GB,0GB表示不 限制大小。 取值范围:0 ~ 1024 最小值:0 最大值:1024
237
+
238
+ :param file_split_size: The file_split_size of this BackupPolicyInfo.
239
+ :type file_split_size: int
240
+ """
241
+ self._file_split_size = file_split_size
242
+
243
+ @property
244
+ def enable_standby_backup(self):
245
+ """Gets the enable_standby_backup of this BackupPolicyInfo.
246
+
247
+ 是否启用备机备份。(不支持单节点实例及3.100.0以下的实例)
248
+
249
+ :return: The enable_standby_backup of this BackupPolicyInfo.
250
+ :rtype: bool
251
+ """
252
+ return self._enable_standby_backup
253
+
254
+ @enable_standby_backup.setter
255
+ def enable_standby_backup(self, enable_standby_backup):
256
+ """Sets the enable_standby_backup of this BackupPolicyInfo.
257
+
258
+ 是否启用备机备份。(不支持单节点实例及3.100.0以下的实例)
259
+
260
+ :param enable_standby_backup: The enable_standby_backup of this BackupPolicyInfo.
261
+ :type enable_standby_backup: bool
262
+ """
263
+ self._enable_standby_backup = enable_standby_backup
264
+
265
+ def to_dict(self):
266
+ """Returns the model properties as a dict"""
267
+ result = {}
268
+
269
+ for attr, _ in six.iteritems(self.openapi_types):
270
+ value = getattr(self, attr)
271
+ if isinstance(value, list):
272
+ result[attr] = list(map(
273
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
274
+ value
275
+ ))
276
+ elif hasattr(value, "to_dict"):
277
+ result[attr] = value.to_dict()
278
+ elif isinstance(value, dict):
279
+ result[attr] = dict(map(
280
+ lambda item: (item[0], item[1].to_dict())
281
+ if hasattr(item[1], "to_dict") else item,
282
+ value.items()
283
+ ))
284
+ else:
285
+ if attr in self.sensitive_list:
286
+ result[attr] = "****"
287
+ else:
288
+ result[attr] = value
289
+
290
+ return result
291
+
292
+ def to_str(self):
293
+ """Returns the string representation of the model"""
294
+ import simplejson as json
295
+ if six.PY2:
296
+ import sys
297
+ reload(sys)
298
+ sys.setdefaultencoding("utf-8")
299
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
300
+
301
+ def __repr__(self):
302
+ """For `print`"""
303
+ return self.to_str()
304
+
305
+ def __eq__(self, other):
306
+ """Returns true if both objects are equal"""
307
+ if not isinstance(other, BackupPolicyInfo):
308
+ return False
309
+
310
+ return self.__dict__ == other.__dict__
311
+
312
+ def __ne__(self, other):
313
+ """Returns true if both objects are not equal"""
314
+ 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 ConfirmRestoredDataRequest:
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
+ 'instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, x_language=None, instance_id=None):
30
+ """ConfirmRestoredDataRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言
35
+ :type x_language: str
36
+ :param instance_id: 实例ID。
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ self.instance_id = instance_id
49
+
50
+ @property
51
+ def x_language(self):
52
+ """Gets the x_language of this ConfirmRestoredDataRequest.
53
+
54
+ 语言
55
+
56
+ :return: The x_language of this ConfirmRestoredDataRequest.
57
+ :rtype: str
58
+ """
59
+ return self._x_language
60
+
61
+ @x_language.setter
62
+ def x_language(self, x_language):
63
+ """Sets the x_language of this ConfirmRestoredDataRequest.
64
+
65
+ 语言
66
+
67
+ :param x_language: The x_language of this ConfirmRestoredDataRequest.
68
+ :type x_language: str
69
+ """
70
+ self._x_language = x_language
71
+
72
+ @property
73
+ def instance_id(self):
74
+ """Gets the instance_id of this ConfirmRestoredDataRequest.
75
+
76
+ 实例ID。
77
+
78
+ :return: The instance_id of this ConfirmRestoredDataRequest.
79
+ :rtype: str
80
+ """
81
+ return self._instance_id
82
+
83
+ @instance_id.setter
84
+ def instance_id(self, instance_id):
85
+ """Sets the instance_id of this ConfirmRestoredDataRequest.
86
+
87
+ 实例ID。
88
+
89
+ :param instance_id: The instance_id of this ConfirmRestoredDataRequest.
90
+ :type instance_id: str
91
+ """
92
+ self._instance_id = instance_id
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, ConfirmRestoredDataRequest):
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
@@ -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 ConfirmRestoredDataResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """ConfirmRestoredDataResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 任务id,可以通过接口查询任务信息
34
+ :type job_id: str
35
+ """
36
+
37
+ super(ConfirmRestoredDataResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this ConfirmRestoredDataResponse.
48
+
49
+ 任务id,可以通过接口查询任务信息
50
+
51
+ :return: The job_id of this ConfirmRestoredDataResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this ConfirmRestoredDataResponse.
59
+
60
+ 任务id,可以通过接口查询任务信息
61
+
62
+ :param job_id: The job_id of this ConfirmRestoredDataResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_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, ConfirmRestoredDataResponse):
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