huaweicloudsdkrocketmq 3.1.41__py2.py3-none-any.whl → 3.1.43__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- 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,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 ListRocketMqMigrationTaskResponse(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
|
+
'total': 'int',
|
22
|
+
'task': 'list[MetadataTask]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'total': 'total',
|
27
|
+
'task': 'task'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, total=None, task=None):
|
31
|
+
"""ListRocketMqMigrationTaskResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param total: 元数据迁移任务总数。
|
36
|
+
:type total: int
|
37
|
+
:param task: 元数据迁移任务列表。
|
38
|
+
:type task: list[:class:`huaweicloudsdkrocketmq.v2.MetadataTask`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListRocketMqMigrationTaskResponse, self).__init__()
|
42
|
+
|
43
|
+
self._total = None
|
44
|
+
self._task = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if total is not None:
|
48
|
+
self.total = total
|
49
|
+
if task is not None:
|
50
|
+
self.task = task
|
51
|
+
|
52
|
+
@property
|
53
|
+
def total(self):
|
54
|
+
"""Gets the total of this ListRocketMqMigrationTaskResponse.
|
55
|
+
|
56
|
+
元数据迁移任务总数。
|
57
|
+
|
58
|
+
:return: The total of this ListRocketMqMigrationTaskResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._total
|
62
|
+
|
63
|
+
@total.setter
|
64
|
+
def total(self, total):
|
65
|
+
"""Sets the total of this ListRocketMqMigrationTaskResponse.
|
66
|
+
|
67
|
+
元数据迁移任务总数。
|
68
|
+
|
69
|
+
:param total: The total of this ListRocketMqMigrationTaskResponse.
|
70
|
+
:type total: int
|
71
|
+
"""
|
72
|
+
self._total = total
|
73
|
+
|
74
|
+
@property
|
75
|
+
def task(self):
|
76
|
+
"""Gets the task of this ListRocketMqMigrationTaskResponse.
|
77
|
+
|
78
|
+
元数据迁移任务列表。
|
79
|
+
|
80
|
+
:return: The task of this ListRocketMqMigrationTaskResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkrocketmq.v2.MetadataTask`]
|
82
|
+
"""
|
83
|
+
return self._task
|
84
|
+
|
85
|
+
@task.setter
|
86
|
+
def task(self, task):
|
87
|
+
"""Sets the task of this ListRocketMqMigrationTaskResponse.
|
88
|
+
|
89
|
+
元数据迁移任务列表。
|
90
|
+
|
91
|
+
:param task: The task of this ListRocketMqMigrationTaskResponse.
|
92
|
+
:type task: list[:class:`huaweicloudsdkrocketmq.v2.MetadataTask`]
|
93
|
+
"""
|
94
|
+
self._task = task
|
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, ListRocketMqMigrationTaskResponse):
|
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
|
@@ -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 MetadataDeleteReq:
|
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
|
+
'task_ids': 'list[str]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'task_ids': 'taskIds'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, task_ids=None):
|
28
|
+
"""MetadataDeleteReq
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param task_ids: 需要删除的任务列表。
|
33
|
+
:type task_ids: list[str]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._task_ids = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if task_ids is not None:
|
42
|
+
self.task_ids = task_ids
|
43
|
+
|
44
|
+
@property
|
45
|
+
def task_ids(self):
|
46
|
+
"""Gets the task_ids of this MetadataDeleteReq.
|
47
|
+
|
48
|
+
需要删除的任务列表。
|
49
|
+
|
50
|
+
:return: The task_ids of this MetadataDeleteReq.
|
51
|
+
:rtype: list[str]
|
52
|
+
"""
|
53
|
+
return self._task_ids
|
54
|
+
|
55
|
+
@task_ids.setter
|
56
|
+
def task_ids(self, task_ids):
|
57
|
+
"""Sets the task_ids of this MetadataDeleteReq.
|
58
|
+
|
59
|
+
需要删除的任务列表。
|
60
|
+
|
61
|
+
:param task_ids: The task_ids of this MetadataDeleteReq.
|
62
|
+
:type task_ids: list[str]
|
63
|
+
"""
|
64
|
+
self._task_ids = task_ids
|
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, MetadataDeleteReq):
|
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
|
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MetadataTask:
|
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
|
+
'id': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'start_date': 'str',
|
23
|
+
'status': 'str',
|
24
|
+
'type': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'name': 'name',
|
30
|
+
'start_date': 'start_date',
|
31
|
+
'status': 'status',
|
32
|
+
'type': 'type'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, id=None, name=None, start_date=None, status=None, type=None):
|
36
|
+
"""MetadataTask
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param id: 元数据迁移任务ID。
|
41
|
+
:type id: str
|
42
|
+
:param name: 元数据迁移任务名称。
|
43
|
+
:type name: str
|
44
|
+
:param start_date: 元数据迁移任务开始时间。
|
45
|
+
:type start_date: str
|
46
|
+
:param status: 元数据迁移任务状态。
|
47
|
+
:type status: str
|
48
|
+
:param type: 元数据迁移类型。
|
49
|
+
:type type: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._id = None
|
55
|
+
self._name = None
|
56
|
+
self._start_date = None
|
57
|
+
self._status = None
|
58
|
+
self._type = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if name is not None:
|
64
|
+
self.name = name
|
65
|
+
if start_date is not None:
|
66
|
+
self.start_date = start_date
|
67
|
+
if status is not None:
|
68
|
+
self.status = status
|
69
|
+
if type is not None:
|
70
|
+
self.type = type
|
71
|
+
|
72
|
+
@property
|
73
|
+
def id(self):
|
74
|
+
"""Gets the id of this MetadataTask.
|
75
|
+
|
76
|
+
元数据迁移任务ID。
|
77
|
+
|
78
|
+
:return: The id of this MetadataTask.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._id
|
82
|
+
|
83
|
+
@id.setter
|
84
|
+
def id(self, id):
|
85
|
+
"""Sets the id of this MetadataTask.
|
86
|
+
|
87
|
+
元数据迁移任务ID。
|
88
|
+
|
89
|
+
:param id: The id of this MetadataTask.
|
90
|
+
:type id: str
|
91
|
+
"""
|
92
|
+
self._id = id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def name(self):
|
96
|
+
"""Gets the name of this MetadataTask.
|
97
|
+
|
98
|
+
元数据迁移任务名称。
|
99
|
+
|
100
|
+
:return: The name of this MetadataTask.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._name
|
104
|
+
|
105
|
+
@name.setter
|
106
|
+
def name(self, name):
|
107
|
+
"""Sets the name of this MetadataTask.
|
108
|
+
|
109
|
+
元数据迁移任务名称。
|
110
|
+
|
111
|
+
:param name: The name of this MetadataTask.
|
112
|
+
:type name: str
|
113
|
+
"""
|
114
|
+
self._name = name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def start_date(self):
|
118
|
+
"""Gets the start_date of this MetadataTask.
|
119
|
+
|
120
|
+
元数据迁移任务开始时间。
|
121
|
+
|
122
|
+
:return: The start_date of this MetadataTask.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._start_date
|
126
|
+
|
127
|
+
@start_date.setter
|
128
|
+
def start_date(self, start_date):
|
129
|
+
"""Sets the start_date of this MetadataTask.
|
130
|
+
|
131
|
+
元数据迁移任务开始时间。
|
132
|
+
|
133
|
+
:param start_date: The start_date of this MetadataTask.
|
134
|
+
:type start_date: str
|
135
|
+
"""
|
136
|
+
self._start_date = start_date
|
137
|
+
|
138
|
+
@property
|
139
|
+
def status(self):
|
140
|
+
"""Gets the status of this MetadataTask.
|
141
|
+
|
142
|
+
元数据迁移任务状态。
|
143
|
+
|
144
|
+
:return: The status of this MetadataTask.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._status
|
148
|
+
|
149
|
+
@status.setter
|
150
|
+
def status(self, status):
|
151
|
+
"""Sets the status of this MetadataTask.
|
152
|
+
|
153
|
+
元数据迁移任务状态。
|
154
|
+
|
155
|
+
:param status: The status of this MetadataTask.
|
156
|
+
:type status: str
|
157
|
+
"""
|
158
|
+
self._status = status
|
159
|
+
|
160
|
+
@property
|
161
|
+
def type(self):
|
162
|
+
"""Gets the type of this MetadataTask.
|
163
|
+
|
164
|
+
元数据迁移类型。
|
165
|
+
|
166
|
+
:return: The type of this MetadataTask.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._type
|
170
|
+
|
171
|
+
@type.setter
|
172
|
+
def type(self, type):
|
173
|
+
"""Sets the type of this MetadataTask.
|
174
|
+
|
175
|
+
元数据迁移类型。
|
176
|
+
|
177
|
+
:param type: The type of this MetadataTask.
|
178
|
+
:type type: str
|
179
|
+
"""
|
180
|
+
self._type = type
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, MetadataTask):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|
@@ -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 ResendReq:
|
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
|
+
'group': 'str',
|
21
|
+
'client_id': 'str',
|
22
|
+
'msg_id_list': 'list[str]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'group': 'group',
|
27
|
+
'client_id': 'client_id',
|
28
|
+
'msg_id_list': 'msg_id_list'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, group=None, client_id=None, msg_id_list=None):
|
32
|
+
"""ResendReq
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param group: Group ID。
|
37
|
+
:type group: str
|
38
|
+
:param client_id: 客户端ID。
|
39
|
+
:type client_id: str
|
40
|
+
:param msg_id_list: 消息列表。
|
41
|
+
:type msg_id_list: list[str]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._group = None
|
47
|
+
self._client_id = None
|
48
|
+
self._msg_id_list = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if group is not None:
|
52
|
+
self.group = group
|
53
|
+
if client_id is not None:
|
54
|
+
self.client_id = client_id
|
55
|
+
if msg_id_list is not None:
|
56
|
+
self.msg_id_list = msg_id_list
|
57
|
+
|
58
|
+
@property
|
59
|
+
def group(self):
|
60
|
+
"""Gets the group of this ResendReq.
|
61
|
+
|
62
|
+
Group ID。
|
63
|
+
|
64
|
+
:return: The group of this ResendReq.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._group
|
68
|
+
|
69
|
+
@group.setter
|
70
|
+
def group(self, group):
|
71
|
+
"""Sets the group of this ResendReq.
|
72
|
+
|
73
|
+
Group ID。
|
74
|
+
|
75
|
+
:param group: The group of this ResendReq.
|
76
|
+
:type group: str
|
77
|
+
"""
|
78
|
+
self._group = group
|
79
|
+
|
80
|
+
@property
|
81
|
+
def client_id(self):
|
82
|
+
"""Gets the client_id of this ResendReq.
|
83
|
+
|
84
|
+
客户端ID。
|
85
|
+
|
86
|
+
:return: The client_id of this ResendReq.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._client_id
|
90
|
+
|
91
|
+
@client_id.setter
|
92
|
+
def client_id(self, client_id):
|
93
|
+
"""Sets the client_id of this ResendReq.
|
94
|
+
|
95
|
+
客户端ID。
|
96
|
+
|
97
|
+
:param client_id: The client_id of this ResendReq.
|
98
|
+
:type client_id: str
|
99
|
+
"""
|
100
|
+
self._client_id = client_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def msg_id_list(self):
|
104
|
+
"""Gets the msg_id_list of this ResendReq.
|
105
|
+
|
106
|
+
消息列表。
|
107
|
+
|
108
|
+
:return: The msg_id_list of this ResendReq.
|
109
|
+
:rtype: list[str]
|
110
|
+
"""
|
111
|
+
return self._msg_id_list
|
112
|
+
|
113
|
+
@msg_id_list.setter
|
114
|
+
def msg_id_list(self, msg_id_list):
|
115
|
+
"""Sets the msg_id_list of this ResendReq.
|
116
|
+
|
117
|
+
消息列表。
|
118
|
+
|
119
|
+
:param msg_id_list: The msg_id_list of this ResendReq.
|
120
|
+
:type msg_id_list: list[str]
|
121
|
+
"""
|
122
|
+
self._msg_id_list = msg_id_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, ResendReq):
|
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
|