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,203 @@
|
|
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 CheckTableConfigResponse(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
|
+
'source_database_name': 'str',
|
22
|
+
'target_database_name': 'str',
|
23
|
+
'tbl_config_check_results': 'list[TableConfigCheckResult]',
|
24
|
+
'task_name': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'source_database_name': 'source_database_name',
|
29
|
+
'target_database_name': 'target_database_name',
|
30
|
+
'tbl_config_check_results': 'tbl_config_check_results',
|
31
|
+
'task_name': 'task_name'
|
32
|
+
}
|
33
|
+
|
34
|
+
def __init__(self, source_database_name=None, target_database_name=None, tbl_config_check_results=None, task_name=None):
|
35
|
+
"""CheckTableConfigResponse
|
36
|
+
|
37
|
+
The model defined in huaweicloud sdk
|
38
|
+
|
39
|
+
:param source_database_name: GaussDB(for MySQL)数据库名。
|
40
|
+
:type source_database_name: str
|
41
|
+
:param target_database_name: 目标数据库名。
|
42
|
+
:type target_database_name: str
|
43
|
+
:param tbl_config_check_results: 表配置检查结果。
|
44
|
+
:type tbl_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.TableConfigCheckResult`]
|
45
|
+
:param task_name: 同步任务名称。
|
46
|
+
:type task_name: str
|
47
|
+
"""
|
48
|
+
|
49
|
+
super(CheckTableConfigResponse, self).__init__()
|
50
|
+
|
51
|
+
self._source_database_name = None
|
52
|
+
self._target_database_name = None
|
53
|
+
self._tbl_config_check_results = None
|
54
|
+
self._task_name = None
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
if source_database_name is not None:
|
58
|
+
self.source_database_name = source_database_name
|
59
|
+
if target_database_name is not None:
|
60
|
+
self.target_database_name = target_database_name
|
61
|
+
if tbl_config_check_results is not None:
|
62
|
+
self.tbl_config_check_results = tbl_config_check_results
|
63
|
+
if task_name is not None:
|
64
|
+
self.task_name = task_name
|
65
|
+
|
66
|
+
@property
|
67
|
+
def source_database_name(self):
|
68
|
+
"""Gets the source_database_name of this CheckTableConfigResponse.
|
69
|
+
|
70
|
+
GaussDB(for MySQL)数据库名。
|
71
|
+
|
72
|
+
:return: The source_database_name of this CheckTableConfigResponse.
|
73
|
+
:rtype: str
|
74
|
+
"""
|
75
|
+
return self._source_database_name
|
76
|
+
|
77
|
+
@source_database_name.setter
|
78
|
+
def source_database_name(self, source_database_name):
|
79
|
+
"""Sets the source_database_name of this CheckTableConfigResponse.
|
80
|
+
|
81
|
+
GaussDB(for MySQL)数据库名。
|
82
|
+
|
83
|
+
:param source_database_name: The source_database_name of this CheckTableConfigResponse.
|
84
|
+
:type source_database_name: str
|
85
|
+
"""
|
86
|
+
self._source_database_name = source_database_name
|
87
|
+
|
88
|
+
@property
|
89
|
+
def target_database_name(self):
|
90
|
+
"""Gets the target_database_name of this CheckTableConfigResponse.
|
91
|
+
|
92
|
+
目标数据库名。
|
93
|
+
|
94
|
+
:return: The target_database_name of this CheckTableConfigResponse.
|
95
|
+
:rtype: str
|
96
|
+
"""
|
97
|
+
return self._target_database_name
|
98
|
+
|
99
|
+
@target_database_name.setter
|
100
|
+
def target_database_name(self, target_database_name):
|
101
|
+
"""Sets the target_database_name of this CheckTableConfigResponse.
|
102
|
+
|
103
|
+
目标数据库名。
|
104
|
+
|
105
|
+
:param target_database_name: The target_database_name of this CheckTableConfigResponse.
|
106
|
+
:type target_database_name: str
|
107
|
+
"""
|
108
|
+
self._target_database_name = target_database_name
|
109
|
+
|
110
|
+
@property
|
111
|
+
def tbl_config_check_results(self):
|
112
|
+
"""Gets the tbl_config_check_results of this CheckTableConfigResponse.
|
113
|
+
|
114
|
+
表配置检查结果。
|
115
|
+
|
116
|
+
:return: The tbl_config_check_results of this CheckTableConfigResponse.
|
117
|
+
:rtype: list[:class:`huaweicloudsdkgaussdb.v3.TableConfigCheckResult`]
|
118
|
+
"""
|
119
|
+
return self._tbl_config_check_results
|
120
|
+
|
121
|
+
@tbl_config_check_results.setter
|
122
|
+
def tbl_config_check_results(self, tbl_config_check_results):
|
123
|
+
"""Sets the tbl_config_check_results of this CheckTableConfigResponse.
|
124
|
+
|
125
|
+
表配置检查结果。
|
126
|
+
|
127
|
+
:param tbl_config_check_results: The tbl_config_check_results of this CheckTableConfigResponse.
|
128
|
+
:type tbl_config_check_results: list[:class:`huaweicloudsdkgaussdb.v3.TableConfigCheckResult`]
|
129
|
+
"""
|
130
|
+
self._tbl_config_check_results = tbl_config_check_results
|
131
|
+
|
132
|
+
@property
|
133
|
+
def task_name(self):
|
134
|
+
"""Gets the task_name of this CheckTableConfigResponse.
|
135
|
+
|
136
|
+
同步任务名称。
|
137
|
+
|
138
|
+
:return: The task_name of this CheckTableConfigResponse.
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._task_name
|
142
|
+
|
143
|
+
@task_name.setter
|
144
|
+
def task_name(self, task_name):
|
145
|
+
"""Sets the task_name of this CheckTableConfigResponse.
|
146
|
+
|
147
|
+
同步任务名称。
|
148
|
+
|
149
|
+
:param task_name: The task_name of this CheckTableConfigResponse.
|
150
|
+
:type task_name: str
|
151
|
+
"""
|
152
|
+
self._task_name = task_name
|
153
|
+
|
154
|
+
def to_dict(self):
|
155
|
+
"""Returns the model properties as a dict"""
|
156
|
+
result = {}
|
157
|
+
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
159
|
+
value = getattr(self, attr)
|
160
|
+
if isinstance(value, list):
|
161
|
+
result[attr] = list(map(
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
163
|
+
value
|
164
|
+
))
|
165
|
+
elif hasattr(value, "to_dict"):
|
166
|
+
result[attr] = value.to_dict()
|
167
|
+
elif isinstance(value, dict):
|
168
|
+
result[attr] = dict(map(
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
171
|
+
value.items()
|
172
|
+
))
|
173
|
+
else:
|
174
|
+
if attr in self.sensitive_list:
|
175
|
+
result[attr] = "****"
|
176
|
+
else:
|
177
|
+
result[attr] = value
|
178
|
+
|
179
|
+
return result
|
180
|
+
|
181
|
+
def to_str(self):
|
182
|
+
"""Returns the string representation of the model"""
|
183
|
+
import simplejson as json
|
184
|
+
if six.PY2:
|
185
|
+
import sys
|
186
|
+
reload(sys)
|
187
|
+
sys.setdefaultencoding("utf-8")
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
189
|
+
|
190
|
+
def __repr__(self):
|
191
|
+
"""For `print`"""
|
192
|
+
return self.to_str()
|
193
|
+
|
194
|
+
def __eq__(self, other):
|
195
|
+
"""Returns true if both objects are equal"""
|
196
|
+
if not isinstance(other, CheckTableConfigResponse):
|
197
|
+
return False
|
198
|
+
|
199
|
+
return self.__dict__ == other.__dict__
|
200
|
+
|
201
|
+
def __ne__(self, other):
|
202
|
+
"""Returns true if both objects are not equal"""
|
203
|
+
return not self == other
|
@@ -0,0 +1,227 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CreateStarRocksDataReplication:
|
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
|
+
'source_instance_id': 'str',
|
21
|
+
'source_node_id': 'str',
|
22
|
+
'source_database': 'str',
|
23
|
+
'target_database': 'str',
|
24
|
+
'task_name': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'source_instance_id': 'source_instance_id',
|
29
|
+
'source_node_id': 'source_node_id',
|
30
|
+
'source_database': 'source_database',
|
31
|
+
'target_database': 'target_database',
|
32
|
+
'task_name': 'task_name'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, source_instance_id=None, source_node_id=None, source_database=None, target_database=None, task_name=None):
|
36
|
+
"""CreateStarRocksDataReplication
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param source_instance_id: GaussDB(for MySQL)实例ID。
|
41
|
+
:type source_instance_id: str
|
42
|
+
:param source_node_id: GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
|
43
|
+
:type source_node_id: str
|
44
|
+
:param source_database: 源数据库。
|
45
|
+
:type source_database: str
|
46
|
+
:param target_database: 目标数据库。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
47
|
+
:type target_database: str
|
48
|
+
:param task_name: 同步任务名。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
49
|
+
:type task_name: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._source_instance_id = None
|
55
|
+
self._source_node_id = None
|
56
|
+
self._source_database = None
|
57
|
+
self._target_database = None
|
58
|
+
self._task_name = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.source_instance_id = source_instance_id
|
62
|
+
if source_node_id is not None:
|
63
|
+
self.source_node_id = source_node_id
|
64
|
+
self.source_database = source_database
|
65
|
+
self.target_database = target_database
|
66
|
+
self.task_name = task_name
|
67
|
+
|
68
|
+
@property
|
69
|
+
def source_instance_id(self):
|
70
|
+
"""Gets the source_instance_id of this CreateStarRocksDataReplication.
|
71
|
+
|
72
|
+
GaussDB(for MySQL)实例ID。
|
73
|
+
|
74
|
+
:return: The source_instance_id of this CreateStarRocksDataReplication.
|
75
|
+
:rtype: str
|
76
|
+
"""
|
77
|
+
return self._source_instance_id
|
78
|
+
|
79
|
+
@source_instance_id.setter
|
80
|
+
def source_instance_id(self, source_instance_id):
|
81
|
+
"""Sets the source_instance_id of this CreateStarRocksDataReplication.
|
82
|
+
|
83
|
+
GaussDB(for MySQL)实例ID。
|
84
|
+
|
85
|
+
:param source_instance_id: The source_instance_id of this CreateStarRocksDataReplication.
|
86
|
+
:type source_instance_id: str
|
87
|
+
"""
|
88
|
+
self._source_instance_id = source_instance_id
|
89
|
+
|
90
|
+
@property
|
91
|
+
def source_node_id(self):
|
92
|
+
"""Gets the source_node_id of this CreateStarRocksDataReplication.
|
93
|
+
|
94
|
+
GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
|
95
|
+
|
96
|
+
:return: The source_node_id of this CreateStarRocksDataReplication.
|
97
|
+
:rtype: str
|
98
|
+
"""
|
99
|
+
return self._source_node_id
|
100
|
+
|
101
|
+
@source_node_id.setter
|
102
|
+
def source_node_id(self, source_node_id):
|
103
|
+
"""Sets the source_node_id of this CreateStarRocksDataReplication.
|
104
|
+
|
105
|
+
GaussDB(for MySQL)只读节点ID。如为空,则取GaussDB(for MySQL)主节点ID
|
106
|
+
|
107
|
+
:param source_node_id: The source_node_id of this CreateStarRocksDataReplication.
|
108
|
+
:type source_node_id: str
|
109
|
+
"""
|
110
|
+
self._source_node_id = source_node_id
|
111
|
+
|
112
|
+
@property
|
113
|
+
def source_database(self):
|
114
|
+
"""Gets the source_database of this CreateStarRocksDataReplication.
|
115
|
+
|
116
|
+
源数据库。
|
117
|
+
|
118
|
+
:return: The source_database of this CreateStarRocksDataReplication.
|
119
|
+
:rtype: str
|
120
|
+
"""
|
121
|
+
return self._source_database
|
122
|
+
|
123
|
+
@source_database.setter
|
124
|
+
def source_database(self, source_database):
|
125
|
+
"""Sets the source_database of this CreateStarRocksDataReplication.
|
126
|
+
|
127
|
+
源数据库。
|
128
|
+
|
129
|
+
:param source_database: The source_database of this CreateStarRocksDataReplication.
|
130
|
+
:type source_database: str
|
131
|
+
"""
|
132
|
+
self._source_database = source_database
|
133
|
+
|
134
|
+
@property
|
135
|
+
def target_database(self):
|
136
|
+
"""Gets the target_database of this CreateStarRocksDataReplication.
|
137
|
+
|
138
|
+
目标数据库。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
139
|
+
|
140
|
+
:return: The target_database of this CreateStarRocksDataReplication.
|
141
|
+
:rtype: str
|
142
|
+
"""
|
143
|
+
return self._target_database
|
144
|
+
|
145
|
+
@target_database.setter
|
146
|
+
def target_database(self, target_database):
|
147
|
+
"""Sets the target_database of this CreateStarRocksDataReplication.
|
148
|
+
|
149
|
+
目标数据库。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
150
|
+
|
151
|
+
:param target_database: The target_database of this CreateStarRocksDataReplication.
|
152
|
+
:type target_database: str
|
153
|
+
"""
|
154
|
+
self._target_database = target_database
|
155
|
+
|
156
|
+
@property
|
157
|
+
def task_name(self):
|
158
|
+
"""Gets the task_name of this CreateStarRocksDataReplication.
|
159
|
+
|
160
|
+
同步任务名。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
161
|
+
|
162
|
+
:return: The task_name of this CreateStarRocksDataReplication.
|
163
|
+
:rtype: str
|
164
|
+
"""
|
165
|
+
return self._task_name
|
166
|
+
|
167
|
+
@task_name.setter
|
168
|
+
def task_name(self, task_name):
|
169
|
+
"""Sets the task_name of this CreateStarRocksDataReplication.
|
170
|
+
|
171
|
+
同步任务名。 字符长度限制3~128位,仅支持英文大小写字母、数字以及下划线_。
|
172
|
+
|
173
|
+
:param task_name: The task_name of this CreateStarRocksDataReplication.
|
174
|
+
:type task_name: str
|
175
|
+
"""
|
176
|
+
self._task_name = task_name
|
177
|
+
|
178
|
+
def to_dict(self):
|
179
|
+
"""Returns the model properties as a dict"""
|
180
|
+
result = {}
|
181
|
+
|
182
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
183
|
+
value = getattr(self, attr)
|
184
|
+
if isinstance(value, list):
|
185
|
+
result[attr] = list(map(
|
186
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
187
|
+
value
|
188
|
+
))
|
189
|
+
elif hasattr(value, "to_dict"):
|
190
|
+
result[attr] = value.to_dict()
|
191
|
+
elif isinstance(value, dict):
|
192
|
+
result[attr] = dict(map(
|
193
|
+
lambda item: (item[0], item[1].to_dict())
|
194
|
+
if hasattr(item[1], "to_dict") else item,
|
195
|
+
value.items()
|
196
|
+
))
|
197
|
+
else:
|
198
|
+
if attr in self.sensitive_list:
|
199
|
+
result[attr] = "****"
|
200
|
+
else:
|
201
|
+
result[attr] = value
|
202
|
+
|
203
|
+
return result
|
204
|
+
|
205
|
+
def to_str(self):
|
206
|
+
"""Returns the string representation of the model"""
|
207
|
+
import simplejson as json
|
208
|
+
if six.PY2:
|
209
|
+
import sys
|
210
|
+
reload(sys)
|
211
|
+
sys.setdefaultencoding("utf-8")
|
212
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
213
|
+
|
214
|
+
def __repr__(self):
|
215
|
+
"""For `print`"""
|
216
|
+
return self.to_str()
|
217
|
+
|
218
|
+
def __eq__(self, other):
|
219
|
+
"""Returns true if both objects are equal"""
|
220
|
+
if not isinstance(other, CreateStarRocksDataReplication):
|
221
|
+
return False
|
222
|
+
|
223
|
+
return self.__dict__ == other.__dict__
|
224
|
+
|
225
|
+
def __ne__(self, other):
|
226
|
+
"""Returns true if both objects are not equal"""
|
227
|
+
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 CreateStarRocksDataReplicationRequest:
|
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': 'CreateStarRocksDataReplication'
|
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
|
+
"""CreateStarRocksDataReplicationRequest
|
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 CreateStarRocksDataReplicationRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplication`
|
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 CreateStarRocksDataReplicationRequest.
|
59
|
+
|
60
|
+
StarRocks实例ID,严格匹配UUID规则。
|
61
|
+
|
62
|
+
:return: The instance_id of this CreateStarRocksDataReplicationRequest.
|
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 CreateStarRocksDataReplicationRequest.
|
70
|
+
|
71
|
+
StarRocks实例ID,严格匹配UUID规则。
|
72
|
+
|
73
|
+
:param instance_id: The instance_id of this CreateStarRocksDataReplicationRequest.
|
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 CreateStarRocksDataReplicationRequest.
|
81
|
+
|
82
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
83
|
+
|
84
|
+
:return: The x_language of this CreateStarRocksDataReplicationRequest.
|
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 CreateStarRocksDataReplicationRequest.
|
92
|
+
|
93
|
+
请求语言类型。默认en-us。 取值范围: - en-us - zh-cn
|
94
|
+
|
95
|
+
:param x_language: The x_language of this CreateStarRocksDataReplicationRequest.
|
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 CreateStarRocksDataReplicationRequest.
|
103
|
+
|
104
|
+
:return: The body of this CreateStarRocksDataReplicationRequest.
|
105
|
+
:rtype: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplication`
|
106
|
+
"""
|
107
|
+
return self._body
|
108
|
+
|
109
|
+
@body.setter
|
110
|
+
def body(self, body):
|
111
|
+
"""Sets the body of this CreateStarRocksDataReplicationRequest.
|
112
|
+
|
113
|
+
:param body: The body of this CreateStarRocksDataReplicationRequest.
|
114
|
+
:type body: :class:`huaweicloudsdkgaussdb.v3.CreateStarRocksDataReplication`
|
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, CreateStarRocksDataReplicationRequest):
|
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
|