huaweicloudsdkcodeartsbuild 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 (92) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +83 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1885 -128
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1885 -128
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +83 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
  22. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
  33. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
  39. huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
  69. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
  70. huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
  71. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
  72. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
  73. huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
  74. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
  75. huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
  76. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
  77. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
  78. huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
  79. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
  80. huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
  81. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
  82. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
  83. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
  84. huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
  85. huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
  86. huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
  87. huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
  88. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
  89. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +92 -9
  90. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
  91. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
  92. {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListRelatedProjectInfoResultProjectInfoList:
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
+ 'identifier': 'str',
21
+ 'name': 'str',
22
+ 'author_id': 'str',
23
+ 'status': 'int',
24
+ 'author_domain_id': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'identifier': 'identifier',
29
+ 'name': 'name',
30
+ 'author_id': 'author_id',
31
+ 'status': 'status',
32
+ 'author_domain_id': 'author_domain_id'
33
+ }
34
+
35
+ def __init__(self, identifier=None, name=None, author_id=None, status=None, author_domain_id=None):
36
+ r"""ListRelatedProjectInfoResultProjectInfoList
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param identifier: 唯一标识
41
+ :type identifier: str
42
+ :param name: 项目名
43
+ :type name: str
44
+ :param author_id: 用户ID
45
+ :type author_id: str
46
+ :param status: 状态
47
+ :type status: int
48
+ :param author_domain_id: 项目创建者租户ID
49
+ :type author_domain_id: str
50
+ """
51
+
52
+
53
+
54
+ self._identifier = None
55
+ self._name = None
56
+ self._author_id = None
57
+ self._status = None
58
+ self._author_domain_id = None
59
+ self.discriminator = None
60
+
61
+ if identifier is not None:
62
+ self.identifier = identifier
63
+ if name is not None:
64
+ self.name = name
65
+ if author_id is not None:
66
+ self.author_id = author_id
67
+ if status is not None:
68
+ self.status = status
69
+ if author_domain_id is not None:
70
+ self.author_domain_id = author_domain_id
71
+
72
+ @property
73
+ def identifier(self):
74
+ r"""Gets the identifier of this ListRelatedProjectInfoResultProjectInfoList.
75
+
76
+ 唯一标识
77
+
78
+ :return: The identifier of this ListRelatedProjectInfoResultProjectInfoList.
79
+ :rtype: str
80
+ """
81
+ return self._identifier
82
+
83
+ @identifier.setter
84
+ def identifier(self, identifier):
85
+ r"""Sets the identifier of this ListRelatedProjectInfoResultProjectInfoList.
86
+
87
+ 唯一标识
88
+
89
+ :param identifier: The identifier of this ListRelatedProjectInfoResultProjectInfoList.
90
+ :type identifier: str
91
+ """
92
+ self._identifier = identifier
93
+
94
+ @property
95
+ def name(self):
96
+ r"""Gets the name of this ListRelatedProjectInfoResultProjectInfoList.
97
+
98
+ 项目名
99
+
100
+ :return: The name of this ListRelatedProjectInfoResultProjectInfoList.
101
+ :rtype: str
102
+ """
103
+ return self._name
104
+
105
+ @name.setter
106
+ def name(self, name):
107
+ r"""Sets the name of this ListRelatedProjectInfoResultProjectInfoList.
108
+
109
+ 项目名
110
+
111
+ :param name: The name of this ListRelatedProjectInfoResultProjectInfoList.
112
+ :type name: str
113
+ """
114
+ self._name = name
115
+
116
+ @property
117
+ def author_id(self):
118
+ r"""Gets the author_id of this ListRelatedProjectInfoResultProjectInfoList.
119
+
120
+ 用户ID
121
+
122
+ :return: The author_id of this ListRelatedProjectInfoResultProjectInfoList.
123
+ :rtype: str
124
+ """
125
+ return self._author_id
126
+
127
+ @author_id.setter
128
+ def author_id(self, author_id):
129
+ r"""Sets the author_id of this ListRelatedProjectInfoResultProjectInfoList.
130
+
131
+ 用户ID
132
+
133
+ :param author_id: The author_id of this ListRelatedProjectInfoResultProjectInfoList.
134
+ :type author_id: str
135
+ """
136
+ self._author_id = author_id
137
+
138
+ @property
139
+ def status(self):
140
+ r"""Gets the status of this ListRelatedProjectInfoResultProjectInfoList.
141
+
142
+ 状态
143
+
144
+ :return: The status of this ListRelatedProjectInfoResultProjectInfoList.
145
+ :rtype: int
146
+ """
147
+ return self._status
148
+
149
+ @status.setter
150
+ def status(self, status):
151
+ r"""Sets the status of this ListRelatedProjectInfoResultProjectInfoList.
152
+
153
+ 状态
154
+
155
+ :param status: The status of this ListRelatedProjectInfoResultProjectInfoList.
156
+ :type status: int
157
+ """
158
+ self._status = status
159
+
160
+ @property
161
+ def author_domain_id(self):
162
+ r"""Gets the author_domain_id of this ListRelatedProjectInfoResultProjectInfoList.
163
+
164
+ 项目创建者租户ID
165
+
166
+ :return: The author_domain_id of this ListRelatedProjectInfoResultProjectInfoList.
167
+ :rtype: str
168
+ """
169
+ return self._author_domain_id
170
+
171
+ @author_domain_id.setter
172
+ def author_domain_id(self, author_domain_id):
173
+ r"""Sets the author_domain_id of this ListRelatedProjectInfoResultProjectInfoList.
174
+
175
+ 项目创建者租户ID
176
+
177
+ :param author_domain_id: The author_domain_id of this ListRelatedProjectInfoResultProjectInfoList.
178
+ :type author_domain_id: str
179
+ """
180
+ self._author_domain_id = author_domain_id
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_types):
187
+ value = getattr(self, attr)
188
+ if isinstance(value, list):
189
+ result[attr] = list(map(
190
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
191
+ value
192
+ ))
193
+ elif hasattr(value, "to_dict"):
194
+ result[attr] = value.to_dict()
195
+ elif isinstance(value, dict):
196
+ result[attr] = dict(map(
197
+ lambda item: (item[0], item[1].to_dict())
198
+ if hasattr(item[1], "to_dict") else item,
199
+ value.items()
200
+ ))
201
+ else:
202
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, ListRelatedProjectInfoResultProjectInfoList):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ 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 Parameter:
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
+ 'name': 'str',
21
+ 'params': 'list[CreateBuildJobParameterParam]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'name': 'name',
26
+ 'params': 'params'
27
+ }
28
+
29
+ def __init__(self, name=None, params=None):
30
+ r"""Parameter
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param name: 参数定义名,默认为hudson.model.StringParameterDefinition
35
+ :type name: str
36
+ :param params: 构建执行参数子参数
37
+ :type params: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameterParam`]
38
+ """
39
+
40
+
41
+
42
+ self._name = None
43
+ self._params = None
44
+ self.discriminator = None
45
+
46
+ if name is not None:
47
+ self.name = name
48
+ if params is not None:
49
+ self.params = params
50
+
51
+ @property
52
+ def name(self):
53
+ r"""Gets the name of this Parameter.
54
+
55
+ 参数定义名,默认为hudson.model.StringParameterDefinition
56
+
57
+ :return: The name of this Parameter.
58
+ :rtype: str
59
+ """
60
+ return self._name
61
+
62
+ @name.setter
63
+ def name(self, name):
64
+ r"""Sets the name of this Parameter.
65
+
66
+ 参数定义名,默认为hudson.model.StringParameterDefinition
67
+
68
+ :param name: The name of this Parameter.
69
+ :type name: str
70
+ """
71
+ self._name = name
72
+
73
+ @property
74
+ def params(self):
75
+ r"""Gets the params of this Parameter.
76
+
77
+ 构建执行参数子参数
78
+
79
+ :return: The params of this Parameter.
80
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameterParam`]
81
+ """
82
+ return self._params
83
+
84
+ @params.setter
85
+ def params(self, params):
86
+ r"""Sets the params of this Parameter.
87
+
88
+ 构建执行参数子参数
89
+
90
+ :param params: The params of this Parameter.
91
+ :type params: list[:class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobParameterParam`]
92
+ """
93
+ self._params = params
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, Parameter):
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,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Params:
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
+ 'name': 'str',
21
+ 'title': 'str',
22
+ 'type': 'str',
23
+ 'required': 'bool',
24
+ 'constraints': 'list[Constraints]',
25
+ 'deletion': 'bool',
26
+ 'defaults': 'bool'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'name': 'name',
31
+ 'title': 'title',
32
+ 'type': 'type',
33
+ 'required': 'required',
34
+ 'constraints': 'constraints',
35
+ 'deletion': 'deletion',
36
+ 'defaults': 'defaults'
37
+ }
38
+
39
+ def __init__(self, name=None, title=None, type=None, required=None, constraints=None, deletion=None, defaults=None):
40
+ r"""Params
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param name: 参数名
45
+ :type name: str
46
+ :param title: 名称
47
+ :type title: str
48
+ :param type: 类型
49
+ :type type: str
50
+ :param required: 必填
51
+ :type required: bool
52
+ :param constraints: 简要构建信息列表
53
+ :type constraints: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
54
+ :param deletion: 删除
55
+ :type deletion: bool
56
+ :param defaults: 默认
57
+ :type defaults: bool
58
+ """
59
+
60
+
61
+
62
+ self._name = None
63
+ self._title = None
64
+ self._type = None
65
+ self._required = None
66
+ self._constraints = None
67
+ self._deletion = None
68
+ self._defaults = None
69
+ self.discriminator = None
70
+
71
+ if name is not None:
72
+ self.name = name
73
+ if title is not None:
74
+ self.title = title
75
+ if type is not None:
76
+ self.type = type
77
+ if required is not None:
78
+ self.required = required
79
+ if constraints is not None:
80
+ self.constraints = constraints
81
+ if deletion is not None:
82
+ self.deletion = deletion
83
+ if defaults is not None:
84
+ self.defaults = defaults
85
+
86
+ @property
87
+ def name(self):
88
+ r"""Gets the name of this Params.
89
+
90
+ 参数名
91
+
92
+ :return: The name of this Params.
93
+ :rtype: str
94
+ """
95
+ return self._name
96
+
97
+ @name.setter
98
+ def name(self, name):
99
+ r"""Sets the name of this Params.
100
+
101
+ 参数名
102
+
103
+ :param name: The name of this Params.
104
+ :type name: str
105
+ """
106
+ self._name = name
107
+
108
+ @property
109
+ def title(self):
110
+ r"""Gets the title of this Params.
111
+
112
+ 名称
113
+
114
+ :return: The title of this Params.
115
+ :rtype: str
116
+ """
117
+ return self._title
118
+
119
+ @title.setter
120
+ def title(self, title):
121
+ r"""Sets the title of this Params.
122
+
123
+ 名称
124
+
125
+ :param title: The title of this Params.
126
+ :type title: str
127
+ """
128
+ self._title = title
129
+
130
+ @property
131
+ def type(self):
132
+ r"""Gets the type of this Params.
133
+
134
+ 类型
135
+
136
+ :return: The type of this Params.
137
+ :rtype: str
138
+ """
139
+ return self._type
140
+
141
+ @type.setter
142
+ def type(self, type):
143
+ r"""Sets the type of this Params.
144
+
145
+ 类型
146
+
147
+ :param type: The type of this Params.
148
+ :type type: str
149
+ """
150
+ self._type = type
151
+
152
+ @property
153
+ def required(self):
154
+ r"""Gets the required of this Params.
155
+
156
+ 必填
157
+
158
+ :return: The required of this Params.
159
+ :rtype: bool
160
+ """
161
+ return self._required
162
+
163
+ @required.setter
164
+ def required(self, required):
165
+ r"""Sets the required of this Params.
166
+
167
+ 必填
168
+
169
+ :param required: The required of this Params.
170
+ :type required: bool
171
+ """
172
+ self._required = required
173
+
174
+ @property
175
+ def constraints(self):
176
+ r"""Gets the constraints of this Params.
177
+
178
+ 简要构建信息列表
179
+
180
+ :return: The constraints of this Params.
181
+ :rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
182
+ """
183
+ return self._constraints
184
+
185
+ @constraints.setter
186
+ def constraints(self, constraints):
187
+ r"""Sets the constraints of this Params.
188
+
189
+ 简要构建信息列表
190
+
191
+ :param constraints: The constraints of this Params.
192
+ :type constraints: list[:class:`huaweicloudsdkcodeartsbuild.v3.Constraints`]
193
+ """
194
+ self._constraints = constraints
195
+
196
+ @property
197
+ def deletion(self):
198
+ r"""Gets the deletion of this Params.
199
+
200
+ 删除
201
+
202
+ :return: The deletion of this Params.
203
+ :rtype: bool
204
+ """
205
+ return self._deletion
206
+
207
+ @deletion.setter
208
+ def deletion(self, deletion):
209
+ r"""Sets the deletion of this Params.
210
+
211
+ 删除
212
+
213
+ :param deletion: The deletion of this Params.
214
+ :type deletion: bool
215
+ """
216
+ self._deletion = deletion
217
+
218
+ @property
219
+ def defaults(self):
220
+ r"""Gets the defaults of this Params.
221
+
222
+ 默认
223
+
224
+ :return: The defaults of this Params.
225
+ :rtype: bool
226
+ """
227
+ return self._defaults
228
+
229
+ @defaults.setter
230
+ def defaults(self, defaults):
231
+ r"""Sets the defaults of this Params.
232
+
233
+ 默认
234
+
235
+ :param defaults: The defaults of this Params.
236
+ :type defaults: bool
237
+ """
238
+ self._defaults = defaults
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, Params):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other