huaweicloudsdkgaussdbforopengauss 3.1.104__py2.py3-none-any.whl → 3.1.105__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 (28) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +17 -1
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +408 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +408 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +17 -1
  5. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request.py +168 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_request_body.py +170 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/install_kernel_plugin_response.py +116 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_request.py +143 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_response.py +116 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request.py +168 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request_body.py +142 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_response.py +116 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_request.py +115 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_response.py +116 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/plugin_extensions.py +144 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_source.py +8 -65
  17. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request.py +168 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request_body.py +198 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_response.py +112 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request.py +168 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request_body.py +114 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_response.py +112 -0
  23. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/METADATA +2 -2
  24. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/RECORD +27 -11
  25. huaweicloudsdkgaussdbforopengauss/v3/model/restore_table_list_detail.py +0 -259
  26. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/LICENSE +0 -0
  27. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/WHEEL +0 -0
  28. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/top_level.txt +0 -0
@@ -20,21 +20,17 @@ class RecoveryBackupSource:
20
20
  'instance_id': 'str',
21
21
  'type': 'str',
22
22
  'backup_id': 'str',
23
- 'restore_time': 'str',
24
- 'table_list': 'list[RestoreTableListDetail]',
25
- 'schema_type': 'str'
23
+ 'restore_time': 'str'
26
24
  }
27
25
 
28
26
  attribute_map = {
29
27
  'instance_id': 'instance_id',
30
28
  'type': 'type',
31
29
  'backup_id': 'backup_id',
32
- 'restore_time': 'restore_time',
33
- 'table_list': 'table_list',
34
- 'schema_type': 'schema_type'
30
+ 'restore_time': 'restore_time'
35
31
  }
36
32
 
37
- def __init__(self, instance_id=None, type=None, backup_id=None, restore_time=None, table_list=None, schema_type=None):
33
+ def __init__(self, instance_id=None, type=None, backup_id=None, restore_time=None):
38
34
  """RecoveryBackupSource
39
35
 
40
36
  The model defined in huaweicloud sdk
@@ -47,10 +43,6 @@ class RecoveryBackupSource:
47
43
  :type backup_id: str
48
44
  :param restore_time: UTC时间,时间戳
49
45
  :type restore_time: str
50
- :param table_list: 表基础信息。
51
- :type table_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.RestoreTableListDetail`]
52
- :param schema_type: 备份级别取值, 默认值:INSTANCE
53
- :type schema_type: str
54
46
  """
55
47
 
56
48
 
@@ -59,19 +51,14 @@ class RecoveryBackupSource:
59
51
  self._type = None
60
52
  self._backup_id = None
61
53
  self._restore_time = None
62
- self._table_list = None
63
- self._schema_type = None
64
54
  self.discriminator = None
65
55
 
66
56
  self.instance_id = instance_id
67
- if type is not None:
68
- self.type = type
69
- self.backup_id = backup_id
70
- self.restore_time = restore_time
71
- if table_list is not None:
72
- self.table_list = table_list
73
- if schema_type is not None:
74
- self.schema_type = schema_type
57
+ self.type = type
58
+ if backup_id is not None:
59
+ self.backup_id = backup_id
60
+ if restore_time is not None:
61
+ self.restore_time = restore_time
75
62
 
76
63
  @property
77
64
  def instance_id(self):
