huaweicloudsdkgaussdbforopengauss 3.1.136__py2.py3-none-any.whl → 3.1.138__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 (24) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +15 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +349 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +349 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +15 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_request.py +143 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/cancel_schedule_task_response.py +85 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request.py +140 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_request_body.py +226 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/create_schedule_task_response.py +116 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_request.py +143 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/delete_schedule_task_response.py +85 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/instance_detail.py +260 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/instance_engine_detail.py +144 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/instance_task_detail.py +173 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_request.py +173 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_engine_detail_response.py +145 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_request.py +318 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_schedule_task_response.py +145 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/schedule_task_detail.py +318 -0
  20. {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/METADATA +2 -2
  21. {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/RECORD +24 -9
  22. {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/LICENSE +0 -0
  23. {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/WHEEL +0 -0
  24. {huaweicloudsdkgaussdbforopengauss-3.1.136.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.138.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InstanceDetail:
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
+ 'instance_name': 'str',
22
+ 'status': 'str',
23
+ 'type': 'str',
24
+ 'solution': 'str',
25
+ 'hotfix_versions': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'instance_id': 'instance_id',
30
+ 'instance_name': 'instance_name',
31
+ 'status': 'status',
32
+ 'type': 'type',
33
+ 'solution': 'solution',
34
+ 'hotfix_versions': 'hotfix_versions'
35
+ }
36
+
37
+ def __init__(self, instance_id=None, instance_name=None, status=None, type=None, solution=None, hotfix_versions=None):
38
+ """InstanceDetail
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param instance_id: 实例ID。
43
+ :type instance_id: str
44
+ :param instance_name: 实例名称。
45
+ :type instance_name: str
46
+ :param status: 实例状态。
47
+ :type status: str
48
+ :param type: 实例类型。
49
+ :type type: str
50
+ :param solution: 实例部署形态。
51
+ :type solution: str
52
+ :param hotfix_versions: 已升级热补丁版本。
53
+ :type hotfix_versions: str
54
+ """
55
+
56
+
57
+
58
+ self._instance_id = None
59
+ self._instance_name = None
60
+ self._status = None
61
+ self._type = None
62
+ self._solution = None
63
+ self._hotfix_versions = None
64
+ self.discriminator = None
65
+
66
+ if instance_id is not None:
67
+ self.instance_id = instance_id
68
+ if instance_name is not None:
69
+ self.instance_name = instance_name
70
+ if status is not None:
71
+ self.status = status
72
+ if type is not None:
73
+ self.type = type
74
+ if solution is not None:
75
+ self.solution = solution
76
+ if hotfix_versions is not None:
77
+ self.hotfix_versions = hotfix_versions
78
+
79
+ @property
80
+ def instance_id(self):
81
+ """Gets the instance_id of this InstanceDetail.
82
+
83
+ 实例ID。
84
+
85
+ :return: The instance_id of this InstanceDetail.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ """Sets the instance_id of this InstanceDetail.
93
+
94
+ 实例ID。
95
+
96
+ :param instance_id: The instance_id of this InstanceDetail.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def instance_name(self):
103
+ """Gets the instance_name of this InstanceDetail.
104
+
105
+ 实例名称。
106
+
107
+ :return: The instance_name of this InstanceDetail.
108
+ :rtype: str
109
+ """
110
+ return self._instance_name
111
+
112
+ @instance_name.setter
113
+ def instance_name(self, instance_name):
114
+ """Sets the instance_name of this InstanceDetail.
115
+
116
+ 实例名称。
117
+
118
+ :param instance_name: The instance_name of this InstanceDetail.
119
+ :type instance_name: str
120
+ """
121
+ self._instance_name = instance_name
122
+
123
+ @property
124
+ def status(self):
125
+ """Gets the status of this InstanceDetail.
126
+
127
+ 实例状态。
128
+
129
+ :return: The status of this InstanceDetail.
130
+ :rtype: str
131
+ """
132
+ return self._status
133
+
134
+ @status.setter
135
+ def status(self, status):
136
+ """Sets the status of this InstanceDetail.
137
+
138
+ 实例状态。
139
+
140
+ :param status: The status of this InstanceDetail.
141
+ :type status: str
142
+ """
143
+ self._status = status
144
+
145
+ @property
146
+ def type(self):
147
+ """Gets the type of this InstanceDetail.
148
+
149
+ 实例类型。
150
+
151
+ :return: The type of this InstanceDetail.
152
+ :rtype: str
153
+ """
154
+ return self._type
155
+
156
+ @type.setter
157
+ def type(self, type):
158
+ """Sets the type of this InstanceDetail.
159
+
160
+ 实例类型。
161
+
162
+ :param type: The type of this InstanceDetail.
163
+ :type type: str
164
+ """
165
+ self._type = type
166
+
167
+ @property
168
+ def solution(self):
169
+ """Gets the solution of this InstanceDetail.
170
+
171
+ 实例部署形态。
172
+
173
+ :return: The solution of this InstanceDetail.
174
+ :rtype: str
175
+ """
176
+ return self._solution
177
+
178
+ @solution.setter
179
+ def solution(self, solution):
180
+ """Sets the solution of this InstanceDetail.
181
+
182
+ 实例部署形态。
183
+
184
+ :param solution: The solution of this InstanceDetail.
185
+ :type solution: str
186
+ """
187
+ self._solution = solution
188
+
189
+ @property
190
+ def hotfix_versions(self):
191
+ """Gets the hotfix_versions of this InstanceDetail.
192
+
193
+ 已升级热补丁版本。
194
+
195
+ :return: The hotfix_versions of this InstanceDetail.
196
+ :rtype: str
197
+ """
198
+ return self._hotfix_versions
199
+
200
+ @hotfix_versions.setter
201
+ def hotfix_versions(self, hotfix_versions):
202
+ """Sets the hotfix_versions of this InstanceDetail.
203
+
204
+ 已升级热补丁版本。
205
+
206
+ :param hotfix_versions: The hotfix_versions of this InstanceDetail.
207
+ :type hotfix_versions: str
208
+ """
209
+ self._hotfix_versions = hotfix_versions
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, InstanceDetail):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InstanceEngineDetail:
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
+ 'engine_version': 'str',
21
+ 'instances': 'list[InstanceDetail]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'engine_version': 'engine_version',
26
+ 'instances': 'instances'
27
+ }
28
+
29
+ def __init__(self, engine_version=None, instances=None):
30
+ """InstanceEngineDetail
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param engine_version: 引擎版本号。
35
+ :type engine_version: str
36
+ :param instances: 实例详情。
37
+ :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceDetail`]
38
+ """
39
+
40
+
41
+
42
+ self._engine_version = None
43
+ self._instances = None
44
+ self.discriminator = None
45
+
46
+ if engine_version is not None:
47
+ self.engine_version = engine_version
48
+ if instances is not None:
49
+ self.instances = instances
50
+
51
+ @property
52
+ def engine_version(self):
53
+ """Gets the engine_version of this InstanceEngineDetail.
54
+
55
+ 引擎版本号。
56
+
57
+ :return: The engine_version of this InstanceEngineDetail.
58
+ :rtype: str
59
+ """
60
+ return self._engine_version
61
+
62
+ @engine_version.setter
63
+ def engine_version(self, engine_version):
64
+ """Sets the engine_version of this InstanceEngineDetail.
65
+
66
+ 引擎版本号。
67
+
68
+ :param engine_version: The engine_version of this InstanceEngineDetail.
69
+ :type engine_version: str
70
+ """
71
+ self._engine_version = engine_version
72
+
73
+ @property
74
+ def instances(self):
75
+ """Gets the instances of this InstanceEngineDetail.
76
+
77
+ 实例详情。
78
+
79
+ :return: The instances of this InstanceEngineDetail.
80
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceDetail`]
81
+ """
82
+ return self._instances
83
+
84
+ @instances.setter
85
+ def instances(self, instances):
86
+ """Sets the instances of this InstanceEngineDetail.
87
+
88
+ 实例详情。
89
+
90
+ :param instances: The instances of this InstanceEngineDetail.
91
+ :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.InstanceDetail`]
92
+ """
93
+ self._instances = instances
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, InstanceEngineDetail):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InstanceTaskDetail:
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
+ 'task_id': 'str',
21
+ 'task_name': 'str',
22
+ 'instance_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'task_id': 'task_id',
27
+ 'task_name': 'task_name',
28
+ 'instance_id': 'instance_id'
29
+ }
30
+
31
+ def __init__(self, task_id=None, task_name=None, instance_id=None):
32
+ """InstanceTaskDetail
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param task_id: 任务ID。
37
+ :type task_id: str
38
+ :param task_name: 任务名称。
39
+ :type task_name: str
40
+ :param instance_id: 实例ID。
41
+ :type instance_id: str
42
+ """
43
+
44
+
45
+
46
+ self._task_id = None
47
+ self._task_name = None
48
+ self._instance_id = None
49
+ self.discriminator = None
50
+
51
+ if task_id is not None:
52
+ self.task_id = task_id
53
+ if task_name is not None:
54
+ self.task_name = task_name
55
+ if instance_id is not None:
56
+ self.instance_id = instance_id
57
+
58
+ @property
59
+ def task_id(self):
60
+ """Gets the task_id of this InstanceTaskDetail.
61
+
62
+ 任务ID。
63
+
64
+ :return: The task_id of this InstanceTaskDetail.
65
+ :rtype: str
66
+ """
67
+ return self._task_id
68
+
69
+ @task_id.setter
70
+ def task_id(self, task_id):
71
+ """Sets the task_id of this InstanceTaskDetail.
72
+
73
+ 任务ID。
74
+
75
+ :param task_id: The task_id of this InstanceTaskDetail.
76
+ :type task_id: str
77
+ """
78
+ self._task_id = task_id
79
+
80
+ @property
81
+ def task_name(self):
82
+ """Gets the task_name of this InstanceTaskDetail.
83
+
84
+ 任务名称。
85
+
86
+ :return: The task_name of this InstanceTaskDetail.
87
+ :rtype: str
88
+ """
89
+ return self._task_name
90
+
91
+ @task_name.setter
92
+ def task_name(self, task_name):
93
+ """Sets the task_name of this InstanceTaskDetail.
94
+
95
+ 任务名称。
96
+
97
+ :param task_name: The task_name of this InstanceTaskDetail.
98
+ :type task_name: str
99
+ """
100
+ self._task_name = task_name
101
+
102
+ @property
103
+ def instance_id(self):
104
+ """Gets the instance_id of this InstanceTaskDetail.
105
+
106
+ 实例ID。
107
+
108
+ :return: The instance_id of this InstanceTaskDetail.
109
+ :rtype: str
110
+ """
111
+ return self._instance_id
112
+
113
+ @instance_id.setter
114
+ def instance_id(self, instance_id):
115
+ """Sets the instance_id of this InstanceTaskDetail.
116
+
117
+ 实例ID。
118
+
119
+ :param instance_id: The instance_id of this InstanceTaskDetail.
120
+ :type instance_id: str
121
+ """
122
+ self._instance_id = instance_id
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, InstanceTaskDetail):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other