huaweicloudsdkrocketmq 3.1.69__py2.py3-none-any.whl → 3.1.71__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 +16 -0
- huaweicloudsdkrocketmq/v2/model/__init__.py +16 -0
- huaweicloudsdkrocketmq/v2/model/consumer_group.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_consumer_group_or_batch_delete_consumer_group_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_instance_by_engine_req.py +3 -3
- huaweicloudsdkrocketmq/v2/model/create_post_paid_instance_req.py +3 -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/modify_config_req.py +115 -0
- huaweicloudsdkrocketmq/v2/model/resize_engine_instance_req.py +201 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_request.py +167 -0
- huaweicloudsdkrocketmq/v2/model/resize_instance_response.py +116 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_req.py +144 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_config_resp.py +260 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_info_entity.py +430 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_ios_entity.py +202 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_extend_product_properties_entity.py +318 -0
- huaweicloudsdkrocketmq/v2/model/rocket_mq_product_support_features_entity.py +144 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_request.py +171 -0
- huaweicloudsdkrocketmq/v2/model/show_engine_instance_extend_product_info_response.py +174 -0
- huaweicloudsdkrocketmq/v2/model/show_one_topic_response.py +3 -3
- 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/tag_entity.py +6 -6
- huaweicloudsdkrocketmq/v2/model/topic.py +3 -3
- huaweicloudsdkrocketmq/v2/model/update_consumer_group.py +6 -6
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_request.py +139 -0
- huaweicloudsdkrocketmq/v2/model/update_rocket_mq_configs_response.py +85 -0
- huaweicloudsdkrocketmq/v2/rocketmq_async_client.py +272 -0
- huaweicloudsdkrocketmq/v2/rocketmq_client.py +272 -0
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/METADATA +2 -2
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/RECORD +35 -19
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/WHEEL +1 -1
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.dist-info}/LICENSE +0 -0
- {huaweicloudsdkrocketmq-3.1.69.dist-info → huaweicloudsdkrocketmq-3.1.71.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 ResizeInstanceRequest:
|
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': 'ResizeEngineInstanceReq'
|
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
|
+
"""ResizeInstanceRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param engine: 消息引擎的类型。支持的类型为rocketmq。
|
37
|
+
:type engine: str
|
38
|
+
:param instance_id: 实例ID。
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the ResizeInstanceRequest
|
41
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.ResizeEngineInstanceReq`
|
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
|
+
"""Gets the engine of this ResizeInstanceRequest.
|
59
|
+
|
60
|
+
消息引擎的类型。支持的类型为rocketmq。
|
61
|
+
|
62
|
+
:return: The engine of this ResizeInstanceRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._engine
|
66
|
+
|
67
|
+
@engine.setter
|
68
|
+
def engine(self, engine):
|
69
|
+
"""Sets the engine of this ResizeInstanceRequest.
|
70
|
+
|
71
|
+
消息引擎的类型。支持的类型为rocketmq。
|
72
|
+
|
73
|
+
:param engine: The engine of this ResizeInstanceRequest.
|
74
|
+
:type engine: str
|
75
|
+
"""
|
76
|
+
self._engine = engine
|
77
|
+
|
78
|
+
@property
|
79
|
+
def instance_id(self):
|
80
|
+
"""Gets the instance_id of this ResizeInstanceRequest.
|
81
|
+
|
82
|
+
实例ID。
|
83
|
+
|
84
|
+
:return: The instance_id of this ResizeInstanceRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._instance_id
|
88
|
+
|
89
|
+
@instance_id.setter
|
90
|
+
def instance_id(self, instance_id):
|
91
|
+
"""Sets the instance_id of this ResizeInstanceRequest.
|
92
|
+
|
93
|
+
实例ID。
|
94
|
+
|
95
|
+
:param instance_id: The instance_id of this ResizeInstanceRequest.
|
96
|
+
:type instance_id: str
|
97
|
+
"""
|
98
|
+
self._instance_id = instance_id
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this ResizeInstanceRequest.
|
103
|
+
|
104
|
+
:return: The body of this ResizeInstanceRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkrocketmq.v2.ResizeEngineInstanceReq`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this ResizeInstanceRequest.
|
112
|
+
|
113
|
+
:param body: The body of this ResizeInstanceRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkrocketmq.v2.ResizeEngineInstanceReq`
|
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, ResizeInstanceRequest):
|
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 ResizeInstanceResponse(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
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, job_id=None):
|
29
|
+
"""ResizeInstanceResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param job_id: 规格变更任务ID。
|
34
|
+
:type job_id: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ResizeInstanceResponse, self).__init__()
|
38
|
+
|
39
|
+
self._job_id = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if job_id is not None:
|
43
|
+
self.job_id = job_id
|
44
|
+
|
45
|
+
@property
|
46
|
+
def job_id(self):
|
47
|
+
"""Gets the job_id of this ResizeInstanceResponse.
|
48
|
+
|
49
|
+
规格变更任务ID。
|
50
|
+
|
51
|
+
:return: The job_id of this ResizeInstanceResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._job_id
|
55
|
+
|
56
|
+
@job_id.setter
|
57
|
+
def job_id(self, job_id):
|
58
|
+
"""Sets the job_id of this ResizeInstanceResponse.
|
59
|
+
|
60
|
+
规格变更任务ID。
|
61
|
+
|
62
|
+
:param job_id: The job_id of this ResizeInstanceResponse.
|
63
|
+
:type job_id: str
|
64
|
+
"""
|
65
|
+
self._job_id = job_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, ResizeInstanceResponse):
|
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
|
@@ -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
|