huaweicloudsdkrocketmq 3.1.151__py2.py3-none-any.whl → 3.1.152__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. huaweicloudsdkrocketmq/v2/__init__.py +26 -2
  2. huaweicloudsdkrocketmq/v2/model/__init__.py +26 -2
  3. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_req.py +115 -0
  4. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_request.py +167 -0
  5. huaweicloudsdkrocketmq/v2/model/batch_delete_diagnosis_report_response.py +116 -0
  6. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_request.py +167 -0
  7. huaweicloudsdkrocketmq/v2/model/create_diagnosis_task_response.py +116 -0
  8. huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +88 -1
  9. huaweicloudsdkrocketmq/v2/model/create_topic_or_batch_delete_topic_req.py +3 -3
  10. huaweicloudsdkrocketmq/v2/model/create_topic_req.py +3 -3
  11. huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py} +31 -63
  12. huaweicloudsdkrocketmq/v2/model/delete_background_task_response.py +85 -0
  13. huaweicloudsdkrocketmq/v2/model/delete_consumer_group_response.py +32 -1
  14. huaweicloudsdkrocketmq/v2/model/delete_topic_response.py +32 -1
  15. huaweicloudsdkrocketmq/v2/model/diagnosis_rep.py +144 -0
  16. huaweicloudsdkrocketmq/v2/model/diagnosis_report_resp.py +289 -0
  17. huaweicloudsdkrocketmq/v2/model/list_background_tasks_request.py +230 -0
  18. huaweicloudsdkrocketmq/v2/model/list_background_tasks_resp_tasks.py +318 -0
  19. huaweicloudsdkrocketmq/v2/model/list_background_tasks_response.py +145 -0
  20. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_request.py +200 -0
  21. huaweicloudsdkrocketmq/v2/model/list_diagnosis_reports_response.py +116 -0
  22. huaweicloudsdkrocketmq/v2/model/list_messages_request.py +30 -1
  23. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_request.py +167 -0
  24. huaweicloudsdkrocketmq/v2/model/modify_instance_ssl_config_response.py +145 -0
  25. huaweicloudsdkrocketmq/v2/model/{restart_instance_request.py → plain_ssl_switch_rep.py} +23 -50
  26. huaweicloudsdkrocketmq/v2/model/send_message_properties.py +144 -0
  27. huaweicloudsdkrocketmq/v2/model/send_message_request.py +167 -0
  28. huaweicloudsdkrocketmq/v2/model/send_message_resp.py +289 -0
  29. huaweicloudsdkrocketmq/v2/model/send_message_response.py +290 -0
  30. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_request.py +142 -0
  31. huaweicloudsdkrocketmq/v2/model/show_diagnosis_report_response.py +435 -0
  32. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_request.py +142 -0
  33. huaweicloudsdkrocketmq/v2/model/show_diagnosis_stack_response.py +145 -0
  34. huaweicloudsdkrocketmq/v2/model/update_consumer_group_response.py +32 -1
  35. huaweicloudsdkrocketmq/v2/model/update_topic_queue_entity.py +173 -0
  36. huaweicloudsdkrocketmq/v2/model/update_topic_req.py +70 -12
  37. huaweicloudsdkrocketmq/v2/model/update_topic_response.py +32 -1
  38. huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +580 -24
  39. huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
  40. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
  41. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +44 -20
  42. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
  43. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
  44. {huaweicloudsdkrocketmq-3.1.151.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,200 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListDiagnosisReportsRequest:
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
+ 'offset': 'int',
23
+ 'limit': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'engine': 'engine',
28
+ 'instance_id': 'instance_id',
29
+ 'offset': 'offset',
30
+ 'limit': 'limit'
31
+ }
32
+
33
+ def __init__(self, engine=None, instance_id=None, offset=None, limit=None):
34
+ r"""ListDiagnosisReportsRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param engine: **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
39
+ :type engine: str
40
+ :param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
41
+ :type instance_id: str
42
+ :param offset: **参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
43
+ :type offset: int
44
+ :param limit: **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
45
+ :type limit: int
46
+ """
47
+
48
+
49
+
50
+ self._engine = None
51
+ self._instance_id = None
52
+ self._offset = None
53
+ self._limit = None
54
+ self.discriminator = None
55
+
56
+ self.engine = engine
57
+ self.instance_id = instance_id
58
+ if offset is not None:
59
+ self.offset = offset
60
+ if limit is not None:
61
+ self.limit = limit
62
+
63
+ @property
64
+ def engine(self):
65
+ r"""Gets the engine of this ListDiagnosisReportsRequest.
66
+
67
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
68
+
69
+ :return: The engine of this ListDiagnosisReportsRequest.
70
+ :rtype: str
71
+ """
72
+ return self._engine
73
+
74
+ @engine.setter
75
+ def engine(self, engine):
76
+ r"""Sets the engine of this ListDiagnosisReportsRequest.
77
+
78
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
79
+
80
+ :param engine: The engine of this ListDiagnosisReportsRequest.
81
+ :type engine: str
82
+ """
83
+ self._engine = engine
84
+
85
+ @property
86
+ def instance_id(self):
87
+ r"""Gets the instance_id of this ListDiagnosisReportsRequest.
88
+
89
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
90
+
91
+ :return: The instance_id of this ListDiagnosisReportsRequest.
92
+ :rtype: str
93
+ """
94
+ return self._instance_id
95
+
96
+ @instance_id.setter
97
+ def instance_id(self, instance_id):
98
+ r"""Sets the instance_id of this ListDiagnosisReportsRequest.
99
+
100
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
101
+
102
+ :param instance_id: The instance_id of this ListDiagnosisReportsRequest.
103
+ :type instance_id: str
104
+ """
105
+ self._instance_id = instance_id
106
+
107
+ @property
108
+ def offset(self):
109
+ r"""Gets the offset of this ListDiagnosisReportsRequest.
110
+
111
+ **参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
112
+
113
+ :return: The offset of this ListDiagnosisReportsRequest.
114
+ :rtype: int
115
+ """
116
+ return self._offset
117
+
118
+ @offset.setter
119
+ def offset(self, offset):
120
+ r"""Sets the offset of this ListDiagnosisReportsRequest.
121
+
122
+ **参数解释**: 偏移量,表示从此偏移量开始查询。 **约束限制**: 不涉及。 **取值范围**: 大于等于0。 **默认取值**: 不涉及。
123
+
124
+ :param offset: The offset of this ListDiagnosisReportsRequest.
125
+ :type offset: int
126
+ """
127
+ self._offset = offset
128
+
129
+ @property
130
+ def limit(self):
131
+ r"""Gets the limit of this ListDiagnosisReportsRequest.
132
+
133
+ **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
134
+
135
+ :return: The limit of this ListDiagnosisReportsRequest.
136
+ :rtype: int
137
+ """
138
+ return self._limit
139
+
140
+ @limit.setter
141
+ def limit(self, limit):
142
+ r"""Sets the limit of this ListDiagnosisReportsRequest.
143
+
144
+ **参数解释**: 查询数量。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
145
+
146
+ :param limit: The limit of this ListDiagnosisReportsRequest.
147
+ :type limit: int
148
+ """
149
+ self._limit = limit
150
+
151
+ def to_dict(self):
152
+ """Returns the model properties as a dict"""
153
+ result = {}
154
+
155
+ for attr, _ in six.iteritems(self.openapi_types):
156
+ value = getattr(self, attr)
157
+ if isinstance(value, list):
158
+ result[attr] = list(map(
159
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
160
+ value
161
+ ))
162
+ elif hasattr(value, "to_dict"):
163
+ result[attr] = value.to_dict()
164
+ elif isinstance(value, dict):
165
+ result[attr] = dict(map(
166
+ lambda item: (item[0], item[1].to_dict())
167
+ if hasattr(item[1], "to_dict") else item,
168
+ value.items()
169
+ ))
170
+ else:
171
+ if attr in self.sensitive_list:
172
+ result[attr] = "****"
173
+ else:
174
+ result[attr] = value
175
+
176
+ return result
177
+
178
+ def to_str(self):
179
+ """Returns the string representation of the model"""
180
+ import simplejson as json
181
+ if six.PY2:
182
+ import sys
183
+ reload(sys)
184
+ sys.setdefaultencoding("utf-8")
185
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
186
+
187
+ def __repr__(self):
188
+ """For `print`"""
189
+ return self.to_str()
190
+
191
+ def __eq__(self, other):
192
+ """Returns true if both objects are equal"""
193
+ if not isinstance(other, ListDiagnosisReportsRequest):
194
+ return False
195
+
196
+ return self.__dict__ == other.__dict__
197
+
198
+ def __ne__(self, other):
199
+ """Returns true if both objects are not equal"""
200
+ 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 ListDiagnosisReportsResponse(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
+ 'diagnosis_report_list': 'list[DiagnosisReportResp]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'diagnosis_report_list': 'diagnosis_report_list'
26
+ }
27
+
28
+ def __init__(self, diagnosis_report_list=None):
29
+ r"""ListDiagnosisReportsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param diagnosis_report_list: **参数解释**: 诊断报告列表。 **取值范围**: 不涉及。
34
+ :type diagnosis_report_list: list[:class:`huaweicloudsdkrocketmq.v2.DiagnosisReportResp`]
35
+ """
36
+
37
+ super(ListDiagnosisReportsResponse, self).__init__()
38
+
39
+ self._diagnosis_report_list = None
40
+ self.discriminator = None
41
+
42
+ if diagnosis_report_list is not None:
43
+ self.diagnosis_report_list = diagnosis_report_list
44
+
45
+ @property
46
+ def diagnosis_report_list(self):
47
+ r"""Gets the diagnosis_report_list of this ListDiagnosisReportsResponse.
48
+
49
+ **参数解释**: 诊断报告列表。 **取值范围**: 不涉及。
50
+
51
+ :return: The diagnosis_report_list of this ListDiagnosisReportsResponse.
52
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.DiagnosisReportResp`]
53
+ """
54
+ return self._diagnosis_report_list
55
+
56
+ @diagnosis_report_list.setter
57
+ def diagnosis_report_list(self, diagnosis_report_list):
58
+ r"""Sets the diagnosis_report_list of this ListDiagnosisReportsResponse.
59
+
60
+ **参数解释**: 诊断报告列表。 **取值范围**: 不涉及。
61
+
62
+ :param diagnosis_report_list: The diagnosis_report_list of this ListDiagnosisReportsResponse.
63
+ :type diagnosis_report_list: list[:class:`huaweicloudsdkrocketmq.v2.DiagnosisReportResp`]
64
+ """
65
+ self._diagnosis_report_list = diagnosis_report_list
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, ListDiagnosisReportsResponse):
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
@@ -20,6 +20,7 @@ class ListMessagesRequest:
20
20
  'engine': 'str',
