huaweicloudsdkrocketmq 3.1.150__py2.py3-none-any.whl → 3.1.152__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.
- huaweicloudsdkrocketmq/v2/__init__.py +26 -2
- huaweicloudsdkrocketmq/v2/model/__init__.py +26 -2
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +88 -1
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +90 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
- huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
- huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
- huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
- huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
- huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
- huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
- huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
- huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
- huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
- huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
- huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
- huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +45 -21
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
|
|
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 ShowDiagnosisStackResponse(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
|
+
'thread_name': 'str',
|
22
|
+
'stack': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'thread_name': 'thread_name',
|
27
|
+
'stack': 'stack'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, thread_name=None, stack=None):
|
31
|
+
r"""ShowDiagnosisStackResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param thread_name: **参数解释**: 线程名。 **取值范围**: 不涉及。
|
36
|
+
:type thread_name: str
|
37
|
+
:param stack: **参数解释**: 堆信息。 **取值范围**: 不涉及。
|
38
|
+
:type stack: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowDiagnosisStackResponse, self).__init__()
|
42
|
+
|
43
|
+
self._thread_name = None
|
44
|
+
self._stack = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if thread_name is not None:
|
48
|
+
self.thread_name = thread_name
|
49
|
+
if stack is not None:
|
50
|
+
self.stack = stack
|
51
|
+
|
52
|
+
@property
|
53
|
+
def thread_name(self):
|
54
|
+
r"""Gets the thread_name of this ShowDiagnosisStackResponse.
|
55
|
+
|
56
|
+
**参数解释**: 线程名。 **取值范围**: 不涉及。
|
57
|
+
|
58
|
+
:return: The thread_name of this ShowDiagnosisStackResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._thread_name
|
62
|
+
|
63
|
+
@thread_name.setter
|
64
|
+
def thread_name(self, thread_name):
|
65
|
+
r"""Sets the thread_name of this ShowDiagnosisStackResponse.
|
66
|
+
|
67
|
+
**参数解释**: 线程名。 **取值范围**: 不涉及。
|
68
|
+
|
69
|
+
:param thread_name: The thread_name of this ShowDiagnosisStackResponse.
|
70
|
+
:type thread_name: str
|
71
|
+
"""
|
72
|
+
self._thread_name = thread_name
|
73
|
+
|
74
|
+
@property
|
75
|
+
def stack(self):
|
76
|
+
r"""Gets the stack of this ShowDiagnosisStackResponse.
|
77
|
+
|
78
|
+
**参数解释**: 堆信息。 **取值范围**: 不涉及。
|
79
|
+
|
80
|
+
:return: The stack of this ShowDiagnosisStackResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._stack
|
84
|
+
|
85
|
+
@stack.setter
|
86
|
+
def stack(self, stack):
|
87
|
+
r"""Sets the stack of this ShowDiagnosisStackResponse.
|
88
|
+
|
89
|
+
**参数解释**: 堆信息。 **取值范围**: 不涉及。
|
90
|
+
|
91
|
+
:param stack: The stack of this ShowDiagnosisStackResponse.
|
92
|
+
:type stack: str
|
93
|
+
"""
|
94
|
+
self._stack = stack
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowDiagnosisStackResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -18,21 +18,52 @@ class UpdateConsumerGroupResponse(SdkResponse):
|
|
18
18
|
sensitive_list = []
|
19
19
|
|
20
20
|
openapi_types = {
|
21
|
+
'job_id': 'str'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
24
26
|
}
|
25
27
|
|
26
|
-
def __init__(self):
|
28
|
+
def __init__(self, job_id=None):
|
27
29
|
r"""UpdateConsumerGroupResponse
|
28
30
|
|
29
31
|
The model defined in huaweicloud sdk
|
30
32
|
|
33
|
+
:param job_id: 规格变更任务ID。
|
34
|
+
:type job_id: str
|
31
35
|
"""
|
32
36
|
|
33
37
|
super(UpdateConsumerGroupResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
34
40
|
self.discriminator = None
|
35
41
|
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
r"""Gets the job_id of this UpdateConsumerGroupResponse.
|
48
|
+
|
49
|
+
规格变更任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this UpdateConsumerGroupResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
r"""Sets the job_id of this UpdateConsumerGroupResponse.
|
59
|
+
|
60
|
+
规格变更任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this UpdateConsumerGroupResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_id
|
66
|
+
|
36
67
|
def to_dict(self):
|
37
68
|
"""Returns the model properties as a dict"""
|
38
69
|
result = {}
|
@@ -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 UpdateTopicQueueEntity:
|
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
|
+
'broker': 'str',
|
21
|
+
'read_queue_num': 'float',
|
22
|
+
'write_queue_num': 'float'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'broker': 'broker',
|
27
|
+
'read_queue_num': 'read_queue_num',
|
28
|
+
'write_queue_num': 'write_queue_num'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, broker=None, read_queue_num=None, write_queue_num=None):
|
32
|
+
r"""UpdateTopicQueueEntity
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param broker: **参数解释**: Broker名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
37
|
+
:type broker: str
|
38
|
+
:param read_queue_num: **参数解释**: 读队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
39
|
+
:type read_queue_num: float
|
40
|
+
:param write_queue_num: **参数解释**: 写队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
41
|
+
:type write_queue_num: float
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._broker = None
|
47
|
+
self._read_queue_num = None
|
48
|
+
self._write_queue_num = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if broker is not None:
|
52
|
+
self.broker = broker
|
53
|
+
if read_queue_num is not None:
|
54
|
+
self.read_queue_num = read_queue_num
|
55
|
+
if write_queue_num is not None:
|
56
|
+
self.write_queue_num = write_queue_num
|
57
|
+
|
58
|
+
@property
|
59
|
+
def broker(self):
|
60
|
+
r"""Gets the broker of this UpdateTopicQueueEntity.
|
61
|
+
|
62
|
+
**参数解释**: Broker名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
63
|
+
|
64
|
+
:return: The broker of this UpdateTopicQueueEntity.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._broker
|
68
|
+
|
69
|
+
@broker.setter
|
70
|
+
def broker(self, broker):
|
71
|
+
r"""Sets the broker of this UpdateTopicQueueEntity.
|
72
|
+
|
73
|
+
**参数解释**: Broker名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
74
|
+
|
75
|
+
:param broker: The broker of this UpdateTopicQueueEntity.
|
76
|
+
:type broker: str
|
77
|
+
"""
|
78
|
+
self._broker = broker
|
79
|
+
|
80
|
+
@property
|
81
|
+
def read_queue_num(self):
|
82
|
+
r"""Gets the read_queue_num of this UpdateTopicQueueEntity.
|
83
|
+
|
84
|
+
**参数解释**: 读队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
85
|
+
|
86
|
+
:return: The read_queue_num of this UpdateTopicQueueEntity.
|
87
|
+
:rtype: float
|
88
|
+
"""
|
89
|
+
return self._read_queue_num
|
90
|
+
|
91
|
+
@read_queue_num.setter
|
92
|
+
def read_queue_num(self, read_queue_num):
|
93
|
+
r"""Sets the read_queue_num of this UpdateTopicQueueEntity.
|
94
|
+
|
95
|
+
**参数解释**: 读队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
96
|
+
|
97
|
+
:param read_queue_num: The read_queue_num of this UpdateTopicQueueEntity.
|
98
|
+
:type read_queue_num: float
|
99
|
+
"""
|
100
|
+
self._read_queue_num = read_queue_num
|
101
|
+
|
102
|
+
@property
|
103
|
+
def write_queue_num(self):
|
104
|
+
r"""Gets the write_queue_num of this UpdateTopicQueueEntity.
|
105
|
+
|
106
|
+
**参数解释**: 写队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
107
|
+
|
108
|
+
:return: The write_queue_num of this UpdateTopicQueueEntity.
|
109
|
+
:rtype: float
|
110
|
+
"""
|
111
|
+
return self._write_queue_num
|
112
|
+
|
113
|
+
@write_queue_num.setter
|
114
|
+
def write_queue_num(self, write_queue_num):
|
115
|
+
r"""Sets the write_queue_num of this UpdateTopicQueueEntity.
|
116
|
+
|
117
|
+
**参数解释**: 写队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
118
|
+
|
119
|
+
:param write_queue_num: The write_queue_num of this UpdateTopicQueueEntity.
|
120
|
+
:type write_queue_num: float
|
121
|
+
"""
|
122
|
+
self._write_queue_num = write_queue_num
|
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, UpdateTopicQueueEntity):
|
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
|
@@ -19,26 +19,34 @@ class UpdateTopicReq:
|
|
19
19
|
openapi_types = {
|
20
20
|
'read_queue_num': 'float',
|
21
21
|
'write_queue_num': 'float',
|
22
|
-
'permission': 'str'
|
22
|
+
'permission': 'str',
|
23
|
+
'queues': 'list[UpdateTopicQueueEntity]',
|
24
|
+
'topic_desc': 'str'
|
23
25
|
}
|
24
26
|
|
25
27
|
attribute_map = {
|
26
28
|
'read_queue_num': 'read_queue_num',
|
27
29
|
'write_queue_num': 'write_queue_num',
|
28
|
-
'permission': 'permission'
|
30
|
+
'permission': 'permission',
|
31
|
+
'queues': 'queues',
|
32
|
+
'topic_desc': 'topic_desc'
|
29
33
|
}
|
30
34
|
|
31
|
-
def __init__(self, read_queue_num=None, write_queue_num=None, permission=None):
|
35
|
+
def __init__(self, read_queue_num=None, write_queue_num=None, permission=None, queues=None, topic_desc=None):
|
32
36
|
r"""UpdateTopicReq
|
33
37
|
|
34
38
|
The model defined in huaweicloud sdk
|
35
39
|
|
36
|
-
:param read_queue_num: 总读队列个数。
|
40
|
+
:param read_queue_num: **参数解释**: 总读队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
37
41
|
:type read_queue_num: float
|
38
|
-
:param write_queue_num: 总写队列个数。
|
42
|
+
:param write_queue_num: **参数解释**: 总写队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
39
43
|
:type write_queue_num: float
|
40
|
-
:param permission: 权限。
|
44
|
+
:param permission: **参数解释**: 权限。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
41
45
|
:type permission: str
|
46
|
+
:param queues: **参数解释**: 队列。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
47
|
+
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.UpdateTopicQueueEntity`]
|
48
|
+
:param topic_desc: **参数解释**: Topic描述。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
49
|
+
:type topic_desc: str
|
42
50
|
"""
|
43
51
|
|
44
52
|
|
@@ -46,6 +54,8 @@ class UpdateTopicReq:
|
|
46
54
|
self._read_queue_num = None
|
47
55
|
self._write_queue_num = None
|
48
56
|
self._permission = None
|
57
|
+
self._queues = None
|
58
|
+
self._topic_desc = None
|
49
59
|
self.discriminator = None
|
50
60
|
|
51
61
|
if read_queue_num is not None:
|
@@ -54,12 +64,16 @@ class UpdateTopicReq:
|
|
54
64
|
self.write_queue_num = write_queue_num
|
55
65
|
if permission is not None:
|
56
66
|
self.permission = permission
|
67
|
+
if queues is not None:
|
68
|
+
self.queues = queues
|
69
|
+
if topic_desc is not None:
|
70
|
+
self.topic_desc = topic_desc
|
57
71
|
|
58
72
|
@property
|
59
73
|
def read_queue_num(self):
|
60
74
|
r"""Gets the read_queue_num of this UpdateTopicReq.
|
61
75
|
|
62
|
-
总读队列个数。
|
76
|
+
**参数解释**: 总读队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
63
77
|
|
64
78
|
:return: The read_queue_num of this UpdateTopicReq.
|
65
79
|
:rtype: float
|
@@ -70,7 +84,7 @@ class UpdateTopicReq:
|
|
70
84
|
def read_queue_num(self, read_queue_num):
|
71
85
|
r"""Sets the read_queue_num of this UpdateTopicReq.
|
72
86
|
|
73
|
-
总读队列个数。
|
87
|
+
**参数解释**: 总读队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
74
88
|
|
75
89
|
:param read_queue_num: The read_queue_num of this UpdateTopicReq.
|
76
90
|
:type read_queue_num: float
|
@@ -81,7 +95,7 @@ class UpdateTopicReq:
|
|
81
95
|
def write_queue_num(self):
|
82
96
|
r"""Gets the write_queue_num of this UpdateTopicReq.
|
83
97
|
|
84
|
-
总写队列个数。
|
98
|
+
**参数解释**: 总写队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
85
99
|
|
86
100
|
:return: The write_queue_num of this UpdateTopicReq.
|
87
101
|
:rtype: float
|
@@ -92,7 +106,7 @@ class UpdateTopicReq:
|
|
92
106
|
def write_queue_num(self, write_queue_num):
|
93
107
|
r"""Sets the write_queue_num of this UpdateTopicReq.
|
94
108
|
|
95
|
-
总写队列个数。
|
109
|
+
**参数解释**: 总写队列个数。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
96
110
|
|
97
111
|
:param write_queue_num: The write_queue_num of this UpdateTopicReq.
|
98
112
|
:type write_queue_num: float
|
@@ -103,7 +117,7 @@ class UpdateTopicReq:
|
|
103
117
|
def permission(self):
|
104
118
|
r"""Gets the permission of this UpdateTopicReq.
|
105
119
|
|
106
|
-
权限。
|
120
|
+
**参数解释**: 权限。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
107
121
|
|
108
122
|
:return: The permission of this UpdateTopicReq.
|
109
123
|
:rtype: str
|
@@ -114,13 +128,57 @@ class UpdateTopicReq:
|
|
114
128
|
def permission(self, permission):
|
115
129
|
r"""Sets the permission of this UpdateTopicReq.
|
116
130
|
|
117
|
-
权限。
|
131
|
+
**参数解释**: 权限。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
118
132
|
|
119
133
|
:param permission: The permission of this UpdateTopicReq.
|
120
134
|
:type permission: str
|
121
135
|
"""
|
122
136
|
self._permission = permission
|
123
137
|
|
138
|
+
@property
|
139
|
+
def queues(self):
|
140
|
+
r"""Gets the queues of this UpdateTopicReq.
|
141
|
+
|
142
|
+
**参数解释**: 队列。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
143
|
+
|
144
|
+
:return: The queues of this UpdateTopicReq.
|
145
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.UpdateTopicQueueEntity`]
|
146
|
+
"""
|
147
|
+
return self._queues
|
148
|
+
|
149
|
+
@queues.setter
|
150
|
+
def queues(self, queues):
|
151
|
+
r"""Sets the queues of this UpdateTopicReq.
|
152
|
+
|
153
|
+
**参数解释**: 队列。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
154
|
+
|
155
|
+
:param queues: The queues of this UpdateTopicReq.
|
156
|
+
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.UpdateTopicQueueEntity`]
|
157
|
+
"""
|
158
|
+
self._queues = queues
|
159
|
+
|
160
|
+
@property
|
161
|
+
def topic_desc(self):
|
162
|
+
r"""Gets the topic_desc of this UpdateTopicReq.
|
163
|
+
|
164
|
+
**参数解释**: Topic描述。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
165
|
+
|
166
|
+
:return: The topic_desc of this UpdateTopicReq.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._topic_desc
|
170
|
+
|
171
|
+
@topic_desc.setter
|
172
|
+
def topic_desc(self, topic_desc):
|
173
|
+
r"""Sets the topic_desc of this UpdateTopicReq.
|
174
|
+
|
175
|
+
**参数解释**: Topic描述。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
176
|
+
|
177
|
+
:param topic_desc: The topic_desc of this UpdateTopicReq.
|
178
|
+
:type topic_desc: str
|
179
|
+
"""
|
180
|
+
self._topic_desc = topic_desc
|
181
|
+
|
124
182
|
def to_dict(self):
|
125
183
|
"""Returns the model properties as a dict"""
|
126
184
|
result = {}
|
@@ -18,21 +18,52 @@ class UpdateTopicResponse(SdkResponse):
|
|
18
18
|
sensitive_list = []
|
19
19
|
|
20
20
|
openapi_types = {
|
21
|
+
'job_id': 'str'
|
21
22
|
}
|
22
23
|
|
23
24
|
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
24
26
|
}
|
25
27
|
|
26
|
-
def __init__(self):
|
28
|
+
def __init__(self, job_id=None):
|
27
29
|
r"""UpdateTopicResponse
|
28
30
|
|
29
31
|
The model defined in huaweicloud sdk
|
30
32
|
|
33
|
+
:param job_id: 规格变更任务ID。
|
34
|
+
:type job_id: str
|
31
35
|
"""
|
32
36
|
|
33
37
|
super(UpdateTopicResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
34
40
|
self.discriminator = None
|
35
41
|
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
r"""Gets the job_id of this UpdateTopicResponse.
|
48
|
+
|
49
|
+
规格变更任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this UpdateTopicResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
r"""Sets the job_id of this UpdateTopicResponse.
|
59
|
+
|
60
|
+
规格变更任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this UpdateTopicResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_id
|
66
|
+
|
36
67
|
def to_dict(self):
|
37
68
|
"""Returns the model properties as a dict"""
|
38
69
|
result = {}
|