huaweicloudsdkrocketmq 3.1.70__py2.py3-none-any.whl → 3.1.72__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 +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,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MigrationRabbitExchangeMetadata:
|
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
|
+
'vhost': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'type': 'str',
|
23
|
+
'durable': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'vhost': 'vhost',
|
28
|
+
'name': 'name',
|
29
|
+
'type': 'type',
|
30
|
+
'durable': 'durable'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, vhost=None, name=None, type=None, durable=None):
|
34
|
+
"""MigrationRabbitExchangeMetadata
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param vhost: vhost名称。
|
39
|
+
:type vhost: str
|
40
|
+
:param name: 交换机名称。
|
41
|
+
:type name: str
|
42
|
+
:param type: 交换机类型。
|
43
|
+
:type type: str
|
44
|
+
:param durable: 是否持久化。
|
45
|
+
:type durable: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._vhost = None
|
51
|
+
self._name = None
|
52
|
+
self._type = None
|
53
|
+
self._durable = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if vhost is not None:
|
57
|
+
self.vhost = vhost
|
58
|
+
if name is not None:
|
59
|
+
self.name = name
|
60
|
+
if type is not None:
|
61
|
+
self.type = type
|
62
|
+
if durable is not None:
|
63
|
+
self.durable = durable
|
64
|
+
|
65
|
+
@property
|
66
|
+
def vhost(self):
|
67
|
+
"""Gets the vhost of this MigrationRabbitExchangeMetadata.
|
68
|
+
|
69
|
+
vhost名称。
|
70
|
+
|
71
|
+
:return: The vhost of this MigrationRabbitExchangeMetadata.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._vhost
|
75
|
+
|
76
|
+
@vhost.setter
|
77
|
+
def vhost(self, vhost):
|
78
|
+
"""Sets the vhost of this MigrationRabbitExchangeMetadata.
|
79
|
+
|
80
|
+
vhost名称。
|
81
|
+
|
82
|
+
:param vhost: The vhost of this MigrationRabbitExchangeMetadata.
|
83
|
+
:type vhost: str
|
84
|
+
"""
|
85
|
+
self._vhost = vhost
|
86
|
+
|
87
|
+
@property
|
88
|
+
def name(self):
|
89
|
+
"""Gets the name of this MigrationRabbitExchangeMetadata.
|
90
|
+
|
91
|
+
交换机名称。
|
92
|
+
|
93
|
+
:return: The name of this MigrationRabbitExchangeMetadata.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._name
|
97
|
+
|
98
|
+
@name.setter
|
99
|
+
def name(self, name):
|
100
|
+
"""Sets the name of this MigrationRabbitExchangeMetadata.
|
101
|
+
|
102
|
+
交换机名称。
|
103
|
+
|
104
|
+
:param name: The name of this MigrationRabbitExchangeMetadata.
|
105
|
+
:type name: str
|
106
|
+
"""
|
107
|
+
self._name = name
|
108
|
+
|
109
|
+
@property
|
110
|
+
def type(self):
|
111
|
+
"""Gets the type of this MigrationRabbitExchangeMetadata.
|
112
|
+
|
113
|
+
交换机类型。
|
114
|
+
|
115
|
+
:return: The type of this MigrationRabbitExchangeMetadata.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._type
|
119
|
+
|
120
|
+
@type.setter
|
121
|
+
def type(self, type):
|
122
|
+
"""Sets the type of this MigrationRabbitExchangeMetadata.
|
123
|
+
|
124
|
+
交换机类型。
|
125
|
+
|
126
|
+
:param type: The type of this MigrationRabbitExchangeMetadata.
|
127
|
+
:type type: str
|
128
|
+
"""
|
129
|
+
self._type = type
|
130
|
+
|
131
|
+
@property
|
132
|
+
def durable(self):
|
133
|
+
"""Gets the durable of this MigrationRabbitExchangeMetadata.
|
134
|
+
|
135
|
+
是否持久化。
|
136
|
+
|
137
|
+
:return: The durable of this MigrationRabbitExchangeMetadata.
|
138
|
+
:rtype: bool
|
139
|
+
"""
|
140
|
+
return self._durable
|
141
|
+
|
142
|
+
@durable.setter
|
143
|
+
def durable(self, durable):
|
144
|
+
"""Sets the durable of this MigrationRabbitExchangeMetadata.
|
145
|
+
|
146
|
+
是否持久化。
|
147
|
+
|
148
|
+
:param durable: The durable of this MigrationRabbitExchangeMetadata.
|
149
|
+
:type durable: bool
|
150
|
+
"""
|
151
|
+
self._durable = durable
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, MigrationRabbitExchangeMetadata):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
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 MigrationRabbitQueueMetadata:
|
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
|
+
'vhost': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'durable': 'bool'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'vhost': 'vhost',
|
27
|
+
'name': 'name',
|
28
|
+
'durable': 'durable'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, vhost=None, name=None, durable=None):
|
32
|
+
"""MigrationRabbitQueueMetadata
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param vhost: vhost名称。
|
37
|
+
:type vhost: str
|
38
|
+
:param name: 队列名称。
|
39
|
+
:type name: str
|
40
|
+
:param durable: 是否持久化。
|
41
|
+
:type durable: bool
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._vhost = None
|
47
|
+
self._name = None
|
48
|
+
self._durable = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if vhost is not None:
|
52
|
+
self.vhost = vhost
|
53
|
+
if name is not None:
|
54
|
+
self.name = name
|
55
|
+
if durable is not None:
|
56
|
+
self.durable = durable
|
57
|
+
|
58
|
+
@property
|
59
|
+
def vhost(self):
|
60
|
+
"""Gets the vhost of this MigrationRabbitQueueMetadata.
|
61
|
+
|
62
|
+
vhost名称。
|
63
|
+
|
64
|
+
:return: The vhost of this MigrationRabbitQueueMetadata.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._vhost
|
68
|
+
|
69
|
+
@vhost.setter
|
70
|
+
def vhost(self, vhost):
|
71
|
+
"""Sets the vhost of this MigrationRabbitQueueMetadata.
|
72
|
+
|
73
|
+
vhost名称。
|
74
|
+
|
75
|
+
:param vhost: The vhost of this MigrationRabbitQueueMetadata.
|
76
|
+
:type vhost: str
|
77
|
+
"""
|
78
|
+
self._vhost = vhost
|
79
|
+
|
80
|
+
@property
|
81
|
+
def name(self):
|
82
|
+
"""Gets the name of this MigrationRabbitQueueMetadata.
|
83
|
+
|
84
|
+
队列名称。
|
85
|
+
|
86
|
+
:return: The name of this MigrationRabbitQueueMetadata.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._name
|
90
|
+
|
91
|
+
@name.setter
|
92
|
+
def name(self, name):
|
93
|
+
"""Sets the name of this MigrationRabbitQueueMetadata.
|
94
|
+
|
95
|
+
队列名称。
|
96
|
+
|
97
|
+
:param name: The name of this MigrationRabbitQueueMetadata.
|
98
|
+
:type name: str
|
99
|
+
"""
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def durable(self):
|
104
|
+
"""Gets the durable of this MigrationRabbitQueueMetadata.
|
105
|
+
|
106
|
+
是否持久化。
|
107
|
+
|
108
|
+
:return: The durable of this MigrationRabbitQueueMetadata.
|
109
|
+
:rtype: bool
|
110
|
+
"""
|
111
|
+
return self._durable
|
112
|
+
|
113
|
+
@durable.setter
|
114
|
+
def durable(self, durable):
|
115
|
+
"""Sets the durable of this MigrationRabbitQueueMetadata.
|
116
|
+
|
117
|
+
是否持久化。
|
118
|
+
|
119
|
+
:param durable: The durable of this MigrationRabbitQueueMetadata.
|
120
|
+
:type durable: bool
|
121
|
+
"""
|
122
|
+
self._durable = durable
|
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, MigrationRabbitQueueMetadata):
|
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
|
@@ -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 MigrationRabbitVhostMetadata:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'name': 'name'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, name=None):
|
28
|
+
"""MigrationRabbitVhostMetadata
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param name: vhost名称。
|
33
|
+
:type name: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._name = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if name is not None:
|
42
|
+
self.name = name
|
43
|
+
|
44
|
+
@property
|
45
|
+
def name(self):
|
46
|
+
"""Gets the name of this MigrationRabbitVhostMetadata.
|
47
|
+
|
48
|
+
vhost名称。
|
49
|
+
|
50
|
+
:return: The name of this MigrationRabbitVhostMetadata.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._name
|
54
|
+
|
55
|
+
@name.setter
|
56
|
+
def name(self, name):
|
57
|
+
"""Sets the name of this MigrationRabbitVhostMetadata.
|
58
|
+
|
59
|
+
vhost名称。
|
60
|
+
|
61
|
+
:param name: The name of this MigrationRabbitVhostMetadata.
|
62
|
+
:type name: str
|
63
|
+
"""
|
64
|
+
self._name = name
|
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, MigrationRabbitVhostMetadata):
|
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
|