huaweicloudsdkgaussdbforopengauss 3.1.165__py3-none-any.whl → 3.1.166__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.
@@ -0,0 +1,85 @@
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 ExportSlowSqlResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""ExportSlowSqlResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(ExportSlowSqlResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, ExportSlowSqlResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,258 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExportTableVolumeRequestBody:
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
+ 'database_name': 'str',
21
+ 'schema_names': 'list[str]',
22
+ 'table_name': 'str',
23
+ 'user_name': 'str',
24
+ 'sort_key': 'str',
25
+ 'sort_order': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'database_name': 'database_name',
30
+ 'schema_names': 'schema_names',
31
+ 'table_name': 'table_name',
32
+ 'user_name': 'user_name',
33
+ 'sort_key': 'sort_key',
34
+ 'sort_order': 'sort_order'
35
+ }
36
+
37
+ def __init__(self, database_name=None, schema_names=None, table_name=None, user_name=None, sort_key=None, sort_order=None):
38
+ r"""ExportTableVolumeRequestBody
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param database_name: **参数解释**: 数据库名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
43
+ :type database_name: str
44
+ :param schema_names: **参数解释**: schema名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
45
+ :type schema_names: list[str]
46
+ :param table_name: **参数解释**: 表名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
47
+ :type table_name: str
48
+ :param user_name: **参数解释**: 表所属用户名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
49
+ :type user_name: str
50
+ :param sort_key: **参数解释**: 排序字段。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
51
+ :type sort_key: str
52
+ :param sort_order: **参数解释**: 排序方法。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
53
+ :type sort_order: str
54
+ """
55
+
56
+
57
+
58
+ self._database_name = None
59
+ self._schema_names = None
60
+ self._table_name = None
61
+ self._user_name = None
62
+ self._sort_key = None
63
+ self._sort_order = None
64
+ self.discriminator = None
65
+
66
+ self.database_name = database_name
67
+ self.schema_names = schema_names
68
+ if table_name is not None:
69
+ self.table_name = table_name
70
+ if user_name is not None:
71
+ self.user_name = user_name
72
+ if sort_key is not None:
73
+ self.sort_key = sort_key
74
+ if sort_order is not None:
75
+ self.sort_order = sort_order
76
+
77
+ @property
78
+ def database_name(self):
79
+ r"""Gets the database_name of this ExportTableVolumeRequestBody.
80
+
81
+ **参数解释**: 数据库名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
82
+
83
+ :return: The database_name of this ExportTableVolumeRequestBody.
84
+ :rtype: str
85
+ """
86
+ return self._database_name
87
+
88
+ @database_name.setter
89
+ def database_name(self, database_name):
90
+ r"""Sets the database_name of this ExportTableVolumeRequestBody.
91
+
92
+ **参数解释**: 数据库名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
93
+
94
+ :param database_name: The database_name of this ExportTableVolumeRequestBody.
95
+ :type database_name: str
96
+ """
97
+ self._database_name = database_name
98
+
99
+ @property
100
+ def schema_names(self):
101
+ r"""Gets the schema_names of this ExportTableVolumeRequestBody.
102
+
103
+ **参数解释**: schema名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
104
+
105
+ :return: The schema_names of this ExportTableVolumeRequestBody.
106
+ :rtype: list[str]
107
+ """
108
+ return self._schema_names
109
+
110
+ @schema_names.setter
111
+ def schema_names(self, schema_names):
112
+ r"""Sets the schema_names of this ExportTableVolumeRequestBody.
113
+
114
+ **参数解释**: schema名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
115
+
116
+ :param schema_names: The schema_names of this ExportTableVolumeRequestBody.
117
+ :type schema_names: list[str]
118
+ """
119
+ self._schema_names = schema_names
120
+
121
+ @property
122
+ def table_name(self):
123
+ r"""Gets the table_name of this ExportTableVolumeRequestBody.
124
+
125
+ **参数解释**: 表名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
126
+
127
+ :return: The table_name of this ExportTableVolumeRequestBody.
128
+ :rtype: str
129
+ """
130
+ return self._table_name
131
+
132
+ @table_name.setter
133
+ def table_name(self, table_name):
134
+ r"""Sets the table_name of this ExportTableVolumeRequestBody.
135
+
136
+ **参数解释**: 表名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
137
+
138
+ :param table_name: The table_name of this ExportTableVolumeRequestBody.
139
+ :type table_name: str
140
+ """
141
+ self._table_name = table_name
142
+
143
+ @property
144
+ def user_name(self):
145
+ r"""Gets the user_name of this ExportTableVolumeRequestBody.
146
+
147
+ **参数解释**: 表所属用户名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
148
+
149
+ :return: The user_name of this ExportTableVolumeRequestBody.
150
+ :rtype: str
151
+ """
152
+ return self._user_name
153
+
154
+ @user_name.setter
155
+ def user_name(self, user_name):
156
+ r"""Sets the user_name of this ExportTableVolumeRequestBody.
157
+
158
+ **参数解释**: 表所属用户名称。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
159
+
160
+ :param user_name: The user_name of this ExportTableVolumeRequestBody.
161
+ :type user_name: str
162
+ """
163
+ self._user_name = user_name
164
+
165
+ @property
166
+ def sort_key(self):
167
+ r"""Gets the sort_key of this ExportTableVolumeRequestBody.
168
+
169
+ **参数解释**: 排序字段。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
170
+
171
+ :return: The sort_key of this ExportTableVolumeRequestBody.
172
+ :rtype: str
173
+ """
174
+ return self._sort_key
175
+
176
+ @sort_key.setter
177
+ def sort_key(self, sort_key):
178
+ r"""Sets the sort_key of this ExportTableVolumeRequestBody.
179
+
180
+ **参数解释**: 排序字段。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
181
+
182
+ :param sort_key: The sort_key of this ExportTableVolumeRequestBody.
183
+ :type sort_key: str
184
+ """
185
+ self._sort_key = sort_key
186
+
187
+ @property
188
+ def sort_order(self):
189
+ r"""Gets the sort_order of this ExportTableVolumeRequestBody.
190
+
191
+ **参数解释**: 排序方法。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
192
+
193
+ :return: The sort_order of this ExportTableVolumeRequestBody.
194
+ :rtype: str
195
+ """
196
+ return self._sort_order
197
+
198
+ @sort_order.setter
199
+ def sort_order(self, sort_order):
200
+ r"""Sets the sort_order of this ExportTableVolumeRequestBody.
201
+
202
+ **参数解释**: 排序方法。 **约束限制**: 不涉及 **取值范围**: 不涉及 **默认取值**: 不涉及。
203
+
204
+ :param sort_order: The sort_order of this ExportTableVolumeRequestBody.
205
+ :type sort_order: str
206
+ """
207
+ self._sort_order = sort_order
208
+
209
+ def to_dict(self):
210
+ """Returns the model properties as a dict"""
211
+ result = {}
212
+
213
+ for attr, _ in six.iteritems(self.openapi_types):
214
+ value = getattr(self, attr)
215
+ if isinstance(value, list):
216
+ result[attr] = list(map(
217
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
+ value
219
+ ))
220
+ elif hasattr(value, "to_dict"):
221
+ result[attr] = value.to_dict()
222
+ elif isinstance(value, dict):
223
+ result[attr] = dict(map(
224
+ lambda item: (item[0], item[1].to_dict())
225
+ if hasattr(item[1], "to_dict") else item,
226
+ value.items()
227
+ ))
228
+ else:
229
+ if attr in self.sensitive_list:
230
+ result[attr] = "****"
231
+ else:
232
+ result[attr] = value
233
+
234
+ return result
235
+
236
+ def to_str(self):
237
+ """Returns the string representation of the model"""
238
+ import simplejson as json
239
+ if six.PY2:
240
+ import sys
241
+ reload(sys)
242
+ sys.setdefaultencoding("utf-8")
243
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
244
+
245
+ def __repr__(self):
246
+ """For `print`"""
247
+ return self.to_str()
248
+
249
+ def __eq__(self, other):
250
+ """Returns true if both objects are equal"""
251
+ if not isinstance(other, ExportTableVolumeRequestBody):
252
+ return False
253
+
254
+ return self.__dict__ == other.__dict__
255
+
256
+ def __ne__(self, other):
257
+ """Returns true if both objects are not equal"""
258
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSchemaAndTableRequest:
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': 'ListSchemaAndTableRequestBody'
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
+ r"""ListSchemaAndTableRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言, 默认值为en-us。
37
+ :type x_language: str
38
+ :param instance_id: 实例ID
39
+ :type instance_id: str
40
+ :param body: Body of the ListSchemaAndTableRequest
41
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ r"""Gets the x_language of this ListSchemaAndTableRequest.
60
+
61
+ 语言, 默认值为en-us。
62
+
63
+ :return: The x_language of this ListSchemaAndTableRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ r"""Sets the x_language of this ListSchemaAndTableRequest.
71
+
72
+ 语言, 默认值为en-us。
73
+
74
+ :param x_language: The x_language of this ListSchemaAndTableRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ r"""Gets the instance_id of this ListSchemaAndTableRequest.
82
+
83
+ 实例ID
84
+
85
+ :return: The instance_id of this ListSchemaAndTableRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ r"""Sets the instance_id of this ListSchemaAndTableRequest.
93
+
94
+ 实例ID
95
+
96
+ :param instance_id: The instance_id of this ListSchemaAndTableRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ r"""Gets the body of this ListSchemaAndTableRequest.
104
+
105
+ :return: The body of this ListSchemaAndTableRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ r"""Sets the body of this ListSchemaAndTableRequest.
113
+
114
+ :param body: The body of this ListSchemaAndTableRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListSchemaAndTableRequestBody`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, ListSchemaAndTableRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSchemaAndTableRequestBody:
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
+ 'sql_text': 'str',
21
+ 'instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'sql_text': 'sql_text',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, sql_text=None, instance_id=None):
30
+ r"""ListSchemaAndTableRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param sql_text: SQL文本
35
+ :type sql_text: str
36
+ :param instance_id: 实例ID
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._sql_text = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ self.sql_text = sql_text
47
+ self.instance_id = instance_id
48
+
49
+ @property
50
+ def sql_text(self):
51
+ r"""Gets the sql_text of this ListSchemaAndTableRequestBody.
52
+
53
+ SQL文本
54
+
55
+ :return: The sql_text of this ListSchemaAndTableRequestBody.
56
+ :rtype: str
57
+ """
58
+ return self._sql_text
59
+
60
+ @sql_text.setter
61
+ def sql_text(self, sql_text):
62
+ r"""Sets the sql_text of this ListSchemaAndTableRequestBody.
63
+
64
+ SQL文本
65
+
66
+ :param sql_text: The sql_text of this ListSchemaAndTableRequestBody.
67
+ :type sql_text: str
68
+ """
69
+ self._sql_text = sql_text
70
+
71
+ @property
72
+ def instance_id(self):
73
+ r"""Gets the instance_id of this ListSchemaAndTableRequestBody.
74
+
75
+ 实例ID
76
+
77
+ :return: The instance_id of this ListSchemaAndTableRequestBody.
78
+ :rtype: str
79
+ """
80
+ return self._instance_id
81
+
82
+ @instance_id.setter
83
+ def instance_id(self, instance_id):
84
+ r"""Sets the instance_id of this ListSchemaAndTableRequestBody.
85
+
86
+ 实例ID
87
+
88
+ :param instance_id: The instance_id of this ListSchemaAndTableRequestBody.
89
+ :type instance_id: str
90
+ """
91
+ self._instance_id = instance_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, ListSchemaAndTableRequestBody):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other