huaweicloudsdkgaussdbforopengauss 3.1.104__py2.py3-none-any.whl → 3.1.106__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.106.dist-info}/METADATA +2 -2
  24. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.106.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.106.dist-info}/LICENSE +0 -0
  27. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.106.dist-info}/WHEEL +0 -0
  28. {huaweicloudsdkgaussdbforopengauss-3.1.104.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.106.dist-info}/top_level.txt +0 -0
@@ -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 ListPluginExtensionsRequestBody:
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
+ 'plugin_name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'db_name': 'db_name',
26
+ 'plugin_name': 'plugin_name'
27
+ }
28
+
29
+ def __init__(self, db_name=None, plugin_name=None):
30
+ """ListPluginExtensionsRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param db_name: 数据库名称
35
+ :type db_name: str
36
+ :param plugin_name: 插件名称
37
+ :type plugin_name: str
38
+ """
39
+
40
+
41
+
42
+ self._db_name = None
43
+ self._plugin_name = None
44
+ self.discriminator = None
45
+
46
+ self.db_name = db_name
47
+ self.plugin_name = plugin_name
48
+
49
+ @property
50
+ def db_name(self):
51
+ """Gets the db_name of this ListPluginExtensionsRequestBody.
52
+
53
+ 数据库名称
54
+
55
+ :return: The db_name of this ListPluginExtensionsRequestBody.
56
+ :rtype: str
57
+ """
58
+ return self._db_name
59
+
60
+ @db_name.setter
61
+ def db_name(self, db_name):
62
+ """Sets the db_name of this ListPluginExtensionsRequestBody.
63
+
64
+ 数据库名称
65
+
66
+ :param db_name: The db_name of this ListPluginExtensionsRequestBody.
67
+ :type db_name: str
68
+ """
69
+ self._db_name = db_name
70
+
71
+ @property
72
+ def plugin_name(self):
73
+ """Gets the plugin_name of this ListPluginExtensionsRequestBody.
74
+
75
+ 插件名称
76
+
77
+ :return: The plugin_name of this ListPluginExtensionsRequestBody.
78
+ :rtype: str
79
+ """
80
+ return self._plugin_name
81
+
82
+ @plugin_name.setter
83
+ def plugin_name(self, plugin_name):
84
+ """Sets the plugin_name of this ListPluginExtensionsRequestBody.
85
+
86
+ 插件名称
87
+
88
+ :param plugin_name: The plugin_name of this ListPluginExtensionsRequestBody.
89
+ :type plugin_name: str
90
+ """
91
+ self._plugin_name = plugin_name
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, ListPluginExtensionsRequestBody):
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
@@ -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 ListPluginExtensionsResponse(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': 'list[PluginExtensions]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """ListPluginExtensionsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 实例插件拓展信息
34
+ :type body: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.PluginExtensions`]
35
+ """
36
+
37
+ super(ListPluginExtensionsResponse, 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 ListPluginExtensionsResponse.
48
+
49
+ 实例插件拓展信息
50
+
51
+ :return: The body of this ListPluginExtensionsResponse.
52
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.PluginExtensions`]
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this ListPluginExtensionsResponse.
59
+
60
+ 实例插件拓展信息
61
+
62
+ :param body: The body of this ListPluginExtensionsResponse.
63
+ :type body: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.PluginExtensions`]
64
+ """
65
+ self._body = body
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, ListPluginExtensionsResponse):
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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListSupportKernelPluginsRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'x_language': 'X-Language'
25
+ }
26
+
27
+ def __init__(self, x_language=None):
28
+ """ListSupportKernelPluginsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param x_language: 语言。
33
+ :type x_language: str
34
+ """
35
+
36
+
37
+
38
+ self._x_language = None
39
+ self.discriminator = None
40
+
41
+ if x_language is not None:
42
+ self.x_language = x_language
43
+
44
+ @property
45
+ def x_language(self):
46
+ """Gets the x_language of this ListSupportKernelPluginsRequest.
47
+
48
+ 语言。
49
+
50
+ :return: The x_language of this ListSupportKernelPluginsRequest.
51
+ :rtype: str
52
+ """
53
+ return self._x_language
54
+
55
+ @x_language.setter
56
+ def x_language(self, x_language):
57
+ """Sets the x_language of this ListSupportKernelPluginsRequest.
58
+
59
+ 语言。
60
+
61
+ :param x_language: The x_language of this ListSupportKernelPluginsRequest.
62
+ :type x_language: str
63
+ """
64
+ self._x_language = x_language
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, ListSupportKernelPluginsRequest):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ 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 ListSupportKernelPluginsResponse(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': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ """ListSupportKernelPluginsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 插件列表
34
+ :type body: list[str]
35
+ """
36
+
37
+ super(ListSupportKernelPluginsResponse, 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 ListSupportKernelPluginsResponse.
48
+
49
+ 插件列表
50
+
51
+ :return: The body of this ListSupportKernelPluginsResponse.
52
+ :rtype: list[str]
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this ListSupportKernelPluginsResponse.
59
+
60
+ 插件列表
61
+
62
+ :param body: The body of this ListSupportKernelPluginsResponse.
63
+ :type body: list[str]
64
+ """
65
+ self._body = body
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, ListSupportKernelPluginsResponse):
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,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class PluginExtensions:
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
+ 'extension_name': 'str',
21
+ 'status': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'extension_name': 'extension_name',
26
+ 'status': 'status'
27
+ }
28
+
29
+ def __init__(self, extension_name=None, status=None):
30
+ """PluginExtensions
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param extension_name: 拓展名称
35
+ :type extension_name: str
36
+ :param status: 拓展状态。on表示开启,off表示关闭。
37
+ :type status: str
38
+ """
39
+
40
+
41
+
42
+ self._extension_name = None
43
+ self._status = None
44
+ self.discriminator = None
45
+
46
+ if extension_name is not None:
47
+ self.extension_name = extension_name
48
+ if status is not None:
49
+ self.status = status
50
+
51
+ @property
52
+ def extension_name(self):
53
+ """Gets the extension_name of this PluginExtensions.
54
+
55
+ 拓展名称
56
+
57
+ :return: The extension_name of this PluginExtensions.
58
+ :rtype: str
59
+ """
60
+ return self._extension_name
61
+
62
+ @extension_name.setter
63
+ def extension_name(self, extension_name):
64
+ """Sets the extension_name of this PluginExtensions.
65
+
66
+ 拓展名称
67
+
68
+ :param extension_name: The extension_name of this PluginExtensions.
69
+ :type extension_name: str
70
+ """
71
+ self._extension_name = extension_name
72
+
73
+ @property
74
+ def status(self):
75
+ """Gets the status of this PluginExtensions.
76
+
77
+ 拓展状态。on表示开启,off表示关闭。
78
+
79
+ :return: The status of this PluginExtensions.
80
+ :rtype: str
81
+ """
82
+ return self._status
83
+
84
+ @status.setter
85
+ def status(self, status):
86
+ """Sets the status of this PluginExtensions.
87
+
88
+ 拓展状态。on表示开启,off表示关闭。
89
+
90
+ :param status: The status of this PluginExtensions.
91
+ :type status: str
92
+ """
93
+ self._status = status
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, PluginExtensions):
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