21
21
  'instance_id': 'str',
22
22
  'topic': 'str',
23
+ 'queue': 'str',
23
24
  'limit': 'str',
24
25
  'offset': 'str',
25
26
  'key': 'str',
@@ -32,6 +33,7 @@ class ListMessagesRequest:
32
33
  'engine': 'engine',
33
34
  'instance_id': 'instance_id',
34
35
  'topic': 'topic',
36
+ 'queue': 'queue',
35
37
  'limit': 'limit',
36
38
  'offset': 'offset',
37
39
  'key': 'key',
@@ -40,7 +42,7 @@ class ListMessagesRequest:
40
42
  'msg_id': 'msg_id'
41
43
  }
42
44
 
43
- def __init__(self, engine=None, instance_id=None, topic=None, limit=None, offset=None, key=None, start_time=None, end_time=None, msg_id=None):
45
+ def __init__(self, engine=None, instance_id=None, topic=None, queue=None, limit=None, offset=None, key=None, start_time=None, end_time=None, msg_id=None):
44
46
  r"""ListMessagesRequest
45
47
 
46
48
  The model defined in huaweicloud sdk
@@ -51,6 +53,8 @@ class ListMessagesRequest:
51
53
  :type instance_id: str
52
54
  :param topic: 主题名称。
53
55
  :type topic: str
56
+ :param queue: 队列。
57
+ :type queue: str
54
58
  :param limit: 查询数量。
55
59
  :type limit: str
56
60
  :param offset: 偏移量,表示从此偏移量开始查询, offset大于等于0。
@@ -70,6 +74,7 @@ class ListMessagesRequest:
70
74
  self._engine = None
71
75
  self._instance_id = None
72
76
  self._topic = None
77
+ self._queue = None
73
78
  self._limit = None
74
79
  self._offset = None
75
80
  self._key = None
@@ -81,6 +86,8 @@ class ListMessagesRequest:
81
86
  self.engine = engine
82
87
  self.instance_id = instance_id
83
88
  self.topic = topic
89
+ if queue is not None:
90
+ self.queue = queue
84
91
  if limit is not None:
85
92
  self.limit = limit
86
93
  if offset is not None:
@@ -160,6 +167,28 @@ class ListMessagesRequest:
160
167
  """
