huaweicloudsdkrocketmq 3.1.70__py2.py3-none-any.whl → 3.1.72__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 +14 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +14 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_req.py +260 -0
- huaweicloudsdkrocketmq/v2/model/create_rocket_mq_migration_task_request.py +5 -9
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_binding_metadata.py +231 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_exchange_metadata.py +202 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_queue_metadata.py +173 -0
- huaweicloudsdkrocketmq/v2/model/migration_rabbit_vhost_metadata.py +115 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_subscription_group.py +318 -0
- huaweicloudsdkrocketmq/v2/model/migration_rocket_mq_topic_config.py +289 -0
- huaweicloudsdkrocketmq/v2/model/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_request.py +114 -0
- huaweicloudsdkrocketmq/v2/model/show_rocket_mq_configs_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/region/rocketmq_region.py +3 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +132 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +132 -0
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/RECORD +25 -11
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.70.dist-info → huaweicloudsdkrocketmq-3.1.72.dist-info}/top_level.txt +0 -0
@@ -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
|