huaweicloudsdkgaussdb 3.1.94__py2.py3-none-any.whl → 3.1.95__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.
- huaweicloudsdkgaussdb/v3/__init__.py +28 -0
- huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +556 -0
- huaweicloudsdkgaussdb/v3/gaussdb_client.py +556 -0
- huaweicloudsdkgaussdb/v3/model/__init__.py +28 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_data_base_config_response.py +232 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/check_table_config_response.py +203 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication.py +227 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/create_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/data_base_info.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config.py +144 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/db_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/db_parameter.py +231 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication.py +115 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_request.py +167 -0
- huaweicloudsdkgaussdb/v3/model/delete_star_rocks_data_replication_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_request.py +229 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_bases_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_request.py +170 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replication_config_response.py +336 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_request.py +200 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_data_replications_response.py +174 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_request.py +142 -0
- huaweicloudsdkgaussdb/v3/model/list_star_rocks_db_parameters_response.py +116 -0
- huaweicloudsdkgaussdb/v3/model/star_rocks_replication_info.py +318 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_request_v3.py +285 -0
- huaweicloudsdkgaussdb/v3/model/table_config_check_result.py +173 -0
- huaweicloudsdkgaussdb/v3/model/table_repl_config.py +173 -0
- huaweicloudsdkgaussdb/v3/model/tables_config.py +144 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/RECORD +37 -9
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdb-3.1.94.dist-info → huaweicloudsdkgaussdb-3.1.95.dist-info}/top_level.txt +0 -0
@@ -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 DbConfigCheckResult:
|
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
|
+
'param_name': 'str',
|
21
|
+
'value': 'str',
|
22
|
+
'check_result': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'param_name': 'param_name',
|
27
|
+
'value': 'value',
|
28
|
+
'check_result': 'check_result'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, param_name=None, value=None, check_result=None):
|
32
|
+
"""DbConfigCheckResult
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param param_name: 参数名。
|
37
|
+
:type param_name: str
|
38
|
+
:param value: 参数值。
|
39
|
+
:type value: str
|
40
|
+
:param check_result: 校验结果。
|
41
|
+
:type check_result: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._param_name = None
|
47
|
+
self._value = None
|
48
|
+
self._check_result = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if param_name is not None:
|
52
|
+
self.param_name = param_name
|
53
|
+
if value is not None:
|
54
|
+
self.value = value
|
55
|
+
if check_result is not None:
|
56
|
+
self.check_result = check_result
|
57
|
+
|
58
|
+
@property
|
59
|
+
def param_name(self):
|
60
|
+
"""Gets the param_name of this DbConfigCheckResult.
|
61
|
+
|
62
|
+
参数名。
|
63
|
+
|
64
|
+
:return: The param_name of this DbConfigCheckResult.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._param_name
|
68
|
+
|
69
|
+
@param_name.setter
|
70
|
+
def param_name(self, param_name):
|
71
|
+
"""Sets the param_name of this DbConfigCheckResult.
|
72
|
+
|
73
|
+
参数名。
|
74
|
+
|
75
|
+
:param param_name: The param_name of this DbConfigCheckResult.
|
76
|
+
:type param_name: str
|
77
|
+
"""
|
78
|
+
self._param_name = param_name
|
79
|
+
|
80
|
+
@property
|
81
|
+
def value(self):
|
82
|
+
"""Gets the value of this DbConfigCheckResult.
|
83
|
+
|
84
|
+
参数值。
|
85
|
+
|
86
|
+
:return: The value of this DbConfigCheckResult.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._value
|
90
|
+
|
91
|
+
@value.setter
|
92
|
+
def value(self, value):
|
93
|
+
"""Sets the value of this DbConfigCheckResult.
|
94
|
+
|
95
|
+
参数值。
|
96
|
+
|
97
|
+
:param value: The value of this DbConfigCheckResult.
|
98
|
+
:type value: str
|
99
|
+
"""
|
100
|
+
self._value = value
|
101
|
+
|
102
|
+
@property
|
103
|
+
def check_result(self):
|
104
|
+
"""Gets the check_result of this DbConfigCheckResult.
|
105
|
+
|
106
|
+
校验结果。
|
107
|
+
|
108
|
+
:return: The check_result of this DbConfigCheckResult.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._check_result
|
112
|
+
|
113
|
+
@check_result.setter
|
114
|
+
def check_result(self, check_result):
|
115
|
+
"""Sets the check_result of this DbConfigCheckResult.
|
116
|
+
|
117
|
+
校验结果。
|
118
|
+
|
119
|
+
:param check_result: The check_result of this DbConfigCheckResult.
|
120
|
+
:type check_result: str
|
121
|
+
"""
|
122
|
+
self._check_result = check_result
|
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, DbConfigCheckResult):
|
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,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DbParameter:
|
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
|
+
'param_name': 'str',
|
21
|
+
'data_type': 'str',
|
22
|
+
'default_value': 'str',
|
23
|
+
'value_range': 'str',
|
24
|
+
'description': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'param_name': 'param_name',
|
29
|
+
'data_type': 'data_type',
|
30
|
+
'default_value': 'default_value',
|
31
|
+
'value_range': 'value_range',
|
32
|
+
'description': 'description'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, param_name=None, data_type=None, default_value=None, value_range=None, description=None):
|
36
|
+
"""DbParameter
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param param_name: 参数名称。
|
41
|
+
:type param_name: str
|
42
|
+
:param data_type: 参数类型。
|
43
|
+
:type data_type: str
|
44
|
+
:param default_value: 参数默认值。
|
45
|
+
:type default_value: str
|
46
|
+
:param value_range: 参数取值范围。
|
47
|
+
:type value_range: str
|
48
|
+
:param description: 参数描述。
|
49
|
+
:type description: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._param_name = None
|
55
|
+
self._data_type = None
|
56
|
+
self._default_value = None
|
57
|
+
self._value_range = None
|
58
|
+
self._description = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if param_name is not None:
|
62
|
+
self.param_name = param_name
|
63
|
+
if data_type is not None:
|
64
|
+
self.data_type = data_type
|
65
|
+
if default_value is not None:
|
66
|
+
self.default_value = default_value
|
67
|
+
if value_range is not None:
|
68
|
+
self.value_range = value_range
|
69
|
+
if description is not None:
|
70
|
+
self.description = description
|
71
|
+
|
72
|
+
@property
|
73
|
+
def param_name(self):
|
74
|
+
"""Gets the param_name of this DbParameter.
|
75
|
+
|
76
|
+
参数名称。
|
77
|
+
|
78
|
+
:return: The param_name of this DbParameter.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._param_name
|
82
|
+
|
83
|
+
@param_name.setter
|
84
|
+
def param_name(self, param_name):
|
85
|
+
"""Sets the param_name of this DbParameter.
|
86
|
+
|
87
|
+
参数名称。
|
88
|
+
|
89
|
+
:param param_name: The param_name of this DbParameter.
|
90
|
+
:type param_name: str
|
91
|
+
"""
|
92
|
+
self._param_name = param_name
|
93
|
+
|
94
|
+
@property
|
95
|
+
def data_type(self):
|
96
|
+
"""Gets the data_type of this DbParameter.
|
97
|
+
|
98
|
+
参数类型。
|
99
|
+
|
100
|
+
:return: The data_type of this DbParameter.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._data_type
|
104
|
+
|
105
|
+
@data_type.setter
|
106
|
+
def data_type(self, data_type):
|
107
|
+
"""Sets the data_type of this DbParameter.
|
108
|
+
|
109
|
+
参数类型。
|
110
|
+
|
111
|
+
:param data_type: The data_type of this DbParameter.
|
112
|
+
:type data_type: str
|
113
|
+
"""
|
114
|
+
self._data_type = data_type
|
115
|
+
|
116
|
+
@property
|
117
|
+
def default_value(self):
|
118
|
+
"""Gets the default_value of this DbParameter.
|
119
|
+
|
120
|
+
参数默认值。
|
121
|
+
|
122
|
+
:return: The default_value of this DbParameter.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._default_value
|
126
|
+
|
127
|
+
@default_value.setter
|
128
|
+
def default_value(self, default_value):
|
129
|
+
"""Sets the default_value of this DbParameter.
|
130
|
+
|
131
|
+
参数默认值。
|
132
|
+
|
133
|
+
:param default_value: The default_value of this DbParameter.
|
134
|
+
:type default_value: str
|
135
|
+
"""
|
136
|
+
self._default_value = default_value
|
137
|
+
|
138
|
+
@property
|
139
|
+
def value_range(self):
|
140
|
+
"""Gets the value_range of this DbParameter.
|
141
|
+
|
142
|
+
参数取值范围。
|
143
|
+
|
144
|
+
:return: The value_range of this DbParameter.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._value_range
|
148
|
+
|
149
|
+
@value_range.setter
|
150
|
+
def value_range(self, value_range):
|
151
|
+
"""Sets the value_range of this DbParameter.
|
152
|
+
|
153
|
+
参数取值范围。
|
154
|
+
|
155
|
+
:param value_range: The value_range of this DbParameter.
|
156
|
+
:type value_range: str
|
157
|
+
"""
|
158
|
+
self._value_range = value_range
|
159
|
+
|
160
|
+
@property
|
161
|
+
def description(self):
|
162
|
+
"""Gets the description of this DbParameter.
|
163
|
+
|
164
|
+
参数描述。
|
165
|
+
|
166
|
+
:return: The description of this DbParameter.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._description
|
170
|
+
|
171
|
+
@description.setter
|
172
|
+
def description(self, description):
|
173
|
+
"""Sets the description of this DbParameter.
|
174
|
+
|
175
|
+
参数描述。
|
176
|
+
|
177
|
+
:param description: The description of this DbParameter.
|
178
|
+
:type description: str
|
179
|
+
"""
|
180
|
+
self._description = description
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, DbParameter):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
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 DeleteStarRocksDataReplication:
|
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
|
+
'task_name': 'str'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'task_name': 'task_name'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, task_name=None):
|
28
|
+
"""DeleteStarRocksDataReplication
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param task_name: 数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
33
|
+
:type task_name: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._task_name = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if task_name is not None:
|
42
|
+
self.task_name = task_name
|
43
|
+
|
44
|
+
@property
|
45
|
+
def task_name(self):
|
46
|
+
"""Gets the task_name of this DeleteStarRocksDataReplication.
|
47
|
+
|
48
|
+
数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
49
|
+
|
50
|
+
:return: The task_name of this DeleteStarRocksDataReplication.
|
51
|
+
:rtype: str
|
52
|
+
"""
|
53
|
+
return self._task_name
|
54
|
+
|
55
|
+
@task_name.setter
|
56
|
+
def task_name(self, task_name):
|
57
|
+
"""Sets the task_name of this DeleteStarRocksDataReplication.
|
58
|
+
|
59
|
+
数据同步任务名。字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
60
|
+
|
61
|
+
:param task_name: The task_name of this DeleteStarRocksDataReplication.
|
62
|
+
:type task_name: str
|
63
|
+
"""
|
64
|
+
self._task_name = task_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, DeleteStarRocksDataReplication):
|
109
|
+
return False
|
110
|
+
|
111
|
+
return self.__dict__ == other.__dict__
|
112
|
+
|
113
|
+
def __ne__(self, other):
|
114
|
+
"""Returns true if both objects are not equal"""
|
115
|
+
return not self == other
|
@@ -0,0 +1,167 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class DeleteStarRocksDataReplicationRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'instance_id': 'str',
|
21
|
+
'x_language': 'str',
|
22
|
+
'body': 'DeleteStarRocksDataReplication'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'instance_id': 'instance_id',
|
27
|
+
'x_language': 'X-Language',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, instance_id=None, x_language=None, body=None):
|
32
|
+
"""DeleteStarRocksDataReplicationRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param instance_id: StarRocks实例ID,严格匹配UUID规则。
|
37
|
+
:type instance_id: str
|
38
|
+
:param x_language: 请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
39
|
+
:type x_language: str
|
40
|
+
:param body: Body of the DeleteStarRocksDataReplicationRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplication`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._instance_id = None
|
47
|
+
self._x_language = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.instance_id = instance_id
|
52
|
+
self.x_language = x_language
|
53
|
+
if body is not None:
|
54
|
+
self.body = body
|
55
|
+
|
56
|
+
@property
|
57
|
+
def instance_id(self):
|
58
|
+
"""Gets the instance_id of this DeleteStarRocksDataReplicationRequest.
|
59
|
+
|
60
|
+
StarRocks实例ID,严格匹配UUID规则。
|
61
|
+
|
62
|
+
:return: The instance_id of this DeleteStarRocksDataReplicationRequest.
|
63
|
+
:rtype: str
|
64
|
+
"""
|
65
|
+
return self._instance_id
|
66
|
+
|
67
|
+
@instance_id.setter
|
68
|
+
def instance_id(self, instance_id):
|
69
|
+
"""Sets the instance_id of this DeleteStarRocksDataReplicationRequest.
|
70
|
+
|
71
|
+
StarRocks实例ID,严格匹配UUID规则。
|
72
|
+
|
73
|
+
:param instance_id: The instance_id of this DeleteStarRocksDataReplicationRequest.
|
74
|
+
:type instance_id: str
|
75
|
+
"""
|
76
|
+
self._instance_id = instance_id
|
77
|
+
|
78
|
+
@property
|
79
|
+
def x_language(self):
|
80
|
+
"""Gets the x_language of this DeleteStarRocksDataReplicationRequest.
|
81
|
+
|
82
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
83
|
+
|
84
|
+
:return: The x_language of this DeleteStarRocksDataReplicationRequest.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._x_language
|
88
|
+
|
89
|
+
@x_language.setter
|
90
|
+
def x_language(self, x_language):
|
91
|
+
"""Sets the x_language of this DeleteStarRocksDataReplicationRequest.
|
92
|
+
|
93
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
94
|
+
|
95
|
+
:param x_language: The x_language of this DeleteStarRocksDataReplicationRequest.
|
96
|
+
:type x_language: str
|
97
|
+
"""
|
98
|
+
self._x_language = x_language
|
99
|
+
|
100
|
+
@property
|
101
|
+
def body(self):
|
102
|
+
"""Gets the body of this DeleteStarRocksDataReplicationRequest.
|
103
|
+
|
104
|
+
:return: The body of this DeleteStarRocksDataReplicationRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplication`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this DeleteStarRocksDataReplicationRequest.
|
112
|
+
|
113
|
+
:param body: The body of this DeleteStarRocksDataReplicationRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.DeleteStarRocksDataReplication`
|
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, DeleteStarRocksDataReplicationRequest):
|
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
|