huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.154__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 (73) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +60 -1
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1466 -89
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1466 -89
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +60 -1
  5. huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
  15. huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
  16. huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/create_new_job_request.py +111 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/create_new_job_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/create_template_request.py +111 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/create_template_response.py +141 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
  22. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
  33. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
  39. huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request.py +111 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request_body.py +142 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_response.py +174 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_job_permission_result.py +434 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_request.py +142 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_response.py +141 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/status_success_result_with_uuid_result.py +115 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request.py +139 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request_body.py +198 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_response.py +145 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request.py +111 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request_body.py +171 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_response.py +170 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_result.py +115 -0
  69. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/METADATA +2 -2
  70. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/RECORD +73 -14
  71. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/LICENSE +0 -0
  72. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/WHEEL +0 -0
  73. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/top_level.txt +0 -0
@@ -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 StatusSuccessResultWithUUIDResult:
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
+ 'uuid': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'uuid': 'uuid'
25
+ }
26
+
27
+ def __init__(self, uuid=None):
28
+ r"""StatusSuccessResultWithUUIDResult
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param uuid: uuid
33
+ :type uuid: str
34
+ """
35
+
36
+
37
+
38
+ self._uuid = None
39
+ self.discriminator = None
40
+
41
+ if uuid is not None:
42
+ self.uuid = uuid
43
+
44
+ @property
45
+ def uuid(self):
46
+ r"""Gets the uuid of this StatusSuccessResultWithUUIDResult.
47
+
48
+ uuid
49
+
50
+ :return: The uuid of this StatusSuccessResultWithUUIDResult.
51
+ :rtype: str
52
+ """
53
+ return self._uuid
54
+
55
+ @uuid.setter
56
+ def uuid(self, uuid):
57
+ r"""Sets the uuid of this StatusSuccessResultWithUUIDResult.
58
+
59
+ uuid
60
+
61
+ :param uuid: The uuid of this StatusSuccessResultWithUUIDResult.
62
+ :type uuid: str
63
+ """
64
+ self._uuid = uuid
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, StatusSuccessResultWithUUIDResult):
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,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Trigger:
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
+ 'parameters': 'list[ParameterItem]',
21
+ 'name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'parameters': 'parameters',
26
+ 'name': 'name'
27
+ }
28
+
29
+ def __init__(self, parameters=None, name=None):
30
+ r"""Trigger
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param parameters: 自定义参数
35
+ :type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.ParameterItem`]
36
+ :param name: 触发器类型
37
+ :type name: str
38
+ """
39
+
40
+
41
+
42
+ self._parameters = None
43
+ self._name = None
44
+ self.discriminator = None
45
+
46
+ self.parameters = parameters
47
+ self.name = name
48
+
49
+ @property
50
+ def parameters(self):
51
+ r"""Gets the parameters of this Trigger.
52
+
53
+ 自定义参数
54
+
55
+ :return: The parameters of this Trigger.
56
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.ParameterItem`]
57
+ """
58
+ return self._parameters
59
+
60
+ @parameters.setter
61
+ def parameters(self, parameters):
62
+ r"""Sets the parameters of this Trigger.
63
+
64
+ 自定义参数
65
+
66
+ :param parameters: The parameters of this Trigger.
67
+ :type parameters: list[:class:`huaweicloudsdkcodeartsbuild.v3.ParameterItem`]
68
+ """
69
+ self._parameters = parameters
70
+
71
+ @property
72
+ def name(self):
73
+ r"""Gets the name of this Trigger.
74
+
75
+ 触发器类型
76
+
77
+ :return: The name of this Trigger.
78
+ :rtype: str
79
+ """
80
+ return self._name
81
+
82
+ @name.setter
83
+ def name(self, name):
84
+ r"""Sets the name of this Trigger.
85
+
86
+ 触发器类型
87
+
88
+ :param name: The name of this Trigger.
89
+ :type name: str
90
+ """
91
+ self._name = 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, Trigger):
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,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateKeystoreRequest:
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
+ 'id': 'str',
21
+ 'body': 'UpdateKeystoreRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, id=None, body=None):
30
+ r"""UpdateKeystoreRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 文件ID
35
+ :type id: str
36
+ :param body: Body of the UpdateKeystoreRequest
37
+ :type body: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateKeystoreRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.id = id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def id(self):
52
+ r"""Gets the id of this UpdateKeystoreRequest.
53
+
54
+ 文件ID
55
+
56
+ :return: The id of this UpdateKeystoreRequest.
57
+ :rtype: str
58
+ """
59
+ return self._id
60
+
61
+ @id.setter
62
+ def id(self, id):
63
+ r"""Sets the id of this UpdateKeystoreRequest.
64
+
65
+ 文件ID
66
+
67
+ :param id: The id of this UpdateKeystoreRequest.
68
+ :type id: str
69
+ """
70
+ self._id = id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateKeystoreRequest.
75
+
76
+ :return: The body of this UpdateKeystoreRequest.
77
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateKeystoreRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateKeystoreRequest.
84
+
85
+ :param body: The body of this UpdateKeystoreRequest.
86
+ :type body: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateKeystoreRequestBody`
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, UpdateKeystoreRequest):
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,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateKeystoreRequestBody:
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
+ 'id': 'str',
21
+ 'description': 'str',
22
+ 'keystore_name': 'str',
23
+ 'share': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'id': 'id',
28
+ 'description': 'description',
29
+ 'keystore_name': 'keystore_name',
30
+ 'share': 'share'
31
+ }
32
+
33
+ def __init__(self, id=None, description=None, keystore_name=None, share=None):
34
+ r"""UpdateKeystoreRequestBody
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param id: 文件ID
39
+ :type id: str
40
+ :param description: 文件描述
41
+ :type description: str
42
+ :param keystore_name: 文件名
43
+ :type keystore_name: str
44
+ :param share: 是否租户内共享,1-共享,0-不共享
45
+ :type share: int
46
+ """
47
+
48
+
49
+
50
+ self._id = None
51
+ self._description = None
52
+ self._keystore_name = None
53
+ self._share = None
54
+ self.discriminator = None
55
+
56
+ self.id = id
57
+ self.description = description
58
+ self.keystore_name = keystore_name
59
+ self.share = share
60
+
61
+ @property
62
+ def id(self):
63
+ r"""Gets the id of this UpdateKeystoreRequestBody.
64
+
65
+ 文件ID
66
+
67
+ :return: The id of this UpdateKeystoreRequestBody.
68
+ :rtype: str
69
+ """
70
+ return self._id
71
+
72
+ @id.setter
73
+ def id(self, id):
74
+ r"""Sets the id of this UpdateKeystoreRequestBody.
75
+
76
+ 文件ID
77
+
78
+ :param id: The id of this UpdateKeystoreRequestBody.
79
+ :type id: str
80
+ """
81
+ self._id = id
82
+
83
+ @property
84
+ def description(self):
85
+ r"""Gets the description of this UpdateKeystoreRequestBody.
86
+
87
+ 文件描述
88
+
89
+ :return: The description of this UpdateKeystoreRequestBody.
90
+ :rtype: str
91
+ """
92
+ return self._description
93
+
94
+ @description.setter
95
+ def description(self, description):
96
+ r"""Sets the description of this UpdateKeystoreRequestBody.
97
+
98
+ 文件描述
99
+
100
+ :param description: The description of this UpdateKeystoreRequestBody.
101
+ :type description: str
102
+ """
103
+ self._description = description
104
+
105
+ @property
106
+ def keystore_name(self):
107
+ r"""Gets the keystore_name of this UpdateKeystoreRequestBody.
108
+
109
+ 文件名
110
+
111
+ :return: The keystore_name of this UpdateKeystoreRequestBody.
112
+ :rtype: str
113
+ """
114
+ return self._keystore_name
115
+
116
+ @keystore_name.setter
117
+ def keystore_name(self, keystore_name):
118
+ r"""Sets the keystore_name of this UpdateKeystoreRequestBody.
119
+
120
+ 文件名
121
+
122
+ :param keystore_name: The keystore_name of this UpdateKeystoreRequestBody.
123
+ :type keystore_name: str
124
+ """
125
+ self._keystore_name = keystore_name
126
+
127
+ @property
128
+ def share(self):
129
+ r"""Gets the share of this UpdateKeystoreRequestBody.
130
+
131
+ 是否租户内共享,1-共享,0-不共享
132
+
133
+ :return: The share of this UpdateKeystoreRequestBody.
134
+ :rtype: int
135
+ """
136
+ return self._share
137
+
138
+ @share.setter
139
+ def share(self, share):
140
+ r"""Sets the share of this UpdateKeystoreRequestBody.
141
+
142
+ 是否租户内共享,1-共享,0-不共享
143
+
144
+ :param share: The share of this UpdateKeystoreRequestBody.
145
+ :type share: int
146
+ """
147
+ self._share = share
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, UpdateKeystoreRequestBody):
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