161
168
  self._topic = topic
162
169
 
170
+ @property
171
+ def queue(self):
172
+ r"""Gets the queue of this ListMessagesRequest.
173
+
174
+ 队列。
175
+
176
+ :return: The queue of this ListMessagesRequest.
177
+ :rtype: str
178
+ """
179
+ return self._queue
180
+
181
+ @queue.setter
182
+ def queue(self, queue):
183
+ r"""Sets the queue of this ListMessagesRequest.
184
+
185
+ 队列。
186
+
187
+ :param queue: The queue of this ListMessagesRequest.
188
+ :type queue: str
189
+ """
190
+ self._queue = queue
191
+
163
192
  @property
164
193
  def limit(self):
165
194
  r"""Gets the limit of this ListMessagesRequest.
@@ -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 ModifyInstanceSslConfigRequest:
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': 'PlainSSLSwitchRep'
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
+ r"""ModifyInstanceSslConfigRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param engine: **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type engine: str
38
+ :param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
39
+ :type instance_id: str
40
+ :param body: Body of the ModifyInstanceSslConfigRequest
41
+ :type body: :class:`huaweicloudsdkrocketmq.v2.PlainSSLSwitchRep`
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
+ r"""Gets the engine of this ModifyInstanceSslConfigRequest.
59
+
60
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
61
+
62
+ :return: The engine of this ModifyInstanceSslConfigRequest.
63
+ :rtype: str
64
+ """
65
+ return self._engine
66
+
67
+ @engine.setter
68
+ def engine(self, engine):
69
+ r"""Sets the engine of this ModifyInstanceSslConfigRequest.
70
+
71
+ **参数解释**: 引擎。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
72
+
73
+ :param engine: The engine of this ModifyInstanceSslConfigRequest.
74
+ :type engine: str
75
+ """
76
+ self._engine = engine
77
+
78
+ @property
79
+ def instance_id(self):
80
+ r"""Gets the instance_id of this ModifyInstanceSslConfigRequest.
81
+
82
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
83
+
84
+ :return: The instance_id of this ModifyInstanceSslConfigRequest.
85
+ :rtype: str
86
+ """
87
+ return self._instance_id
88
+
89
+ @instance_id.setter
90
+ def instance_id(self, instance_id):
91
+ r"""Sets the instance_id of this ModifyInstanceSslConfigRequest.
92
+
93
+ **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
94
+
95
+ :param instance_id: The instance_id of this ModifyInstanceSslConfigRequest.
96
+ :type instance_id: str
97
+ """
98
+ self._instance_id = instance_id
99
+
100
+ @property
101
+ def body(self):
102
+ r"""Gets the body of this ModifyInstanceSslConfigRequest.
103
+
104
+ :return: The body of this ModifyInstanceSslConfigRequest.
105
+ :rtype: :class:`huaweicloudsdkrocketmq.v2.PlainSSLSwitchRep`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ r"""Sets the body of this ModifyInstanceSslConfigRequest.
112
+
113
+ :param body: The body of this ModifyInstanceSslConfigRequest.
114
+ :type body: :class:`huaweicloudsdkrocketmq.v2.PlainSSLSwitchRep`
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, ModifyInstanceSslConfigRequest):
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