huaweicloudsdkgaussdbforopengauss 3.1.103__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 (29) 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_datastore.py +61 -3
  9. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_request.py +143 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_kernel_plugins_response.py +116 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request.py +168 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_request_body.py +142 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_plugin_extensions_response.py +116 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_request.py +115 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_support_kernel_plugins_response.py +116 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/plugin_extensions.py +144 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/recovery_backup_source.py +8 -65
  18. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request.py +168 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_request_body.py +198 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/resume_plugin_extensions_response.py +112 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request.py +168 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_request_body.py +114 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/set_kernel_plugin_license_response.py +112 -0
  24. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/METADATA +2 -2
  25. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/RECORD +28 -12
  26. huaweicloudsdkgaussdbforopengauss/v3/model/restore_table_list_detail.py +0 -259
  27. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/LICENSE +0 -0
  28. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/WHEEL +0 -0
  29. {huaweicloudsdkgaussdbforopengauss-3.1.103.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.105.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class InstallKernelPluginRequestBody:
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
+ 'url': 'str',
22
+ 'sha_256': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'plugin_name': 'plugin_name',
27
+ 'url': 'url',
28
+ 'sha_256': 'sha_256'
29
+ }
30
+
31
+ def __init__(self, plugin_name=None, url=None, sha_256=None):
32
+ """InstallKernelPluginRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param plugin_name: 插件名称
37
+ :type plugin_name: str
38
+ :param url: 插件安装包链接
39
+ :type url: str
40
+ :param sha_256: 插件安装包的sha256值
41
+ :type sha_256: str
42
+ """
43
+
44
+
45
+
46
+ self._plugin_name = None
47
+ self._url = None
48
+ self._sha_256 = None
49
+ self.discriminator = None
50
+
51
+ self.plugin_name = plugin_name
52
+ self.url = url
53
+ self.sha_256 = sha_256
54
+
55
+ @property
56
+ def plugin_name(self):
57
+ """Gets the plugin_name of this InstallKernelPluginRequestBody.
58
+
59
+ 插件名称
60
+
61
+ :return: The plugin_name of this InstallKernelPluginRequestBody.
62
+ :rtype: str
63
+ """
64
+ return self._plugin_name
65
+
66
+ @plugin_name.setter
67
+ def plugin_name(self, plugin_name):
68
+ """Sets the plugin_name of this InstallKernelPluginRequestBody.
69
+
70
+ 插件名称
71
+
72
+ :param plugin_name: The plugin_name of this InstallKernelPluginRequestBody.
73
+ :type plugin_name: str
74
+ """
75
+ self._plugin_name = plugin_name
76
+
77
+ @property
78
+ def url(self):
79
+ """Gets the url of this InstallKernelPluginRequestBody.
80
+
81
+ 插件安装包链接
82
+
83
+ :return: The url of this InstallKernelPluginRequestBody.
84
+ :rtype: str
85
+ """
86
+ return self._url
87
+
88
+ @url.setter
89
+ def url(self, url):
90
+ """Sets the url of this InstallKernelPluginRequestBody.
91
+
92
+ 插件安装包链接
93
+
94
+ :param url: The url of this InstallKernelPluginRequestBody.
95
+ :type url: str
96
+ """
97
+ self._url = url
98
+
99
+ @property
100
+ def sha_256(self):
101
+ """Gets the sha_256 of this InstallKernelPluginRequestBody.
102
+
103
+ 插件安装包的sha256值
104
+
105
+ :return: The sha_256 of this InstallKernelPluginRequestBody.
106
+ :rtype: str
107
+ """
108
+ return self._sha_256
109
+
110
+ @sha_256.setter
111
+ def sha_256(self, sha_256):
112
+ """Sets the sha_256 of this InstallKernelPluginRequestBody.
113
+
114
+ 插件安装包的sha256值
115
+
116
+ :param sha_256: The sha_256 of this InstallKernelPluginRequestBody.
117
+ :type sha_256: str
118
+ """
119
+ self._sha_256 = sha_256
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, InstallKernelPluginRequestBody):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ 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 InstallKernelPluginResponse(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
+ """InstallKernelPluginResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 插件安装工作流id
34
+ :type job_id: str
35
+ """
36
+
37
+ super(InstallKernelPluginResponse, 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 InstallKernelPluginResponse.
48
+
49
+ 插件安装工作流id
50
+
51
+ :return: The job_id of this InstallKernelPluginResponse.
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 InstallKernelPluginResponse.
59
+
60
+ 插件安装工作流id
61
+
62
+ :param job_id: The job_id of this InstallKernelPluginResponse.
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, InstallKernelPluginResponse):
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
@@ -20,17 +20,21 @@ class ListDatastore:
20
20
  'type': 'str',
21
21
  'version': 'str',
22
22
  'complete_version': 'str',
23
- 'hotfix_versions': 'str'
23
+ 'hotfix_versions': 'str',
24
+ 'target_version': 'str',
25
+ 'hotfix_finished_times': 'list[str]'
24
26
  }
