huaweicloudsdkcodeartsbuild 3.1.153__py2.py3-none-any.whl → 3.1.155__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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +18 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +400 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +400 -0
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +18 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_new_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_template_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request_body.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_permission_result.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/status_success_result_with_uuid_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request_body.py +198 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request_body.py +171 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_result.py +115 -0
- {huaweicloudsdkcodeartsbuild-3.1.153.dist-info → huaweicloudsdkcodeartsbuild-3.1.155.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.153.dist-info → huaweicloudsdkcodeartsbuild-3.1.155.dist-info}/RECORD +27 -9
- {huaweicloudsdkcodeartsbuild-3.1.153.dist-info → huaweicloudsdkcodeartsbuild-3.1.155.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.153.dist-info → huaweicloudsdkcodeartsbuild-3.1.155.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.153.dist-info → huaweicloudsdkcodeartsbuild-3.1.155.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 ShowProjectJobPermissionRequest:
|
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
|
+
'project_id': 'str',
|
21
|
+
'job_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'project_id': 'project_id',
|
26
|
+
'job_id': 'job_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, project_id=None, job_id=None):
|
30
|
+
r"""ShowProjectJobPermissionRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param project_id: CodeArts项目ID,32位数字、小写字母组合。
|
35
|
+
:type project_id: str
|
36
|
+
:param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
37
|
+
:type job_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._project_id = None
|
43
|
+
self._job_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.project_id = project_id
|
47
|
+
self.job_id = job_id
|
48
|
+
|
49
|
+
@property
|
50
|
+
def project_id(self):
|
51
|
+
r"""Gets the project_id of this ShowProjectJobPermissionRequest.
|
52
|
+
|
53
|
+
CodeArts项目ID,32位数字、小写字母组合。
|
54
|
+
|
55
|
+
:return: The project_id of this ShowProjectJobPermissionRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._project_id
|
59
|
+
|
60
|
+
@project_id.setter
|
61
|
+
def project_id(self, project_id):
|
62
|
+
r"""Sets the project_id of this ShowProjectJobPermissionRequest.
|
63
|
+
|
64
|
+
CodeArts项目ID,32位数字、小写字母组合。
|
65
|
+
|
66
|
+
:param project_id: The project_id of this ShowProjectJobPermissionRequest.
|
67
|
+
:type project_id: str
|
68
|
+
"""
|
69
|
+
self._project_id = project_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def job_id(self):
|
73
|
+
r"""Gets the job_id of this ShowProjectJobPermissionRequest.
|
74
|
+
|
75
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
76
|
+
|
77
|
+
:return: The job_id of this ShowProjectJobPermissionRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._job_id
|
81
|
+
|
82
|
+
@job_id.setter
|
83
|
+
def job_id(self, job_id):
|
84
|
+
r"""Sets the job_id of this ShowProjectJobPermissionRequest.
|
85
|
+
|
86
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
87
|
+
|
88
|
+
:param job_id: The job_id of this ShowProjectJobPermissionRequest.
|
89
|
+
:type job_id: str
|
90
|
+
"""
|
91
|
+
self._job_id = job_id
|
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, ShowProjectJobPermissionRequest):
|
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,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 ShowProjectJobPermissionResponse(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': 'ShowJobPermissionResult',
|
22
|
+
'status': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'result': 'result',
|
27
|
+
'status': 'status'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, result=None, status=None):
|
31
|
+
r"""ShowProjectJobPermissionResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param result:
|
36
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobPermissionResult`
|
37
|
+
:param status: 返回状态信息
|
38
|
+
:type status: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowProjectJobPermissionResponse, self).__init__()
|
42
|
+
|
43
|
+
self._result = None
|
44
|
+
self._status = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if result is not None:
|
48
|
+
self.result = result
|
49
|
+
if status is not None:
|
50
|
+
self.status = status
|
51
|
+
|
52
|
+
@property
|
53
|
+
def result(self):
|
54
|
+
r"""Gets the result of this ShowProjectJobPermissionResponse.
|
55
|
+
|
56
|
+
:return: The result of this ShowProjectJobPermissionResponse.
|
57
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobPermissionResult`
|
58
|
+
"""
|
59
|
+
return self._result
|
60
|
+
|
61
|
+
@result.setter
|
62
|
+
def result(self, result):
|
63
|
+
r"""Sets the result of this ShowProjectJobPermissionResponse.
|
64
|
+
|
65
|
+
:param result: The result of this ShowProjectJobPermissionResponse.
|
66
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.ShowJobPermissionResult`
|
67
|
+
"""
|
68
|
+
self._result = result
|
69
|
+
|
70
|
+
@property
|
71
|
+
def status(self):
|
72
|
+
r"""Gets the status of this ShowProjectJobPermissionResponse.
|
73
|
+
|
74
|
+
返回状态信息
|
75
|
+
|
76
|
+
:return: The status of this ShowProjectJobPermissionResponse.
|
77
|
+
:rtype: str
|
78
|
+
"""
|
79
|
+
return self._status
|
80
|
+
|
81
|
+
@status.setter
|
82
|
+
def status(self, status):
|
83
|
+
r"""Sets the status of this ShowProjectJobPermissionResponse.
|
84
|
+
|
85
|
+
返回状态信息
|
86
|
+
|
87
|
+
:param status: The status of this ShowProjectJobPermissionResponse.
|
88
|
+
:type status: str
|
89
|
+
"""
|
90
|
+
self._status = status
|
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, ShowProjectJobPermissionResponse):
|
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,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,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
|