huaweicloudsdkgaussdbforopengauss 3.1.42__py2.py3-none-any.whl → 3.1.44__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 (35) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +26 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +393 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +387 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +26 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/backups_result.py +372 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/configuration_result.py +339 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_request.py +140 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_response.py +170 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/flavor_result.py +310 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_request.py +318 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_response.py +145 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_request.py +260 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_response.py +145 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_ha_result.py +142 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_result.py +932 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_request.py +376 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_response.py +145 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_request.py +173 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_response.py +145 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/node_result.py +311 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_option.py +143 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_result.py +142 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +170 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_result.py +170 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +693 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_result.py +544 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_volume_result.py +142 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_request.py +143 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_response.py +232 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/tag_result.py +142 -0
  31. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/METADATA +2 -2
  32. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/RECORD +35 -9
  33. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/LICENSE +0 -0
  34. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/WHEEL +0 -0
  35. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
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 ListParamGroupTemplatesResponse(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
+ 'count': 'int',
22
+ 'configurations': 'list[ConfigurationResult]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'count': 'count',
27
+ 'configurations': 'configurations'
28
+ }
29
+
30
+ def __init__(self, count=None, configurations=None):
31
+ """ListParamGroupTemplatesResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param count: 参数模板数量。
36
+ :type count: int
37
+ :param configurations: 参数模板列表。
38
+ :type configurations: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationResult`]
39
+ """
40
+
41
+ super(ListParamGroupTemplatesResponse, self).__init__()
42
+
43
+ self._count = None
44
+ self._configurations = None
45
+ self.discriminator = None
46
+
47
+ if count is not None:
48
+ self.count = count
49
+ if configurations is not None:
50
+ self.configurations = configurations
51
+
52
+ @property
53
+ def count(self):
54
+ """Gets the count of this ListParamGroupTemplatesResponse.
55
+
56
+ 参数模板数量。
57
+
58
+ :return: The count of this ListParamGroupTemplatesResponse.
59
+ :rtype: int
60
+ """
61
+ return self._count
62
+
63
+ @count.setter
64
+ def count(self, count):
65
+ """Sets the count of this ListParamGroupTemplatesResponse.
66
+
67
+ 参数模板数量。
68
+
69
+ :param count: The count of this ListParamGroupTemplatesResponse.
70
+ :type count: int
71
+ """
72
+ self._count = count
73
+
74
+ @property
75
+ def configurations(self):
76
+ """Gets the configurations of this ListParamGroupTemplatesResponse.
77
+
78
+ 参数模板列表。
79
+
80
+ :return: The configurations of this ListParamGroupTemplatesResponse.
81
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationResult`]
82
+ """
83
+ return self._configurations
84
+
85
+ @configurations.setter
86
+ def configurations(self, configurations):
87
+ """Sets the configurations of this ListParamGroupTemplatesResponse.
88
+
89
+ 参数模板列表。
90
+
91
+ :param configurations: The configurations of this ListParamGroupTemplatesResponse.
92
+ :type configurations: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ConfigurationResult`]
93
+ """
94
+ self._configurations = configurations
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, ListParamGroupTemplatesResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -0,0 +1,311 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class NodeResult:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'role': 'str',
23
+ 'status': 'str',
24
+ 'availability_zone': 'str',
25
+ 'private_ip': 'str',
26
+ 'public_ip': 'str',
27
+ 'component_names': 'str'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'id': 'id',
32
+ 'name': 'name',
33
+ 'role': 'role',
34
+ 'status': 'status',
35
+ 'availability_zone': 'availability_zone',
36
+ 'private_ip': 'private_ip',
37
+ 'public_ip': 'public_ip',
38
+ 'component_names': 'component_names'
39
+ }
40
+
41
+ def __init__(self, id=None, name=None, role=None, status=None, availability_zone=None, private_ip=None, public_ip=None, component_names=None):
42
+ """NodeResult
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param id: 节点ID。
47
+ :type id: str
48
+ :param name: 节点名称。
49
+ :type name: str
50
+ :param role: 节点类型,取值为“master”、“slave”,分别对应于主节点、备节点。
51
+ :type role: str
52
+ :param status: 节点状态。
53
+ :type status: str
54
+ :param availability_zone: 可用区。
55
+ :type availability_zone: str
56
+ :param private_ip: 节点内网IP。分布式实例类型下该参数仅针对CN节点有效,主备版实例类型下该参数对所有节点有效,且在弹性云服务器创建成功后参数值存在。
57
+ :type private_ip: str
58
+ :param public_ip: 绑定的外网IP。分布式实例类型下该参数仅针对CN节点有效,主备版实例类型下该参数对所有节点有效,且在弹性云服务器创建成功并绑定弹性公网IP后参数值存在。
59
+ :type public_ip: str
60
+ :param component_names: 节点上组件信息(例组件ID:分布式ID),多个组件信息用;隔开。
61
+ :type component_names: str
62
+ """
63
+
64
+
65
+
66
+ self._id = None
67
+ self._name = None
68
+ self._role = None
69
+ self._status = None
70
+ self._availability_zone = None
71
+ self._private_ip = None
72
+ self._public_ip = None
73
+ self._component_names = None
74
+ self.discriminator = None
75
+
76
+ self.id = id
77
+ self.name = name
78
+ self.role = role
79
+ self.status = status
80
+ self.availability_zone = availability_zone
81
+ self.private_ip = private_ip
82
+ self.public_ip = public_ip
83
+ if component_names is not None:
84
+ self.component_names = component_names
85
+
86
+ @property
87
+ def id(self):
88
+ """Gets the id of this NodeResult.
89
+
90
+ 节点ID。
91
+
92
+ :return: The id of this NodeResult.
93
+ :rtype: str
94
+ """
95
+ return self._id
96
+
97
+ @id.setter
98
+ def id(self, id):
99
+ """Sets the id of this NodeResult.
100
+
101
+ 节点ID。
102
+
103
+ :param id: The id of this NodeResult.
104
+ :type id: str
105
+ """
106
+ self._id = id
107
+
108
+ @property
109
+ def name(self):
110
+ """Gets the name of this NodeResult.
111
+
112
+ 节点名称。
113
+
114
+ :return: The name of this NodeResult.
115
+ :rtype: str
116
+ """
117
+ return self._name
118
+
119
+ @name.setter
120
+ def name(self, name):
121
+ """Sets the name of this NodeResult.
122
+
123
+ 节点名称。
124
+
125
+ :param name: The name of this NodeResult.
126
+ :type name: str
127
+ """
128
+ self._name = name
129
+
130
+ @property
131
+ def role(self):
132
+ """Gets the role of this NodeResult.
133
+
134
+ 节点类型,取值为“master”、“slave”,分别对应于主节点、备节点。
135
+
136
+ :return: The role of this NodeResult.
137
+ :rtype: str
138
+ """
139
+ return self._role
140
+
141
+ @role.setter
142
+ def role(self, role):
143
+ """Sets the role of this NodeResult.
144
+
145
+ 节点类型,取值为“master”、“slave”,分别对应于主节点、备节点。
146
+
147
+ :param role: The role of this NodeResult.
148
+ :type role: str
149
+ """
150
+ self._role = role
151
+
152
+ @property
153
+ def status(self):
154
+ """Gets the status of this NodeResult.
155
+
156
+ 节点状态。
157
+
158
+ :return: The status of this NodeResult.
159
+ :rtype: str
160
+ """
161
+ return self._status
162
+
163
+ @status.setter
164
+ def status(self, status):
165
+ """Sets the status of this NodeResult.
166
+
167
+ 节点状态。
168
+
169
+ :param status: The status of this NodeResult.
170
+ :type status: str
171
+ """
172
+ self._status = status
173
+
174
+ @property
175
+ def availability_zone(self):
176
+ """Gets the availability_zone of this NodeResult.
177
+
178
+ 可用区。
179
+
180
+ :return: The availability_zone of this NodeResult.
181
+ :rtype: str
182
+ """
183
+ return self._availability_zone
184
+
185
+ @availability_zone.setter
186
+ def availability_zone(self, availability_zone):
187
+ """Sets the availability_zone of this NodeResult.
188
+
189
+ 可用区。
190
+
191
+ :param availability_zone: The availability_zone of this NodeResult.
192
+ :type availability_zone: str
193
+ """
194
+ self._availability_zone = availability_zone
195
+
196
+ @property
197
+ def private_ip(self):
198
+ """Gets the private_ip of this NodeResult.
199
+
200
+ 节点内网IP。分布式实例类型下该参数仅针对CN节点有效,主备版实例类型下该参数对所有节点有效,且在弹性云服务器创建成功后参数值存在。
201
+
202
+ :return: The private_ip of this NodeResult.
203
+ :rtype: str
204
+ """
205
+ return self._private_ip
206
+
207
+ @private_ip.setter
208
+ def private_ip(self, private_ip):
209
+ """Sets the private_ip of this NodeResult.
210
+
211
+ 节点内网IP。分布式实例类型下该参数仅针对CN节点有效,主备版实例类型下该参数对所有节点有效,且在弹性云服务器创建成功后参数值存在。
212
+
213
+ :param private_ip: The private_ip of this NodeResult.
214
+ :type private_ip: str
215
+ """
216
+ self._private_ip = private_ip
217
+
218
+ @property
219
+ def public_ip(self):
220
+ """Gets the public_ip of this NodeResult.
221
+
222
+ 绑定的外网IP。分布式实例类型下该参数仅针对CN节点有效,主备版实例类型下该参数对所有节点有效,且在弹性云服务器创建成功并绑定弹性公网IP后参数值存在。
223
+
224
+ :return: The public_ip of this NodeResult.
225
+ :rtype: str
226
+ """
227
+ return self._public_ip
228
+
229
+ @public_ip.setter
230
+ def public_ip(self, public_ip):
231
+ """Sets the public_ip of this NodeResult.
232
+
233
+ 绑定的外网IP。分布式实例类型下该参数仅针对CN节点有效,主备版实例类型下该参数对所有节点有效,且在弹性云服务器创建成功并绑定弹性公网IP后参数值存在。
234
+
235
+ :param public_ip: The public_ip of this NodeResult.
236
+ :type public_ip: str
237
+ """
238
+ self._public_ip = public_ip
239
+
240
+ @property
241
+ def component_names(self):
242
+ """Gets the component_names of this NodeResult.
243
+
244
+ 节点上组件信息(例组件ID:分布式ID),多个组件信息用;隔开。
245
+
246
+ :return: The component_names of this NodeResult.
247
+ :rtype: str
248
+ """
249
+ return self._component_names
250
+
251
+ @component_names.setter
252
+ def component_names(self, component_names):
253
+ """Sets the component_names of this NodeResult.
254
+
255
+ 节点上组件信息(例组件ID:分布式ID),多个组件信息用;隔开。
256
+
257
+ :param component_names: The component_names of this NodeResult.
258
+ :type component_names: str
259
+ """
260
+ self._component_names = component_names
261
+
262
+ def to_dict(self):
263
+ """Returns the model properties as a dict"""
264
+ result = {}
265
+
266
+ for attr, _ in six.iteritems(self.openapi_types):
267
+ value = getattr(self, attr)
268
+ if isinstance(value, list):
269
+ result[attr] = list(map(
270
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
271
+ value
272
+ ))
273
+ elif hasattr(value, "to_dict"):
274
+ result[attr] = value.to_dict()
275
+ elif isinstance(value, dict):
276
+ result[attr] = dict(map(
277
+ lambda item: (item[0], item[1].to_dict())
278
+ if hasattr(item[1], "to_dict") else item,
279
+ value.items()
280
+ ))
281
+ else:
282
+ if attr in self.sensitive_list:
283
+ result[attr] = "****"
284
+ else:
285
+ result[attr] = value
286
+
287
+ return result
288
+
289
+ def to_str(self):
290
+ """Returns the string representation of the model"""
291
+ import simplejson as json
292
+ if six.PY2:
293
+ import sys
294
+ reload(sys)
295
+ sys.setdefaultencoding("utf-8")
296
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
297
+
298
+ def __repr__(self):
299
+ """For `print`"""
300
+ return self.to_str()
301
+
302
+ def __eq__(self, other):
303
+ """Returns true if both objects are equal"""
304
+ if not isinstance(other, NodeResult):
305
+ return False
306
+
307
+ return self.__dict__ == other.__dict__
308
+
309
+ def __ne__(self, other):
310
+ """Returns true if both objects are not equal"""
311
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class OpenGaussDatastoreOption:
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
+ 'type': 'str',
21
+ 'version': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'type': 'type',
26
+ 'version': 'version'
27
+ }
28
+
29
+ def __init__(self, type=None, version=None):
30
+ """OpenGaussDatastoreOption
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param type: 数据库引擎,不区分大小写,取值如下: GaussDB。
35
+ :type type: str
36
+ :param version: 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。
37
+ :type version: str
38
+ """
39
+
40
+
41
+
42
+ self._type = None
43
+ self._version = None
44
+ self.discriminator = None
45
+
46
+ self.type = type
47
+ if version is not None:
48
+ self.version = version
49
+
50
+ @property
51
+ def type(self):
52
+ """Gets the type of this OpenGaussDatastoreOption.
53
+
54
+ 数据库引擎,不区分大小写,取值如下: GaussDB。
55
+
56
+ :return: The type of this OpenGaussDatastoreOption.
57
+ :rtype: str
58
+ """
59
+ return self._type
60
+
61
+ @type.setter
62
+ def type(self, type):
63
+ """Sets the type of this OpenGaussDatastoreOption.
64
+
65
+ 数据库引擎,不区分大小写,取值如下: GaussDB。
66
+
67
+ :param type: The type of this OpenGaussDatastoreOption.
68
+ :type type: str
69
+ """
70
+ self._type = type
71
+
72
+ @property
73
+ def version(self):
74
+ """Gets the version of this OpenGaussDatastoreOption.
75
+
76
+ 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。
77
+
78
+ :return: The version of this OpenGaussDatastoreOption.
79
+ :rtype: str
80
+ """
81
+ return self._version
82
+
83
+ @version.setter
84
+ def version(self, version):
85
+ """Sets the version of this OpenGaussDatastoreOption.
86
+
87
+ 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDB&api=ListDatastores)。
88
+
89
+ :param version: The version of this OpenGaussDatastoreOption.
90
+ :type version: str
91
+ """
92
+ self._version = version
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, OpenGaussDatastoreOption):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other