huaweicloudsdkrocketmq 3.1.41__py2.py3-none-any.whl → 3.1.43__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 +15 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +15 -0
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +223 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/deadletter_resend_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/deadletter_resend_resp_resend_results.py +173 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/delete_rocket_mq_migration_task_response.py +112 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_request.py +259 -0
- huaweicloudsdkrocketmq/v2/model/list_rocket_mq_migration_task_response.py +145 -0
- huaweicloudsdkrocketmq/v2/model/metadata_delete_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/metadata_task.py +231 -0
- huaweicloudsdkrocketmq/v2/model/resend_req.py +173 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/send_dlq_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/tag_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/tag_multy_value_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/validate_consumed_message_response.py +116 -0
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +6 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +314 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +309 -0
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/RECORD +28 -13
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.41.dist-info → huaweicloudsdkrocketmq-3.1.43.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SendDlqMessageRequest:
|
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
|
+
'body': 'DeadletterResendReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'engine': 'engine',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, engine=None, instance_id=None, body=None):
|
32
|
+
"""SendDlqMessageRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param engine: engine
|
37
|
+
:type engine: str
|
38
|
+
:param instance_id: 实例ID。
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the SendDlqMessageRequest
|
41
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.DeadletterResendReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._engine = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.engine = engine
|
52
|
+
self.instance_id = instance_id
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def engine(self):
|
58
|
+
"""Gets the engine of this SendDlqMessageRequest.
|
59
|
+
|
60
|
+
engine
|
61
|
+
|
62
|
+
:return: The engine of this SendDlqMessageRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._engine
|
66
|
+
|
67
|
+
@engine.setter
|
68
|
+
def engine(self, engine):
|
69
|
+
"""Sets the engine of this SendDlqMessageRequest.
|
70
|
+
|
71
|
+
engine
|
72
|
+
|
73
|
+
:param engine: The engine of this SendDlqMessageRequest.
|
74
|
+
:type engine: str
|
75
|
+
"""
|
76
|
+
self._engine = engine
|
77
|
+
|
78
|
+
@property
|
79
|
+
def instance_id(self):
|
80
|
+
"""Gets the instance_id of this SendDlqMessageRequest.
|
81
|
+
|
82
|
+
实例ID。
|
83
|
+
|
84
|
+
:return: The instance_id of this SendDlqMessageRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._instance_id
|
88
|
+
|
89
|
+
@instance_id.setter
|
90
|
+
def instance_id(self, instance_id):
|
91
|
+
"""Sets the instance_id of this SendDlqMessageRequest.
|
92
|
+
|
93
|
+
实例ID。
|
94
|
+
|
95
|
+
:param instance_id: The instance_id of this SendDlqMessageRequest.
|
96
|
+
:type instance_id: str
|
97
|
+
"""
|
98
|
+
self._instance_id = instance_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this SendDlqMessageRequest.
|
103
|
+
|
104
|
+
:return: The body of this SendDlqMessageRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DeadletterResendReq`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this SendDlqMessageRequest.
|
112
|
+
|
113
|
+
:param body: The body of this SendDlqMessageRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.DeadletterResendReq`
|
115
|
+
"""
|
116
|
+
self._body = body
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, SendDlqMessageRequest):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 SendDlqMessageResponse(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
|
+
'resend_results': 'list[DeadletterResendRespResendResults]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'resend_results': 'resend_results'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, resend_results=None):
|
29
|
+
"""SendDlqMessageResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param resend_results: 重发死信消息结果。
|
34
|
+
:type resend_results: list[:class:`huaweicloudsdkrocketmq.v2.DeadletterResendRespResendResults`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(SendDlqMessageResponse, self).__init__()
|
38
|
+
|
39
|
+
self._resend_results = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if resend_results is not None:
|
43
|
+
self.resend_results = resend_results
|
44
|
+
|
45
|
+
@property
|
46
|
+
def resend_results(self):
|
47
|
+
"""Gets the resend_results of this SendDlqMessageResponse.
|
48
|
+
|
49
|
+
重发死信消息结果。
|
50
|
+
|
51
|
+
:return: The resend_results of this SendDlqMessageResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.DeadletterResendRespResendResults`]
|
53
|
+
"""
|
54
|
+
return self._resend_results
|
55
|
+
|
56
|
+
@resend_results.setter
|
57
|
+
def resend_results(self, resend_results):
|
58
|
+
"""Sets the resend_results of this SendDlqMessageResponse.
|
59
|
+
|
60
|
+
重发死信消息结果。
|
61
|
+
|
62
|
+
:param resend_results: The resend_results of this SendDlqMessageResponse.
|
63
|
+
:type resend_results: list[:class:`huaweicloudsdkrocketmq.v2.DeadletterResendRespResendResults`]
|
64
|
+
"""
|
65
|
+
self._resend_results = resend_results
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, SendDlqMessageResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -31,9 +31,9 @@ class TagEntity:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param key:
|
34
|
+
:param key: 键。 key不能为空,长度1~128个字符(中文也可以输入128个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : = + - @ key两头不能有空格字符。
|
35
35
|
:type key: str
|
36
|
-
:param value:
|
36
|
+
:param value: 值。 长度0~255个字符(中文也可以输入255个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : / = + - @。 value可以为空字符串。
|
37
37
|
:type value: str
|
38
38
|
"""
|
39
39
|
|
@@ -52,7 +52,7 @@ class TagEntity:
|
|
52
52
|
def key(self):
|
53
53
|
"""Gets the key of this TagEntity.
|
54
54
|
|
55
|
-
|
55
|
+
键。 key不能为空,长度1~128个字符(中文也可以输入128个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : = + - @ key两头不能有空格字符。
|
56
56
|
|
57
57
|
:return: The key of this TagEntity.
|
58
58
|
:rtype: str
|
@@ -63,7 +63,7 @@ class TagEntity:
|
|
63
63
|
def key(self, key):
|
64
64
|
"""Sets the key of this TagEntity.
|
65
65
|
|
66
|
-
|
66
|
+
键。 key不能为空,长度1~128个字符(中文也可以输入128个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : = + - @ key两头不能有空格字符。
|
67
67
|
|
68
68
|
:param key: The key of this TagEntity.
|
69
69
|
:type key: str
|
@@ -74,7 +74,7 @@ class TagEntity:
|
|
74
74
|
def value(self):
|
75
75
|
"""Gets the value of this TagEntity.
|
76
76
|
|
77
|
-
|
77
|
+
值。 长度0~255个字符(中文也可以输入255个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : / = + - @。 value可以为空字符串。
|
78
78
|
|
79
79
|
:return: The value of this TagEntity.
|
80
80
|
:rtype: str
|
@@ -85,7 +85,7 @@ class TagEntity:
|
|
85
85
|
def value(self, value):
|
86
86
|
"""Sets the value of this TagEntity.
|
87
87
|
|
88
|
-
|
88
|
+
值。 长度0~255个字符(中文也可以输入255个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : / = + - @。 value可以为空字符串。
|
89
89
|
|
90
90
|
:param value: The value of this TagEntity.
|
91
91
|
:type value: str
|
@@ -31,9 +31,9 @@ class TagMultyValueEntity:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param key:
|
34
|
+
:param key: 键。 key不能为空,长度1~128个字符(中文也可以输入128个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : = + - @ key两头不能有空格字符。
|
35
35
|
:type key: str
|
36
|
-
:param values:
|
36
|
+
:param values: 值列表。 值长度0~255个字符(中文也可以输入255个字符)。 值可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : / = + - @。 值可以为空字符串。
|
37
37
|
:type values: list[str]
|
38
38
|
"""
|
39
39
|
|
@@ -52,7 +52,7 @@ class TagMultyValueEntity:
|
|
52
52
|
def key(self):
|
53
53
|
"""Gets the key of this TagMultyValueEntity.
|
54
54
|
|
55
|
-
|
55
|
+
键。 key不能为空,长度1~128个字符(中文也可以输入128个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : = + - @ key两头不能有空格字符。
|
56
56
|
|
57
57
|
:return: The key of this TagMultyValueEntity.
|
58
58
|
:rtype: str
|
@@ -63,7 +63,7 @@ class TagMultyValueEntity:
|
|
63
63
|
def key(self, key):
|
64
64
|
"""Sets the key of this TagMultyValueEntity.
|
65
65
|
|
66
|
-
|
66
|
+
键。 key不能为空,长度1~128个字符(中文也可以输入128个字符)。 可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : = + - @ key两头不能有空格字符。
|
67
67
|
|
68
68
|
:param key: The key of this TagMultyValueEntity.
|
69
69
|
:type key: str
|
@@ -74,7 +74,7 @@ class TagMultyValueEntity:
|
|
74
74
|
def values(self):
|
75
75
|
"""Gets the values of this TagMultyValueEntity.
|
76
76
|
|
77
|
-
|
77
|
+
值列表。 值长度0~255个字符(中文也可以输入255个字符)。 值可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : / = + - @。 值可以为空字符串。
|
78
78
|
|
79
79
|
:return: The values of this TagMultyValueEntity.
|
80
80
|
:rtype: list[str]
|
@@ -85,7 +85,7 @@ class TagMultyValueEntity:
|
|
85
85
|
def values(self, values):
|
86
86
|
"""Sets the values of this TagMultyValueEntity.
|
87
87
|
|
88
|
-
|
88
|
+
值列表。 值长度0~255个字符(中文也可以输入255个字符)。 值可用 UTF-8 格式表示的字母(包含中文、西班牙语、葡语等)、数字和空格,以及以下字符: _ . : / = + - @。 值可以为空字符串。
|
89
89
|
|
90
90
|
:param values: The values of this TagMultyValueEntity.
|
91
91
|
:type values: list[str]
|
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ValidateConsumedMessageRequest:
|
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
|
+
'body': 'ResendReq'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'engine': 'engine',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, engine=None, instance_id=None, body=None):
|
32
|
+
"""ValidateConsumedMessageRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param engine: engine
|
37
|
+
:type engine: str
|
38
|
+
:param instance_id: 实例ID。
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the ValidateConsumedMessageRequest
|
41
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.ResendReq`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._engine = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.engine = engine
|
52
|
+
self.instance_id = instance_id
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def engine(self):
|
58
|
+
"""Gets the engine of this ValidateConsumedMessageRequest.
|
59
|
+
|
60
|
+
engine
|
61
|
+
|
62
|
+
:return: The engine of this ValidateConsumedMessageRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._engine
|
66
|
+
|
67
|
+
@engine.setter
|
68
|
+
def engine(self, engine):
|
69
|
+
"""Sets the engine of this ValidateConsumedMessageRequest.
|
70
|
+
|
71
|
+
engine
|
72
|
+
|
73
|
+
:param engine: The engine of this ValidateConsumedMessageRequest.
|
74
|
+
:type engine: str
|
75
|
+
"""
|
76
|
+
self._engine = engine
|
77
|
+
|
78
|
+
@property
|
79
|
+
def instance_id(self):
|
80
|
+
"""Gets the instance_id of this ValidateConsumedMessageRequest.
|
81
|
+
|
82
|
+
实例ID。
|
83
|
+
|
84
|
+
:return: The instance_id of this ValidateConsumedMessageRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._instance_id
|
88
|
+
|
89
|
+
@instance_id.setter
|
90
|
+
def instance_id(self, instance_id):
|
91
|
+
"""Sets the instance_id of this ValidateConsumedMessageRequest.
|
92
|
+
|
93
|
+
实例ID。
|
94
|
+
|
95
|
+
:param instance_id: The instance_id of this ValidateConsumedMessageRequest.
|
96
|
+
:type instance_id: str
|
97
|
+
"""
|
98
|
+
self._instance_id = instance_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this ValidateConsumedMessageRequest.
|
103
|
+
|
104
|
+
:return: The body of this ValidateConsumedMessageRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ResendReq`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this ValidateConsumedMessageRequest.
|
112
|
+
|
113
|
+
:param body: The body of this ValidateConsumedMessageRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.ResendReq`
|
115
|
+
"""
|
116
|
+
self._body = body
|
117
|
+
|
118
|
+
def to_dict(self):
|
119
|
+
"""Returns the model properties as a dict"""
|
120
|
+
result = {}
|
121
|
+
|
122
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
123
|
+
value = getattr(self, attr)
|
124
|
+
if isinstance(value, list):
|
125
|
+
result[attr] = list(map(
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
127
|
+
value
|
128
|
+
))
|
129
|
+
elif hasattr(value, "to_dict"):
|
130
|
+
result[attr] = value.to_dict()
|
131
|
+
elif isinstance(value, dict):
|
132
|
+
result[attr] = dict(map(
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
135
|
+
value.items()
|
136
|
+
))
|
137
|
+
else:
|
138
|
+
if attr in self.sensitive_list:
|
139
|
+
result[attr] = "****"
|
140
|
+
else:
|
141
|
+
result[attr] = value
|
142
|
+
|
143
|
+
return result
|
144
|
+
|
145
|
+
def to_str(self):
|
146
|
+
"""Returns the string representation of the model"""
|
147
|
+
import simplejson as json
|
148
|
+
if six.PY2:
|
149
|
+
import sys
|
150
|
+
reload(sys)
|
151
|
+
sys.setdefaultencoding("utf-8")
|
152
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, ValidateConsumedMessageRequest):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 ValidateConsumedMessageResponse(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
|
+
'resend_results': 'list[DeadletterResendRespResendResults]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'resend_results': 'resend_results'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, resend_results=None):
|
29
|
+
"""ValidateConsumedMessageResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param resend_results: 消费验证结果。
|
34
|
+
:type resend_results: list[:class:`huaweicloudsdkrocketmq.v2.DeadletterResendRespResendResults`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ValidateConsumedMessageResponse, self).__init__()
|
38
|
+
|
39
|
+
self._resend_results = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if resend_results is not None:
|
43
|
+
self.resend_results = resend_results
|
44
|
+
|
45
|
+
@property
|
46
|
+
def resend_results(self):
|
47
|
+
"""Gets the resend_results of this ValidateConsumedMessageResponse.
|
48
|
+
|
49
|
+
消费验证结果。
|
50
|
+
|
51
|
+
:return: The resend_results of this ValidateConsumedMessageResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.DeadletterResendRespResendResults`]
|
53
|
+
"""
|
54
|
+
return self._resend_results
|
55
|
+
|
56
|
+
@resend_results.setter
|
57
|
+
def resend_results(self, resend_results):
|
58
|
+
"""Sets the resend_results of this ValidateConsumedMessageResponse.
|
59
|
+
|
60
|
+
消费验证结果。
|
61
|
+
|
62
|
+
:param resend_results: The resend_results of this ValidateConsumedMessageResponse.
|
63
|
+
:type resend_results: list[:class:`huaweicloudsdkrocketmq.v2.DeadletterResendRespResendResults`]
|
64
|
+
"""
|
65
|
+
self._resend_results = resend_results
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ValidateConsumedMessageResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -37,6 +37,10 @@ class RocketMQRegion:
|
|
37
37
|
"https://dms.ru-northwest-2.myhuaweicloud.com")
|
38
38
|
CN_NORTH_9 = Region("cn-north-9",
|
39
39
|
"https://dms.cn-north-9.myhuaweicloud.com")
|
40
|
+
AP_SOUTHEAST_4 = Region("ap-southeast-4",
|
41
|
+
"https://dms.ap-southeast-4.myhuaweicloud.com")
|
42
|
+
TR_WEST_1 = Region("tr-west-1",
|
43
|
+
"https://dms.tr-west-1.myhuaweicloud.com")
|
40
44
|
|
41
45
|
static_fields = {
|
42
46
|
"cn-north-1": CN_NORTH_1,
|
@@ -53,6 +57,8 @@ class RocketMQRegion:
|
|
53
57
|
"af-south-1": AF_SOUTH_1,
|
54
58
|
"ru-northwest-2": RU_NORTHWEST_2,
|
55
59
|
"cn-north-9": CN_NORTH_9,
|
60
|
+
"ap-southeast-4": AP_SOUTHEAST_4,
|
61
|
+
"tr-west-1": TR_WEST_1,
|
56
62
|
}
|
57
63
|
|
58
64
|
@classmethod
|