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,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateDiagnosisTaskRequest:
|
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': 'DiagnosisRep'
|
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"""CreateDiagnosisTaskRequest
|
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 CreateDiagnosisTaskRequest
|
41
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.DiagnosisRep`
|
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 CreateDiagnosisTaskRequest.
|
59
|
+
|
60
|
+
引擎。
|
61
|
+
|
62
|
+
:return: The engine of this CreateDiagnosisTaskRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._engine
|
66
|
+
|
67
|
+
@engine.setter
|
68
|
+
def engine(self, engine):
|
69
|
+
r"""Sets the engine of this CreateDiagnosisTaskRequest.
|
70
|
+
|
71
|
+
引擎。
|
72
|
+
|
73
|
+
:param engine: The engine of this CreateDiagnosisTaskRequest.
|
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 CreateDiagnosisTaskRequest.
|
81
|
+
|
82
|
+
**参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
83
|
+
|
84
|
+
:return: The instance_id of this CreateDiagnosisTaskRequest.
|
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 CreateDiagnosisTaskRequest.
|
92
|
+
|
93
|
+
**参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
94
|
+
|
95
|
+
:param instance_id: The instance_id of this CreateDiagnosisTaskRequest.
|
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 CreateDiagnosisTaskRequest.
|
103
|
+
|
104
|
+
:return: The body of this CreateDiagnosisTaskRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.DiagnosisRep`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
r"""Sets the body of this CreateDiagnosisTaskRequest.
|
112
|
+
|
113
|
+
:param body: The body of this CreateDiagnosisTaskRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.DiagnosisRep`
|
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, CreateDiagnosisTaskRequest):
|
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
|
@@ -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 CreateDiagnosisTaskResponse(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
|
+
'report_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'report_id': 'report_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, report_id=None):
|
29
|
+
r"""CreateDiagnosisTaskResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param report_id: **参数解释**: 报告ID。 **取值范围**: 不涉及。
|
34
|
+
:type report_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(CreateDiagnosisTaskResponse, self).__init__()
|
38
|
+
|
39
|
+
self._report_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if report_id is not None:
|
43
|
+
self.report_id = report_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def report_id(self):
|
47
|
+
r"""Gets the report_id of this CreateDiagnosisTaskResponse.
|
48
|
+
|
49
|
+
**参数解释**: 报告ID。 **取值范围**: 不涉及。
|
50
|
+
|
51
|
+
:return: The report_id of this CreateDiagnosisTaskResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._report_id
|
55
|
+
|
56
|
+
@report_id.setter
|
57
|
+
def report_id(self, report_id):
|
58
|
+
r"""Sets the report_id of this CreateDiagnosisTaskResponse.
|
59
|
+
|
60
|
+
**参数解释**: 报告ID。 **取值范围**: 不涉及。
|
61
|
+
|
62
|
+
:param report_id: The report_id of this CreateDiagnosisTaskResponse.
|
63
|
+
:type report_id: str
|
64
|
+
"""
|
65
|
+
self._report_id = report_id
|
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, CreateDiagnosisTaskResponse):
|
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
|
@@ -32,9 +32,12 @@ class CreateInstanceByEngineReq:
|
|
32
32
|
'enterprise_project_id': 'str',
|
33
33
|
'enable_acl': 'bool',
|
34
34
|
'ipv6_enable': 'bool',
|
35
|
+
'proxy_enable': 'bool',
|
35
36
|
'enable_publicip': 'bool',
|
36
37
|
'publicip_id': 'str',
|
37
38
|
'broker_num': 'int',
|
39
|
+
'arch_type': 'str',
|
40
|
+
'tls_mode': 'str',
|
38
41
|
'bss_param': 'BssParam'
|
39
42
|
}
|
40
43
|
|
@@ -54,13 +57,16 @@ class CreateInstanceByEngineReq:
|
|
54
57
|
'enterprise_project_id': 'enterprise_project_id',
|
55
58
|
'enable_acl': 'enable_acl',
|
56
59
|
'ipv6_enable': 'ipv6_enable',
|
60
|
+
'proxy_enable': 'proxy_enable',
|
57
61
|
'enable_publicip': 'enable_publicip',
|
58
62
|
'publicip_id': 'publicip_id',
|
59
63
|
'broker_num': 'broker_num',
|
64
|
+
'arch_type': 'arch_type',
|
65
|
+
'tls_mode': 'tls_mode',
|
60
66
|
'bss_param': 'bss_param'
|
61
67
|
}
|
62
68
|
|
63
|
-
def __init__(self, name=None, description=None, engine=None, engine_version=None, storage_space=None, vpc_id=None, subnet_id=None, security_group_id=None, available_zones=None, product_id=None, ssl_enable=None, storage_spec_code=None, enterprise_project_id=None, enable_acl=None, ipv6_enable=None, enable_publicip=None, publicip_id=None, broker_num=None, bss_param=None):
|
69
|
+
def __init__(self, name=None, description=None, engine=None, engine_version=None, storage_space=None, vpc_id=None, subnet_id=None, security_group_id=None, available_zones=None, product_id=None, ssl_enable=None, storage_spec_code=None, enterprise_project_id=None, enable_acl=None, ipv6_enable=None, proxy_enable=None, enable_publicip=None, publicip_id=None, broker_num=None, arch_type=None, tls_mode=None, bss_param=None):
|
64
70
|
r"""CreateInstanceByEngineReq
|
65
71
|
|
66
72
|
The model defined in huaweicloud sdk
|
@@ -95,12 +101,18 @@ class CreateInstanceByEngineReq:
|
|
95
101
|
:type enable_acl: bool
|
96
102
|
:param ipv6_enable: 是否支持IPv6。 - true:支持 - false:不支持
|
97
103
|
:type ipv6_enable: bool
|
104
|
+
:param proxy_enable: 是否开启Proxy功能。 - true:支持 - false:不支持
|
105
|
+
:type proxy_enable: bool
|
98
106
|
:param enable_publicip: 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启
|
99
107
|
:type enable_publicip: bool
|
100
108
|
:param publicip_id: 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。
|
101
109
|
:type publicip_id: str
|
102
110
|
:param broker_num: 代理个数。
|
103
111
|
:type broker_num: int
|
112
|
+
:param arch_type: 架构类型。
|
113
|
+
:type arch_type: str
|
114
|
+
:param tls_mode: 实例使用的安全协议。
|
115
|
+
:type tls_mode: str
|
104
116
|
:param bss_param:
|
105
117
|
:type bss_param: :class:`huaweicloudsdkrocketmq.v2.BssParam`
|
106
118
|
"""
|
@@ -122,9 +134,12 @@ class CreateInstanceByEngineReq:
|
|
122
134
|
self._enterprise_project_id = None
|
123
135
|
self._enable_acl = None
|
124
136
|
self._ipv6_enable = None
|
137
|
+
self._proxy_enable = None
|
125
138
|
self._enable_publicip = None
|
126
139
|
self._publicip_id = None
|
127
140
|
self._broker_num = None
|
141
|
+
self._arch_type = None
|
142
|
+
self._tls_mode = None
|
128
143
|
self._bss_param = None
|
129
144
|
self.discriminator = None
|
130
145
|
|
@@ -148,11 +163,17 @@ class CreateInstanceByEngineReq:
|
|
148
163
|
self.enable_acl = enable_acl
|
149
164
|
if ipv6_enable is not None:
|
150
165
|
self.ipv6_enable = ipv6_enable
|
166
|
+
if proxy_enable is not None:
|
167
|
+
self.proxy_enable = proxy_enable
|
151
168
|
if enable_publicip is not None:
|
152
169
|
self.enable_publicip = enable_publicip
|
153
170
|
if publicip_id is not None:
|
154
171
|
self.publicip_id = publicip_id
|
155
172
|
self.broker_num = broker_num
|
173
|
+
if arch_type is not None:
|
174
|
+
self.arch_type = arch_type
|
175
|
+
if tls_mode is not None:
|
176
|
+
self.tls_mode = tls_mode
|
156
177
|
if bss_param is not None:
|
157
178
|
self.bss_param = bss_param
|
158
179
|
|
@@ -486,6 +507,28 @@ class CreateInstanceByEngineReq:
|
|
486
507
|
"""
|
487
508
|
self._ipv6_enable = ipv6_enable
|
488
509
|
|
510
|
+
@property
|
511
|
+
def proxy_enable(self):
|
512
|
+
r"""Gets the proxy_enable of this CreateInstanceByEngineReq.
|
513
|
+
|
514
|
+
是否开启Proxy功能。 - true:支持 - false:不支持
|
515
|
+
|
516
|
+
:return: The proxy_enable of this CreateInstanceByEngineReq.
|
517
|
+
:rtype: bool
|
518
|
+
"""
|
519
|
+
return self._proxy_enable
|
520
|
+
|
521
|
+
@proxy_enable.setter
|
522
|
+
def proxy_enable(self, proxy_enable):
|
523
|
+
r"""Sets the proxy_enable of this CreateInstanceByEngineReq.
|
524
|
+
|
525
|
+
是否开启Proxy功能。 - true:支持 - false:不支持
|
526
|
+
|
527
|
+
:param proxy_enable: The proxy_enable of this CreateInstanceByEngineReq.
|
528
|
+
:type proxy_enable: bool
|
529
|
+
"""
|
530
|
+
self._proxy_enable = proxy_enable
|
531
|
+
|
489
532
|
@property
|
490
533
|
def enable_publicip(self):
|
491
534
|
r"""Gets the enable_publicip of this CreateInstanceByEngineReq.
|
@@ -552,6 +595,50 @@ class CreateInstanceByEngineReq:
|
|
552
595
|
"""
|
553
596
|
self._broker_num = broker_num
|
554
597
|
|
598
|
+
@property
|
599
|
+
def arch_type(self):
|
600
|
+
r"""Gets the arch_type of this CreateInstanceByEngineReq.
|
601
|
+
|
602
|
+
架构类型。
|
603
|
+
|
604
|
+
:return: The arch_type of this CreateInstanceByEngineReq.
|
605
|
+
:rtype: str
|
606
|
+
"""
|
607
|
+
return self._arch_type
|
608
|
+
|
609
|
+
@arch_type.setter
|
610
|
+
def arch_type(self, arch_type):
|
611
|
+
r"""Sets the arch_type of this CreateInstanceByEngineReq.
|
612
|
+
|
613
|
+
架构类型。
|
614
|
+
|
615
|
+
:param arch_type: The arch_type of this CreateInstanceByEngineReq.
|
616
|
+
:type arch_type: str
|
617
|
+
"""
|
618
|
+
self._arch_type = arch_type
|
619
|
+
|
620
|
+
@property
|
621
|
+
def tls_mode(self):
|
622
|
+
r"""Gets the tls_mode of this CreateInstanceByEngineReq.
|
623
|
+
|
624
|
+
实例使用的安全协议。
|
625
|
+
|
626
|
+
:return: The tls_mode of this CreateInstanceByEngineReq.
|
627
|
+
:rtype: str
|
628
|
+
"""
|
629
|
+
return self._tls_mode
|
630
|
+
|
631
|
+
@tls_mode.setter
|
632
|
+
def tls_mode(self, tls_mode):
|
633
|
+
r"""Sets the tls_mode of this CreateInstanceByEngineReq.
|
634
|
+
|
635
|
+
实例使用的安全协议。
|
636
|
+
|
637
|
+
:param tls_mode: The tls_mode of this CreateInstanceByEngineReq.
|
638
|
+
:type tls_mode: str
|
639
|
+
"""
|
640
|
+
self._tls_mode = tls_mode
|
641
|
+
|
555
642
|
@property
|
556
643
|
def bss_param(self):
|
557
644
|
r"""Gets the bss_param of this CreateInstanceByEngineReq.
|
@@ -45,7 +45,7 @@ class CreateTopicOrBatchDeleteTopicReq:
|
|
45
45
|
:type name: str
|
46
46
|
:param brokers: 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
|
47
47
|
:type brokers: list[str]
|
48
|
-
:param queue_num:
|
48
|
+
:param queue_num: 总队列数,范围1~50。
|
49
49
|
:type queue_num: float
|
50
50
|
:param queues: 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
|
51
51
|
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
|
@@ -131,7 +131,7 @@ class CreateTopicOrBatchDeleteTopicReq:
|
|
131
131
|
def queue_num(self):
|
132
132
|
r"""Gets the queue_num of this CreateTopicOrBatchDeleteTopicReq.
|
133
133
|
|
134
|
-
|
134
|
+
总队列数,范围1~50。
|
135
135
|
|
136
136
|
:return: The queue_num of this CreateTopicOrBatchDeleteTopicReq.
|
137
137
|
:rtype: float
|
@@ -142,7 +142,7 @@ class CreateTopicOrBatchDeleteTopicReq:
|
|
142
142
|
def queue_num(self, queue_num):
|
143
143
|
r"""Sets the queue_num of this CreateTopicOrBatchDeleteTopicReq.
|
144
144
|
|
145
|
-
|
145
|
+
总队列数,范围1~50。
|
146
146
|
|
147
147
|
:param queue_num: The queue_num of this CreateTopicOrBatchDeleteTopicReq.
|
148
148
|
:type queue_num: float
|
@@ -43,7 +43,7 @@ class CreateTopicReq:
|
|
43
43
|
:type name: str
|
44
44
|
:param brokers: 关联的代理(仅RocketMQ实例4.8.0版本需要填写此参数)。
|
45
45
|
:type brokers: list[str]
|
46
|
-
:param queue_num:
|
46
|
+
:param queue_num: 总队列数,范围1~50。
|
47
47
|
:type queue_num: float
|
48
48
|
:param queues: 队列(仅RocketMQ实例4.8.0版本需要填写此参数)。
|
49
49
|
:type queues: list[:class:`huaweicloudsdkrocketmq.v2.CreateTopicReqQueues`]
|
@@ -124,7 +124,7 @@ class CreateTopicReq:
|
|
124
124
|
def queue_num(self):
|
125
125
|
r"""Gets the queue_num of this CreateTopicReq.
|
126
126
|
|
127
|
-
|
127
|
+
总队列数,范围1~50。
|
128
128
|
|
129
129
|
:return: The queue_num of this CreateTopicReq.
|
130
130
|
:rtype: float
|
@@ -135,7 +135,7 @@ class CreateTopicReq:
|
|
135
135
|
def queue_num(self, queue_num):
|
136
136
|
r"""Sets the queue_num of this CreateTopicReq.
|
137
137
|
|
138
|
-
|
138
|
+
总队列数,范围1~50。
|
139
139
|
|
140
140
|
:param queue_num: The queue_num of this CreateTopicReq.
|
141
141
|
:type queue_num: float
|
huaweicloudsdkrocketmq/v2/model/{restart_instance_response.py → delete_background_task_request.py}
RENAMED
@@ -2,11 +2,10 @@
|
|
2
2
|
|
3
3
|
import six
|
4
4
|
|
5
|
-
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
5
|
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
6
|
|
8
7
|
|
9
|
-
class
|
8
|
+
class DeleteBackgroundTaskRequest:
|
10
9
|
|
11
10
|
"""
|
12
11
|
Attributes:
|
@@ -19,108 +18,77 @@ class RestartInstanceResponse(SdkResponse):
|
|
19
18
|
|
20
19
|
openapi_types = {
|
21
20
|
'instance_id': 'str',
|
22
|
-
'
|
23
|
-
'result': 'str'
|
21
|
+
'task_id': 'str'
|
24
22
|
}
|
25
23
|
|
26
24
|
attribute_map = {
|
27
25
|
'instance_id': 'instance_id',
|
28
|
-
'
|
29
|
-
'result': 'result'
|
26
|
+
'task_id': 'task_id'
|
30
27
|
}
|
31
28
|
|
32
|
-
def __init__(self, instance_id=None,
|
33
|
-
r"""
|
29
|
+
def __init__(self, instance_id=None, task_id=None):
|
30
|
+
r"""DeleteBackgroundTaskRequest
|
34
31
|
|
35
32
|
The model defined in huaweicloud sdk
|
36
33
|
|
37
|
-
:param instance_id: 实例ID
|
34
|
+
:param instance_id: **参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
38
35
|
:type instance_id: str
|
39
|
-
:param
|
40
|
-
:type
|
41
|
-
:param result: 结果
|
42
|
-
:type result: str
|
36
|
+
:param task_id: **参数解释**: 任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
37
|
+
:type task_id: str
|
43
38
|
"""
|
44
39
|
|
45
|
-
|
40
|
+
|
46
41
|
|
47
42
|
self._instance_id = None
|
48
|
-
self.
|
49
|
-
self._result = None
|
43
|
+
self._task_id = None
|
50
44
|
self.discriminator = None
|
51
45
|
|
52
|
-
|
53
|
-
|
54
|
-
if nodes is not None:
|
55
|
-
self.nodes = nodes
|
56
|
-
if result is not None:
|
57
|
-
self.result = result
|
46
|
+
self.instance_id = instance_id
|
47
|
+
self.task_id = task_id
|
58
48
|
|
59
49
|
@property
|
60
50
|
def instance_id(self):
|
61
|
-
r"""Gets the instance_id of this
|
51
|
+
r"""Gets the instance_id of this DeleteBackgroundTaskRequest.
|
62
52
|
|
63
|
-
实例ID
|
53
|
+
**参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
64
54
|
|
65
|
-
:return: The instance_id of this
|
55
|
+
:return: The instance_id of this DeleteBackgroundTaskRequest.
|
66
56
|
:rtype: str
|
67
57
|
"""
|
68
58
|
return self._instance_id
|
69
59
|
|
70
60
|
@instance_id.setter
|
71
61
|
def instance_id(self, instance_id):
|
72
|
-
r"""Sets the instance_id of this
|
62
|
+
r"""Sets the instance_id of this DeleteBackgroundTaskRequest.
|
73
63
|
|
74
|
-
实例ID
|
64
|
+
**参数解释**: 实例ID。获取方法如下:登录RocketMQ控制台,在RocketMQ实例详情页面查找实例ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
75
65
|
|
76
|
-
:param instance_id: The instance_id of this
|
66
|
+
:param instance_id: The instance_id of this DeleteBackgroundTaskRequest.
|
77
67
|
:type instance_id: str
|
78
68
|
"""
|
79
69
|
self._instance_id = instance_id
|
80
70
|
|
81
71
|
@property
|
82
|
-
def
|
83
|
-
r"""Gets the
|
84
|
-
|
85
|
-
node列表
|
86
|
-
|
87
|
-
:return: The nodes of this RestartInstanceResponse.
|
88
|
-
:rtype: list[str]
|
89
|
-
"""
|
90
|
-
return self._nodes
|
91
|
-
|
92
|
-
@nodes.setter
|
93
|
-
def nodes(self, nodes):
|
94
|
-
r"""Sets the nodes of this RestartInstanceResponse.
|
95
|
-
|
96
|
-
node列表
|
97
|
-
|
98
|
-
:param nodes: The nodes of this RestartInstanceResponse.
|
99
|
-
:type nodes: list[str]
|
100
|
-
"""
|
101
|
-
self._nodes = nodes
|
102
|
-
|
103
|
-
@property
|
104
|
-
def result(self):
|
105
|
-
r"""Gets the result of this RestartInstanceResponse.
|
72
|
+
def task_id(self):
|
73
|
+
r"""Gets the task_id of this DeleteBackgroundTaskRequest.
|
106
74
|
|
107
|
-
|
75
|
+
**参数解释**: 任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
108
76
|
|
109
|
-
:return: The
|
77
|
+
:return: The task_id of this DeleteBackgroundTaskRequest.
|
110
78
|
:rtype: str
|
111
79
|
"""
|
112
|
-
return self.
|
80
|
+
return self._task_id
|
113
81
|
|
114
|
-
@
|
115
|
-
def
|
116
|
-
r"""Sets the
|
82
|
+
@task_id.setter
|
83
|
+
def task_id(self, task_id):
|
84
|
+
r"""Sets the task_id of this DeleteBackgroundTaskRequest.
|
117
85
|
|
118
|
-
|
86
|
+
**参数解释**: 任务ID。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
|
119
87
|
|
120
|
-
:param
|
121
|
-
:type
|
88
|
+
:param task_id: The task_id of this DeleteBackgroundTaskRequest.
|
89
|
+
:type task_id: str
|
122
90
|
"""
|
123
|
-
self.
|
91
|
+
self._task_id = task_id
|
124
92
|
|
125
93
|
def to_dict(self):
|
126
94
|
"""Returns the model properties as a dict"""
|
@@ -164,7 +132,7 @@ class RestartInstanceResponse(SdkResponse):
|
|
164
132
|
|
165
133
|
def __eq__(self, other):
|
166
134
|
"""Returns true if both objects are equal"""
|
167
|
-
if not isinstance(other,
|
135
|
+
if not isinstance(other, DeleteBackgroundTaskRequest):
|
168
136
|
return False
|
169
137
|
|
170
138
|
return self.__dict__ == other.__dict__
|