huaweicloudsdkrocketmq 3.1.151__py2.py3-none-any.whl → 3.1.153__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 +29 -2
- huaweicloudsdkrocketmq/v2/model/__init__.py +29 -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_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/node_context_entity.py +231 -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/show_instance_nodes_request.py +200 -0
- huaweicloudsdkrocketmq/v2/model/show_instance_nodes_response.py +203 -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 +658 -31
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +658 -31
- {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/RECORD +47 -20
- {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.153.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 ModifyInstanceSslConfigResponse(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
|
+
'job_id': 'str',
|
22
|
+
'tls_mode': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'job_id': 'job_id',
|
27
|
+
'tls_mode': 'tls_mode'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, job_id=None, tls_mode=None):
|
31
|
+
r"""ModifyInstanceSslConfigResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param job_id: 任务ID。
|
36
|
+
:type job_id: str
|
37
|
+
:param tls_mode: 协议模式。
|
38
|
+
:type tls_mode: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ModifyInstanceSslConfigResponse, self).__init__()
|
42
|
+
|
43
|
+
self._job_id = None
|
44
|
+
self._tls_mode = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if job_id is not None:
|
48
|
+
self.job_id = job_id
|
49
|
+
if tls_mode is not None:
|
50
|
+
self.tls_mode = tls_mode
|
51
|
+
|
52
|
+
@property
|
53
|
+
def job_id(self):
|
54
|
+
r"""Gets the job_id of this ModifyInstanceSslConfigResponse.
|
55
|
+
|
56
|
+
任务ID。
|
57
|
+
|
58
|
+
:return: The job_id of this ModifyInstanceSslConfigResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._job_id
|
62
|
+
|
63
|
+
@job_id.setter
|
64
|
+
def job_id(self, job_id):
|
65
|
+
r"""Sets the job_id of this ModifyInstanceSslConfigResponse.
|
66
|
+
|
67
|
+
任务ID。
|
68
|
+
|
69
|
+
:param job_id: The job_id of this ModifyInstanceSslConfigResponse.
|
70
|
+
:type job_id: str
|
71
|
+
"""
|
72
|
+
self._job_id = job_id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def tls_mode(self):
|
76
|
+
r"""Gets the tls_mode of this ModifyInstanceSslConfigResponse.
|
77
|
+
|
78
|
+
协议模式。
|
79
|
+
|
80
|
+
:return: The tls_mode of this ModifyInstanceSslConfigResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._tls_mode
|
84
|
+
|
85
|
+
@tls_mode.setter
|
86
|
+
def tls_mode(self, tls_mode):
|
87
|
+
r"""Sets the tls_mode of this ModifyInstanceSslConfigResponse.
|
88
|
+
|
89
|
+
协议模式。
|
90
|
+
|
91
|
+
:param tls_mode: The tls_mode of this ModifyInstanceSslConfigResponse.
|
92
|
+
:type tls_mode: str
|
93
|
+
"""
|
94
|
+
self._tls_mode = tls_mode
|
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, ModifyInstanceSslConfigResponse):
|
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,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class NodeContextEntity:
|
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
|
+
'broker_name': 'str',
|
22
|
+
'broker_id': 'int',
|
23
|
+
'address': 'str',
|
24
|
+
'public_address': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'id': 'id',
|
29
|
+
'broker_name': 'broker_name',
|
30
|
+
'broker_id': 'broker_id',
|
31
|
+
'address': 'address',
|
32
|
+
'public_address': 'public_address'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, id=None, broker_name=None, broker_id=None, address=None, public_address=None):
|
36
|
+
r"""NodeContextEntity
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param id: ID
|
41
|
+
:type id: str
|
42
|
+
:param broker_name: broker名称
|
43
|
+
:type broker_name: str
|
44
|
+
:param broker_id: broker的ID
|
45
|
+
:type broker_id: int
|
46
|
+
:param address: 地址
|
47
|
+
:type address: str
|
48
|
+
:param public_address: 公网地址
|
49
|
+
:type public_address: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._id = None
|
55
|
+
self._broker_name = None
|
56
|
+
self._broker_id = None
|
57
|
+
self._address = None
|
58
|
+
self._public_address = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if id is not None:
|
62
|
+
self.id = id
|
63
|
+
if broker_name is not None:
|
64
|
+
self.broker_name = broker_name
|
65
|
+
if broker_id is not None:
|
66
|
+
self.broker_id = broker_id
|
67
|
+
if address is not None:
|
68
|
+
self.address = address
|
69
|
+
if public_address is not None:
|
70
|
+
self.public_address = public_address
|
71
|
+
|
72
|
+
@property
|
73
|
+
def id(self):
|
74
|
+
r"""Gets the id of this NodeContextEntity.
|
75
|
+
|
76
|
+
ID
|
77
|
+
|
78
|
+
:return: The id of this NodeContextEntity.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._id
|
82
|
+
|
83
|
+
@id.setter
|
84
|
+
def id(self, id):
|
85
|
+
r"""Sets the id of this NodeContextEntity.
|
86
|
+
|
87
|
+
ID
|
88
|
+
|
89
|
+
:param id: The id of this NodeContextEntity.
|
90
|
+
:type id: str
|
91
|
+
"""
|
92
|
+
self._id = id
|
93
|
+
|
94
|
+
@property
|
95
|
+
def broker_name(self):
|
96
|
+
r"""Gets the broker_name of this NodeContextEntity.
|
97
|
+
|
98
|
+
broker名称
|
99
|
+
|
100
|
+
:return: The broker_name of this NodeContextEntity.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._broker_name
|
104
|
+
|
105
|
+
@broker_name.setter
|
106
|
+
def broker_name(self, broker_name):
|
107
|
+
r"""Sets the broker_name of this NodeContextEntity.
|
108
|
+
|
109
|
+
broker名称
|
110
|
+
|
111
|
+
:param broker_name: The broker_name of this NodeContextEntity.
|
112
|
+
:type broker_name: str
|
113
|
+
"""
|
114
|
+
self._broker_name = broker_name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def broker_id(self):
|
118
|
+
r"""Gets the broker_id of this NodeContextEntity.
|
119
|
+
|
120
|
+
broker的ID
|
121
|
+
|
122
|
+
:return: The broker_id of this NodeContextEntity.
|
123
|
+
:rtype: int
|
124
|
+
"""
|
125
|
+
return self._broker_id
|
126
|
+
|
127
|
+
@broker_id.setter
|
128
|
+
def broker_id(self, broker_id):
|
129
|
+
r"""Sets the broker_id of this NodeContextEntity.
|
130
|
+
|
131
|
+
broker的ID
|
132
|
+
|
133
|
+
:param broker_id: The broker_id of this NodeContextEntity.
|
134
|
+
:type broker_id: int
|
135
|
+
"""
|
136
|
+
self._broker_id = broker_id
|
137
|
+
|
138
|
+
@property
|
139
|
+
def address(self):
|
140
|
+
r"""Gets the address of this NodeContextEntity.
|
141
|
+
|
142
|
+
地址
|
143
|
+
|
144
|
+
:return: The address of this NodeContextEntity.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._address
|
148
|
+
|
149
|
+
@address.setter
|
150
|
+
def address(self, address):
|
151
|
+
r"""Sets the address of this NodeContextEntity.
|
152
|
+
|
153
|
+
地址
|
154
|
+
|
155
|
+
:param address: The address of this NodeContextEntity.
|
156
|
+
:type address: str
|
157
|
+
"""
|
158
|
+
self._address = address
|
159
|
+
|
160
|
+
@property
|
161
|
+
def public_address(self):
|
162
|
+
r"""Gets the public_address of this NodeContextEntity.
|
163
|
+
|
164
|
+
公网地址
|
165
|
+
|
166
|
+
:return: The public_address of this NodeContextEntity.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._public_address
|
170
|
+
|
171
|
+
@public_address.setter
|
172
|
+
def public_address(self, public_address):
|
173
|
+
r"""Sets the public_address of this NodeContextEntity.
|
174
|
+
|
175
|
+
公网地址
|
176
|
+
|
177
|
+
:param public_address: The public_address of this NodeContextEntity.
|
178
|
+
:type public_address: str
|
179
|
+
"""
|
180
|
+
self._public_address = public_address
|
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, NodeContextEntity):
|
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
|
@@ -5,7 +5,7 @@ import six
|
|
5
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
6
|
|
7
7
|
|
8
|
-
class
|
8
|
+
class PlainSSLSwitchRep:
|
9
9
|
|
10
10
|
"""
|
11
11
|
Attributes:
|
@@ -17,78 +17,51 @@ class RestartInstanceRequest:
|
|
17
17
|
sensitive_list = []
|
18
18
|
|
19
19
|
openapi_types = {
|
20
|
-
'
|
21
|
-
'instance_id': 'str'
|
20
|
+
'tls_mode': 'str'
|
22
21
|
}
|
23
22
|
|
24
23
|
attribute_map = {
|
25
|
-
'
|
26
|
-
'instance_id': 'instance_id'
|
24
|
+
'tls_mode': 'tls_mode'
|
27
25
|
}
|
28
26
|
|
29
|
-
def __init__(self,
|
30
|
-
r"""
|
27
|
+
def __init__(self, tls_mode=None):
|
28
|
+
r"""PlainSSLSwitchRep
|
31
29
|
|
32
30
|
The model defined in huaweicloud sdk
|
33
31
|
|
34
|
-
:param
|
35
|
-
:type
|
36
|
-
:param instance_id: 实例ID。
|
37
|
-
:type instance_id: str
|
32
|
+
:param tls_mode: 协议模式。
|
33
|
+
:type tls_mode: str
|
38
34
|
"""
|
39
35
|
|
40
36
|
|
41
37
|
|
42
|
-
self.
|
43
|
-
self._instance_id = None
|
38
|
+
self._tls_mode = None
|
44
39
|
self.discriminator = None
|
45
40
|
|
46
|
-
|
47
|
-
|
41
|
+
if tls_mode is not None:
|
42
|
+
self.tls_mode = tls_mode
|
48
43
|
|
49
44
|
@property
|
50
|
-
def
|
51
|
-
r"""Gets the
|
45
|
+
def tls_mode(self):
|
46
|
+
r"""Gets the tls_mode of this PlainSSLSwitchRep.
|
52
47
|
|
53
|
-
|
48
|
+
协议模式。
|
54
49
|
|
55
|
-
:return: The
|
50
|
+
:return: The tls_mode of this PlainSSLSwitchRep.
|
56
51
|
:rtype: str
|
57
52
|
"""
|
58
|
-
return self.
|
53
|
+
return self._tls_mode
|
59
54
|
|
60
|
-
@
|
61
|
-
def
|
62
|
-
r"""Sets the
|
55
|
+
@tls_mode.setter
|
56
|
+
def tls_mode(self, tls_mode):
|
57
|
+
r"""Sets the tls_mode of this PlainSSLSwitchRep.
|
63
58
|
|
64
|
-
|
59
|
+
协议模式。
|
65
60
|
|
66
|
-
:param
|
67
|
-
:type
|
61
|
+
:param tls_mode: The tls_mode of this PlainSSLSwitchRep.
|
62
|
+
:type tls_mode: str
|
68
63
|
"""
|
69
|
-
self.
|
70
|
-
|
71
|
-
@property
|
72
|
-
def instance_id(self):
|
73
|
-
r"""Gets the instance_id of this RestartInstanceRequest.
|
74
|
-
|
75
|
-
实例ID。
|
76
|
-
|
77
|
-
:return: The instance_id of this RestartInstanceRequest.
|
78
|
-
:rtype: str
|
79
|
-
"""
|
80
|
-
return self._instance_id
|
81
|
-
|
82
|
-
@instance_id.setter
|
83
|
-
def instance_id(self, instance_id):
|
84
|
-
r"""Sets the instance_id of this RestartInstanceRequest.
|
85
|
-
|
86
|
-
实例ID。
|
87
|
-
|
88
|
-
:param instance_id: The instance_id of this RestartInstanceRequest.
|
89
|
-
:type instance_id: str
|
90
|
-
"""
|
91
|
-
self._instance_id = instance_id
|
64
|
+
self._tls_mode = tls_mode
|
92
65
|
|
93
66
|
def to_dict(self):
|
94
67
|
"""Returns the model properties as a dict"""
|
@@ -132,7 +105,7 @@ class RestartInstanceRequest:
|
|
132
105
|
|
133
106
|
def __eq__(self, other):
|
134
107
|
"""Returns true if both objects are equal"""
|
135
|
-
if not isinstance(other,
|
108
|
+
if not isinstance(other, PlainSSLSwitchRep):
|
136
109
|
return False
|
137
110
|
|
138
111
|
return self.__dict__ == other.__dict__
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SendMessageProperties:
|
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
|
+
'name': 'str',
|
21
|
+
'value': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'name': 'name',
|
26
|
+
'value': 'value'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, name=None, value=None):
|
30
|
+
r"""SendMessageProperties
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param name: **参数解释**: 特性名称。 **取值范围**: 不涉及。
|
35
|
+
:type name: str
|
36
|
+
:param value: **参数解释**: 特性值。 **取值范围**: 不涉及。
|
37
|
+
:type value: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._name = None
|
43
|
+
self._value = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if name is not None:
|
47
|
+
self.name = name
|
48
|
+
if value is not None:
|
49
|
+
self.value = value
|
50
|
+
|
51
|
+
@property
|
52
|
+
def name(self):
|
53
|
+
r"""Gets the name of this SendMessageProperties.
|
54
|
+
|
55
|
+
**参数解释**: 特性名称。 **取值范围**: 不涉及。
|
56
|
+
|
57
|
+
:return: The name of this SendMessageProperties.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._name
|
61
|
+
|
62
|
+
@name.setter
|
63
|
+
def name(self, name):
|
64
|
+
r"""Sets the name of this SendMessageProperties.
|
65
|
+
|
66
|
+
**参数解释**: 特性名称。 **取值范围**: 不涉及。
|
67
|
+
|
68
|
+
:param name: The name of this SendMessageProperties.
|
69
|
+
:type name: str
|
70
|
+
"""
|
71
|
+
self._name = name
|
72
|
+
|
73
|
+
@property
|
74
|
+
def value(self):
|
75
|
+
r"""Gets the value of this SendMessageProperties.
|
76
|
+
|
77
|
+
**参数解释**: 特性值。 **取值范围**: 不涉及。
|
78
|
+
|
79
|
+
:return: The value of this SendMessageProperties.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._value
|
83
|
+
|
84
|
+
@value.setter
|
85
|
+
def value(self, value):
|
86
|
+
r"""Sets the value of this SendMessageProperties.
|
87
|
+
|
88
|
+
**参数解释**: 特性值。 **取值范围**: 不涉及。
|
89
|
+
|
90
|
+
:param value: The value of this SendMessageProperties.
|
91
|
+
:type value: str
|
92
|
+
"""
|
93
|
+
self._value = value
|
94
|
+
|
95
|
+
def to_dict(self):
|
96
|
+
"""Returns the model properties as a dict"""
|
97
|
+
result = {}
|
98
|
+
|
99
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
100
|
+
value = getattr(self, attr)
|
101
|
+
if isinstance(value, list):
|
102
|
+
result[attr] = list(map(
|
103
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
104
|
+
value
|
105
|
+
))
|
106
|
+
elif hasattr(value, "to_dict"):
|
107
|
+
result[attr] = value.to_dict()
|
108
|
+
elif isinstance(value, dict):
|
109
|
+
result[attr] = dict(map(
|
110
|
+
lambda item: (item[0], item[1].to_dict())
|
111
|
+
if hasattr(item[1], "to_dict") else item,
|
112
|
+
value.items()
|
113
|
+
))
|
114
|
+
else:
|
115
|
+
if attr in self.sensitive_list:
|
116
|
+
result[attr] = "****"
|
117
|
+
else:
|
118
|
+
result[attr] = value
|
119
|
+
|
120
|
+
return result
|
121
|
+
|
122
|
+
def to_str(self):
|
123
|
+
"""Returns the string representation of the model"""
|
124
|
+
import simplejson as json
|
125
|
+
if six.PY2:
|
126
|
+
import sys
|
127
|
+
reload(sys)
|
128
|
+
sys.setdefaultencoding("utf-8")
|
129
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
130
|
+
|
131
|
+
def __repr__(self):
|
132
|
+
"""For `print`"""
|
133
|
+
return self.to_str()
|
134
|
+
|
135
|
+
def __eq__(self, other):
|
136
|
+
"""Returns true if both objects are equal"""
|
137
|
+
if not isinstance(other, SendMessageProperties):
|
138
|
+
return False
|
139
|
+
|
140
|
+
return self.__dict__ == other.__dict__
|
141
|
+
|
142
|
+
def __ne__(self, other):
|
143
|
+
"""Returns true if both objects are not equal"""
|
144
|
+
return not self == other
|