huaweicloudsdkrocketmq 3.1.150__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.
- huaweicloudsdkrocketmq/v2/__init__.py +26 -2
- huaweicloudsdkrocketmq/v2/model/__init__.py +26 -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_post_paid_instance_req.py +90 -3
- 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/{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/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 +580 -24
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +580 -24
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/RECORD +45 -21
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.dist-info}/WHEEL +0 -0
- {huaweicloudsdkrocketmq-3.1.150.dist-info → huaweicloudsdkrocketmq-3.1.152.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.
|
@@ -32,9 +32,12 @@ class CreatePostPaidInstanceReq:
|
|
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
|
-
'broker_num': 'int'
|
38
|
+
'broker_num': 'int',
|
39
|
+
'arch_type': 'str',
|
40
|
+
'tls_mode': 'str'
|
38
41
|
}
|
39
42
|
|
40
43
|
attribute_map = {
|
@@ -53,12 +56,15 @@ class CreatePostPaidInstanceReq:
|
|
53
56
|
'enterprise_project_id': 'enterprise_project_id',
|
54
57
|
'enable_acl': 'enable_acl',
|
55
58
|
'ipv6_enable': 'ipv6_enable',
|
59
|
+
'proxy_enable': 'proxy_enable',
|
56
60
|
'enable_publicip': 'enable_publicip',
|
57
61
|
'publicip_id': 'publicip_id',
|
58
|
-
'broker_num': 'broker_num'
|
62
|
+
'broker_num': 'broker_num',
|
63
|
+
'arch_type': 'arch_type',
|
64
|
+
'tls_mode': 'tls_mode'
|
59
65
|
}
|
60
66
|
|
61
|
-
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):
|
67
|
+
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):
|
62
68
|
r"""CreatePostPaidInstanceReq
|
63
69
|
|
64
70
|
The model defined in huaweicloud sdk
|
@@ -93,12 +99,18 @@ class CreatePostPaidInstanceReq:
|
|
93
99
|
:type enable_acl: bool
|
94
100
|
:param ipv6_enable: 是否支持IPv6。 - true:支持 - false:不支持
|
95
101
|
:type ipv6_enable: bool
|
102
|
+
:param proxy_enable: 是否开启Proxy功能。 - true:支持 - false:不支持
|
103
|
+
:type proxy_enable: bool
|
96
104
|
:param enable_publicip: 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启
|
97
105
|
:type enable_publicip: bool
|
98
106
|
:param publicip_id: 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。
|
99
107
|
:type publicip_id: str
|
100
108
|
:param broker_num: 代理个数。
|
101
109
|
:type broker_num: int
|
110
|
+
:param arch_type: 架构类型。
|
111
|
+
:type arch_type: str
|
112
|
+
:param tls_mode: 实例使用的安全协议。
|
113
|
+
:type tls_mode: str
|
102
114
|
"""
|
103
115
|
|
104
116
|
|
@@ -118,9 +130,12 @@ class CreatePostPaidInstanceReq:
|
|
118
130
|
self._enterprise_project_id = None
|
119
131
|
self._enable_acl = None
|
120
132
|
self._ipv6_enable = None
|
133
|
+
self._proxy_enable = None
|
121
134
|
self._enable_publicip = None
|
122
135
|
self._publicip_id = None
|
123
136
|
self._broker_num = None
|
137
|
+
self._arch_type = None
|
138
|
+
self._tls_mode = None
|
124
139
|
self.discriminator = None
|
125
140
|
|
126
141
|
self.name = name
|
@@ -143,11 +158,17 @@ class CreatePostPaidInstanceReq:
|
|
143
158
|
self.enable_acl = enable_acl
|
144
159
|
if ipv6_enable is not None:
|
145
160
|
self.ipv6_enable = ipv6_enable
|
161
|
+
if proxy_enable is not None:
|
162
|
+
self.proxy_enable = proxy_enable
|
146
163
|
if enable_publicip is not None:
|
147
164
|
self.enable_publicip = enable_publicip
|
148
165
|
if publicip_id is not None:
|
149
166
|
self.publicip_id = publicip_id
|
150
167
|
self.broker_num = broker_num
|
168
|
+
if arch_type is not None:
|
169
|
+
self.arch_type = arch_type
|
170
|
+
if tls_mode is not None:
|
171
|
+
self.tls_mode = tls_mode
|
151
172
|
|
152
173
|
@property
|
153
174
|
def name(self):
|
@@ -479,6 +500,28 @@ class CreatePostPaidInstanceReq:
|
|
479
500
|
"""
|
480
501
|
self._ipv6_enable = ipv6_enable
|
481
502
|
|
503
|
+
@property
|
504
|
+
def proxy_enable(self):
|
505
|
+
r"""Gets the proxy_enable of this CreatePostPaidInstanceReq.
|
506
|
+
|
507
|
+
是否开启Proxy功能。 - true:支持 - false:不支持
|
508
|
+
|
509
|
+
:return: The proxy_enable of this CreatePostPaidInstanceReq.
|
510
|
+
:rtype: bool
|
511
|
+
"""
|
512
|
+
return self._proxy_enable
|
513
|
+
|
514
|
+
@proxy_enable.setter
|
515
|
+
def proxy_enable(self, proxy_enable):
|
516
|
+
r"""Sets the proxy_enable of this CreatePostPaidInstanceReq.
|
517
|
+
|
518
|
+
是否开启Proxy功能。 - true:支持 - false:不支持
|
519
|
+
|
520
|
+
:param proxy_enable: The proxy_enable of this CreatePostPaidInstanceReq.
|
521
|
+
:type proxy_enable: bool
|
522
|
+
"""
|
523
|
+
self._proxy_enable = proxy_enable
|
524
|
+
|
482
525
|
@property
|
483
526
|
def enable_publicip(self):
|
484
527
|
r"""Gets the enable_publicip of this CreatePostPaidInstanceReq.
|
@@ -545,6 +588,50 @@ class CreatePostPaidInstanceReq:
|
|
545
588
|
"""
|
546
589
|
self._broker_num = broker_num
|
547
590
|
|
591
|
+
@property
|
592
|
+
def arch_type(self):
|
593
|
+
r"""Gets the arch_type of this CreatePostPaidInstanceReq.
|
594
|
+
|
595
|
+
架构类型。
|
596
|
+
|
597
|
+
:return: The arch_type of this CreatePostPaidInstanceReq.
|
598
|
+
:rtype: str
|
599
|
+
"""
|
600
|
+
return self._arch_type
|
601
|
+
|
602
|
+
@arch_type.setter
|
603
|
+
def arch_type(self, arch_type):
|
604
|
+
r"""Sets the arch_type of this CreatePostPaidInstanceReq.
|
605
|
+
|
606
|
+
架构类型。
|
607
|
+
|
608
|
+
:param arch_type: The arch_type of this CreatePostPaidInstanceReq.
|
609
|
+
:type arch_type: str
|
610
|
+
"""
|
611
|
+
self._arch_type = arch_type
|
612
|
+
|
613
|
+
@property
|
614
|
+
def tls_mode(self):
|
615
|
+
r"""Gets the tls_mode of this CreatePostPaidInstanceReq.
|
616
|
+
|
617
|
+
实例使用的安全协议。
|
618
|
+
|
619
|
+
:return: The tls_mode of this CreatePostPaidInstanceReq.
|
620
|
+
:rtype: str
|
621
|
+
"""
|
622
|
+
return self._tls_mode
|
623
|
+
|
624
|
+
@tls_mode.setter
|
625
|
+
def tls_mode(self, tls_mode):
|
626
|
+
r"""Sets the tls_mode of this CreatePostPaidInstanceReq.
|
627
|
+
|
628
|
+
实例使用的安全协议。
|
629
|
+
|
630
|
+
:param tls_mode: The tls_mode of this CreatePostPaidInstanceReq.
|
631
|
+
:type tls_mode: str
|
632
|
+
"""
|
633
|
+
self._tls_mode = tls_mode
|
634
|
+
|
548
635
|
def to_dict(self):
|
549
636
|
"""Returns the model properties as a dict"""
|
550
637
|
result = {}
|
@@ -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
|