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