huaweicloudsdkeihealth 3.1.149__py2.py3-none-any.whl → 3.1.151__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 (55) hide show
  1. huaweicloudsdkeihealth/v1/__init__.py +46 -0
  2. huaweicloudsdkeihealth/v1/eihealth_async_client.py +1323 -48
  3. huaweicloudsdkeihealth/v1/eihealth_client.py +1323 -48
  4. huaweicloudsdkeihealth/v1/model/__init__.py +46 -0
  5. huaweicloudsdkeihealth/v1/model/agency_dto.py +231 -0
  6. huaweicloudsdkeihealth/v1/model/app_dto.py +492 -0
  7. huaweicloudsdkeihealth/v1/model/cce_cluster_rsp.py +260 -0
  8. huaweicloudsdkeihealth/v1/model/computing_cluster_rsp.py +463 -0
  9. huaweicloudsdkeihealth/v1/model/create_computing_cluster_req.py +114 -0
  10. huaweicloudsdkeihealth/v1/model/create_computing_cluster_request.py +111 -0
  11. huaweicloudsdkeihealth/v1/model/create_computing_cluster_response.py +116 -0
  12. huaweicloudsdkeihealth/v1/model/delete_computing_cluster_request.py +114 -0
  13. huaweicloudsdkeihealth/v1/model/delete_computing_cluster_response.py +85 -0
  14. huaweicloudsdkeihealth/v1/model/iam_role_dto.py +231 -0
  15. huaweicloudsdkeihealth/v1/model/initialize_platform_request.py +84 -0
  16. huaweicloudsdkeihealth/v1/model/initialize_platform_response.py +85 -0
  17. huaweicloudsdkeihealth/v1/model/install_step.py +169 -0
  18. huaweicloudsdkeihealth/v1/model/list_cce_cluster_request.py +84 -0
  19. huaweicloudsdkeihealth/v1/model/list_cce_cluster_response.py +145 -0
  20. huaweicloudsdkeihealth/v1/model/list_cluster_install_step_request.py +114 -0
  21. huaweicloudsdkeihealth/v1/model/list_cluster_install_step_response.py +145 -0
  22. huaweicloudsdkeihealth/v1/model/list_computing_cluster_request.py +144 -0
  23. huaweicloudsdkeihealth/v1/model/list_computing_cluster_response.py +145 -0
  24. huaweicloudsdkeihealth/v1/model/list_project_statistics_request.py +84 -0
  25. huaweicloudsdkeihealth/v1/model/list_project_statistics_response.py +145 -0
  26. huaweicloudsdkeihealth/v1/model/list_sfs_turbos_request.py +144 -0
  27. huaweicloudsdkeihealth/v1/model/list_sfs_turbos_response.py +145 -0
  28. huaweicloudsdkeihealth/v1/model/list_user_app_request.py +492 -0
  29. huaweicloudsdkeihealth/v1/model/list_user_app_response.py +145 -0
  30. huaweicloudsdkeihealth/v1/model/list_user_drug_job_request.py +492 -0
  31. huaweicloudsdkeihealth/v1/model/list_user_drug_job_response.py +145 -0
  32. huaweicloudsdkeihealth/v1/model/list_user_image_request.py +521 -0
  33. huaweicloudsdkeihealth/v1/model/list_user_image_response.py +145 -0
  34. huaweicloudsdkeihealth/v1/model/list_user_job_request.py +492 -0
  35. huaweicloudsdkeihealth/v1/model/list_user_job_response.py +203 -0
  36. huaweicloudsdkeihealth/v1/model/list_user_notebook_request.py +492 -0
  37. huaweicloudsdkeihealth/v1/model/list_user_notebook_response.py +145 -0
  38. huaweicloudsdkeihealth/v1/model/list_user_workflow_request.py +492 -0
  39. huaweicloudsdkeihealth/v1/model/list_user_workflow_response.py +145 -0
  40. huaweicloudsdkeihealth/v1/model/project_statistic.py +347 -0
  41. huaweicloudsdkeihealth/v1/model/sfs_turbo_rsp.py +231 -0
  42. huaweicloudsdkeihealth/v1/model/show_agency_request.py +84 -0
  43. huaweicloudsdkeihealth/v1/model/show_agency_response.py +174 -0
  44. huaweicloudsdkeihealth/v1/model/statistic_dto.py +144 -0
  45. huaweicloudsdkeihealth/v1/model/step_status.py +89 -0
  46. huaweicloudsdkeihealth/v1/model/update_agency_request.py +84 -0
  47. huaweicloudsdkeihealth/v1/model/update_agency_response.py +85 -0
  48. huaweicloudsdkeihealth/v1/model/update_top_project_req.py +114 -0
  49. huaweicloudsdkeihealth/v1/model/update_top_project_request.py +139 -0
  50. huaweicloudsdkeihealth/v1/model/update_top_project_response.py +85 -0
  51. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/METADATA +2 -2
  52. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/RECORD +55 -9
  53. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/LICENSE +0 -0
  54. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/WHEEL +0 -0
  55. {huaweicloudsdkeihealth-3.1.149.dist-info → huaweicloudsdkeihealth-3.1.151.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,174 @@
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 ShowAgencyResponse(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
+ 'existing_agencies': 'list[AgencyDto]',
22
+ 'wanted_agencies': 'list[AgencyDto]',
23
+ 'redundant_agencies': 'list[AgencyDto]'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'existing_agencies': 'existing_agencies',
28
+ 'wanted_agencies': 'wanted_agencies',
29
+ 'redundant_agencies': 'redundant_agencies'
30
+ }
31
+
32
+ def __init__(self, existing_agencies=None, wanted_agencies=None, redundant_agencies=None):
33
+ r"""ShowAgencyResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param existing_agencies: 当前存在的委托权限列表。
38
+ :type existing_agencies: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
39
+ :param wanted_agencies: 仍需要的委托权限列表。
40
+ :type wanted_agencies: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
41
+ :param redundant_agencies: 冗余的委托权限列表。
42
+ :type redundant_agencies: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
43
+ """
44
+
45
+ super(ShowAgencyResponse, self).__init__()
46
+
47
+ self._existing_agencies = None
48
+ self._wanted_agencies = None
49
+ self._redundant_agencies = None
50
+ self.discriminator = None
51
+
52
+ if existing_agencies is not None:
53
+ self.existing_agencies = existing_agencies
54
+ if wanted_agencies is not None:
55
+ self.wanted_agencies = wanted_agencies
56
+ if redundant_agencies is not None:
57
+ self.redundant_agencies = redundant_agencies
58
+
59
+ @property
60
+ def existing_agencies(self):
61
+ r"""Gets the existing_agencies of this ShowAgencyResponse.
62
+
63
+ 当前存在的委托权限列表。
64
+
65
+ :return: The existing_agencies of this ShowAgencyResponse.
66
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
67
+ """
68
+ return self._existing_agencies
69
+
70
+ @existing_agencies.setter
71
+ def existing_agencies(self, existing_agencies):
72
+ r"""Sets the existing_agencies of this ShowAgencyResponse.
73
+
74
+ 当前存在的委托权限列表。
75
+
76
+ :param existing_agencies: The existing_agencies of this ShowAgencyResponse.
77
+ :type existing_agencies: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
78
+ """
79
+ self._existing_agencies = existing_agencies
80
+
81
+ @property
82
+ def wanted_agencies(self):
83
+ r"""Gets the wanted_agencies of this ShowAgencyResponse.
84
+
85
+ 仍需要的委托权限列表。
86
+
87
+ :return: The wanted_agencies of this ShowAgencyResponse.
88
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
89
+ """
90
+ return self._wanted_agencies
91
+
92
+ @wanted_agencies.setter
93
+ def wanted_agencies(self, wanted_agencies):
94
+ r"""Sets the wanted_agencies of this ShowAgencyResponse.
95
+
96
+ 仍需要的委托权限列表。
97
+
98
+ :param wanted_agencies: The wanted_agencies of this ShowAgencyResponse.
99
+ :type wanted_agencies: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
100
+ """
101
+ self._wanted_agencies = wanted_agencies
102
+
103
+ @property
104
+ def redundant_agencies(self):
105
+ r"""Gets the redundant_agencies of this ShowAgencyResponse.
106
+
107
+ 冗余的委托权限列表。
108
+
109
+ :return: The redundant_agencies of this ShowAgencyResponse.
110
+ :rtype: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
111
+ """
112
+ return self._redundant_agencies
113
+
114
+ @redundant_agencies.setter
115
+ def redundant_agencies(self, redundant_agencies):
116
+ r"""Sets the redundant_agencies of this ShowAgencyResponse.
117
+
118
+ 冗余的委托权限列表。
119
+
120
+ :param redundant_agencies: The redundant_agencies of this ShowAgencyResponse.
121
+ :type redundant_agencies: list[:class:`huaweicloudsdkeihealth.v1.AgencyDto`]
122
+ """
123
+ self._redundant_agencies = redundant_agencies
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ShowAgencyResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StatisticDto:
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
+ 'resource_name': 'str',
21
+ 'count': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'resource_name': 'resource_name',
26
+ 'count': 'count'
27
+ }
28
+
29
+ def __init__(self, resource_name=None, count=None):
30
+ r"""StatisticDto
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param resource_name: 统计资源名称
35
+ :type resource_name: str
36
+ :param count: 统计资源值
37
+ :type count: int
38
+ """
39
+
40
+
41
+
42
+ self._resource_name = None
43
+ self._count = None
44
+ self.discriminator = None
45
+
46
+ if resource_name is not None:
47
+ self.resource_name = resource_name
48
+ if count is not None:
49
+ self.count = count
50
+
51
+ @property
52
+ def resource_name(self):
53
+ r"""Gets the resource_name of this StatisticDto.
54
+
55
+ 统计资源名称
56
+
57
+ :return: The resource_name of this StatisticDto.
58
+ :rtype: str
59
+ """
60
+ return self._resource_name
61
+
62
+ @resource_name.setter
63
+ def resource_name(self, resource_name):
64
+ r"""Sets the resource_name of this StatisticDto.
65
+
66
+ 统计资源名称
67
+
68
+ :param resource_name: The resource_name of this StatisticDto.
69
+ :type resource_name: str
70
+ """
71
+ self._resource_name = resource_name
72
+
73
+ @property
74
+ def count(self):
75
+ r"""Gets the count of this StatisticDto.
76
+
77
+ 统计资源值
78
+
79
+ :return: The count of this StatisticDto.
80
+ :rtype: int
81
+ """
82
+ return self._count
83
+
84
+ @count.setter
85
+ def count(self, count):
86
+ r"""Sets the count of this StatisticDto.
87
+
88
+ 统计资源值
89
+
90
+ :param count: The count of this StatisticDto.
91
+ :type count: int
92
+ """
93
+ self._count = count
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, StatisticDto):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StepStatus:
9
+ """
10
+ allowed enum values
11
+ """
12
+ RUNNING = "RUNNING"
13
+ FAILED = "FAILED"
14
+ FINISHED = "FINISHED"
15
+ """
16
+ Attributes:
17
+ openapi_types (dict): The key is attribute name
18
+ and the value is attribute type.
19
+ attribute_map (dict): The key is attribute name
20
+ and the value is json key in definition.
21
+ """
22
+ sensitive_list = []
23
+
24
+ openapi_types = {
25
+ }
26
+
27
+ attribute_map = {
28
+ }
29
+
30
+ def __init__(self):
31
+ r"""StepStatus
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ """
36
+
37
+
38
+ self.discriminator = None
39
+
40
+ def to_dict(self):
41
+ """Returns the model properties as a dict"""
42
+ result = {}
43
+
44
+ for attr, _ in six.iteritems(self.openapi_types):
45
+ value = getattr(self, attr)
46
+ if isinstance(value, list):
47
+ result[attr] = list(map(
48
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
49
+ value
50
+ ))
51
+ elif hasattr(value, "to_dict"):
52
+ result[attr] = value.to_dict()
53
+ elif isinstance(value, dict):
54
+ result[attr] = dict(map(
55
+ lambda item: (item[0], item[1].to_dict())
56
+ if hasattr(item[1], "to_dict") else item,
57
+ value.items()
58
+ ))
59
+ else:
60
+ if attr in self.sensitive_list:
61
+ result[attr] = "****"
62
+ else:
63
+ result[attr] = value
64
+
65
+ return result
66
+
67
+ def to_str(self):
68
+ """Returns the string representation of the model"""
69
+ import simplejson as json
70
+ if six.PY2:
71
+ import sys
72
+ reload(sys)
73
+ sys.setdefaultencoding("utf-8")
74
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
75
+
76
+ def __repr__(self):
77
+ """For `print`"""
78
+ return self.to_str()
79
+
80
+ def __eq__(self, other):
81
+ """Returns true if both objects are equal"""
82
+ if not isinstance(other, StepStatus):
83
+ return False
84
+
85
+ return self.__dict__ == other.__dict__
86
+
87
+ def __ne__(self, other):
88
+ """Returns true if both objects are not equal"""
89
+ return not self == other
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateAgencyRequest:
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
+ }
21
+
22
+ attribute_map = {
23
+ }
24
+
25
+ def __init__(self):
26
+ r"""UpdateAgencyRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ """
31
+
32
+
33
+ self.discriminator = None
34
+
35
+ def to_dict(self):
36
+ """Returns the model properties as a dict"""
37
+ result = {}
38
+
39
+ for attr, _ in six.iteritems(self.openapi_types):
40
+ value = getattr(self, attr)
41
+ if isinstance(value, list):
42
+ result[attr] = list(map(
43
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
44
+ value
45
+ ))
46
+ elif hasattr(value, "to_dict"):
47
+ result[attr] = value.to_dict()
48
+ elif isinstance(value, dict):
49
+ result[attr] = dict(map(
50
+ lambda item: (item[0], item[1].to_dict())
51
+ if hasattr(item[1], "to_dict") else item,
52
+ value.items()
53
+ ))
54
+ else:
55
+ if attr in self.sensitive_list:
56
+ result[attr] = "****"
57
+ else:
58
+ result[attr] = value
59
+
60
+ return result
61
+
62
+ def to_str(self):
63
+ """Returns the string representation of the model"""
64
+ import simplejson as json
65
+ if six.PY2:
66
+ import sys
67
+ reload(sys)
68
+ sys.setdefaultencoding("utf-8")
69
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
70
+
71
+ def __repr__(self):
72
+ """For `print`"""
73
+ return self.to_str()
74
+
75
+ def __eq__(self, other):
76
+ """Returns true if both objects are equal"""
77
+ if not isinstance(other, UpdateAgencyRequest):
78
+ return False
79
+
80
+ return self.__dict__ == other.__dict__
81
+
82
+ def __ne__(self, other):
83
+ """Returns true if both objects are not equal"""
84
+ return not self == other
@@ -0,0 +1,85 @@
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 UpdateAgencyResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""UpdateAgencyResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(UpdateAgencyResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, UpdateAgencyResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateTopProjectReq:
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
+ 'is_top': 'bool'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'is_top': 'is_top'
25
+ }
26
+
27
+ def __init__(self, is_top=None):
28
+ r"""UpdateTopProjectReq
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param is_top: 是否置顶,true表示置顶,false表示取消置顶。
33
+ :type is_top: bool
34
+ """
35
+
36
+
37
+
38
+ self._is_top = None
39
+ self.discriminator = None
40
+
41
+ self.is_top = is_top
42
+
43
+ @property
44
+ def is_top(self):
45
+ r"""Gets the is_top of this UpdateTopProjectReq.
46
+
47
+ 是否置顶,true表示置顶,false表示取消置顶。
48
+
49
+ :return: The is_top of this UpdateTopProjectReq.
50
+ :rtype: bool
51
+ """
52
+ return self._is_top
53
+
54
+ @is_top.setter
55
+ def is_top(self, is_top):
56
+ r"""Sets the is_top of this UpdateTopProjectReq.
57
+
58
+ 是否置顶,true表示置顶,false表示取消置顶。
59
+
60
+ :param is_top: The is_top of this UpdateTopProjectReq.
61
+ :type is_top: bool
62
+ """
63
+ self._is_top = is_top
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, UpdateTopProjectReq):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other