25
27
 
26
28
  attribute_map = {
27
29
  'type': 'type',
28
30
  'version': 'version',
29
31
  'complete_version': 'complete_version',
30
- 'hotfix_versions': 'hotfix_versions'
32
+ 'hotfix_versions': 'hotfix_versions',
33
+ 'target_version': 'target_version',
34
+ 'hotfix_finished_times': 'hotfix_finished_times'
31
35
  }
32
36
 
33
- def __init__(self, type=None, version=None, complete_version=None, hotfix_versions=None):
37
+ def __init__(self, type=None, version=None, complete_version=None, hotfix_versions=None, target_version=None, hotfix_finished_times=None):
34
38
  """ListDatastore
35
39
 
36
40
  The model defined in huaweicloud sdk
@@ -43,6 +47,10 @@ class ListDatastore:
43
47
  :type complete_version: str
44
48
  :param hotfix_versions: 数据库已升级的热补丁版本,当数据库热补丁升级成功后,该值不为空。
45
49
  :type hotfix_versions: str
50
+ :param target_version: 数据库正在升级的目标版本。
51
+ :type target_version: str
52
+ :param hotfix_finished_times: 热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。
53
+ :type hotfix_finished_times: list[str]
46
54
  """
47
55
 
48
56
 
@@ -51,6 +59,8 @@ class ListDatastore:
51
59
  self._version = None
52
60
  self._complete_version = None
53
61
  self._hotfix_versions = None
62
+ self._target_version = None
63
+ self._hotfix_finished_times = None
54
64
  self.discriminator = None
55
65
 
56
66
  self.type = type
@@ -59,6 +69,10 @@ class ListDatastore:
59
69
  self.complete_version = complete_version
60
70
  if hotfix_versions is not None:
61
71
  self.hotfix_versions = hotfix_versions
72
+ if target_version is not None:
73
+ self.target_version = target_version
74
+ if hotfix_finished_times is not None:
75
+ self.hotfix_finished_times = hotfix_finished_times
62
76
 
63
77
  @property
64
78
  def type(self):
