huaweicloudsdkgaussdbforopengauss 3.1.95__py2.py3-none-any.whl → 3.1.96__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.
@@ -0,0 +1,140 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RestoreInstanceRequest:
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
+ 'body': 'RestoreInstanceRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, x_language=None, body=None):
30
+ """RestoreInstanceRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言 Default:en-us;Enum:zh-cn,en-us;
35
+ :type x_language: str
36
+ :param body: Body of the RestoreInstanceRequest
37
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.RestoreInstanceRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ if body is not None:
49
+ self.body = body
50
+
51
+ @property
52
+ def x_language(self):
53
+ """Gets the x_language of this RestoreInstanceRequest.
54
+
55
+ 语言 Default:en-us;Enum:zh-cn,en-us;
56
+
57
+ :return: The x_language of this RestoreInstanceRequest.
58
+ :rtype: str
59
+ """
60
+ return self._x_language
61
+
62
+ @x_language.setter
63
+ def x_language(self, x_language):
64
+ """Sets the x_language of this RestoreInstanceRequest.
65
+
66
+ 语言 Default:en-us;Enum:zh-cn,en-us;
67
+
68
+ :param x_language: The x_language of this RestoreInstanceRequest.
69
+ :type x_language: str
70
+ """
71
+ self._x_language = x_language
72
+
73
+ @property
74
+ def body(self):
75
+ """Gets the body of this RestoreInstanceRequest.
76
+
77
+ :return: The body of this RestoreInstanceRequest.
78
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.RestoreInstanceRequestBody`
79
+ """
80
+ return self._body
81
+
82
+ @body.setter
83
+ def body(self, body):
84
+ """Sets the body of this RestoreInstanceRequest.
85
+
86
+ :param body: The body of this RestoreInstanceRequest.
87
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.RestoreInstanceRequestBody`
88
+ """
89
+ self._body = body
90
+
91
+ def to_dict(self):
92
+ """Returns the model properties as a dict"""
93
+ result = {}
94
+
95
+ for attr, _ in six.iteritems(self.openapi_types):
96
+ value = getattr(self, attr)
97
+ if isinstance(value, list):
98
+ result[attr] = list(map(
99
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
100
+ value
101
+ ))
102
+ elif hasattr(value, "to_dict"):
103
+ result[attr] = value.to_dict()
104
+ elif isinstance(value, dict):
105
+ result[attr] = dict(map(
106
+ lambda item: (item[0], item[1].to_dict())
107
+ if hasattr(item[1], "to_dict") else item,
108
+ value.items()
109
+ ))
110
+ else:
111
+ if attr in self.sensitive_list:
112
+ result[attr] = "****"
113
+ else:
114
+ result[attr] = value
115
+
116
+ return result
117
+
118
+ def to_str(self):
119
+ """Returns the string representation of the model"""
120
+ import simplejson as json
121
+ if six.PY2:
122
+ import sys
123
+ reload(sys)
124
+ sys.setdefaultencoding("utf-8")
125
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
126
+
127
+ def __repr__(self):
128
+ """For `print`"""
129
+ return self.to_str()
130
+
131
+ def __eq__(self, other):
132
+ """Returns true if both objects are equal"""
133
+ if not isinstance(other, RestoreInstanceRequest):
134
+ return False
135
+
136
+ return self.__dict__ == other.__dict__
137
+
138
+ def __ne__(self, other):
139
+ """Returns true if both objects are not equal"""
140
+ return not self == other
@@ -0,0 +1,134 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RestoreInstanceRequestBody:
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': 'RecoveryBackupSource',
21
+ 'target': 'RecoveryBackupTarget'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'source': 'source',
26
+ 'target': 'target'
27
+ }
28
+
29
+ def __init__(self, source=None, target=None):
30
+ """RestoreInstanceRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param source:
35
+ :type source: :class:`huaweicloudsdkgaussdbforopengauss.v3.RecoveryBackupSource`
36
+ :param target:
37
+ :type target: :class:`huaweicloudsdkgaussdbforopengauss.v3.RecoveryBackupTarget`
38
+ """
39
+
40
+
41
+
42
+ self._source = None
43
+ self._target = None
44
+ self.discriminator = None
45
+
46
+ self.source = source
47
+ self.target = target
48
+
49
+ @property
50
+ def source(self):
51
+ """Gets the source of this RestoreInstanceRequestBody.
52
+
53
+ :return: The source of this RestoreInstanceRequestBody.
54
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.RecoveryBackupSource`
55
+ """
56
+ return self._source
57
+
58
+ @source.setter
59
+ def source(self, source):
60
+ """Sets the source of this RestoreInstanceRequestBody.
61
+
62
+ :param source: The source of this RestoreInstanceRequestBody.
63
+ :type source: :class:`huaweicloudsdkgaussdbforopengauss.v3.RecoveryBackupSource`
64
+ """
65
+ self._source = source
66
+
67
+ @property
68
+ def target(self):
69
+ """Gets the target of this RestoreInstanceRequestBody.
70
+
71
+ :return: The target of this RestoreInstanceRequestBody.
72
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.RecoveryBackupTarget`
73
+ """
74
+ return self._target
75
+
76
+ @target.setter
77
+ def target(self, target):
78
+ """Sets the target of this RestoreInstanceRequestBody.
79
+
80
+ :param target: The target of this RestoreInstanceRequestBody.
81
+ :type target: :class:`huaweicloudsdkgaussdbforopengauss.v3.RecoveryBackupTarget`
82
+ """
83
+ self._target = target
84
+
85
+ def to_dict(self):
86
+ """Returns the model properties as a dict"""
87
+ result = {}
88
+
89
+ for attr, _ in six.iteritems(self.openapi_types):
90
+ value = getattr(self, attr)
91
+ if isinstance(value, list):
92
+ result[attr] = list(map(
93
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
94
+ value
95
+ ))
96
+ elif hasattr(value, "to_dict"):
97
+ result[attr] = value.to_dict()
98
+ elif isinstance(value, dict):
99
+ result[attr] = dict(map(
100
+ lambda item: (item[0], item[1].to_dict())
101
+ if hasattr(item[1], "to_dict") else item,
102
+ value.items()
103
+ ))
104
+ else:
105
+ if attr in self.sensitive_list:
106
+ result[attr] = "****"
107
+ else:
108
+ result[attr] = value
109
+
110
+ return result
111
+
112
+ def to_str(self):
113
+ """Returns the string representation of the model"""
114
+ import simplejson as json
115
+ if six.PY2:
116
+ import sys
117
+ reload(sys)
118
+ sys.setdefaultencoding("utf-8")
119
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
120
+
121
+ def __repr__(self):
122
+ """For `print`"""
123
+ return self.to_str()
124
+
125
+ def __eq__(self, other):
126
+ """Returns true if both objects are equal"""
127
+ if not isinstance(other, RestoreInstanceRequestBody):
128
+ return False
129
+
130
+ return self.__dict__ == other.__dict__
131
+
132
+ def __ne__(self, other):
133
+ """Returns true if both objects are not equal"""
134
+ 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 RestoreInstanceResponse(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
+ """RestoreInstanceResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 恢复当前实例的任务id。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(RestoreInstanceResponse, 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 RestoreInstanceResponse.
48
+
49
+ 恢复当前实例的任务id。
50
+
51
+ :return: The job_id of this RestoreInstanceResponse.
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 RestoreInstanceResponse.
59
+
60
+ 恢复当前实例的任务id。
61
+
62
+ :param job_id: The job_id of this RestoreInstanceResponse.
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, RestoreInstanceResponse):
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,259 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RestoreTableListDetail:
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
+ 'db_name': 'str',
21
+ 'schema_name': 'str',
22
+ 'table_name': 'str',
23
+ 'new_db_name': 'str',
24
+ 'new_schema_name': 'str',
25
+ 'new_table_name': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'db_name': 'db_name',
30
+ 'schema_name': 'schema_name',
31
+ 'table_name': 'table_name',
32
+ 'new_db_name': 'new_db_name',
33
+ 'new_schema_name': 'new_schema_name',
34
+ 'new_table_name': 'new_table_name'
35
+ }
36
+
37
+ def __init__(self, db_name=None, schema_name=None, table_name=None, new_db_name=None, new_schema_name=None, new_table_name=None):
38
+ """RestoreTableListDetail
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param db_name: 库名参数必传
43
+ :type db_name: str
44
+ :param schema_name: schema名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。
45
+ :type schema_name: str
46
+ :param table_name: 表名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。
47
+ :type table_name: str
48
+ :param new_db_name: 新库名 备份恢复到新实例和当前实例: 使用DATABASE级别恢复:需注意目标实例不存在当前一样的库名,否则无法下发。 使用DATABASE_TABLE级别恢复,不填时与源库名一致。
49
+ :type new_db_name: str
50
+ :param new_schema_name: 新schema_name 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,不填时与源schema名一致。
51
+ :type new_schema_name: str
52
+ :param new_table_name: 新表名 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,需注意目标实例里不存在当前的表名,否则无法下发。
53
+ :type new_table_name: str
54
+ """
55
+
56
+
57
+
58
+ self._db_name = None
59
+ self._schema_name = None
60
+ self._table_name = None
61
+ self._new_db_name = None
62
+ self._new_schema_name = None
63
+ self._new_table_name = None
64
+ self.discriminator = None
65
+
66
+ self.db_name = db_name
67
+ if schema_name is not None:
68
+ self.schema_name = schema_name
69
+ if table_name is not None:
70
+ self.table_name = table_name
71
+ if new_db_name is not None:
72
+ self.new_db_name = new_db_name
73
+ if new_schema_name is not None:
74
+ self.new_schema_name = new_schema_name
75
+ if new_table_name is not None:
76
+ self.new_table_name = new_table_name
77
+
78
+ @property
79
+ def db_name(self):
80
+ """Gets the db_name of this RestoreTableListDetail.
81
+
82
+ 库名参数必传
83
+
84
+ :return: The db_name of this RestoreTableListDetail.
85
+ :rtype: str
86
+ """
87
+ return self._db_name
88
+
89
+ @db_name.setter
90
+ def db_name(self, db_name):
91
+ """Sets the db_name of this RestoreTableListDetail.
92
+
93
+ 库名参数必传
94
+
95
+ :param db_name: The db_name of this RestoreTableListDetail.
96
+ :type db_name: str
97
+ """
98
+ self._db_name = db_name
99
+
100
+ @property
101
+ def schema_name(self):
102
+ """Gets the schema_name of this RestoreTableListDetail.
103
+
104
+ schema名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。
105
+
106
+ :return: The schema_name of this RestoreTableListDetail.
107
+ :rtype: str
108
+ """
109
+ return self._schema_name
110
+
111
+ @schema_name.setter
112
+ def schema_name(self, schema_name):
113
+ """Sets the schema_name of this RestoreTableListDetail.
114
+
115
+ schema名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。
116
+
117
+ :param schema_name: The schema_name of this RestoreTableListDetail.
118
+ :type schema_name: str
119
+ """
120
+ self._schema_name = schema_name
121
+
122
+ @property
123
+ def table_name(self):
124
+ """Gets the table_name of this RestoreTableListDetail.
125
+
126
+ 表名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。
127
+
128
+ :return: The table_name of this RestoreTableListDetail.
129
+ :rtype: str
130
+ """
131
+ return self._table_name
132
+
133
+ @table_name.setter
134
+ def table_name(self, table_name):
135
+ """Sets the table_name of this RestoreTableListDetail.
136
+
137
+ 表名 备份恢复到新实例和当前实例:使用DATABASE_TABLE级别恢复参数必传, 使用DATABASE类型恢复参数无效。
138
+
139
+ :param table_name: The table_name of this RestoreTableListDetail.
140
+ :type table_name: str
141
+ """
142
+ self._table_name = table_name
143
+
144
+ @property
145
+ def new_db_name(self):
146
+ """Gets the new_db_name of this RestoreTableListDetail.
147
+
148
+ 新库名 备份恢复到新实例和当前实例: 使用DATABASE级别恢复:需注意目标实例不存在当前一样的库名,否则无法下发。 使用DATABASE_TABLE级别恢复,不填时与源库名一致。
149
+
150
+ :return: The new_db_name of this RestoreTableListDetail.
151
+ :rtype: str
152
+ """
153
+ return self._new_db_name
154
+
155
+ @new_db_name.setter
156
+ def new_db_name(self, new_db_name):
157
+ """Sets the new_db_name of this RestoreTableListDetail.
158
+
159
+ 新库名 备份恢复到新实例和当前实例: 使用DATABASE级别恢复:需注意目标实例不存在当前一样的库名,否则无法下发。 使用DATABASE_TABLE级别恢复,不填时与源库名一致。
160
+
161
+ :param new_db_name: The new_db_name of this RestoreTableListDetail.
162
+ :type new_db_name: str
163
+ """
164
+ self._new_db_name = new_db_name
165
+
166
+ @property
167
+ def new_schema_name(self):
168
+ """Gets the new_schema_name of this RestoreTableListDetail.
169
+
170
+ 新schema_name 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,不填时与源schema名一致。
171
+
172
+ :return: The new_schema_name of this RestoreTableListDetail.
173
+ :rtype: str
174
+ """
175
+ return self._new_schema_name
176
+
177
+ @new_schema_name.setter
178
+ def new_schema_name(self, new_schema_name):
179
+ """Sets the new_schema_name of this RestoreTableListDetail.
180
+
181
+ 新schema_name 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,不填时与源schema名一致。
182
+
183
+ :param new_schema_name: The new_schema_name of this RestoreTableListDetail.
184
+ :type new_schema_name: str
185
+ """
186
+ self._new_schema_name = new_schema_name
187
+
188
+ @property
189
+ def new_table_name(self):
190
+ """Gets the new_table_name of this RestoreTableListDetail.
191
+
192
+ 新表名 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,需注意目标实例里不存在当前的表名,否则无法下发。
193
+
194
+ :return: The new_table_name of this RestoreTableListDetail.
195
+ :rtype: str
196
+ """
197
+ return self._new_table_name
198
+
199
+ @new_table_name.setter
200
+ def new_table_name(self, new_table_name):
201
+ """Sets the new_table_name of this RestoreTableListDetail.
202
+
203
+ 新表名 备份恢复到新实例和当前实例: 使用DATABASE类型恢复参数无效。 使用DATABASE_TABLE级别恢复,需注意目标实例里不存在当前的表名,否则无法下发。
204
+
205
+ :param new_table_name: The new_table_name of this RestoreTableListDetail.
206
+ :type new_table_name: str
207
+ """
208
+ self._new_table_name = new_table_name
209
+
210
+ def to_dict(self):
211
+ """Returns the model properties as a dict"""
212
+ result = {}
213
+
214
+ for attr, _ in six.iteritems(self.openapi_types):
215
+ value = getattr(self, attr)
216
+ if isinstance(value, list):
217
+ result[attr] = list(map(
218
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
+ value
220
+ ))
221
+ elif hasattr(value, "to_dict"):
222
+ result[attr] = value.to_dict()
223
+ elif isinstance(value, dict):
224
+ result[attr] = dict(map(
225
+ lambda item: (item[0], item[1].to_dict())
226
+ if hasattr(item[1], "to_dict") else item,
227
+ value.items()
228
+ ))
229
+ else:
230
+ if attr in self.sensitive_list:
231
+ result[attr] = "****"
232
+ else:
233
+ result[attr] = value
234
+
235
+ return result
236
+
237
+ def to_str(self):
238
+ """Returns the string representation of the model"""
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
+
246
+ def __repr__(self):
247
+ """For `print`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, RestoreTableListDetail):
253
+ return False
254
+
255
+ return self.__dict__ == other.__dict__
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkgaussdbforopengauss
3
- Version: 3.1.95
3
+ Version: 3.1.96
4
4
  Summary: GaussDBforopenGauss
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.95
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.96
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).