huaweicloudsdkmas 3.1.160__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.
@@ -0,0 +1,136 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DatasourceStatistics:
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
+ 'count': 'int',
21
+ 'mysql_count': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'count': 'count',
26
+ 'mysql_count': 'mysql_count'
27
+ }
28
+
29
+ def __init__(self, count=None, mysql_count=None):
30
+ r"""DatasourceStatistics
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param count:
35
+ :type count: int
36
+ :param mysql_count:
37
+ :type mysql_count: int
38
+ """
39
+
40
+
41
+
42
+ self._count = None
43
+ self._mysql_count = None
44
+ self.discriminator = None
45
+
46
+ if count is not None:
47
+ self.count = count
48
+ if mysql_count is not None:
49
+ self.mysql_count = mysql_count
50
+
51
+ @property
52
+ def count(self):
53
+ r"""Gets the count of this DatasourceStatistics.
54
+
55
+ :return: The count of this DatasourceStatistics.
56
+ :rtype: int
57
+ """
58
+ return self._count
59
+
60
+ @count.setter
61
+ def count(self, count):
62
+ r"""Sets the count of this DatasourceStatistics.
63
+
64
+ :param count: The count of this DatasourceStatistics.
65
+ :type count: int
66
+ """
67
+ self._count = count
68
+
69
+ @property
70
+ def mysql_count(self):
71
+ r"""Gets the mysql_count of this DatasourceStatistics.
72
+
73
+ :return: The mysql_count of this DatasourceStatistics.
74
+ :rtype: int
75
+ """
76
+ return self._mysql_count
77
+
78
+ @mysql_count.setter
79
+ def mysql_count(self, mysql_count):
80
+ r"""Sets the mysql_count of this DatasourceStatistics.
81
+
82
+ :param mysql_count: The mysql_count of this DatasourceStatistics.
83
+ :type mysql_count: int
84
+ """
85
+ self._mysql_count = mysql_count
86
+
87
+ def to_dict(self):
88
+ """Returns the model properties as a dict"""
89
+ result = {}
90
+
91
+ for attr, _ in six.iteritems(self.openapi_types):
92
+ value = getattr(self, attr)
93
+ if isinstance(value, list):
94
+ result[attr] = list(map(
95
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
96
+ value
97
+ ))
98
+ elif hasattr(value, "to_dict"):
99
+ result[attr] = value.to_dict()
100
+ elif isinstance(value, dict):
101
+ result[attr] = dict(map(
102
+ lambda item: (item[0], item[1].to_dict())
103
+ if hasattr(item[1], "to_dict") else item,
104
+ value.items()
105
+ ))
106
+ else:
107
+ if attr in self.sensitive_list:
108
+ result[attr] = "****"
109
+ else:
110
+ result[attr] = value
111
+
112
+ return result
113
+
114
+ def to_str(self):
115
+ """Returns the string representation of the model"""
116
+ import simplejson as json
117
+ if six.PY2:
118
+ import sys
119
+ reload(sys)
120
+ sys.setdefaultencoding("utf-8")
121
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
122
+
123
+ def __repr__(self):
124
+ """For `print`"""
125
+ return self.to_str()
126
+
127
+ def __eq__(self, other):
128
+ """Returns true if both objects are equal"""
129
+ if not isinstance(other, DatasourceStatistics):
130
+ return False
131
+
132
+ return self.__dict__ == other.__dict__
133
+
134
+ def __ne__(self, other):
135
+ """Returns true if both objects are not equal"""
136
+ return not self == other
@@ -0,0 +1,386 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MultiActiveZoneVo:
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
+ 'available_zone': 'list[str]',
21
+ 'created_date': 'datetime',
22
+ 'description': 'str',
23
+ 'id': 'str',
24
+ 'is_master': 'bool',
25
+ 'name': 'str',
26
+ 'namespace_id': 'str',
27
+ 'region': 'str',
28
+ 'region_name': 'str',
29
+ 'spec': 'BaseMultiActiveZoneSpec',
30
+ 'type': 'int',
31
+ 'updated_date': 'datetime'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'available_zone': 'available_zone',
36
+ 'created_date': 'created_date',
37
+ 'description': 'description',
38
+ 'id': 'id',
39
+ 'is_master': 'is_master',
40
+ 'name': 'name',
41
+ 'namespace_id': 'namespace_id',
42
+ 'region': 'region',
43
+ 'region_name': 'region_name',
44
+ 'spec': 'spec',
45
+ 'type': 'type',
46
+ 'updated_date': 'updated_date'
47
+ }
48
+
49
+ def __init__(self, available_zone=None, created_date=None, description=None, id=None, is_master=None, name=None, namespace_id=None, region=None, region_name=None, spec=None, type=None, updated_date=None):
50
+ r"""MultiActiveZoneVo
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param available_zone:
55
+ :type available_zone: list[str]
56
+ :param created_date:
57
+ :type created_date: datetime
58
+ :param description:
59
+ :type description: str
60
+ :param id:
61
+ :type id: str
62
+ :param is_master:
63
+ :type is_master: bool
64
+ :param name:
65
+ :type name: str
66
+ :param namespace_id:
67
+ :type namespace_id: str
68
+ :param region:
69
+ :type region: str
70
+ :param region_name:
71
+ :type region_name: str
72
+ :param spec:
73
+ :type spec: :class:`huaweicloudsdkmas.v1.BaseMultiActiveZoneSpec`
74
+ :param type:
75
+ :type type: int
76
+ :param updated_date:
77
+ :type updated_date: datetime
78
+ """
79
+
80
+
81
+
82
+ self._available_zone = None
83
+ self._created_date = None
84
+ self._description = None
85
+ self._id = None
86
+ self._is_master = None
87
+ self._name = None
88
+ self._namespace_id = None
89
+ self._region = None
90
+ self._region_name = None
91
+ self._spec = None
92
+ self._type = None
93
+ self._updated_date = None
94
+ self.discriminator = None
95
+
96
+ if available_zone is not None:
97
+ self.available_zone = available_zone
98
+ if created_date is not None:
99
+ self.created_date = created_date
100
+ if description is not None:
101
+ self.description = description
102
+ if id is not None:
103
+ self.id = id
104
+ if is_master is not None:
105
+ self.is_master = is_master
106
+ if name is not None:
107
+ self.name = name
108
+ if namespace_id is not None:
109
+ self.namespace_id = namespace_id
110
+ if region is not None:
111
+ self.region = region
112
+ if region_name is not None:
113
+ self.region_name = region_name
114
+ if spec is not None:
115
+ self.spec = spec
116
+ if type is not None:
117
+ self.type = type
118
+ if updated_date is not None:
119
+ self.updated_date = updated_date
120
+
121
+ @property
122
+ def available_zone(self):
123
+ r"""Gets the available_zone of this MultiActiveZoneVo.
124
+
125
+ :return: The available_zone of this MultiActiveZoneVo.
126
+ :rtype: list[str]
127
+ """
128
+ return self._available_zone
129
+
130
+ @available_zone.setter
131
+ def available_zone(self, available_zone):
132
+ r"""Sets the available_zone of this MultiActiveZoneVo.
133
+
134
+ :param available_zone: The available_zone of this MultiActiveZoneVo.
135
+ :type available_zone: list[str]
136
+ """
137
+ self._available_zone = available_zone
138
+
139
+ @property
140
+ def created_date(self):
141
+ r"""Gets the created_date of this MultiActiveZoneVo.
142
+
143
+ :return: The created_date of this MultiActiveZoneVo.
144
+ :rtype: datetime
145
+ """
146
+ return self._created_date
147
+
148
+ @created_date.setter
149
+ def created_date(self, created_date):
150
+ r"""Sets the created_date of this MultiActiveZoneVo.
151
+
152
+ :param created_date: The created_date of this MultiActiveZoneVo.
153
+ :type created_date: datetime
154
+ """
155
+ self._created_date = created_date
156
+
157
+ @property
158
+ def description(self):
159
+ r"""Gets the description of this MultiActiveZoneVo.
160
+
161
+ :return: The description of this MultiActiveZoneVo.
162
+ :rtype: str
163
+ """
164
+ return self._description
165
+
166
+ @description.setter
167
+ def description(self, description):
168
+ r"""Sets the description of this MultiActiveZoneVo.
169
+
170
+ :param description: The description of this MultiActiveZoneVo.
171
+ :type description: str
172
+ """
173
+ self._description = description
174
+
175
+ @property
176
+ def id(self):
177
+ r"""Gets the id of this MultiActiveZoneVo.
178
+
179
+ :return: The id of this MultiActiveZoneVo.
180
+ :rtype: str
181
+ """
182
+ return self._id
183
+
184
+ @id.setter
185
+ def id(self, id):
186
+ r"""Sets the id of this MultiActiveZoneVo.
187
+
188
+ :param id: The id of this MultiActiveZoneVo.
189
+ :type id: str
190
+ """
191
+ self._id = id
192
+
193
+ @property
194
+ def is_master(self):
195
+ r"""Gets the is_master of this MultiActiveZoneVo.
196
+
197
+ :return: The is_master of this MultiActiveZoneVo.
198
+ :rtype: bool
199
+ """
200
+ return self._is_master
201
+
202
+ @is_master.setter
203
+ def is_master(self, is_master):
204
+ r"""Sets the is_master of this MultiActiveZoneVo.
205
+
206
+ :param is_master: The is_master of this MultiActiveZoneVo.
207
+ :type is_master: bool
208
+ """
209
+ self._is_master = is_master
210
+
211
+ @property
212
+ def name(self):
213
+ r"""Gets the name of this MultiActiveZoneVo.
214
+
215
+ :return: The name of this MultiActiveZoneVo.
216
+ :rtype: str
217
+ """
218
+ return self._name
219
+
220
+ @name.setter
221
+ def name(self, name):
222
+ r"""Sets the name of this MultiActiveZoneVo.
223
+
224
+ :param name: The name of this MultiActiveZoneVo.
225
+ :type name: str
226
+ """
227
+ self._name = name
228
+
229
+ @property
230
+ def namespace_id(self):
231
+ r"""Gets the namespace_id of this MultiActiveZoneVo.
232
+
233
+ :return: The namespace_id of this MultiActiveZoneVo.
234
+ :rtype: str
235
+ """
236
+ return self._namespace_id
237
+
238
+ @namespace_id.setter
239
+ def namespace_id(self, namespace_id):
240
+ r"""Sets the namespace_id of this MultiActiveZoneVo.
241
+
242
+ :param namespace_id: The namespace_id of this MultiActiveZoneVo.
243
+ :type namespace_id: str
244
+ """
245
+ self._namespace_id = namespace_id
246
+
247
+ @property
248
+ def region(self):
249
+ r"""Gets the region of this MultiActiveZoneVo.
250
+
251
+ :return: The region of this MultiActiveZoneVo.
252
+ :rtype: str
253
+ """
254
+ return self._region
255
+
256
+ @region.setter
257
+ def region(self, region):
258
+ r"""Sets the region of this MultiActiveZoneVo.
259
+
260
+ :param region: The region of this MultiActiveZoneVo.
261
+ :type region: str
262
+ """
263
+ self._region = region
264
+
265
+ @property
266
+ def region_name(self):
267
+ r"""Gets the region_name of this MultiActiveZoneVo.
268
+
269
+ :return: The region_name of this MultiActiveZoneVo.
270
+ :rtype: str
271
+ """
272
+ return self._region_name
273
+
274
+ @region_name.setter
275
+ def region_name(self, region_name):
276
+ r"""Sets the region_name of this MultiActiveZoneVo.
277
+
278
+ :param region_name: The region_name of this MultiActiveZoneVo.
279
+ :type region_name: str
280
+ """
281
+ self._region_name = region_name
282
+
283
+ @property
284
+ def spec(self):
285
+ r"""Gets the spec of this MultiActiveZoneVo.
286
+
287
+ :return: The spec of this MultiActiveZoneVo.
288
+ :rtype: :class:`huaweicloudsdkmas.v1.BaseMultiActiveZoneSpec`
289
+ """
290
+ return self._spec
291
+
292
+ @spec.setter
293
+ def spec(self, spec):
294
+ r"""Sets the spec of this MultiActiveZoneVo.
295
+
296
+ :param spec: The spec of this MultiActiveZoneVo.
297
+ :type spec: :class:`huaweicloudsdkmas.v1.BaseMultiActiveZoneSpec`
298
+ """
299
+ self._spec = spec
300
+
301
+ @property
302
+ def type(self):
303
+ r"""Gets the type of this MultiActiveZoneVo.
304
+
305
+ :return: The type of this MultiActiveZoneVo.
306
+ :rtype: int
307
+ """
308
+ return self._type
309
+
310
+ @type.setter
311
+ def type(self, type):
312
+ r"""Sets the type of this MultiActiveZoneVo.
313
+
314
+ :param type: The type of this MultiActiveZoneVo.
315
+ :type type: int
316
+ """
317
+ self._type = type
318
+
319
+ @property
320
+ def updated_date(self):
321
+ r"""Gets the updated_date of this MultiActiveZoneVo.
322
+
323
+ :return: The updated_date of this MultiActiveZoneVo.
324
+ :rtype: datetime
325
+ """
326
+ return self._updated_date
327
+
328
+ @updated_date.setter
329
+ def updated_date(self, updated_date):
330
+ r"""Sets the updated_date of this MultiActiveZoneVo.
331
+
332
+ :param updated_date: The updated_date of this MultiActiveZoneVo.
333
+ :type updated_date: datetime
334
+ """
335
+ self._updated_date = updated_date
336
+
337
+ def to_dict(self):
338
+ """Returns the model properties as a dict"""
339
+ result = {}
340
+
341
+ for attr, _ in six.iteritems(self.openapi_types):
342
+ value = getattr(self, attr)
343
+ if isinstance(value, list):
344
+ result[attr] = list(map(
345
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
346
+ value
347
+ ))
348
+ elif hasattr(value, "to_dict"):
349
+ result[attr] = value.to_dict()
350
+ elif isinstance(value, dict):
351
+ result[attr] = dict(map(
352
+ lambda item: (item[0], item[1].to_dict())
353
+ if hasattr(item[1], "to_dict") else item,
354
+ value.items()
355
+ ))
356
+ else:
357
+ if attr in self.sensitive_list:
358
+ result[attr] = "****"
359
+ else:
360
+ result[attr] = value
361
+
362
+ return result
363
+
364
+ def to_str(self):
365
+ """Returns the string representation of the model"""
366
+ import simplejson as json
367
+ if six.PY2:
368
+ import sys
369
+ reload(sys)
370
+ sys.setdefaultencoding("utf-8")
371
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
372
+
373
+ def __repr__(self):
374
+ """For `print`"""
375
+ return self.to_str()
376
+
377
+ def __eq__(self, other):
378
+ """Returns true if both objects are equal"""
379
+ if not isinstance(other, MultiActiveZoneVo):
380
+ return False
381
+
382
+ return self.__dict__ == other.__dict__
383
+
384
+ def __ne__(self, other):
385
+ """Returns true if both objects are not equal"""
386
+ return not self == other