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
@@ -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
@@ -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
@@ -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 ListPluginExtensionsRequest:
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': 'ListPluginExtensionsRequestBody'
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
+ """ListPluginExtensionsRequest
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 ListPluginExtensionsRequest
41
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListPluginExtensionsRequestBody`
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 ListPluginExtensionsRequest.
60
+
61
+ 语言。
62
+
63
+ :return: The x_language of this ListPluginExtensionsRequest.
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 ListPluginExtensionsRequest.
71
+
72
+ 语言。
73
+
74
+ :param x_language: The x_language of this ListPluginExtensionsRequest.
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 ListPluginExtensionsRequest.
82
+
83
+ 查询实例插件拓展信息的实例ID
84
+
85
+ :return: The instance_id of this ListPluginExtensionsRequest.
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 ListPluginExtensionsRequest.
93
+
94
+ 查询实例插件拓展信息的实例ID
95
+
96
+ :param instance_id: The instance_id of this ListPluginExtensionsRequest.
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 ListPluginExtensionsRequest.
104
+
105
+ :return: The body of this ListPluginExtensionsRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListPluginExtensionsRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ """Sets the body of this ListPluginExtensionsRequest.
113
+
114
+ :param body: The body of this ListPluginExtensionsRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.ListPluginExtensionsRequestBody`
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, ListPluginExtensionsRequest):
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