huaweicloudsdkrocketmq 3.1.167__py3-none-any.whl → 3.1.169__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.
@@ -69,8 +69,6 @@ from huaweicloudsdkrocketmq.v2.model.delete_user_request import DeleteUserReques
69
69
  from huaweicloudsdkrocketmq.v2.model.delete_user_response import DeleteUserResponse
70
70
  from huaweicloudsdkrocketmq.v2.model.diagnosis_rep import DiagnosisRep
71
71
  from huaweicloudsdkrocketmq.v2.model.diagnosis_report_resp import DiagnosisReportResp
72
- from huaweicloudsdkrocketmq.v2.model.enable_dns_request import EnableDnsRequest
73
- from huaweicloudsdkrocketmq.v2.model.enable_dns_response import EnableDnsResponse
74
72
  from huaweicloudsdkrocketmq.v2.model.export_dlq_message_req import ExportDlqMessageReq
75
73
  from huaweicloudsdkrocketmq.v2.model.export_dlq_message_request import ExportDlqMessageRequest
76
74
  from huaweicloudsdkrocketmq.v2.model.export_dlq_message_response import ExportDlqMessageResponse
@@ -146,8 +144,8 @@ from huaweicloudsdkrocketmq.v2.model.rocket_mq_product_support_features_entity i
146
144
  from huaweicloudsdkrocketmq.v2.model.send_dlq_message_request import SendDlqMessageRequest
147
145
  from huaweicloudsdkrocketmq.v2.model.send_dlq_message_response import SendDlqMessageResponse
148
146
  from huaweicloudsdkrocketmq.v2.model.send_message_properties import SendMessageProperties
147
+ from huaweicloudsdkrocketmq.v2.model.send_message_rep import SendMessageRep
149
148
  from huaweicloudsdkrocketmq.v2.model.send_message_request import SendMessageRequest
150
- from huaweicloudsdkrocketmq.v2.model.send_message_resp import SendMessageResp
151
149
  from huaweicloudsdkrocketmq.v2.model.send_message_response import SendMessageResponse
152
150
  from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_request import ShowConsumerConnectionsRequest
153
151
  from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_response import ShowConsumerConnectionsResponse
@@ -67,8 +67,6 @@ from huaweicloudsdkrocketmq.v2.model.delete_user_request import DeleteUserReques
67
67
  from huaweicloudsdkrocketmq.v2.model.delete_user_response import DeleteUserResponse
68
68
  from huaweicloudsdkrocketmq.v2.model.diagnosis_rep import DiagnosisRep
69
69
  from huaweicloudsdkrocketmq.v2.model.diagnosis_report_resp import DiagnosisReportResp
70
- from huaweicloudsdkrocketmq.v2.model.enable_dns_request import EnableDnsRequest
71
- from huaweicloudsdkrocketmq.v2.model.enable_dns_response import EnableDnsResponse
72
70
  from huaweicloudsdkrocketmq.v2.model.export_dlq_message_req import ExportDlqMessageReq
73
71
  from huaweicloudsdkrocketmq.v2.model.export_dlq_message_request import ExportDlqMessageRequest
74
72
  from huaweicloudsdkrocketmq.v2.model.export_dlq_message_response import ExportDlqMessageResponse
@@ -144,8 +142,8 @@ from huaweicloudsdkrocketmq.v2.model.rocket_mq_product_support_features_entity i
144
142
  from huaweicloudsdkrocketmq.v2.model.send_dlq_message_request import SendDlqMessageRequest
145
143
  from huaweicloudsdkrocketmq.v2.model.send_dlq_message_response import SendDlqMessageResponse
146
144
  from huaweicloudsdkrocketmq.v2.model.send_message_properties import SendMessageProperties
145
+ from huaweicloudsdkrocketmq.v2.model.send_message_rep import SendMessageRep
147
146
  from huaweicloudsdkrocketmq.v2.model.send_message_request import SendMessageRequest
148
- from huaweicloudsdkrocketmq.v2.model.send_message_resp import SendMessageResp
149
147
  from huaweicloudsdkrocketmq.v2.model.send_message_response import SendMessageResponse
150
148
  from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_request import ShowConsumerConnectionsRequest
151
149
  from huaweicloudsdkrocketmq.v2.model.show_consumer_connections_response import ShowConsumerConnectionsResponse
@@ -53,7 +53,7 @@ class ListBackgroundTasksRespTasks:
53
53
  :type user_id: str
54
54
  :param params: **参数解释**: 任务参数。 **取值范围**: 不涉及。
55
55
  :type params: str
56
- :param status: **参数解释**: 任务状态。 **取值范围**: 不涉及。
56
+ :param status: **参数解释**: 任务状态。 **取值范围**: - CREATED:后台任务状态为创建成功。 - SUCCESS:后台任务状态为成功。 - FAILED:后台任务状态为失败。 - DELETED:后台任务状态为已删除。 - EXECUTING:后台任务状态为执行中。 - CANCELLED:定时任务状态为取消。
57
57
  :type status: str
58
58
  :param created_at: **参数解释**: 启动时间。 **取值范围**: 不涉及。
59
59
  :type created_at: str
@@ -204,7 +204,7 @@ class ListBackgroundTasksRespTasks:
204
204
  def status(self):
205
205
  r"""Gets the status of this ListBackgroundTasksRespTasks.
206
206
 
207
- **参数解释**: 任务状态。 **取值范围**: 不涉及。
207
+ **参数解释**: 任务状态。 **取值范围**: - CREATED:后台任务状态为创建成功。 - SUCCESS:后台任务状态为成功。 - FAILED:后台任务状态为失败。 - DELETED:后台任务状态为已删除。 - EXECUTING:后台任务状态为执行中。 - CANCELLED:定时任务状态为取消。
208
208
 
209
209
  :return: The status of this ListBackgroundTasksRespTasks.
210
210
  :rtype: str
@@ -215,7 +215,7 @@ class ListBackgroundTasksRespTasks:
215
215
  def status(self, status):
216
216
  r"""Sets the status of this ListBackgroundTasksRespTasks.