@@ -148,6 +162,50 @@ class ListDatastore:
148
162
  """
149
163
  self._hotfix_versions = hotfix_versions
150
164
 
165
+ @property
166
+ def target_version(self):
167
+ """Gets the target_version of this ListDatastore.
168
+
169
+ 数据库正在升级的目标版本。
170
+
171
+ :return: The target_version of this ListDatastore.
172
+ :rtype: str
173
+ """
174
+ return self._target_version
175
+
176
+ @target_version.setter
177
+ def target_version(self, target_version):
178
+ """Sets the target_version of this ListDatastore.
179
+
180
+ 数据库正在升级的目标版本。
181
+
182
+ :param target_version: The target_version of this ListDatastore.
183
+ :type target_version: str
184
+ """
185
+ self._target_version = target_version
186
+
187
+ @property
188
+ def hotfix_finished_times(self):
189
+ """Gets the hotfix_finished_times of this ListDatastore.
190
+
191
+ 热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。
192
+
193
+ :return: The hotfix_finished_times of this ListDatastore.
194
+ :rtype: list[str]
195
+ """
196
+ return self._hotfix_finished_times
197
+
198
+ @hotfix_finished_times.setter
199
+ def hotfix_finished_times(self, hotfix_finished_times):
200
+ """Sets the hotfix_finished_times of this ListDatastore.
201
+
202
+ 热补丁升级完成时间列表。 热补丁升级完成时间,格式为“yyyy-mm-dd hh:mm:ss timezone”。 其中timezone是指时区。
203
+
204
+ :param hotfix_finished_times: The hotfix_finished_times of this ListDatastore.
205
+ :type hotfix_finished_times: list[str]
206
+ """
207
+ self._hotfix_finished_times = hotfix_finished_times
208
+
151
209
  def to_dict(self):
152
210
  """Returns the model properties as a dict"""
153
211
  result = {}
@@ -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 ListKernelPluginsRequest:
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
+ }
23
+
24
+ attribute_map = {
25
+ 'x_language': 'X-Language',
26
+ 'instance_id': 'instance_id'
27
+ }
28
+
29
+ def __init__(self, x_language=None, instance_id=None):
30
+ """ListKernelPluginsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param x_language: 语言。
35
+ :type x_language: str
36
+ :param instance_id: 查询实例已安装的插件列表的实例ID
37
+ :type instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._x_language = None
43
+ self._instance_id = None
44
+ self.discriminator = None
45
+
46
+ if x_language is not None:
47
+ self.x_language = x_language
48
+ self.instance_id = instance_id
49
+
50
+ @property
51
+ def x_language(self):
52
+ """Gets the x_language of this ListKernelPluginsRequest.
53
+
54
+ 语言。
55
+
56
+ :return: The x_language of this ListKernelPluginsRequest.
57
+ :rtype: str
58
+ """
59
+ return self._x_language
60
+
61
+ @x_language.setter
62
+ def x_language(self, x_language):
63
+ """Sets the x_language of this ListKernelPluginsRequest.
64
+
65
+ 语言。
66
+
67
+ :param x_language: The x_language of this ListKernelPluginsRequest.
68
+ :type x_language: str
69
+ """
70
+ self._x_language = x_language
71
+
72
+ @property
73
+ def instance_id(self):
74
+ """Gets the instance_id of this ListKernelPluginsRequest.
75
+
76
+ 查询实例已安装的插件列表的实例ID
77
+
78
+ :return: The instance_id of this ListKernelPluginsRequest.
79
+ :rtype: str
80
+ """
81
+ return self._instance_id
82
+
83
+ @instance_id.setter
84
+ def instance_id(self, instance_id):
85
+ """Sets the instance_id of this ListKernelPluginsRequest.
86
+
87
+ 查询实例已安装的插件列表的实例ID
88
+
89
+ :param instance_id: The instance_id of this ListKernelPluginsRequest.
90
+ :type instance_id: str
91
+ """
92
+ self._instance_id = instance_id
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, ListKernelPluginsRequest):
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
@@ -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 ListKernelPluginsResponse(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
+ """ListKernelPluginsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body: 插件列表
34
+ :type body: list[str]
35
+ """
36
+
37
+ super(ListKernelPluginsResponse, 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 ListKernelPluginsResponse.
48
+
49
+ 插件列表
50
+
51
+ :return: The body of this ListKernelPluginsResponse.
52
+ :rtype: list[str]
53
+ """
54
+ return self._body
55
+
56
+ @body.setter
57
+ def body(self, body):
58
+ """Sets the body of this ListKernelPluginsResponse.
59
+
60
+ 插件列表
61
+
62
+ :param body: The body of this ListKernelPluginsResponse.
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, ListKernelPluginsResponse):
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