huaweicloudsdkrocketmq 3.1.70__py2.py3-none-any.whl → 3.1.71__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.
@@ -91,6 +91,7 @@ from huaweicloudsdkrocketmq.v2.model.message import Message
91
91
  from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList
92
92
  from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq
93
93
  from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask
94
+ from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq
94
95
  from huaweicloudsdkrocketmq.v2.model.queue import Queue
95
96
  from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq
96
97
  from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_req import ResetConsumeOffsetReq
@@ -100,6 +101,8 @@ from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_response import ResetC
100
101
  from huaweicloudsdkrocketmq.v2.model.resize_engine_instance_req import ResizeEngineInstanceReq
101
102
  from huaweicloudsdkrocketmq.v2.model.resize_instance_request import ResizeInstanceRequest
102
103
  from huaweicloudsdkrocketmq.v2.model.resize_instance_response import ResizeInstanceResponse
104
+ from huaweicloudsdkrocketmq.v2.model.rocket_mq_config_req import RocketMQConfigReq
105
+ from huaweicloudsdkrocketmq.v2.model.rocket_mq_config_resp import RocketMQConfigResp
103
106
  from huaweicloudsdkrocketmq.v2.model.rocket_mq_extend_product_info_entity import RocketMQExtendProductInfoEntity
104
107
  from huaweicloudsdkrocketmq.v2.model.rocket_mq_extend_product_ios_entity import RocketMQExtendProductIosEntity
105
108
  from huaweicloudsdkrocketmq.v2.model.rocket_mq_extend_product_properties_entity import RocketMQExtendProductPropertiesEntity
@@ -119,6 +122,8 @@ from huaweicloudsdkrocketmq.v2.model.show_instance_resp import ShowInstanceResp
119
122
  from huaweicloudsdkrocketmq.v2.model.show_instance_response import ShowInstanceResponse
120
123
  from huaweicloudsdkrocketmq.v2.model.show_one_topic_request import ShowOneTopicRequest
121
124
  from huaweicloudsdkrocketmq.v2.model.show_one_topic_response import ShowOneTopicResponse
125
+ from huaweicloudsdkrocketmq.v2.model.show_rocket_mq_configs_request import ShowRocketMqConfigsRequest
126
+ from huaweicloudsdkrocketmq.v2.model.show_rocket_mq_configs_response import ShowRocketMqConfigsResponse
122
127
  from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_request import ShowRocketmqProjectTagsRequest
123
128
  from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_response import ShowRocketmqProjectTagsResponse
124
129
  from huaweicloudsdkrocketmq.v2.model.show_rocketmq_tags_request import ShowRocketmqTagsRequest
@@ -140,6 +145,8 @@ from huaweicloudsdkrocketmq.v2.model.update_consumer_group_response import Updat
140
145
  from huaweicloudsdkrocketmq.v2.model.update_instance_req import UpdateInstanceReq
141
146
  from huaweicloudsdkrocketmq.v2.model.update_instance_request import UpdateInstanceRequest
142
147
  from huaweicloudsdkrocketmq.v2.model.update_instance_response import UpdateInstanceResponse
148
+ from huaweicloudsdkrocketmq.v2.model.update_rocket_mq_configs_request import UpdateRocketMqConfigsRequest
149
+ from huaweicloudsdkrocketmq.v2.model.update_rocket_mq_configs_response import UpdateRocketMqConfigsResponse
143
150
  from huaweicloudsdkrocketmq.v2.model.update_topic_req import UpdateTopicReq
144
151
  from huaweicloudsdkrocketmq.v2.model.update_topic_request import UpdateTopicRequest
145
152
  from huaweicloudsdkrocketmq.v2.model.update_topic_response import UpdateTopicResponse
@@ -89,6 +89,7 @@ from huaweicloudsdkrocketmq.v2.model.message import Message
89
89
  from huaweicloudsdkrocketmq.v2.model.message_property_list import MessagePropertyList
90
90
  from huaweicloudsdkrocketmq.v2.model.metadata_delete_req import MetadataDeleteReq
91
91
  from huaweicloudsdkrocketmq.v2.model.metadata_task import MetadataTask
92
+ from huaweicloudsdkrocketmq.v2.model.modify_config_req import ModifyConfigReq
92
93
  from huaweicloudsdkrocketmq.v2.model.queue import Queue
