huaweicloudsdkrocketmq 3.1.146__py2.py3-none-any.whl → 3.1.147__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 (70) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +13 -1
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +13 -1
  3. huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group.py +260 -0
  4. huaweicloudsdkrocketmq/v2/model/batch_update_consumer_group_req.py +4 -4
  5. huaweicloudsdkrocketmq/v2/model/brokers.py +6 -6
  6. huaweicloudsdkrocketmq/v2/model/consumer_detail_resp.py +12 -12
  7. huaweicloudsdkrocketmq/v2/model/consumer_group.py +27 -27
  8. huaweicloudsdkrocketmq/v2/model/consumer_list.py +6 -6
  9. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +6 -6
  10. huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +9 -9
  11. huaweicloudsdkrocketmq/v2/model/create_user_request.py +3 -3
  12. huaweicloudsdkrocketmq/v2/model/create_user_response.py +24 -24
  13. huaweicloudsdkrocketmq/v2/model/enable_dns_request.py +114 -0
  14. huaweicloudsdkrocketmq/v2/model/enable_dns_response.py +85 -0
  15. huaweicloudsdkrocketmq/v2/model/instance_detail.py +1942 -0
  16. huaweicloudsdkrocketmq/v2/model/list_available_zones_resp_available_zones.py +27 -27
  17. huaweicloudsdkrocketmq/v2/model/list_available_zones_response.py +6 -6
  18. huaweicloudsdkrocketmq/v2/model/list_brokers_request.py +61 -3
  19. huaweicloudsdkrocketmq/v2/model/list_brokers_response.py +88 -1
  20. huaweicloudsdkrocketmq/v2/model/list_engine_products_request.py +228 -0
  21. huaweicloudsdkrocketmq/v2/model/list_engine_products_response.py +261 -0
  22. huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_request.py +12 -12
  23. huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_response.py +18 -18
  24. huaweicloudsdkrocketmq/v2/model/list_instances_request.py +27 -27
  25. huaweicloudsdkrocketmq/v2/model/list_instances_response.py +10 -10
  26. huaweicloudsdkrocketmq/v2/model/list_message_trace_request.py +61 -3
  27. huaweicloudsdkrocketmq/v2/model/list_message_trace_response.py +88 -1
  28. huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_request.py +9 -9
  29. huaweicloudsdkrocketmq/v2/model/list_rocket_instance_topics_response.py +18 -18
  30. huaweicloudsdkrocketmq/v2/model/product_entity.py +434 -0
  31. huaweicloudsdkrocketmq/v2/model/queue.py +15 -15
  32. huaweicloudsdkrocketmq/v2/model/quota_resource_entity.py +173 -0
  33. huaweicloudsdkrocketmq/v2/model/quotas_resp_quotas.py +115 -0
  34. huaweicloudsdkrocketmq/v2/model/resend_req.py +2 -4
  35. huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +6 -6
  36. huaweicloudsdkrocketmq/v2/model/restart_instance_request.py +142 -0
  37. huaweicloudsdkrocketmq/v2/model/restart_instance_response.py +174 -0
  38. huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_request.py +15 -15
  39. huaweicloudsdkrocketmq/v2/model/show_consumer_list_or_details_response.py +18 -18
  40. huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +61 -3
  41. huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +88 -1
  42. huaweicloudsdkrocketmq/v2/model/show_instance_request.py +3 -3
  43. huaweicloudsdkrocketmq/v2/model/show_instance_response.py +458 -168
  44. huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +15 -15
  45. huaweicloudsdkrocketmq/v2/model/show_quotas_request.py +84 -0
  46. huaweicloudsdkrocketmq/v2/model/show_quotas_response.py +112 -0
  47. huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +61 -3
  48. huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +88 -1
  49. huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_request.py +61 -1
  50. huaweicloudsdkrocketmq/v2/model/show_rocketmq_project_tags_response.py +91 -4
  51. huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_request.py +61 -3
  52. huaweicloudsdkrocketmq/v2/model/show_rocketmq_tags_response.py +88 -1
  53. huaweicloudsdkrocketmq/v2/model/show_user_response.py +24 -24
  54. huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +6 -6
  55. huaweicloudsdkrocketmq/v2/model/topic.py +15 -15
  56. huaweicloudsdkrocketmq/v2/model/topic_brokers.py +9 -9
  57. huaweicloudsdkrocketmq/v2/model/update_user_request.py +6 -6
  58. huaweicloudsdkrocketmq/v2/model/update_user_response.py +24 -24
  59. huaweicloudsdkrocketmq/v2/model/user.py +24 -24
  60. huaweicloudsdkrocketmq/v2/model/user_group_perms.py +6 -6
  61. huaweicloudsdkrocketmq/v2/model/user_topic_perms.py +6 -6
  62. huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +9 -0
  63. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +292 -0
  64. huaweicloudsdkrocketmq/v2/rocketmq_client.py +292 -0
  65. {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/METADATA +2 -2
  66. {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/RECORD +69 -57
  67. huaweicloudsdkrocketmq/v2/model/show_instance_resp.py +0 -1681
  68. {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/LICENSE +0 -0
  69. {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/WHEEL +0 -0
  70. {huaweicloudsdkrocketmq-3.1.146.dist-info → huaweicloudsdkrocketmq-3.1.147.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QuotaResourceEntity:
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
+ 'type': 'str',
21
+ 'quota': 'int',
22
+ 'used': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'type': 'type',
27
+ 'quota': 'quota',
28
+ 'used': 'used'
29
+ }
30
+
31
+ def __init__(self, type=None, quota=None, used=None):
32
+ r"""QuotaResourceEntity
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param type: 支持rabbitmqInstance、kafkaInstance、rocketmqInstance、tags四种。 - rabbitmqInstance表示RabbitMQ实例配额。 - kafkaInstance表示Kafka实例配额。 - rocketmqInstance表示RocketMQ实例配额。 - tags表示标签的配额。
37
+ :type type: str
38
+ :param quota: 租户最大可以创建的实例个数,或者每个实例最大可以创建的标签个数。
39
+ :type quota: int
40
+ :param used: 已创建的实例个数。
41
+ :type used: int
42
+ """
43
+
44
+
45
+
46
+ self._type = None
47
+ self._quota = None
48
+ self._used = None
49
+ self.discriminator = None
50
+
51
+ if type is not None:
52
+ self.type = type
53
+ if quota is not None:
54
+ self.quota = quota
55
+ if used is not None:
56
+ self.used = used
57
+
58
+ @property
59
+ def type(self):
60
+ r"""Gets the type of this QuotaResourceEntity.
61
+
62
+ 支持rabbitmqInstance、kafkaInstance、rocketmqInstance、tags四种。 - rabbitmqInstance表示RabbitMQ实例配额。 - kafkaInstance表示Kafka实例配额。 - rocketmqInstance表示RocketMQ实例配额。 - tags表示标签的配额。
63
+
64
+ :return: The type of this QuotaResourceEntity.
65
+ :rtype: str
66
+ """
67
+ return self._type
68
+
69
+ @type.setter
70
+ def type(self, type):
71
+ r"""Sets the type of this QuotaResourceEntity.
72
+
73
+ 支持rabbitmqInstance、kafkaInstance、rocketmqInstance、tags四种。 - rabbitmqInstance表示RabbitMQ实例配额。 - kafkaInstance表示Kafka实例配额。 - rocketmqInstance表示RocketMQ实例配额。 - tags表示标签的配额。
74
+
75
+ :param type: The type of this QuotaResourceEntity.
76
+ :type type: str
77
+ """
78
+ self._type = type
79
+
80
+ @property
81
+ def quota(self):
82
+ r"""Gets the quota of this QuotaResourceEntity.
83
+
84
+ 租户最大可以创建的实例个数,或者每个实例最大可以创建的标签个数。
85
+
86
+ :return: The quota of this QuotaResourceEntity.
87
+ :rtype: int
88
+ """
89
+ return self._quota
90
+
91
+ @quota.setter
92
+ def quota(self, quota):
93
+ r"""Sets the quota of this QuotaResourceEntity.
94
+
95
+ 租户最大可以创建的实例个数,或者每个实例最大可以创建的标签个数。
96
+
97
+ :param quota: The quota of this QuotaResourceEntity.
98
+ :type quota: int
99
+ """
100
+ self._quota = quota
101
+
102
+ @property
103
+ def used(self):
104
+ r"""Gets the used of this QuotaResourceEntity.
105
+
106
+ 已创建的实例个数。
107
+
108
+ :return: The used of this QuotaResourceEntity.
109
+ :rtype: int
110
+ """
111
+ return self._used
112
+
113
+ @used.setter
114
+ def used(self, used):
115
+ r"""Sets the used of this QuotaResourceEntity.
116
+
117
+ 已创建的实例个数。
118
+
119
+ :param used: The used of this QuotaResourceEntity.
120
+ :type used: int
121
+ """
122
+ self._used = used
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, QuotaResourceEntity):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -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 QuotasRespQuotas:
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
+ 'resources': 'list[QuotaResourceEntity]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'resources': 'resources'
25
+ }
26
+
27
+ def __init__(self, resources=None):
28
+ r"""QuotasRespQuotas
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param resources: 配额列表。
33
+ :type resources: list[:class:`huaweicloudsdkrocketmq.v2.QuotaResourceEntity`]
34
+ """
35
+
36
+
37
+
38
+ self._resources = None
39
+ self.discriminator = None
40
+
41
+ if resources is not None:
42
+ self.resources = resources
43
+
44
+ @property
45
+ def resources(self):
46
+ r"""Gets the resources of this QuotasRespQuotas.
47
+
48
+ 配额列表。
49
+
50
+ :return: The resources of this QuotasRespQuotas.
51
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.QuotaResourceEntity`]
52
+ """
53
+ return self._resources
54
+
55
+ @resources.setter
56
+ def resources(self, resources):
57
+ r"""Sets the resources of this QuotasRespQuotas.
58
+
59
+ 配额列表。
60
+
61
+ :param resources: The resources of this QuotasRespQuotas.
62
+ :type resources: list[:class:`huaweicloudsdkrocketmq.v2.QuotaResourceEntity`]
63
+ """
64
+ self._resources = resources
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, QuotasRespQuotas):
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
@@ -53,12 +53,10 @@ class ResendReq:
53
53
  self._msg_id_list = None
54
54
  self.discriminator = None
55
55
 
56
- if group is not None:
57
- self.group = group
56
+ self.group = group
58
57
  if topic is not None:
59
58
  self.topic = topic
60
- if client_id is not None:
61
- self.client_id = client_id
59
+ self.client_id = client_id
62
60
  if msg_id_list is not None:
63
61
  self.msg_id_list = msg_id_list
64
62
 
@@ -37,9 +37,9 @@ class ResizeEngineInstanceReq:
37
37
 
38
38
  The model defined in huaweicloud sdk
39
39
 
40
- :param oper_type: 变更类型 取值范围: [- storage:存储空间扩容,代理数量不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs) - horizontal:代理数量扩容,每个broker的存储空间不变。 [- vertical:垂直扩容,broker的底层虚机规格变更,代理数量和存储空间不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs)
40
+ :param oper_type: 变更类型 取值范围: [- storage:存储空间扩容,代理数量不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt) - horizontal:代理数量扩容,每个broker的存储空间不变。 [- vertical:垂直扩容,broker的底层虚机规格变更,代理数量和存储空间不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt)
41
41
  :type oper_type: str
42
- :param new_storage_space: 当oper_type类型是[storage或](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs)horizontal时,该参数有效且必填,实例存储空间 = 代理数量 * 每个broker的存储空间。 [- 当oper_type类型是storage时,代理数量不变,每个broker存储空间最少扩容100GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs) - 当oper_type类型是horizontal时,每个broker的存储空间不变。
42
+ :param new_storage_space: 当oper_type类型是[storage或](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt)horizontal时,该参数有效且必填,实例存储空间 = 代理数量 * 每个broker的存储空间。 [- 当oper_type类型是storage时,代理数量不变,每个broker存储空间最少扩容100GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt) - 当oper_type类型是horizontal时,每个broker的存储空间不变。
43
43
  :type new_storage_space: int
44
44
  :param new_product_id: 当oper_type类型是vertical时,该参数才有效且必填。
45
45
  :type new_product_id: str
@@ -72,7 +72,7 @@ class ResizeEngineInstanceReq:
72
72
  def oper_type(self):
73
73
  r"""Gets the oper_type of this ResizeEngineInstanceReq.
74
74
 
75
- 变更类型 取值范围: [- storage:存储空间扩容,代理数量不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs) - horizontal:代理数量扩容,每个broker的存储空间不变。 [- vertical:垂直扩容,broker的底层虚机规格变更,代理数量和存储空间不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs)
75
+ 变更类型 取值范围: [- storage:存储空间扩容,代理数量不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt) - horizontal:代理数量扩容,每个broker的存储空间不变。 [- vertical:垂直扩容,broker的底层虚机规格变更,代理数量和存储空间不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt)
76
76
 
77
77
  :return: The oper_type of this ResizeEngineInstanceReq.
78
78
  :rtype: str
@@ -83,7 +83,7 @@ class ResizeEngineInstanceReq:
83
83
  def oper_type(self, oper_type):
84
84
  r"""Sets the oper_type of this ResizeEngineInstanceReq.
85
85
 
86
- 变更类型 取值范围: [- storage:存储空间扩容,代理数量不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs) - horizontal:代理数量扩容,每个broker的存储空间不变。 [- vertical:垂直扩容,broker的底层虚机规格变更,代理数量和存储空间不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs)
86
+ 变更类型 取值范围: [- storage:存储空间扩容,代理数量不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt) - horizontal:代理数量扩容,每个broker的存储空间不变。 [- vertical:垂直扩容,broker的底层虚机规格变更,代理数量和存储空间不变。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt)
87
87
 
88
88
  :param oper_type: The oper_type of this ResizeEngineInstanceReq.
89
89
  :type oper_type: str
@@ -94,7 +94,7 @@ class ResizeEngineInstanceReq:
94
94
  def new_storage_space(self):
95
95
  r"""Gets the new_storage_space of this ResizeEngineInstanceReq.
96
96
 
97
- 当oper_type类型是[storage或](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs)horizontal时,该参数有效且必填,实例存储空间 = 代理数量 * 每个broker的存储空间。 [- 当oper_type类型是storage时,代理数量不变,每个broker存储空间最少扩容100GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs) - 当oper_type类型是horizontal时,每个broker的存储空间不变。
97
+ 当oper_type类型是[storage或](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt)horizontal时,该参数有效且必填,实例存储空间 = 代理数量 * 每个broker的存储空间。 [- 当oper_type类型是storage时,代理数量不变,每个broker存储空间最少扩容100GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt) - 当oper_type类型是horizontal时,每个broker的存储空间不变。
98
98
 
99
99
  :return: The new_storage_space of this ResizeEngineInstanceReq.
100
100
  :rtype: int
@@ -105,7 +105,7 @@ class ResizeEngineInstanceReq:
105
105
  def new_storage_space(self, new_storage_space):
106
106
  r"""Sets the new_storage_space of this ResizeEngineInstanceReq.
107
107
 
108
- 当oper_type类型是[storage或](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs)horizontal时,该参数有效且必填,实例存储空间 = 代理数量 * 每个broker的存储空间。 [- 当oper_type类型是storage时,代理数量不变,每个broker存储空间最少扩容100GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs) - 当oper_type类型是horizontal时,每个broker的存储空间不变。
108
+ 当oper_type类型是[storage或](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt)horizontal时,该参数有效且必填,实例存储空间 = 代理数量 * 每个broker的存储空间。 [- 当oper_type类型是storage时,代理数量不变,每个broker存储空间最少扩容100GB。](tag:hws,hws_eu,hws_hk,ocb,hws_ocb,ctc,g42,hk_g42,tm,sbc,hk_sbc,hk_tm,fcs,dt) - 当oper_type类型是horizontal时,每个broker的存储空间不变。
109
109
 
110
110
  :param new_storage_space: The new_storage_space of this ResizeEngineInstanceReq.
111
111
  :type new_storage_space: int
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RestartInstanceRequest:
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
+ 'engine': 'str',
21
+ 'instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'engine': 'engine',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, engine=None, instance_id=None):
30
+ r"""RestartInstanceRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param engine: 消息引擎类型。
35
+ :type engine: str
36
+ :param instance_id: 实例ID。
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._engine = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ self.engine = engine
47
+ self.instance_id = instance_id
48
+
49
+ @property
50
+ def engine(self):
51
+ r"""Gets the engine of this RestartInstanceRequest.
52
+
53
+ 消息引擎类型。
54
+
55
+ :return: The engine of this RestartInstanceRequest.
56
+ :rtype: str
57
+ """
58
+ return self._engine
59
+
60
+ @engine.setter
61
+ def engine(self, engine):
62
+ r"""Sets the engine of this RestartInstanceRequest.
63
+
64
+ 消息引擎类型。
65
+
66
+ :param engine: The engine of this RestartInstanceRequest.
67
+ :type engine: str
68
+ """
69
+ self._engine = engine
70
+
71
+ @property
72
+ def instance_id(self):
73
+ r"""Gets the instance_id of this RestartInstanceRequest.
74
+
75
+ 实例ID。
76
+
77
+ :return: The instance_id of this RestartInstanceRequest.
78
+ :rtype: str
79
+ """
80
+ return self._instance_id
81
+
82
+ @instance_id.setter
83
+ def instance_id(self, instance_id):
84
+ r"""Sets the instance_id of this RestartInstanceRequest.
85
+
86
+ 实例ID。
87
+
88
+ :param instance_id: The instance_id of this RestartInstanceRequest.
89
+ :type instance_id: str
90
+ """
91
+ self._instance_id = instance_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, RestartInstanceRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,174 @@
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 RestartInstanceResponse(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
+ 'instance_id': 'str',
22
+ 'nodes': 'list[str]',
23
+ 'result': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'instance_id': 'instance_id',
28
+ 'nodes': 'nodes',
29
+ 'result': 'result'
30
+ }
31
+
32
+ def __init__(self, instance_id=None, nodes=None, result=None):
33
+ r"""RestartInstanceResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param instance_id: 实例ID
38
+ :type instance_id: str
39
+ :param nodes: node列表
40
+ :type nodes: list[str]
41
+ :param result: 结果
42
+ :type result: str
43
+ """
44
+
45
+ super(RestartInstanceResponse, self).__init__()
46
+
47
+ self._instance_id = None
48
+ self._nodes = None
49
+ self._result = None
50
+ self.discriminator = None
51
+
52
+ if instance_id is not None:
53
+ self.instance_id = instance_id
54
+ if nodes is not None:
55
+ self.nodes = nodes
56
+ if result is not None:
57
+ self.result = result
58
+
59
+ @property
60
+ def instance_id(self):
61
+ r"""Gets the instance_id of this RestartInstanceResponse.
62
+
63
+ 实例ID
64
+
65
+ :return: The instance_id of this RestartInstanceResponse.
66
+ :rtype: str
67
+ """
68
+ return self._instance_id
69
+
70
+ @instance_id.setter
71
+ def instance_id(self, instance_id):
72
+ r"""Sets the instance_id of this RestartInstanceResponse.
73
+
74
+ 实例ID
75
+
76
+ :param instance_id: The instance_id of this RestartInstanceResponse.
77
+ :type instance_id: str
78
+ """
79
+ self._instance_id = instance_id
80
+
81
+ @property
82
+ def nodes(self):
83
+ r"""Gets the nodes of this RestartInstanceResponse.
84
+
85
+ node列表
86
+
87
+ :return: The nodes of this RestartInstanceResponse.
88
+ :rtype: list[str]
89
+ """
90
+ return self._nodes
91
+
92
+ @nodes.setter
93
+ def nodes(self, nodes):
94
+ r"""Sets the nodes of this RestartInstanceResponse.
95
+
96
+ node列表
97
+
98
+ :param nodes: The nodes of this RestartInstanceResponse.
99
+ :type nodes: list[str]
100
+ """
101
+ self._nodes = nodes
102
+
103
+ @property
104
+ def result(self):
105
+ r"""Gets the result of this RestartInstanceResponse.
106
+
107
+ 结果
108
+
109
+ :return: The result of this RestartInstanceResponse.
110
+ :rtype: str
111
+ """
112
+ return self._result
113
+
114
+ @result.setter
115
+ def result(self, result):
116
+ r"""Sets the result of this RestartInstanceResponse.
117
+
118
+ 结果
119
+
120
+ :param result: The result of this RestartInstanceResponse.
121
+ :type result: str
122
+ """
123
+ self._result = result
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, RestartInstanceResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other