217
217
 
218
- **参数解释**: 任务状态。 **取值范围**: 不涉及。
218
+ **参数解释**: 任务状态。 **取值范围**: - CREATED:后台任务状态为创建成功。 - SUCCESS:后台任务状态为成功。 - FAILED:后台任务状态为失败。 - DELETED:后台任务状态为已删除。 - EXECUTING:后台任务状态为执行中。 - CANCELLED:定时任务状态为取消。
219
219
 
220
220
  :param status: The status of this ListBackgroundTasksRespTasks.
221
221
  :type status: str
@@ -60,7 +60,8 @@ class ListEngineProductsRequest:
60
60
 
61
61
  self.engine = engine
62
62
  self.type = type
63
- self.product_id = product_id
63
+ if product_id is not None:
64
+ self.product_id = product_id
64
65
  if limit is not None:
65
66
  self.limit = limit
66
67
  if offset is not None:
@@ -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 SendMessageRep:
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
+ 'topic': 'str',
21
+ 'body': 'str',
22
+ 'property_list': 'list[SendMessageProperties]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'topic': 'topic',
27
+ 'body': 'body',
28
+ 'property_list': 'property_list'
29
+ }
30
+
31
+ def __init__(self, topic=None, body=None, property_list=None):
32
+ r"""SendMessageRep
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param topic: **参数解释**: 主题名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type topic: str
38
+ :param body: **参数解释**: 消息内容。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
39
+ :type body: str
40
+ :param property_list: **参数解释**: 特性列表。
41
+ :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
42
+ """
43
+
44
+
45
+
46
+ self._topic = None
47
+ self._body = None
48
+ self._property_list = None
49
+ self.discriminator = None
50
+
51
+ if topic is not None:
52
+ self.topic = topic
53
+ if body is not None:
54
+ self.body = body
55
+ if property_list is not None:
56
+ self.property_list = property_list
57
+
58
+ @property
59
+ def topic(self):
60
+ r"""Gets the topic of this SendMessageRep.
61
+
62
+ **参数解释**: 主题名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
63
+
64
+ :return: The topic of this SendMessageRep.
65
+ :rtype: str
66
+ """
67
+ return self._topic
68
+
69
+ @topic.setter
70
+ def topic(self, topic):
71
+ r"""Sets the topic of this SendMessageRep.
72
+
73
+ **参数解释**: 主题名称。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
74
+
75
+ :param topic: The topic of this SendMessageRep.
76
+ :type topic: str
77
+ """
78
+ self._topic = topic
79
+
80
+ @property
81
+ def body(self):
82
+ r"""Gets the body of this SendMessageRep.
83
+
84
+ **参数解释**: 消息内容。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
85
+
86
+ :return: The body of this SendMessageRep.
87
+ :rtype: str
88
+ """
89
+ return self._body
90
+
91
+ @body.setter
92
+ def body(self, body):
93
+ r"""Sets the body of this SendMessageRep.
94
+
95
+ **参数解释**: 消息内容。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
96
+
97
+ :param body: The body of this SendMessageRep.
98
+ :type body: str
99
+ """
100
+ self._body = body
101
+
102
+ @property
103
+ def property_list(self):
104
+ r"""Gets the property_list of this SendMessageRep.
105
+
106
+ **参数解释**: 特性列表。
107
+
108
+ :return: The property_list of this SendMessageRep.
109
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
110
+ """
111
+ return self._property_list
112
+
113
+ @property_list.setter
114
+ def property_list(self, property_list):
115
+ r"""Sets the property_list of this SendMessageRep.
116
+
117
+ **参数解释**: 特性列表。
118
+
119
+ :param property_list: The property_list of this SendMessageRep.
120
+ :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
121
+ """
122
+ self._property_list = property_list
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, SendMessageRep):
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,7 +19,7 @@ class SendMessageRequest:
19
19
  openapi_types = {
20
20
  'engine': 'str',
21
21
  'instance_id': 'str',
22
- 'body': 'SendMessageResp'
22
+ 'body': 'SendMessageRep'
23
23
  }
24
24
 