93
94
  from huaweicloudsdkrocketmq.v2.model.resend_req import ResendReq
94
95
  from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_req import ResetConsumeOffsetReq
@@ -98,6 +99,8 @@ from huaweicloudsdkrocketmq.v2.model.reset_consume_offset_response import ResetC
98
99
  from huaweicloudsdkrocketmq.v2.model.resize_engine_instance_req import ResizeEngineInstanceReq
99
100
  from huaweicloudsdkrocketmq.v2.model.resize_instance_request import ResizeInstanceRequest
100
101
  from huaweicloudsdkrocketmq.v2.model.resize_instance_response import ResizeInstanceResponse
102
+ from huaweicloudsdkrocketmq.v2.model.rocket_mq_config_req import RocketMQConfigReq
103
+ from huaweicloudsdkrocketmq.v2.model.rocket_mq_config_resp import RocketMQConfigResp
101
104
  from huaweicloudsdkrocketmq.v2.model.rocket_mq_extend_product_info_entity import RocketMQExtendProductInfoEntity
102
105
  from huaweicloudsdkrocketmq.v2.model.rocket_mq_extend_product_ios_entity import RocketMQExtendProductIosEntity
103
106
  from huaweicloudsdkrocketmq.v2.model.rocket_mq_extend_product_properties_entity import RocketMQExtendProductPropertiesEntity
@@ -117,6 +120,8 @@ from huaweicloudsdkrocketmq.v2.model.show_instance_resp import ShowInstanceResp
117
120
  from huaweicloudsdkrocketmq.v2.model.show_instance_response import ShowInstanceResponse
118
121
  from huaweicloudsdkrocketmq.v2.model.show_one_topic_request import ShowOneTopicRequest
119
122
  from huaweicloudsdkrocketmq.v2.model.show_one_topic_response import ShowOneTopicResponse
123
+ from huaweicloudsdkrocketmq.v2.model.show_rocket_mq_configs_request import ShowRocketMqConfigsRequest
124
+ from huaweicloudsdkrocketmq.v2.model.show_rocket_mq_configs_response import ShowRocketMqConfigsResponse
120
125
  from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_request import ShowRocketmqProjectTagsRequest
121
126
  from huaweicloudsdkrocketmq.v2.model.show_rocketmq_project_tags_response import ShowRocketmqProjectTagsResponse
122
127
  from huaweicloudsdkrocketmq.v2.model.show_rocketmq_tags_request import ShowRocketmqTagsRequest
@@ -138,6 +143,8 @@ from huaweicloudsdkrocketmq.v2.model.update_consumer_group_response import Updat
138
143
  from huaweicloudsdkrocketmq.v2.model.update_instance_req import UpdateInstanceReq
139
144
  from huaweicloudsdkrocketmq.v2.model.update_instance_request import UpdateInstanceRequest
140
145
  from huaweicloudsdkrocketmq.v2.model.update_instance_response import UpdateInstanceResponse
146
+ from huaweicloudsdkrocketmq.v2.model.update_rocket_mq_configs_request import UpdateRocketMqConfigsRequest
147
+ from huaweicloudsdkrocketmq.v2.model.update_rocket_mq_configs_response import UpdateRocketMqConfigsResponse
141
148
  from huaweicloudsdkrocketmq.v2.model.update_topic_req import UpdateTopicReq
142
149
  from huaweicloudsdkrocketmq.v2.model.update_topic_request import UpdateTopicRequest
143
150
  from huaweicloudsdkrocketmq.v2.model.update_topic_response import UpdateTopicResponse