@@ -161,50 +148,6 @@ class RecoveryBackupSource:
161
148
  """
162
149
  self._restore_time = restore_time
163
150
 
164
- @property
165
- def table_list(self):
166
- """Gets the table_list of this RecoveryBackupSource.
167
-
168
- 表基础信息。
169
-
170
- :return: The table_list of this RecoveryBackupSource.
171
- :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.RestoreTableListDetail`]
172
- """
173
- return self._table_list
174
-
175
- @table_list.setter
176
- def table_list(self, table_list):
177
- """Sets the table_list of this RecoveryBackupSource.
178
-
179
- 表基础信息。
180
-
181
- :param table_list: The table_list of this RecoveryBackupSource.
182
- :type table_list: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.RestoreTableListDetail`]
183
- """
184
- self._table_list = table_list
185
-
186
- @property
187
- def schema_type(self):
188
- """Gets the schema_type of this RecoveryBackupSource.
189
-
190
- 备份级别取值, 默认值:INSTANCE
191
-
192
- :return: The schema_type of this RecoveryBackupSource.
193
- :rtype: str
194
- """
195
- return self._schema_type
196
-
197
- @schema_type.setter
198
- def schema_type(self, schema_type):
199
- """Sets the schema_type of this RecoveryBackupSource.
200
-
201
- 备份级别取值, 默认值:INSTANCE
202
-
203
- :param schema_type: The schema_type of this RecoveryBackupSource.
204
- :type schema_type: str
205
- """
206
- self._schema_type = schema_type
207
-
208
151
  def to_dict(self):
209
152
  """Returns the model properties as a dict"""
210
153
  result = {}
@@ -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 ResumePluginExtensionsRequest:
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': 'ResumePluginExtensionsRequestBody'
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
+ """ResumePluginExtensionsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言。
37
+ :type x_language: str
38
+ :param instance_id: 配置插件拓展能力的实例ID
39
+ :type instance_id: str
40
+ :param body: Body of the ResumePluginExtensionsRequest
41
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResumePluginExtensionsRequestBody`
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
+ """Gets the x_language of this ResumePluginExtensionsRequest.
60
+
61
+ 语言。
62
+
63
+ :return: The x_language of this ResumePluginExtensionsRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ """Sets the x_language of this ResumePluginExtensionsRequest.
71
+
72
+ 语言。
73
+
74
+ :param x_language: The x_language of this ResumePluginExtensionsRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ """Gets the instance_id of this ResumePluginExtensionsRequest.
82
+
83
+ 配置插件拓展能力的实例ID
84
+
85
+ :return: The instance_id of this ResumePluginExtensionsRequest.
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 ResumePluginExtensionsRequest.
93
+
94
+ 配置插件拓展能力的实例ID
95
+
96
+ :param instance_id: The instance_id of this ResumePluginExtensionsRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ """Gets the body of this ResumePluginExtensionsRequest.
104
+
105
+ :return: The body of this ResumePluginExtensionsRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResumePluginExtensionsRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this ResumePluginExtensionsRequest.
113
+
114
+ :param body: The body of this ResumePluginExtensionsRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ResumePluginExtensionsRequestBody`
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, ResumePluginExtensionsRequest):
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,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ResumePluginExtensionsRequestBody:
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
+ 'plugin_name': 'str',
21
+ 'db_list': 'list[str]',
22
+ 'extension_name': 'str',
23
+ 'extension_action': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'plugin_name': 'plugin_name',
28
+ 'db_list': 'db_list',
29
+ 'extension_name': 'extension_name',
30
+ 'extension_action': 'extension_action'
31
+ }
32
+
33
+ def __init__(self, plugin_name=None, db_list=None, extension_name=None, extension_action=None):
34
+ """ResumePluginExtensionsRequestBody
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param plugin_name: 插件名称
39
+ :type plugin_name: str
40
+ :param db_list: 数据库列表
41
+ :type db_list: list[str]
42
+ :param extension_name: 拓展模块名称
43
+ :type extension_name: str
44
+ :param extension_action: 扩展开关。on表示开启,off表示关闭。
45
+ :type extension_action: str
46
+ """
47
+
48
+
49
+
50
+ self._plugin_name = None
51
+ self._db_list = None
52
+ self._extension_name = None
53
+ self._extension_action = None
54
+ self.discriminator = None
55
+
56
+ self.plugin_name = plugin_name
57
+ self.db_list = db_list
58
+ self.extension_name = extension_name
59
+ self.extension_action = extension_action
60
+
61
+ @property
62
+ def plugin_name(self):
63
+ """Gets the plugin_name of this ResumePluginExtensionsRequestBody.
64
+
65
+ 插件名称
66
+
67
+ :return: The plugin_name of this ResumePluginExtensionsRequestBody.
68
+ :rtype: str
69
+ """
70
+ return self._plugin_name
71
+
72
+ @plugin_name.setter
73
+ def plugin_name(self, plugin_name):
74
+ """Sets the plugin_name of this ResumePluginExtensionsRequestBody.
75
+
76
+ 插件名称
77
+
78
+ :param plugin_name: The plugin_name of this ResumePluginExtensionsRequestBody.
79
+ :type plugin_name: str
80
+ """
81
+ self._plugin_name = plugin_name
82
+
83
+ @property
84
+ def db_list(self):
85
+ """Gets the db_list of this ResumePluginExtensionsRequestBody.
86
+
87
+ 数据库列表
88
+
89
+ :return: The db_list of this ResumePluginExtensionsRequestBody.
90
+ :rtype: list[str]
91
+ """
92
+ return self._db_list
93
+
94
+ @db_list.setter
95
+ def db_list(self, db_list):
96
+ """Sets the db_list of this ResumePluginExtensionsRequestBody.
97
+
98
+ 数据库列表
99
+
100
+ :param db_list: The db_list of this ResumePluginExtensionsRequestBody.
101
+ :type db_list: list[str]
102
+ """
103
+ self._db_list = db_list
104
+
105
+ @property
106
+ def extension_name(self):
107
+ """Gets the extension_name of this ResumePluginExtensionsRequestBody.
108
+
109
+ 拓展模块名称
110
+
111
+ :return: The extension_name of this ResumePluginExtensionsRequestBody.
112
+ :rtype: str
113
+ """
114
+ return self._extension_name
115
+
116
+ @extension_name.setter
117
+ def extension_name(self, extension_name):
118
+ """Sets the extension_name of this ResumePluginExtensionsRequestBody.
119
+
120
+ 拓展模块名称
121
+
122
+ :param extension_name: The extension_name of this ResumePluginExtensionsRequestBody.
123
+ :type extension_name: str
124
+ """
125
+ self._extension_name = extension_name
126
+
127
+ @property
128
+ def extension_action(self):
129
+ """Gets the extension_action of this ResumePluginExtensionsRequestBody.
130
+
131
+ 扩展开关。on表示开启,off表示关闭。
132
+
133
+ :return: The extension_action of this ResumePluginExtensionsRequestBody.
134
+ :rtype: str
135
+ """
136
+ return self._extension_action
137
+
138
+ @extension_action.setter
139
+ def extension_action(self, extension_action):
140
+ """Sets the extension_action of this ResumePluginExtensionsRequestBody.
141
+
142
+ 扩展开关。on表示开启,off表示关闭。
143
+
144
+ :param extension_action: The extension_action of this ResumePluginExtensionsRequestBody.
145
+ :type extension_action: str
146
+ """
147
+ self._extension_action = extension_action
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, ResumePluginExtensionsRequestBody):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other
@@ -0,0 +1,112 @@
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 ResumePluginExtensionsResponse(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
+ 'body': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """ResumePluginExtensionsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: str
35
+ """
36
+
37
+ super(ResumePluginExtensionsResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ """Gets the body of this ResumePluginExtensionsResponse.
48
+
49
+ :return: The body of this ResumePluginExtensionsResponse.
50
+ :rtype: str
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ """Sets the body of this ResumePluginExtensionsResponse.
57
+
58
+ :param body: The body of this ResumePluginExtensionsResponse.
59
+ :type body: str
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, ResumePluginExtensionsResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other