huaweicloudsdkmrs 3.1.69__py2.py3-none-any.whl → 3.1.72__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. huaweicloudsdkmrs/v1/__init__.py +9 -0
  2. huaweicloudsdkmrs/v1/model/__init__.py +9 -0
  3. huaweicloudsdkmrs/v1/model/component_external_datasource.py +144 -0
  4. huaweicloudsdkmrs/v1/model/flavor_lists.py +173 -0
  5. huaweicloudsdkmrs/v1/model/node_constraint.py +376 -0
  6. huaweicloudsdkmrs/v1/model/node_constraints.py +315 -0
  7. huaweicloudsdkmrs/v1/model/role_deploy_meta.py +637 -0
  8. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py +143 -0
  9. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py +456 -0
  10. huaweicloudsdkmrs/v1/model/version_component.py +434 -0
  11. huaweicloudsdkmrs/v1/model/version_constraint.py +169 -0
  12. huaweicloudsdkmrs/v1/mrs_async_client.py +75 -0
  13. huaweicloudsdkmrs/v1/mrs_client.py +75 -0
  14. huaweicloudsdkmrs/v1/region/mrs_region.py +3 -0
  15. huaweicloudsdkmrs/v2/__init__.py +15 -0
  16. huaweicloudsdkmrs/v2/model/__init__.py +15 -0
  17. huaweicloudsdkmrs/v2/model/auto_scaling_policy_delete_req.py +142 -0
  18. huaweicloudsdkmrs/v2/model/auto_scaling_policy_info.py +257 -0
  19. huaweicloudsdkmrs/v2/model/auto_scaling_policy_v2.py +11 -12
  20. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_request.py +139 -0
  21. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_response.py +85 -0
  22. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_request.py +139 -0
  23. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_response.py +85 -0
  24. huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py +114 -0
  25. huaweicloudsdkmrs/v2/model/show_tag_quota_request.py +143 -0
  26. huaweicloudsdkmrs/v2/model/show_tag_quota_response.py +145 -0
  27. huaweicloudsdkmrs/v2/model/show_tag_status_request.py +114 -0
  28. huaweicloudsdkmrs/v2/model/show_tag_status_response.py +145 -0
  29. huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py +139 -0
  30. huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py +85 -0
  31. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_request.py +139 -0
  32. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_response.py +85 -0
  33. huaweicloudsdkmrs/v2/mrs_async_client.py +400 -0
  34. huaweicloudsdkmrs/v2/mrs_client.py +400 -0
  35. huaweicloudsdkmrs/v2/region/mrs_region.py +3 -0
  36. {huaweicloudsdkmrs-3.1.69.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkmrs-3.1.69.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/RECORD +40 -16
  38. {huaweicloudsdkmrs-3.1.69.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/WHEEL +1 -1
  39. {huaweicloudsdkmrs-3.1.69.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/LICENSE +0 -0
  40. {huaweicloudsdkmrs-3.1.69.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,434 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VersionComponent:
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
+ 'other': 'dict(str, object)',
21
+ 'name': 'str',
22
+ 'version': 'str',
23
+ 'depend_on': 'list[str]',
24
+ 'description': 'str',
25
+ 'available_cluster_types': 'list[str]',
26
+ 'external_datasources': 'list[ComponentExternalDatasource]',
27
+ 'resource_requirement': 'list[str]',
28
+ 'valid_roles': 'list[str]',
29
+ 'visible': 'bool',
30
+ 'children_components': 'list[str]',
31
+ 'multi_az_support_status': 'str'
32
+ }
33
+
34
+ attribute_map = {
35
+ 'other': 'other',
36
+ 'name': 'name',
37
+ 'version': 'version',
38
+ 'depend_on': 'depend_on',
39
+ 'description': 'description',
40
+ 'available_cluster_types': 'available_cluster_types',
41
+ 'external_datasources': 'external_datasources',
42
+ 'resource_requirement': 'resource_requirement',
43
+ 'valid_roles': 'valid_roles',
44
+ 'visible': 'visible',
45
+ 'children_components': 'children_components',
46
+ 'multi_az_support_status': 'multi_az_support_status'
47
+ }
48
+
49
+ def __init__(self, other=None, name=None, version=None, depend_on=None, description=None, available_cluster_types=None, external_datasources=None, resource_requirement=None, valid_roles=None, visible=None, children_components=None, multi_az_support_status=None):
50
+ """VersionComponent
51
+
52
+ The model defined in huaweicloud sdk
53
+
54
+ :param other: 其他
55
+ :type other: dict(str, object)
56
+ :param name: 组件名称
57
+ :type name: str
58
+ :param version: 支持版本
59
+ :type version: str
60
+ :param depend_on: 组件依赖项
61
+ :type depend_on: list[str]
62
+ :param description: 组件描述
63
+ :type description: str
64
+ :param available_cluster_types: 支持该组件的集群类型
65
+ :type available_cluster_types: list[str]
66
+ :param external_datasources: 外部数据源
67
+ :type external_datasources: list[:class:`huaweicloudsdkmrs.v1.ComponentExternalDatasource`]
68
+ :param resource_requirement: 所需的ip等资源说明
69
+ :type resource_requirement: list[str]
70
+ :param valid_roles: 有效角色
71
+ :type valid_roles: list[str]
72
+ :param visible: 是否可见
73
+ :type visible: bool
74
+ :param children_components: 子组件
75
+ :type children_components: list[str]
76
+ :param multi_az_support_status: 多az支持状态
77
+ :type multi_az_support_status: str
78
+ """
79
+
80
+
81
+
82
+ self._other = None
83
+ self._name = None
84
+ self._version = None
85
+ self._depend_on = None
86
+ self._description = None
87
+ self._available_cluster_types = None
88
+ self._external_datasources = None
89
+ self._resource_requirement = None
90
+ self._valid_roles = None
91
+ self._visible = None
92
+ self._children_components = None
93
+ self._multi_az_support_status = None
94
+ self.discriminator = None
95
+
96
+ if other is not None:
97
+ self.other = other
98
+ if name is not None:
99
+ self.name = name
100
+ if version is not None:
101
+ self.version = version
102
+ if depend_on is not None:
103
+ self.depend_on = depend_on
104
+ if description is not None:
105
+ self.description = description
106
+ if available_cluster_types is not None:
107
+ self.available_cluster_types = available_cluster_types
108
+ if external_datasources is not None:
109
+ self.external_datasources = external_datasources
110
+ if resource_requirement is not None:
111
+ self.resource_requirement = resource_requirement
112
+ if valid_roles is not None:
113
+ self.valid_roles = valid_roles
114
+ if visible is not None:
115
+ self.visible = visible
116
+ if children_components is not None:
117
+ self.children_components = children_components
118
+ if multi_az_support_status is not None:
119
+ self.multi_az_support_status = multi_az_support_status
120
+
121
+ @property
122
+ def other(self):
123
+ """Gets the other of this VersionComponent.
124
+
125
+ 其他
126
+
127
+ :return: The other of this VersionComponent.
128
+ :rtype: dict(str, object)
129
+ """
130
+ return self._other
131
+
132
+ @other.setter
133
+ def other(self, other):
134
+ """Sets the other of this VersionComponent.
135
+
136
+ 其他
137
+
138
+ :param other: The other of this VersionComponent.
139
+ :type other: dict(str, object)
140
+ """
141
+ self._other = other
142
+
143
+ @property
144
+ def name(self):
145
+ """Gets the name of this VersionComponent.
146
+
147
+ 组件名称
148
+
149
+ :return: The name of this VersionComponent.
150
+ :rtype: str
151
+ """
152
+ return self._name
153
+
154
+ @name.setter
155
+ def name(self, name):
156
+ """Sets the name of this VersionComponent.
157
+
158
+ 组件名称
159
+
160
+ :param name: The name of this VersionComponent.
161
+ :type name: str
162
+ """
163
+ self._name = name
164
+
165
+ @property
166
+ def version(self):
167
+ """Gets the version of this VersionComponent.
168
+
169
+ 支持版本
170
+
171
+ :return: The version of this VersionComponent.
172
+ :rtype: str
173
+ """
174
+ return self._version
175
+
176
+ @version.setter
177
+ def version(self, version):
178
+ """Sets the version of this VersionComponent.
179
+
180
+ 支持版本
181
+
182
+ :param version: The version of this VersionComponent.
183
+ :type version: str
184
+ """
185
+ self._version = version
186
+
187
+ @property
188
+ def depend_on(self):
189
+ """Gets the depend_on of this VersionComponent.
190
+
191
+ 组件依赖项
192
+
193
+ :return: The depend_on of this VersionComponent.
194
+ :rtype: list[str]
195
+ """
196
+ return self._depend_on
197
+
198
+ @depend_on.setter
199
+ def depend_on(self, depend_on):
200
+ """Sets the depend_on of this VersionComponent.
201
+
202
+ 组件依赖项
203
+
204
+ :param depend_on: The depend_on of this VersionComponent.
205
+ :type depend_on: list[str]
206
+ """
207
+ self._depend_on = depend_on
208
+
209
+ @property
210
+ def description(self):
211
+ """Gets the description of this VersionComponent.
212
+
213
+ 组件描述
214
+
215
+ :return: The description of this VersionComponent.
216
+ :rtype: str
217
+ """
218
+ return self._description
219
+
220
+ @description.setter
221
+ def description(self, description):
222
+ """Sets the description of this VersionComponent.
223
+
224
+ 组件描述
225
+
226
+ :param description: The description of this VersionComponent.
227
+ :type description: str
228
+ """
229
+ self._description = description
230
+
231
+ @property
232
+ def available_cluster_types(self):
233
+ """Gets the available_cluster_types of this VersionComponent.
234
+
235
+ 支持该组件的集群类型
236
+
237
+ :return: The available_cluster_types of this VersionComponent.
238
+ :rtype: list[str]
239
+ """
240
+ return self._available_cluster_types
241
+
242
+ @available_cluster_types.setter
243
+ def available_cluster_types(self, available_cluster_types):
244
+ """Sets the available_cluster_types of this VersionComponent.
245
+
246
+ 支持该组件的集群类型
247
+
248
+ :param available_cluster_types: The available_cluster_types of this VersionComponent.
249
+ :type available_cluster_types: list[str]
250
+ """
251
+ self._available_cluster_types = available_cluster_types
252
+
253
+ @property
254
+ def external_datasources(self):
255
+ """Gets the external_datasources of this VersionComponent.
256
+
257
+ 外部数据源
258
+
259
+ :return: The external_datasources of this VersionComponent.
260
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.ComponentExternalDatasource`]
261
+ """
262
+ return self._external_datasources
263
+
264
+ @external_datasources.setter
265
+ def external_datasources(self, external_datasources):
266
+ """Sets the external_datasources of this VersionComponent.
267
+
268
+ 外部数据源
269
+
270
+ :param external_datasources: The external_datasources of this VersionComponent.
271
+ :type external_datasources: list[:class:`huaweicloudsdkmrs.v1.ComponentExternalDatasource`]
272
+ """
273
+ self._external_datasources = external_datasources
274
+
275
+ @property
276
+ def resource_requirement(self):
277
+ """Gets the resource_requirement of this VersionComponent.
278
+
279
+ 所需的ip等资源说明
280
+
281
+ :return: The resource_requirement of this VersionComponent.
282
+ :rtype: list[str]
283
+ """
284
+ return self._resource_requirement
285
+
286
+ @resource_requirement.setter
287
+ def resource_requirement(self, resource_requirement):
288
+ """Sets the resource_requirement of this VersionComponent.
289
+
290
+ 所需的ip等资源说明
291
+
292
+ :param resource_requirement: The resource_requirement of this VersionComponent.
293
+ :type resource_requirement: list[str]
294
+ """
295
+ self._resource_requirement = resource_requirement
296
+
297
+ @property
298
+ def valid_roles(self):
299
+ """Gets the valid_roles of this VersionComponent.
300
+
301
+ 有效角色
302
+
303
+ :return: The valid_roles of this VersionComponent.
304
+ :rtype: list[str]
305
+ """
306
+ return self._valid_roles
307
+
308
+ @valid_roles.setter
309
+ def valid_roles(self, valid_roles):
310
+ """Sets the valid_roles of this VersionComponent.
311
+
312
+ 有效角色
313
+
314
+ :param valid_roles: The valid_roles of this VersionComponent.
315
+ :type valid_roles: list[str]
316
+ """
317
+ self._valid_roles = valid_roles
318
+
319
+ @property
320
+ def visible(self):
321
+ """Gets the visible of this VersionComponent.
322
+
323
+ 是否可见
324
+
325
+ :return: The visible of this VersionComponent.
326
+ :rtype: bool
327
+ """
328
+ return self._visible
329
+
330
+ @visible.setter
331
+ def visible(self, visible):
332
+ """Sets the visible of this VersionComponent.
333
+
334
+ 是否可见
335
+
336
+ :param visible: The visible of this VersionComponent.
337
+ :type visible: bool
338
+ """
339
+ self._visible = visible
340
+
341
+ @property
342
+ def children_components(self):
343
+ """Gets the children_components of this VersionComponent.
344
+
345
+ 子组件
346
+
347
+ :return: The children_components of this VersionComponent.
348
+ :rtype: list[str]
349
+ """
350
+ return self._children_components
351
+
352
+ @children_components.setter
353
+ def children_components(self, children_components):
354
+ """Sets the children_components of this VersionComponent.
355
+
356
+ 子组件
357
+
358
+ :param children_components: The children_components of this VersionComponent.
359
+ :type children_components: list[str]
360
+ """
361
+ self._children_components = children_components
362
+
363
+ @property
364
+ def multi_az_support_status(self):
365
+ """Gets the multi_az_support_status of this VersionComponent.
366
+
367
+ 多az支持状态
368
+
369
+ :return: The multi_az_support_status of this VersionComponent.
370
+ :rtype: str
371
+ """
372
+ return self._multi_az_support_status
373
+
374
+ @multi_az_support_status.setter
375
+ def multi_az_support_status(self, multi_az_support_status):
376
+ """Sets the multi_az_support_status of this VersionComponent.
377
+
378
+ 多az支持状态
379
+
380
+ :param multi_az_support_status: The multi_az_support_status of this VersionComponent.
381
+ :type multi_az_support_status: str
382
+ """
383
+ self._multi_az_support_status = multi_az_support_status
384
+
385
+ def to_dict(self):
386
+ """Returns the model properties as a dict"""
387
+ result = {}
388
+
389
+ for attr, _ in six.iteritems(self.openapi_types):
390
+ value = getattr(self, attr)
391
+ if isinstance(value, list):
392
+ result[attr] = list(map(
393
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
394
+ value
395
+ ))
396
+ elif hasattr(value, "to_dict"):
397
+ result[attr] = value.to_dict()
398
+ elif isinstance(value, dict):
399
+ result[attr] = dict(map(
400
+ lambda item: (item[0], item[1].to_dict())
401
+ if hasattr(item[1], "to_dict") else item,
402
+ value.items()
403
+ ))
404
+ else:
405
+ if attr in self.sensitive_list:
406
+ result[attr] = "****"
407
+ else:
408
+ result[attr] = value
409
+
410
+ return result
411
+
412
+ def to_str(self):
413
+ """Returns the string representation of the model"""
414
+ import simplejson as json
415
+ if six.PY2:
416
+ import sys
417
+ reload(sys)
418
+ sys.setdefaultencoding("utf-8")
419
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
420
+
421
+ def __repr__(self):
422
+ """For `print`"""
423
+ return self.to_str()
424
+
425
+ def __eq__(self, other):
426
+ """Returns true if both objects are equal"""
427
+ if not isinstance(other, VersionComponent):
428
+ return False
429
+
430
+ return self.__dict__ == other.__dict__
431
+
432
+ def __ne__(self, other):
433
+ """Returns true if both objects are not equal"""
434
+ return not self == other
@@ -0,0 +1,169 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VersionConstraint:
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
+ 'other': 'dict(str, object)',
21
+ 'node_constraint': 'NodeConstraints',
22
+ 'safe_mode_kerberos_exclude_components': 'list[str]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'other': 'other',
27
+ 'node_constraint': 'node_constraint',
28
+ 'safe_mode_kerberos_exclude_components': 'safe_mode_kerberos_exclude_components'
29
+ }
30
+
31
+ def __init__(self, other=None, node_constraint=None, safe_mode_kerberos_exclude_components=None):
32
+ """VersionConstraint
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param other: 其他限制
37
+ :type other: dict(str, object)
38
+ :param node_constraint:
39
+ :type node_constraint: :class:`huaweicloudsdkmrs.v1.NodeConstraints`
40
+ :param safe_mode_kerberos_exclude_components: 安全模式kerberos排除组件列表
41
+ :type safe_mode_kerberos_exclude_components: list[str]
42
+ """
43
+
44
+
45
+
46
+ self._other = None
47
+ self._node_constraint = None
48
+ self._safe_mode_kerberos_exclude_components = None
49
+ self.discriminator = None
50
+
51
+ if other is not None:
52
+ self.other = other
53
+ if node_constraint is not None:
54
+ self.node_constraint = node_constraint
55
+ if safe_mode_kerberos_exclude_components is not None:
56
+ self.safe_mode_kerberos_exclude_components = safe_mode_kerberos_exclude_components
57
+
58
+ @property
59
+ def other(self):
60
+ """Gets the other of this VersionConstraint.
61
+
62
+ 其他限制
63
+
64
+ :return: The other of this VersionConstraint.
65
+ :rtype: dict(str, object)
66
+ """
67
+ return self._other
68
+
69
+ @other.setter
70
+ def other(self, other):
71
+ """Sets the other of this VersionConstraint.
72
+
73
+ 其他限制
74
+
75
+ :param other: The other of this VersionConstraint.
76
+ :type other: dict(str, object)
77
+ """
78
+ self._other = other
79
+
80
+ @property
81
+ def node_constraint(self):
82
+ """Gets the node_constraint of this VersionConstraint.
83
+
84
+ :return: The node_constraint of this VersionConstraint.
85
+ :rtype: :class:`huaweicloudsdkmrs.v1.NodeConstraints`
86
+ """
87
+ return self._node_constraint
88
+
89
+ @node_constraint.setter
90
+ def node_constraint(self, node_constraint):
91
+ """Sets the node_constraint of this VersionConstraint.
92
+
93
+ :param node_constraint: The node_constraint of this VersionConstraint.
94
+ :type node_constraint: :class:`huaweicloudsdkmrs.v1.NodeConstraints`
95
+ """
96
+ self._node_constraint = node_constraint
97
+
98
+ @property
99
+ def safe_mode_kerberos_exclude_components(self):
100
+ """Gets the safe_mode_kerberos_exclude_components of this VersionConstraint.
101
+
102
+ 安全模式kerberos排除组件列表
103
+
104
+ :return: The safe_mode_kerberos_exclude_components of this VersionConstraint.
105
+ :rtype: list[str]
106
+ """
107
+ return self._safe_mode_kerberos_exclude_components
108
+
109
+ @safe_mode_kerberos_exclude_components.setter
110
+ def safe_mode_kerberos_exclude_components(self, safe_mode_kerberos_exclude_components):
111
+ """Sets the safe_mode_kerberos_exclude_components of this VersionConstraint.
112
+
113
+ 安全模式kerberos排除组件列表
114
+
115
+ :param safe_mode_kerberos_exclude_components: The safe_mode_kerberos_exclude_components of this VersionConstraint.
116
+ :type safe_mode_kerberos_exclude_components: list[str]
117
+ """
118
+ self._safe_mode_kerberos_exclude_components = safe_mode_kerberos_exclude_components
119
+
120
+ def to_dict(self):
121
+ """Returns the model properties as a dict"""
122
+ result = {}
123
+
124
+ for attr, _ in six.iteritems(self.openapi_types):
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ if six.PY2:
151
+ import sys
152
+ reload(sys)
153
+ sys.setdefaultencoding("utf-8")
154
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
155
+
156
+ def __repr__(self):
157
+ """For `print`"""
158
+ return self.to_str()
159
+
160
+ def __eq__(self, other):
161
+ """Returns true if both objects are equal"""
162
+ if not isinstance(other, VersionConstraint):
163
+ return False
164
+
165
+ return self.__dict__ == other.__dict__
166
+
167
+ def __ne__(self, other):
168
+ """Returns true if both objects are not equal"""
169
+ return not self == other