@@ -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 ModifyConfigReq:
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
+ 'rocketmq_configs': 'list[RocketMQConfigReq]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'rocketmq_configs': 'rocketmq_configs'
25
+ }
26
+
27
+ def __init__(self, rocketmq_configs=None):
28
+ """ModifyConfigReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param rocketmq_configs: RocketMQ配置。
33
+ :type rocketmq_configs: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQConfigReq`]
34
+ """
35
+
36
+
37
+
38
+ self._rocketmq_configs = None
39
+ self.discriminator = None
40
+
41
+ if rocketmq_configs is not None:
42
+ self.rocketmq_configs = rocketmq_configs
43
+
44
+ @property
45
+ def rocketmq_configs(self):
46
+ """Gets the rocketmq_configs of this ModifyConfigReq.
47
+
48
+ RocketMQ配置。
49
+
50
+ :return: The rocketmq_configs of this ModifyConfigReq.
51
+ :rtype: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQConfigReq`]
52
+ """
53
+ return self._rocketmq_configs
54
+
55
+ @rocketmq_configs.setter
56
+ def rocketmq_configs(self, rocketmq_configs):
57
+ """Sets the rocketmq_configs of this ModifyConfigReq.
58
+
59
+ RocketMQ配置。
60
+
61
+ :param rocketmq_configs: The rocketmq_configs of this ModifyConfigReq.
62
+ :type rocketmq_configs: list[:class:`huaweicloudsdkrocketmq.v2.RocketMQConfigReq`]
63
+ """
64
+ self._rocketmq_configs = rocketmq_configs
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, ModifyConfigReq):
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,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RocketMQConfigReq:
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
+ """RocketMQConfigReq
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param name: RocketMQ配置名称
35
+ :type name: str
36
+ :param value: RocketMQ配置目标值
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
+ """Gets the name of this RocketMQConfigReq.
54
+
55
+ RocketMQ配置名称
56
+
57
+ :return: The name of this RocketMQConfigReq.
58
+ :rtype: str
59
+ """
60
+ return self._name
61
+
62
+ @name.setter
63
+ def name(self, name):
64
+ """Sets the name of this RocketMQConfigReq.
65
+
66
+ RocketMQ配置名称
67
+
68
+ :param name: The name of this RocketMQConfigReq.
69
+ :type name: str
70
+ """
71
+ self._name = name
72
+
73
+ @property
74
+ def value(self):
75
+ """Gets the value of this RocketMQConfigReq.
76
+
77
+ RocketMQ配置目标值
78
+
79
+ :return: The value of this RocketMQConfigReq.
80
+ :rtype: str
81
+ """
82
+ return self._value
83
+
84
+ @value.setter
85
+ def value(self, value):
86
+ """Sets the value of this RocketMQConfigReq.
87
+
88
+ RocketMQ配置目标值
89
+
90
+ :param value: The value of this RocketMQConfigReq.
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, RocketMQConfigReq):
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
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RocketMQConfigResp:
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
+ 'config_type': 'str',
23
+ 'default_value': 'str',
24
+ 'valid_values': 'str',
25
+ 'value_type': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'name': 'name',
30
+ 'value': 'value',
31
+ 'config_type': 'config_type',
32
+ 'default_value': 'default_value',
33
+ 'valid_values': 'valid_values',
34
+ 'value_type': 'value_type'
35
+ }
36
+
37
+ def __init__(self, name=None, value=None, config_type=None, default_value=None, valid_values=None, value_type=None):
38
+ """RocketMQConfigResp
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param name: RocketMQ配置名称
43
+ :type name: str
44
+ :param value: RocketMQ配置当前值
45
+ :type value: str
46
+ :param config_type: RocketMQ配置的类型
47
+ :type config_type: str
48
+ :param default_value: RocketMQ配置的默认值
49
+ :type default_value: str
50
+ :param valid_values: RocketMQ配置取值的范围
51
+ :type valid_values: str
52
+ :param value_type: RocketMQ配置值的类型
53
+ :type value_type: str
54
+ """
55
+
56
+
57
+
58
+ self._name = None
59
+ self._value = None
60
+ self._config_type = None
61
+ self._default_value = None
62
+ self._valid_values = None
63
+ self._value_type = None
64
+ self.discriminator = None
65
+
66
+ if name is not None:
67
+ self.name = name
68
+ if value is not None:
69
+ self.value = value
70
+ if config_type is not None:
71
+ self.config_type = config_type
72
+ if default_value is not None:
73
+ self.default_value = default_value
74
+ if valid_values is not None:
75
+ self.valid_values = valid_values
76
+ if value_type is not None:
77
+ self.value_type = value_type
78
+
79
+ @property
80
+ def name(self):
81
+ """Gets the name of this RocketMQConfigResp.
82
+
83
+ RocketMQ配置名称
84
+
85
+ :return: The name of this RocketMQConfigResp.
86
+ :rtype: str
87
+ """
88
+ return self._name
89
+
90
+ @name.setter
91
+ def name(self, name):
92
+ """Sets the name of this RocketMQConfigResp.
93
+
94
+ RocketMQ配置名称
95
+
96
+ :param name: The name of this RocketMQConfigResp.
97
+ :type name: str
98
+ """
99
+ self._name = name
100
+
101
+ @property
102
+ def value(self):
103
+ """Gets the value of this RocketMQConfigResp.
104
+
105
+ RocketMQ配置当前值
106
+
107
+ :return: The value of this RocketMQConfigResp.
108
+ :rtype: str
109
+ """
110
+ return self._value
111
+
112
+ @value.setter
113
+ def value(self, value):
114
+ """Sets the value of this RocketMQConfigResp.
115
+
116
+ RocketMQ配置当前值
117
+
118
+ :param value: The value of this RocketMQConfigResp.
119
+ :type value: str
120
+ """
121
+ self._value = value
122
+
123
+ @property
124
+ def config_type(self):
125
+ """Gets the config_type of this RocketMQConfigResp.
126
+
127
+ RocketMQ配置的类型
128
+
129
+ :return: The config_type of this RocketMQConfigResp.
130
+ :rtype: str
131
+ """
132
+ return self._config_type
133
+
134
+ @config_type.setter
135
+ def config_type(self, config_type):
136
+ """Sets the config_type of this RocketMQConfigResp.
137
+
138
+ RocketMQ配置的类型
139
+
140
+ :param config_type: The config_type of this RocketMQConfigResp.
141
+ :type config_type: str
142
+ """
143
+ self._config_type = config_type
144
+
145
+ @property
146
+ def default_value(self):
147
+ """Gets the default_value of this RocketMQConfigResp.
148
+
149
+ RocketMQ配置的默认值
150
+
151
+ :return: The default_value of this RocketMQConfigResp.
152
+ :rtype: str
153
+ """
154
+ return self._default_value
155
+
156
+ @default_value.setter
157
+ def default_value(self, default_value):
158
+ """Sets the default_value of this RocketMQConfigResp.
159
+
160
+ RocketMQ配置的默认值
161
+
162
+ :param default_value: The default_value of this RocketMQConfigResp.
163
+ :type default_value: str
164
+ """
165
+ self._default_value = default_value
166
+
167
+ @property
168
+ def valid_values(self):
169
+ """Gets the valid_values of this RocketMQConfigResp.
170
+
171
+ RocketMQ配置取值的范围
172
+
173
+ :return: The valid_values of this RocketMQConfigResp.
174
+ :rtype: str
175
+ """
176
+ return self._valid_values
177
+
178
+ @valid_values.setter
179
+ def valid_values(self, valid_values):
180
+ """Sets the valid_values of this RocketMQConfigResp.
181
+
182
+ RocketMQ配置取值的范围
183
+
184
+ :param valid_values: The valid_values of this RocketMQConfigResp.
185
+ :type valid_values: str
186
+ """
187
+ self._valid_values = valid_values
188
+
189
+ @property
190
+ def value_type(self):
191
+ """Gets the value_type of this RocketMQConfigResp.
192
+
193
+ RocketMQ配置值的类型
194
+
195
+ :return: The value_type of this RocketMQConfigResp.
196
+ :rtype: str
197
+ """
198
+ return self._value_type
199
+
200
+ @value_type.setter
201
+ def value_type(self, value_type):
202
+ """Sets the value_type of this RocketMQConfigResp.
203
+
204
+ RocketMQ配置值的类型
205
+
206
+ :param value_type: The value_type of this RocketMQConfigResp.
207
+ :type value_type: str
208
+ """
209
+ self._value_type = value_type
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, RocketMQConfigResp):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowRocketMqConfigsRequest:
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
+ """ShowRocketMqConfigsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param instance_id: 实例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
+ """Gets the instance_id of this ShowRocketMqConfigsRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this ShowRocketMqConfigsRequest.
50
+ :rtype: str
51
+ """
52
+ return self._instance_id
53
+
54
+ @instance_id.setter
55
+ def instance_id(self, instance_id):
56
+ """Sets the instance_id of this ShowRocketMqConfigsRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this ShowRocketMqConfigsRequest.
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, ShowRocketMqConfigsRequest):
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