huaweicloudsdkimagesearch 3.1.160__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.

Potentially problematic release.


This version of huaweicloudsdkimagesearch might be problematic. Click here for more details.

Files changed (44) hide show
  1. huaweicloudsdkimagesearch/__init__.py +0 -0
  2. huaweicloudsdkimagesearch/v2/__init__.py +40 -0
  3. huaweicloudsdkimagesearch/v2/imagesearch_async_client.py +418 -0
  4. huaweicloudsdkimagesearch/v2/imagesearch_client.py +415 -0
  5. huaweicloudsdkimagesearch/v2/model/__init__.py +37 -0
  6. huaweicloudsdkimagesearch/v2/model/add_data_optional_param.py +202 -0
  7. huaweicloudsdkimagesearch/v2/model/add_data_param.py +342 -0
  8. huaweicloudsdkimagesearch/v2/model/add_data_rest_info.py +111 -0
  9. huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info.py +115 -0
  10. huaweicloudsdkimagesearch/v2/model/add_data_rest_info_image_info_objects.py +173 -0
  11. huaweicloudsdkimagesearch/v2/model/check_info.py +169 -0
  12. huaweicloudsdkimagesearch/v2/model/check_param.py +227 -0
  13. huaweicloudsdkimagesearch/v2/model/check_rest_info.py +194 -0
  14. huaweicloudsdkimagesearch/v2/model/delete_info.py +144 -0
  15. huaweicloudsdkimagesearch/v2/model/delete_param.py +202 -0
  16. huaweicloudsdkimagesearch/v2/model/delete_rest_info.py +140 -0
  17. huaweicloudsdkimagesearch/v2/model/delete_rest_info_items.py +115 -0
  18. huaweicloudsdkimagesearch/v2/model/item_source.py +202 -0
  19. huaweicloudsdkimagesearch/v2/model/range_param.py +144 -0
  20. huaweicloudsdkimagesearch/v2/model/run_add_data_request.py +139 -0
  21. huaweicloudsdkimagesearch/v2/model/run_add_data_response.py +141 -0
  22. huaweicloudsdkimagesearch/v2/model/run_check_data_request.py +139 -0
  23. huaweicloudsdkimagesearch/v2/model/run_check_data_response.py +141 -0
  24. huaweicloudsdkimagesearch/v2/model/run_delete_data_request.py +139 -0
  25. huaweicloudsdkimagesearch/v2/model/run_delete_data_response.py +141 -0
  26. huaweicloudsdkimagesearch/v2/model/run_search_request.py +139 -0
  27. huaweicloudsdkimagesearch/v2/model/run_search_response.py +141 -0
  28. huaweicloudsdkimagesearch/v2/model/run_update_data_request.py +139 -0
  29. huaweicloudsdkimagesearch/v2/model/run_update_data_response.py +116 -0
  30. huaweicloudsdkimagesearch/v2/model/search_after_param.py +144 -0
  31. huaweicloudsdkimagesearch/v2/model/search_info.py +198 -0
  32. huaweicloudsdkimagesearch/v2/model/search_item.py +169 -0
  33. huaweicloudsdkimagesearch/v2/model/search_optional_param.py +318 -0
  34. huaweicloudsdkimagesearch/v2/model/search_param.py +425 -0
  35. huaweicloudsdkimagesearch/v2/model/search_rest_info.py +165 -0
  36. huaweicloudsdkimagesearch/v2/model/search_rest_info_image_info.py +202 -0
  37. huaweicloudsdkimagesearch/v2/model/update_param.py +201 -0
  38. huaweicloudsdkimagesearch/v2/region/__init__.py +0 -0
  39. huaweicloudsdkimagesearch/v2/region/imagesearch_region.py +32 -0
  40. huaweicloudsdkimagesearch-3.1.160.dist-info/LICENSE +13 -0
  41. huaweicloudsdkimagesearch-3.1.160.dist-info/METADATA +26 -0
  42. huaweicloudsdkimagesearch-3.1.160.dist-info/RECORD +44 -0
  43. huaweicloudsdkimagesearch-3.1.160.dist-info/WHEEL +5 -0
  44. huaweicloudsdkimagesearch-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,141 @@
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 RunAddDataResponse(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
+ 'result': 'str',
22
+ 'data': 'AddDataRestInfo'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'data': 'data'
28
+ }
29
+
30
+ def __init__(self, result=None, data=None):
31
+ r"""RunAddDataResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result: 添加数据完成返回success。
36
+ :type result: str
37
+ :param data:
38
+ :type data: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo`
39
+ """
40
+
41
+ super(RunAddDataResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._data = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if data is not None:
50
+ self.data = data
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this RunAddDataResponse.
55
+
56
+ 添加数据完成返回success。
57
+
58
+ :return: The result of this RunAddDataResponse.
59
+ :rtype: str
60
+ """
61
+ return self._result
62
+
63
+ @result.setter
64
+ def result(self, result):
65
+ r"""Sets the result of this RunAddDataResponse.
66
+
67
+ 添加数据完成返回success。
68
+
69
+ :param result: The result of this RunAddDataResponse.
70
+ :type result: str
71
+ """
72
+ self._result = result
73
+
74
+ @property
75
+ def data(self):
76
+ r"""Gets the data of this RunAddDataResponse.
77
+
78
+ :return: The data of this RunAddDataResponse.
79
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo`
80
+ """
81
+ return self._data
82
+
83
+ @data.setter
84
+ def data(self, data):
85
+ r"""Sets the data of this RunAddDataResponse.
86
+
87
+ :param data: The data of this RunAddDataResponse.
88
+ :type data: :class:`huaweicloudsdkimagesearch.v2.AddDataRestInfo`
89
+ """
90
+ self._data = data
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, RunAddDataResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RunCheckDataRequest:
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
+ 'service_name': 'str',
21
+ 'body': 'CheckParam'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'service_name': 'service_name',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, service_name=None, body=None):
30
+ r"""RunCheckDataRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param service_name: 服务实例的名称,用户创建服务实例时指定。
35
+ :type service_name: str
36
+ :param body: Body of the RunCheckDataRequest
37
+ :type body: :class:`huaweicloudsdkimagesearch.v2.CheckParam`
38
+ """
39
+
40
+
41
+
42
+ self._service_name = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.service_name = service_name
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def service_name(self):
52
+ r"""Gets the service_name of this RunCheckDataRequest.
53
+
54
+ 服务实例的名称,用户创建服务实例时指定。
55
+
56
+ :return: The service_name of this RunCheckDataRequest.
57
+ :rtype: str
58
+ """
59
+ return self._service_name
60
+
61
+ @service_name.setter
62
+ def service_name(self, service_name):
63
+ r"""Sets the service_name of this RunCheckDataRequest.
64
+
65
+ 服务实例的名称,用户创建服务实例时指定。
66
+
67
+ :param service_name: The service_name of this RunCheckDataRequest.
68
+ :type service_name: str
69
+ """
70
+ self._service_name = service_name
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this RunCheckDataRequest.
75
+
76
+ :return: The body of this RunCheckDataRequest.
77
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckParam`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this RunCheckDataRequest.
84
+
85
+ :param body: The body of this RunCheckDataRequest.
86
+ :type body: :class:`huaweicloudsdkimagesearch.v2.CheckParam`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, RunCheckDataRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,141 @@
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 RunCheckDataResponse(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
+ 'result': 'str',
22
+ 'data': 'CheckRestInfo'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'data': 'data'
28
+ }
29
+
30
+ def __init__(self, result=None, data=None):
31
+ r"""RunCheckDataResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result: 检查数据完成返回success。
36
+ :type result: str
37
+ :param data:
38
+ :type data: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo`
39
+ """
40
+
41
+ super(RunCheckDataResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._data = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if data is not None:
50
+ self.data = data
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this RunCheckDataResponse.
55
+
56
+ 检查数据完成返回success。
57
+
58
+ :return: The result of this RunCheckDataResponse.
59
+ :rtype: str
60
+ """
61
+ return self._result
62
+
63
+ @result.setter
64
+ def result(self, result):
65
+ r"""Sets the result of this RunCheckDataResponse.
66
+
67
+ 检查数据完成返回success。
68
+
69
+ :param result: The result of this RunCheckDataResponse.
70
+ :type result: str
71
+ """
72
+ self._result = result
73
+
74
+ @property
75
+ def data(self):
76
+ r"""Gets the data of this RunCheckDataResponse.
77
+
78
+ :return: The data of this RunCheckDataResponse.
79
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo`
80
+ """
81
+ return self._data
82
+
83
+ @data.setter
84
+ def data(self, data):
85
+ r"""Sets the data of this RunCheckDataResponse.
86
+
87
+ :param data: The data of this RunCheckDataResponse.
88
+ :type data: :class:`huaweicloudsdkimagesearch.v2.CheckRestInfo`
89
+ """
90
+ self._data = data
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, RunCheckDataResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RunDeleteDataRequest:
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
+ 'service_name': 'str',
21
+ 'body': 'DeleteParam'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'service_name': 'service_name',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, service_name=None, body=None):
30
+ r"""RunDeleteDataRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param service_name: 服务实例的名称,用户创建服务实例时指定。
35
+ :type service_name: str
36
+ :param body: Body of the RunDeleteDataRequest
37
+ :type body: :class:`huaweicloudsdkimagesearch.v2.DeleteParam`
38
+ """
39
+
40
+
41
+
42
+ self._service_name = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.service_name = service_name
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def service_name(self):
52
+ r"""Gets the service_name of this RunDeleteDataRequest.
53
+
54
+ 服务实例的名称,用户创建服务实例时指定。
55
+
56
+ :return: The service_name of this RunDeleteDataRequest.
57
+ :rtype: str
58
+ """
59
+ return self._service_name
60
+
61
+ @service_name.setter
62
+ def service_name(self, service_name):
63
+ r"""Sets the service_name of this RunDeleteDataRequest.
64
+
65
+ 服务实例的名称,用户创建服务实例时指定。
66
+
67
+ :param service_name: The service_name of this RunDeleteDataRequest.
68
+ :type service_name: str
69
+ """
70
+ self._service_name = service_name
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this RunDeleteDataRequest.
75
+
76
+ :return: The body of this RunDeleteDataRequest.
77
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteParam`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this RunDeleteDataRequest.
84
+
85
+ :param body: The body of this RunDeleteDataRequest.
86
+ :type body: :class:`huaweicloudsdkimagesearch.v2.DeleteParam`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, RunDeleteDataRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,141 @@
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 RunDeleteDataResponse(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
+ 'result': 'str',
22
+ 'data': 'DeleteRestInfo'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'data': 'data'
28
+ }
29
+
30
+ def __init__(self, result=None, data=None):
31
+ r"""RunDeleteDataResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result: 删除数据完成返回success。
36
+ :type result: str
37
+ :param data:
38
+ :type data: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo`
39
+ """
40
+
41
+ super(RunDeleteDataResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._data = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if data is not None:
50
+ self.data = data
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this RunDeleteDataResponse.
55
+
56
+ 删除数据完成返回success。
57
+
58
+ :return: The result of this RunDeleteDataResponse.
59
+ :rtype: str
60
+ """
61
+ return self._result
62
+
63
+ @result.setter
64
+ def result(self, result):
65
+ r"""Sets the result of this RunDeleteDataResponse.
66
+
67
+ 删除数据完成返回success。
68
+
69
+ :param result: The result of this RunDeleteDataResponse.
70
+ :type result: str
71
+ """
72
+ self._result = result
73
+
74
+ @property
75
+ def data(self):
76
+ r"""Gets the data of this RunDeleteDataResponse.
77
+
78
+ :return: The data of this RunDeleteDataResponse.
79
+ :rtype: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo`
80
+ """
81
+ return self._data
82
+
83
+ @data.setter
84
+ def data(self, data):
85
+ r"""Sets the data of this RunDeleteDataResponse.
86
+
87
+ :param data: The data of this RunDeleteDataResponse.
88
+ :type data: :class:`huaweicloudsdkimagesearch.v2.DeleteRestInfo`
89
+ """
90
+ self._data = data
91
+
92
+ def to_dict(self):
93
+ """Returns the model properties as a dict"""
94
+ result = {}
95
+
96
+ for attr, _ in six.iteritems(self.openapi_types):
97
+ value = getattr(self, attr)
98
+ if isinstance(value, list):
99
+ result[attr] = list(map(
100
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101
+ value
102
+ ))
103
+ elif hasattr(value, "to_dict"):
104
+ result[attr] = value.to_dict()
105
+ elif isinstance(value, dict):
106
+ result[attr] = dict(map(
107
+ lambda item: (item[0], item[1].to_dict())
108
+ if hasattr(item[1], "to_dict") else item,
109
+ value.items()
110
+ ))
111
+ else:
112
+ if attr in self.sensitive_list:
113
+ result[attr] = "****"
114
+ else:
115
+ result[attr] = value
116
+
117
+ return result
118
+
119
+ def to_str(self):
120
+ """Returns the string representation of the model"""
121
+ import simplejson as json
122
+ if six.PY2:
123
+ import sys
124
+ reload(sys)
125
+ sys.setdefaultencoding("utf-8")
126
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
127
+
128
+ def __repr__(self):
129
+ """For `print`"""
130
+ return self.to_str()
131
+
132
+ def __eq__(self, other):
133
+ """Returns true if both objects are equal"""
134
+ if not isinstance(other, RunDeleteDataResponse):
135
+ return False
136
+
137
+ return self.__dict__ == other.__dict__
138
+
139
+ def __ne__(self, other):
140
+ """Returns true if both objects are not equal"""
141
+ return not self == other