25
25
  attribute_map = {
@@ -38,7 +38,7 @@ class SendMessageRequest:
38
38
  :param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
39
39
  :type instance_id: str
40
40
  :param body: Body of the SendMessageRequest
41
- :type body: :class:`huaweicloudsdkrocketmq.v2.SendMessageResp`
41
+ :type body: :class:`huaweicloudsdkrocketmq.v2.SendMessageRep`
42
42
  """
43
43
 
44
44
 
@@ -102,7 +102,7 @@ class SendMessageRequest:
102
102
  r"""Gets the body of this SendMessageRequest.
103
103
 
104
104
  :return: The body of this SendMessageRequest.
105
- :rtype: :class:`huaweicloudsdkrocketmq.v2.SendMessageResp`
105
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.SendMessageRep`
106
106
  """
107
107
  return self._body
108
108
 
@@ -111,7 +111,7 @@ class SendMessageRequest:
111
111
  r"""Sets the body of this SendMessageRequest.
112
112
 
113
113
  :param body: The body of this SendMessageRequest.
114
- :type body: :class:`huaweicloudsdkrocketmq.v2.SendMessageResp`
114
+ :type body: :class:`huaweicloudsdkrocketmq.v2.SendMessageRep`
115
115
  """
116
116
  self._body = body
117
117
 
@@ -162,7 +162,7 @@ class ShowInstanceResponse(SdkResponse):
162
162
  :type name: str
163
163
  :param engine: **参数解释**: 消息引擎。 **取值范围**: 不涉及。
164
164
  :type engine: str
165
- :param status: **参数解释**: 状态。 **取值范围**: 不涉及。
165
+ :param status: **参数解释**: 状态。 **取值范围**: [详细状态说明请参考[实例状态说明](hrm-api-0010.xml)。](tag:hws,hws_hk,ctc,hws_eu,ocb,g42,hk_g42,tm,sbc,hk_sbc,cmcc,hk_tm)[详细状态说明请参考[实例状态说明](kafka-api-180514012.xml)。](tag:hcs,fcs)
166
166
  :type status: str
167
167
  :param description: **参数解释**: 消息描述。 **取值范围**: 不涉及。
168
168
  :type description: str
@@ -538,7 +538,7 @@ class ShowInstanceResponse(SdkResponse):
538
538
  def status(self):
539
539
  r"""Gets the status of this ShowInstanceResponse.
540
540
 
541
- **参数解释**: 状态。 **取值范围**: 不涉及。
541
+ **参数解释**: 状态。 **取值范围**: [详细状态说明请参考[实例状态说明](hrm-api-0010.xml)。](tag:hws,hws_hk,ctc,hws_eu,ocb,g42,hk_g42,tm,sbc,hk_sbc,cmcc,hk_tm)[详细状态说明请参考[实例状态说明](kafka-api-180514012.xml)。](tag:hcs,fcs)
542
542
 
543
543
  :return: The status of this ShowInstanceResponse.
544
544
  :rtype: str
@@ -549,7 +549,7 @@ class ShowInstanceResponse(SdkResponse):
549
549
  def status(self, status):
550
550
  r"""Sets the status of this ShowInstanceResponse.
551
551
 
552
- **参数解释**: 状态。 **取值范围**: 不涉及。
552
+ **参数解释**: 状态。 **取值范围**: [详细状态说明请参考[实例状态说明](hrm-api-0010.xml)。](tag:hws,hws_hk,ctc,hws_eu,ocb,g42,hk_g42,tm,sbc,hk_sbc,cmcc,hk_tm)[详细状态说明请参考[实例状态说明](kafka-api-180514012.xml)。](tag:hcs,fcs)
553
553
 
554
554
  :param status: The status of this ShowInstanceResponse.
555
555
  :type status: str
@@ -1044,71 +1044,6 @@ class RocketMQAsyncClient(Client):
1044
1044
 
1045
1045
  return http_info
1046
1046
 
1047
- def enable_dns_async(self, request):
1048
- r"""开启RocketMQ实例域名访问能力
1049
-
1050
- 开启RocketMQ实例域名访问能力。
1051
-
1052
- Please refer to HUAWEI cloud API Explorer for details.
1053
-
1054
-
1055
- :param request: Request instance for EnableDns
1056
- :type request: :class:`huaweicloudsdkrocketmq.v2.EnableDnsRequest`
1057
- :rtype: :class:`huaweicloudsdkrocketmq.v2.EnableDnsResponse`
1058
- """
1059
- http_info = self._enable_dns_http_info(request)
1060
- return self._call_api(**http_info)
1061
-
1062
- def enable_dns_async_invoker(self, request):
1063
- http_info = self._enable_dns_http_info(request)
1064
- return AsyncInvoker(self, http_info)
1065
-
1066
- def _enable_dns_http_info(self, request):
1067
- http_info = {
1068
- "method": "POST",
1069
- "resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/dns",
1070
- "request_type": request.__class__.__name__,
1071
- "response_type": "EnableDnsResponse"
1072
- }
1073
-
1074
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1075
-
1076
- cname = None
1077
-
1078
- collection_formats = {}
1079
-
1080
- path_params = {}
1081
- if 'instance_id' in local_var_params:
1082
- path_params['instance_id'] = local_var_params['instance_id']
1083
-
1084
- query_params = []
1085
-
1086
- header_params = {}
1087
-
1088
- form_params = {}
1089
-
1090
- body = None
1091
- if isinstance(request, SdkStreamRequest):
1092
- body = request.get_file_stream()
1093
-
1094
- response_headers = []
1095
-
1096
- header_params['Content-Type'] = http_utils.select_header_content_type(
1097
- ['application/json'])
1098
-
1099
- auth_settings = []
1100
-
1101
- http_info["cname"] = cname
1102
- http_info["collection_formats"] = collection_formats
1103
- http_info["path_params"] = path_params
1104
- http_info["query_params"] = query_params
1105
- http_info["header_params"] = header_params
1106
- http_info["post_params"] = form_params
1107
- http_info["body"] = body
1108
- http_info["response_headers"] = response_headers
1109
-
1110
- return http_info
1111
-
1112
1047
  def export_dlq_message_async(self, request):
1113
1048
  r"""导出死信消息
1114
1049
 
@@ -1044,71 +1044,6 @@ class RocketMQClient(Client):
1044
1044
 
1045
1045
  return http_info
1046
1046
 
1047
- def enable_dns(self, request):
1048
- r"""开启RocketMQ实例域名访问能力
1049
-
1050
- 开启RocketMQ实例域名访问能力。
1051
-
1052
- Please refer to HUAWEI cloud API Explorer for details.
1053
-
1054
- :param request: Request instance for EnableDns
1055
- :type request: :class:`huaweicloudsdkrocketmq.v2.EnableDnsRequest`
1056
- :rtype: :class:`huaweicloudsdkrocketmq.v2.EnableDnsResponse`
1057
- """
1058
- http_info = self._enable_dns_http_info(request)
1059
- return self._call_api(**http_info)
1060
-
1061
- def enable_dns_invoker(self, request):
1062
- http_info = self._enable_dns_http_info(request)
1063
- return SyncInvoker(self, http_info)
1064
-
1065
- @classmethod
1066
- def _enable_dns_http_info(cls, request):
1067
- http_info = {
1068
- "method": "POST",
1069
- "resource_path": "/v2/{project_id}/rocketmq/instances/{instance_id}/dns",
1070
- "request_type": request.__class__.__name__,
1071
- "response_type": "EnableDnsResponse"
1072
- }
1073
-
1074
- local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1075
-
1076
- cname = None
1077
-
1078
- collection_formats = {}
1079
-
1080
- path_params = {}
1081
- if 'instance_id' in local_var_params:
1082
- path_params['instance_id'] = local_var_params['instance_id']
1083
-
1084
- query_params = []
1085
-
1086
- header_params = {}
1087
-
1088
- form_params = {}
1089
-
1090
- body = None
1091
- if isinstance(request, SdkStreamRequest):
1092
- body = request.get_file_stream()
1093
-
1094
- response_headers = []
1095
-
1096
- header_params['Content-Type'] = http_utils.select_header_content_type(
1097
- ['application/json'])
1098
-
1099
- auth_settings = []
1100
-
1101
- http_info["cname"] = cname
1102
- http_info["collection_formats"] = collection_formats
1103
- http_info["path_params"] = path_params
1104
- http_info["query_params"] = query_params
1105
- http_info["header_params"] = header_params
1106
- http_info["post_params"] = form_params
1107
- http_info["body"] = body
1108
- http_info["response_headers"] = response_headers
1109
-
1110
- return http_info
1111
-
1112
1047
  def export_dlq_message(self, request):
1113
1048
  r"""导出死信消息
1114
1049
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: huaweicloudsdkrocketmq
3
- Version: 3.1.167
3
+ Version: 3.1.169
4
4
  Summary: RocketMQ
5
5
  Project-URL: Homepage, https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author-email: HuaweiCloud SDK <hwcloudsdk@huawei.com>
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Topic :: Software Development
21
21
  Requires-Python: >=3.6
22
- Requires-Dist: huaweicloudsdkcore>=3.1.167
22
+ Requires-Dist: huaweicloudsdkcore>=3.1.169
23
23
  Description-Content-Type: text/markdown
24
24
 
25
25
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkrocketmq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkrocketmq/v2/__init__.py,sha256=MIEhZ2nE9invXifksQI6GalcKkqdL5NrUBMV-_fVdOY,19632
3
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py,sha256=uce2h7UFgcas6S2twpL8zTqtuykqb7QumS6v-yIS3Hg,145452
4
- huaweicloudsdkrocketmq/v2/rocketmq_client.py,sha256=c2FuC8gOewafgoVheyWR2xbRH9bxvqS0tdL_LbE1hy8,145467
5
- huaweicloudsdkrocketmq/v2/model/__init__.py,sha256=NViLXHA0gmUKyh2PiyExcJAhCT4fCFlAvkmFtXBziLM,19516
2
+ huaweicloudsdkrocketmq/v2/__init__.py,sha256=Vq3drlm_XGCcLtQyb-BQHeX70exiveGC9d2GOcO3xvk,19468
3
+ huaweicloudsdkrocketmq/v2/rocketmq_async_client.py,sha256=r8RKl2QQ6hiXkCNs3D9CaCMkVLzZdL-afh9NwelV1-o,143373
4
+ huaweicloudsdkrocketmq/v2/rocketmq_client.py,sha256=2AWi7hZpmOSTTO7ZExd9cQB6-oLc9MpBmUNk4LrGiGk,143386
5
+ huaweicloudsdkrocketmq/v2/model/__init__.py,sha256=na08tQyc_uTNEOslSAON8qxdN1W_gzAx71Y7ovcoShg,19352
6
6
  huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_request.py,sha256=Mjez32DrvL6tDPy_EycVLnnuJhUx_g66j9RLFBVTjBo,4156
7
7
  huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_rocketmq_tag_response.py,sha256=8akswd1VwuxnRvENb39rHmYG8Ekv76vP0F8IzCxx5Z4,2504
8
8
  huaweicloudsdkrocketmq/v2/model/batch_create_or_delete_tag_req.py,sha256=u2QbkRiqjYOVISrI4tzyqA8dB0d6eABSQ0puNnaI_jo,4126
@@ -67,8 +67,6 @@ huaweicloudsdkrocketmq/v2/model/delete_user_request.py,sha256=XVAWStSFV5444EQxWy
67
67
  huaweicloudsdkrocketmq/v2/model/delete_user_response.py,sha256=YpQZJc0U6ocn6mm_EP5lYAoHb21cQK6pAG9D0MTkOgM,3149
68
68
  huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py,sha256=UozyBrjjuOA_pfZq3R4xya9yUUibiMkQuwJ8RgSk5v0,4670
69
69
  huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py,sha256=AnyiHyeDO2pIrb979B6OOeAcgbFWu2groyTlJSK9F14,9363
70
- huaweicloudsdkrocketmq/v2/model/enable_dns_request.py,sha256=3A_K8LJDtZrpUEEIFe7JljaJ27TURaC8BsTlqCKlp8Q,3277
71
- huaweicloudsdkrocketmq/v2/model/enable_dns_response.py,sha256=otT6O5HIwDuid2Z1hRhSVAwdizhJZ_5attt8pevj6IY,2420
72
70
  huaweicloudsdkrocketmq/v2/model/export_dlq_message_req.py,sha256=O1GlD9d53aHgPJRaJAsT4ZuCHVuWjuh4zxhsEnhSD20,4804
73
71
  huaweicloudsdkrocketmq/v2/model/export_dlq_message_request.py,sha256=zDzpJxt7Tuu7dl5OeEn7GsCluj8BYJosHnudHa1x2k4,3964
74
72
  huaweicloudsdkrocketmq/v2/model/export_dlq_message_response.py,sha256=f3NP2eLTBa0LVAZOUvzC0B4gzTLSDSP7s3A1vzCYYdw,3226
@@ -78,7 +76,7 @@ huaweicloudsdkrocketmq/v2/model/list_available_zones_request.py,sha256=mCCjnCDdr
78
76
  huaweicloudsdkrocketmq/v2/model/list_available_zones_resp_available_zones.py,sha256=YiRULsoFdlAo0nIc_PbuX4bREyjNj3nIdQLjRShj1eY,11852
79
77
  huaweicloudsdkrocketmq/v2/model/list_available_zones_response.py,sha256=mKZ2rW363Ipjn7j37Rqe7bf2jTxFy-iJoFQ6Zmux7pQ,4713
80
78
  huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py,sha256=x9ZCco12Yqn031Rdy6ZrJIQnIf31D359POoBFx6xCYY,8631
81
- huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py,sha256=KOIRKXFCHFRUVeL4oLRhLJog97rd7P_C8gH351fOo_0,9800
79
+ huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py,sha256=GU4MrlEfLI_ck7-T9td3U7L3DnBxRhuiv7Svns1tfmQ,10580
82
80
  huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py,sha256=aGXiLxIHcwUp0xLtjnH7ZyOWCtOaJhRUi4ybhoOqC-E,4489
83
81
  huaweicloudsdkrocketmq/v2/model/list_brokers_request.py,sha256=Wpi8e3c-QX7eUbYG90vDIL-5QwLN_Tb69cofrZE9_oU,4678
84
82
  huaweicloudsdkrocketmq/v2/model/list_brokers_resp_brokers.py,sha256=7ML-54SFGEsQlKuE5GRUOUKYtsCz8gr8kzkZ9vtp8hA,3881
@@ -89,7 +87,7 @@ huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_request.py,sha256=Y
89
87
  huaweicloudsdkrocketmq/v2/model/list_consumer_group_of_topic_response.py,sha256=msF-S7IbYYsyt7pFrXs3dwRUWRysBfChYDJUYKiyavI,3289
90
88
  huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py,sha256=OOW0DGW5Y8WrJMFNOEMt5lSNC1t1zw-OG6CdQ-e3orM,7169
91
89
  huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py,sha256=6fZUFcPhk1-RWE6AqaZ-9Yqx-JMca1LP-CkQ97L30hY,3939
92
- huaweicloudsdkrocketmq/v2/model/list_engine_products_request.py,sha256=HD0YCQN90pGOurB6JDTIkwrVT1a1DyujydF9vQJGE_E,7880
90
+ huaweicloudsdkrocketmq/v2/model/list_engine_products_request.py,sha256=aKQlYduTw8aWbwe3ohc7QPp5rOCpOXxq8iMbhYJZ7WM,7919
93
91
  huaweicloudsdkrocketmq/v2/model/list_engine_products_response.py,sha256=zUyu5ZyZy5r4NWO_XDkYEz0tIFsqGMgKMcj0GMZtg-s,8415
94
92
  huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_request.py,sha256=LVrvZ8byY8PoL3t-SSTfAum7pL39M8wf82XmR8sPuyo,7277
95
93
  huaweicloudsdkrocketmq/v2/model/list_instance_consumer_groups_response.py,sha256=vC-aml8xIw-icmkTXEI8jbLMHKq77mD5cDRj5Zc3xd8,8703
@@ -144,8 +142,8 @@ huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py,sha
144
142
  huaweicloudsdkrocketmq/v2/model/send_dlq_message_request.py,sha256=nfjIpJyMDWNN4ewsaVgBaHld4VRJE7EHXc_iZ4x39Do,4637
145
143
  huaweicloudsdkrocketmq/v2/model/send_dlq_message_response.py,sha256=rpiaQ-QSsrf-_37_WJL6EP8I0OWnl3rW6-v7QGLMkRw,3645
146
144
  huaweicloudsdkrocketmq/v2/model/send_message_properties.py,sha256=NzCE44R5Af6IWm3fbEiPo4BE8ECRJosprLYz5OEaMMQ,4026
147
- huaweicloudsdkrocketmq/v2/model/send_message_request.py,sha256=4hTJP6fTbji2uxT1CIoOYeWv4Gq4RTJ0ee9PLH3hqXk,5548
148
- huaweicloudsdkrocketmq/v2/model/send_message_resp.py,sha256=sDtdp5GGT50tBDJfKCXksAOr9t2TVAzjcso2IV9trFs,8957
145
+ huaweicloudsdkrocketmq/v2/model/send_message_rep.py,sha256=flgBwzf-hqiPwsoM_GFe_YtKalC3IKNwyX2Mugcl-4k,5480
146
+ huaweicloudsdkrocketmq/v2/model/send_message_request.py,sha256=SGk4JZeBJnSNQrpQhPCRXj4VHMuoxA7-k8NrkPqy_es,5544
149
147
  huaweicloudsdkrocketmq/v2/model/send_message_response.py,sha256=z-8c7sOMedQq6OBG3UL2GsRsUpXMA-iGZqOUU9Efl3s,9193
150
148
  huaweicloudsdkrocketmq/v2/model/show_consumer_connections_request.py,sha256=YmQ2usSAM5CLmRPdIa2E4m1a9gijbGtuoMz_18BrZtk,6797
151
149
  huaweicloudsdkrocketmq/v2/model/show_consumer_connections_response.py,sha256=2NN2CxuoLNLsDW3IntCGAI_YCnr320Jrq4H2njr0ZA4,9053
@@ -162,7 +160,7 @@ huaweicloudsdkrocketmq/v2/model/show_group_response.py,sha256=i-xMC4cFF-c0SSX3CK
162
160
  huaweicloudsdkrocketmq/v2/model/show_instance_nodes_request.py,sha256=pzExSywTCdufeVHL7QwbxGy5Zz45-s_zMC0joLKTaKo,5495
163
161
  huaweicloudsdkrocketmq/v2/model/show_instance_nodes_response.py,sha256=Tj-MnoMBq4StbhLUoRkBqjc5_f-mtJ-rq7LXFOGjmRo,5938
164
162
  huaweicloudsdkrocketmq/v2/model/show_instance_request.py,sha256=t-OrI_dwPdvVf5qRQHe0hZo8BYehR2fOvb2rnsecPMQ,3739
165
- huaweicloudsdkrocketmq/v2/model/show_instance_response.py,sha256=CoXXMxKwUZYIixedzLRyNEPScN8JV5MmcaDS2g-Pi4Y,75881
163
+ huaweicloudsdkrocketmq/v2/model/show_instance_response.py,sha256=-h6gpFEL0oF0U7H01-BKlbRPoEgGKksLvv1INnprNok,76526
166
164
  huaweicloudsdkrocketmq/v2/model/show_one_topic_request.py,sha256=LNrtO47hy9_-UNW4dEDlTzlnQ_lpApDrafyde3SO688,3770
167
165
  huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py,sha256=BmTkjEGX1P7s7Hl1E7C5w6o_VI1yoP7CFH0OiefCQ6M,9364
168
166
  huaweicloudsdkrocketmq/v2/model/show_quotas_request.py,sha256=f5unrujO6OhvVUoNpSthoA-L3dvS9YjuQn2cuxAgRxM,2310
@@ -205,7 +203,7 @@ huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py,sha256=5uFH
205
203
  huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py,sha256=OZGb6ATbf5BMDRuRXdyfVQ9sxEqjvHDATCoSXng-ww0,3699
206
204
  huaweicloudsdkrocketmq/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
207
205
  huaweicloudsdkrocketmq/v2/region/rocketmq_region.py,sha256=qaBrPD5L9JHOy9qICWMYgjTNj6oMHLKuWDVHY7du49M,5605
208
- huaweicloudsdkrocketmq-3.1.167.dist-info/METADATA,sha256=Qz_0Jvjmeupjniuqh7Awv6ctwKVd0Ly21U5lW000iiQ,1087
209
- huaweicloudsdkrocketmq-3.1.167.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
210
- huaweicloudsdkrocketmq-3.1.167.dist-info/licenses/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
211
- huaweicloudsdkrocketmq-3.1.167.dist-info/RECORD,,
206
+ huaweicloudsdkrocketmq-3.1.169.dist-info/METADATA,sha256=Gf_OYkd9GBySRrCy9d-Xvu_tveXRRPEn1sDsz64U6gY,1087
207
+ huaweicloudsdkrocketmq-3.1.169.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
208
+ huaweicloudsdkrocketmq-3.1.169.dist-info/licenses/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
209
+ huaweicloudsdkrocketmq-3.1.169.dist-info/RECORD,,
@@ -1,114 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class EnableDnsRequest:
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
- 'instance_id': 'str'
21
- }
22
-
23
- attribute_map = {
24
- 'instance_id': 'instance_id'
25
- }
26
-
27
- def __init__(self, instance_id=None):
28
- r"""EnableDnsRequest
29
-
30
- The model defined in huaweicloud sdk
31
-
32
- :param instance_id: 实例ID,从[查询所有实例列表](ListInstances.xml)获取实例ID。
33
- :type instance_id: str
34
- """
35
-
36
-
37
-
38
- self._instance_id = None
39
- self.discriminator = None
40
-
41
- self.instance_id = instance_id
42
-
43
- @property
44
- def instance_id(self):
45
- r"""Gets the instance_id of this EnableDnsRequest.
46
-
47
- 实例ID,从[查询所有实例列表](ListInstances.xml)获取实例ID。
48
-
49
- :return: The instance_id of this EnableDnsRequest.
50
- :rtype: str
51
- """
52
- return self._instance_id
53
-
54
- @instance_id.setter
55
- def instance_id(self, instance_id):
56
- r"""Sets the instance_id of this EnableDnsRequest.
57
-
58
- 实例ID,从[查询所有实例列表](ListInstances.xml)获取实例ID。
59
-
60
- :param instance_id: The instance_id of this EnableDnsRequest.
61
- :type instance_id: str
62
- """
63
- self._instance_id = instance_id
64
-
65
- def to_dict(self):
66
- """Returns the model properties as a dict"""
67
- result = {}
68
-
69
- for attr, _ in six.iteritems(self.openapi_types):
70
- value = getattr(self, attr)
71
- if isinstance(value, list):
72
- result[attr] = list(map(
73
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
- value
75
- ))
76
- elif hasattr(value, "to_dict"):
77
- result[attr] = value.to_dict()
78
- elif isinstance(value, dict):
79
- result[attr] = dict(map(
80
- lambda item: (item[0], item[1].to_dict())
81
- if hasattr(item[1], "to_dict") else item,
82
- value.items()
83
- ))
84
- else:
85
- if attr in self.sensitive_list:
86
- result[attr] = "****"
87
- else:
88
- result[attr] = value
89
-
90
- return result
91
-
92
- def to_str(self):
93
- """Returns the string representation of the model"""
94
- import simplejson as json
95
- if six.PY2:
96
- import sys
97
- reload(sys)
98
- sys.setdefaultencoding("utf-8")
99
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
-
101
- def __repr__(self):
102
- """For `print`"""
103
- return self.to_str()
104
-
105
- def __eq__(self, other):
106
- """Returns true if both objects are equal"""
107
- if not isinstance(other, EnableDnsRequest):
108
- return False
109
-
110
- return self.__dict__ == other.__dict__
111
-
112
- def __ne__(self, other):
113
- """Returns true if both objects are not equal"""
114
- return not self == other
@@ -1,85 +0,0 @@
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 EnableDnsResponse(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
- }
22
-
23
- attribute_map = {
24
- }
25
-
26
- def __init__(self):
27
- r"""EnableDnsResponse
28
-
29
- The model defined in huaweicloud sdk
30
-
31
- """
32
-
33
- super(EnableDnsResponse, self).__init__()
34
- self.discriminator = None
35
-
36
- def to_dict(self):
37
- """Returns the model properties as a dict"""
38
- result = {}
39
-
40
- for attr, _ in six.iteritems(self.openapi_types):
41
- value = getattr(self, attr)
42
- if isinstance(value, list):
43
- result[attr] = list(map(
44
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
- value
46
- ))
47
- elif hasattr(value, "to_dict"):
48
- result[attr] = value.to_dict()
49
- elif isinstance(value, dict):
50
- result[attr] = dict(map(
51
- lambda item: (item[0], item[1].to_dict())
52
- if hasattr(item[1], "to_dict") else item,
53
- value.items()
54
- ))
55
- else:
56
- if attr in self.sensitive_list:
57
- result[attr] = "****"
58
- else:
59
- result[attr] = value
60
-
61
- return result
62
-
63
- def to_str(self):
64
- """Returns the string representation of the model"""
65
- import simplejson as json
66
- if six.PY2:
67
- import sys
68
- reload(sys)
69
- sys.setdefaultencoding("utf-8")
70
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
-
72
- def __repr__(self):
73
- """For `print`"""
74
- return self.to_str()
75
-
76
- def __eq__(self, other):
77
- """Returns true if both objects are equal"""
78
- if not isinstance(other, EnableDnsResponse):
79
- return False
80
-
81
- return self.__dict__ == other.__dict__
82
-
83
- def __ne__(self, other):
84
- """Returns true if both objects are not equal"""
85
- return not self == other
@@ -1,289 +0,0 @@
1
- # coding: utf-8
2
-
3
- import six
4
-
5
- from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
-
7
-
8
- class SendMessageResp:
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
- 'topic': 'str',
21
- 'body': 'str',
22
- 'property_list': 'list[SendMessageProperties]',
23
- 'msg_id': 'str',
24
- 'queue_id': 'float',
25
- 'queue_offset': 'float',
26
- 'broker_name': 'str'
27
- }
28
-
29
- attribute_map = {
30
- 'topic': 'topic',
31
- 'body': 'body',
32
- 'property_list': 'property_list',
33
- 'msg_id': 'msg_id',
34
- 'queue_id': 'queue_id',
35
- 'queue_offset': 'queue_offset',
36
- 'broker_name': 'broker_name'
37
- }
38
-
39
- def __init__(self, topic=None, body=None, property_list=None, msg_id=None, queue_id=None, queue_offset=None, broker_name=None):
40
- r"""SendMessageResp
41
-
42
- The model defined in huaweicloud sdk
43
-
44
- :param topic: **参数解释**: 主题名称。 **取值范围**: 不涉及。
45
- :type topic: str
46
- :param body: **参数解释**: 消息内容。 **取值范围**: 不涉及。
47
- :type body: str
48
- :param property_list: **参数解释**: 特性列表。 **取值范围**: 不涉及。
49
- :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
50
- :param msg_id: **参数解释**: 消息ID。 **取值范围**: 不涉及。
51
- :type msg_id: str
52
- :param queue_id: **参数解释**: 队列ID。 **取值范围**: 不涉及。
53
- :type queue_id: float
54
- :param queue_offset: **参数解释**: 队列offset。 **取值范围**: 不涉及。
55
- :type queue_offset: float
56
- :param broker_name: **参数解释**: Broker名称。 **取值范围**: 不涉及。
57
- :type broker_name: str
58
- """
59
-
60
-
61
-
62
- self._topic = None
63
- self._body = None
64
- self._property_list = None
65
- self._msg_id = None
66
- self._queue_id = None
67
- self._queue_offset = None
68
- self._broker_name = None
69
- self.discriminator = None
70
-
71
- if topic is not None:
72
- self.topic = topic
73
- if body is not None:
74
- self.body = body
75
- if property_list is not None:
76
- self.property_list = property_list
77
- if msg_id is not None:
78
- self.msg_id = msg_id
79
- if queue_id is not None:
80
- self.queue_id = queue_id
81
- if queue_offset is not None:
82
- self.queue_offset = queue_offset
83
- if broker_name is not None:
84
- self.broker_name = broker_name
85
-
86
- @property
87
- def topic(self):
88
- r"""Gets the topic of this SendMessageResp.
89
-
90
- **参数解释**: 主题名称。 **取值范围**: 不涉及。
91
-
92
- :return: The topic of this SendMessageResp.
93
- :rtype: str
94
- """
95
- return self._topic
96
-
97
- @topic.setter
98
- def topic(self, topic):
99
- r"""Sets the topic of this SendMessageResp.
100
-
101
- **参数解释**: 主题名称。 **取值范围**: 不涉及。
102
-
103
- :param topic: The topic of this SendMessageResp.
104
- :type topic: str
105
- """
106
- self._topic = topic
107
-
108
- @property
109
- def body(self):
110
- r"""Gets the body of this SendMessageResp.
111
-
112
- **参数解释**: 消息内容。 **取值范围**: 不涉及。
113
-
114
- :return: The body of this SendMessageResp.
115
- :rtype: str
116
- """
117
- return self._body
118
-
119
- @body.setter
120
- def body(self, body):
121
- r"""Sets the body of this SendMessageResp.
122
-
123
- **参数解释**: 消息内容。 **取值范围**: 不涉及。
124
-
125
- :param body: The body of this SendMessageResp.
126
- :type body: str
127
- """
128
- self._body = body
129
-
130
- @property
131
- def property_list(self):
132
- r"""Gets the property_list of this SendMessageResp.
133
-
134
- **参数解释**: 特性列表。 **取值范围**: 不涉及。
135
-
136
- :return: The property_list of this SendMessageResp.
137
- :rtype: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
138
- """
139
- return self._property_list
140
-
141
- @property_list.setter
142
- def property_list(self, property_list):
143
- r"""Sets the property_list of this SendMessageResp.
144
-
145
- **参数解释**: 特性列表。 **取值范围**: 不涉及。
146
-
147
- :param property_list: The property_list of this SendMessageResp.
148
- :type property_list: list[:class:`huaweicloudsdkrocketmq.v2.SendMessageProperties`]
149
- """
150
- self._property_list = property_list
151
-
152
- @property
153
- def msg_id(self):
154
- r"""Gets the msg_id of this SendMessageResp.
155
-
156
- **参数解释**: 消息ID。 **取值范围**: 不涉及。
157
-
158
- :return: The msg_id of this SendMessageResp.
159
- :rtype: str
160
- """
161
- return self._msg_id
162
-
163
- @msg_id.setter
164
- def msg_id(self, msg_id):
165
- r"""Sets the msg_id of this SendMessageResp.
166
-
167
- **参数解释**: 消息ID。 **取值范围**: 不涉及。
168
-
169
- :param msg_id: The msg_id of this SendMessageResp.
170
- :type msg_id: str
171
- """
172
- self._msg_id = msg_id
173
-
174
- @property
175
- def queue_id(self):
176
- r"""Gets the queue_id of this SendMessageResp.
177
-
178
- **参数解释**: 队列ID。 **取值范围**: 不涉及。
179
-
180
- :return: The queue_id of this SendMessageResp.
181
- :rtype: float
182
- """
183
- return self._queue_id
184
-
185
- @queue_id.setter
186
- def queue_id(self, queue_id):
187
- r"""Sets the queue_id of this SendMessageResp.
188
-
189
- **参数解释**: 队列ID。 **取值范围**: 不涉及。
190
-
191
- :param queue_id: The queue_id of this SendMessageResp.
192
- :type queue_id: float
193
- """
194
- self._queue_id = queue_id
195
-
196
- @property
197
- def queue_offset(self):
198
- r"""Gets the queue_offset of this SendMessageResp.
199
-
200
- **参数解释**: 队列offset。 **取值范围**: 不涉及。
201
-
202
- :return: The queue_offset of this SendMessageResp.
203
- :rtype: float
204
- """
205
- return self._queue_offset
206
-
207
- @queue_offset.setter
208
- def queue_offset(self, queue_offset):
209
- r"""Sets the queue_offset of this SendMessageResp.
210
-
211
- **参数解释**: 队列offset。 **取值范围**: 不涉及。
212
-
213
- :param queue_offset: The queue_offset of this SendMessageResp.
214
- :type queue_offset: float
215
- """
216
- self._queue_offset = queue_offset
217
-
218
- @property
219
- def broker_name(self):
220
- r"""Gets the broker_name of this SendMessageResp.
221
-
222
- **参数解释**: Broker名称。 **取值范围**: 不涉及。
223
-
224
- :return: The broker_name of this SendMessageResp.
225
- :rtype: str
226
- """
227
- return self._broker_name
228
-
229
- @broker_name.setter
230
- def broker_name(self, broker_name):
231
- r"""Sets the broker_name of this SendMessageResp.
232
-
233
- **参数解释**: Broker名称。 **取值范围**: 不涉及。
234
-
235
- :param broker_name: The broker_name of this SendMessageResp.
236
- :type broker_name: str
237
- """
238
- self._broker_name = broker_name
239
-
240
- def to_dict(self):
241
- """Returns the model properties as a dict"""
242
- result = {}
243
-
244
- for attr, _ in six.iteritems(self.openapi_types):
245
- value = getattr(self, attr)
246
- if isinstance(value, list):
247
- result[attr] = list(map(
248
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
- value
250
- ))
251
- elif hasattr(value, "to_dict"):
252
- result[attr] = value.to_dict()
253
- elif isinstance(value, dict):
254
- result[attr] = dict(map(
255
- lambda item: (item[0], item[1].to_dict())
256
- if hasattr(item[1], "to_dict") else item,
257
- value.items()
258
- ))
259
- else:
260
- if attr in self.sensitive_list:
261
- result[attr] = "****"
262
- else:
263
- result[attr] = value
264
-
265
- return result
266
-
267
- def to_str(self):
268
- """Returns the string representation of the model"""
269
- import simplejson as json
270
- if six.PY2:
271
- import sys
272
- reload(sys)
273
- sys.setdefaultencoding("utf-8")
274
- return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
-
276
- def __repr__(self):
277
- """For `print`"""
278
- return self.to_str()
279
-
280
- def __eq__(self, other):
281
- """Returns true if both objects are equal"""
282
- if not isinstance(other, SendMessageResp):
283
- return False
284
-
285
- return self.__dict__ == other.__dict__
286
-
287
- def __ne__(self, other):
288
- """Returns true if both objects are not equal"""
289
- return not self == other