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,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BuildRecordBuildRecordType:
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
+ 'rerun': 'bool',
21
+ 'trigger_type': 'str',
22
+ 'record_type': 'str',
23
+ 'is_rerun': 'bool'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'rerun': 'rerun',
28
+ 'trigger_type': 'trigger_type',
29
+ 'record_type': 'record_type',
30
+ 'is_rerun': 'is_rerun'
31
+ }
32
+
33
+ def __init__(self, rerun=None, trigger_type=None, record_type=None, is_rerun=None):
34
+ r"""BuildRecordBuildRecordType
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param rerun: 是否rerun
39
+ :type rerun: bool
40
+ :param trigger_type: 触发类型
41
+ :type trigger_type: str
42
+ :param record_type: 记录类型
43
+ :type record_type: str
44
+ :param is_rerun: 是否返回
45
+ :type is_rerun: bool
46
+ """
47
+
48
+
49
+
50
+ self._rerun = None
51
+ self._trigger_type = None
52
+ self._record_type = None
53
+ self._is_rerun = None
54
+ self.discriminator = None
55
+
56
+ if rerun is not None:
57
+ self.rerun = rerun
58
+ if trigger_type is not None:
59
+ self.trigger_type = trigger_type
60
+ if record_type is not None:
61
+ self.record_type = record_type
62
+ if is_rerun is not None:
63
+ self.is_rerun = is_rerun
64
+
65
+ @property
66
+ def rerun(self):
67
+ r"""Gets the rerun of this BuildRecordBuildRecordType.
68
+
69
+ 是否rerun
70
+
71
+ :return: The rerun of this BuildRecordBuildRecordType.
72
+ :rtype: bool
73
+ """
74
+ return self._rerun
75
+
76
+ @rerun.setter
77
+ def rerun(self, rerun):
78
+ r"""Sets the rerun of this BuildRecordBuildRecordType.
79
+
80
+ 是否rerun
81
+
82
+ :param rerun: The rerun of this BuildRecordBuildRecordType.
83
+ :type rerun: bool
84
+ """
85
+ self._rerun = rerun
86
+
87
+ @property
88
+ def trigger_type(self):
89
+ r"""Gets the trigger_type of this BuildRecordBuildRecordType.
90
+
91
+ 触发类型
92
+
93
+ :return: The trigger_type of this BuildRecordBuildRecordType.
94
+ :rtype: str
95
+ """
96
+ return self._trigger_type
97
+
98
+ @trigger_type.setter
99
+ def trigger_type(self, trigger_type):
100
+ r"""Sets the trigger_type of this BuildRecordBuildRecordType.
101
+
102
+ 触发类型
103
+
104
+ :param trigger_type: The trigger_type of this BuildRecordBuildRecordType.
105
+ :type trigger_type: str
106
+ """
107
+ self._trigger_type = trigger_type
108
+
109
+ @property
110
+ def record_type(self):
111
+ r"""Gets the record_type of this BuildRecordBuildRecordType.
112
+
113
+ 记录类型
114
+
115
+ :return: The record_type of this BuildRecordBuildRecordType.
116
+ :rtype: str
117
+ """
118
+ return self._record_type
119
+
120
+ @record_type.setter
121
+ def record_type(self, record_type):
122
+ r"""Sets the record_type of this BuildRecordBuildRecordType.
123
+
124
+ 记录类型
125
+
126
+ :param record_type: The record_type of this BuildRecordBuildRecordType.
127
+ :type record_type: str
128
+ """
129
+ self._record_type = record_type
130
+
131
+ @property
132
+ def is_rerun(self):
133
+ r"""Gets the is_rerun of this BuildRecordBuildRecordType.
134
+
135
+ 是否返回
136
+
137
+ :return: The is_rerun of this BuildRecordBuildRecordType.
138
+ :rtype: bool
139
+ """
140
+ return self._is_rerun
141
+
142
+ @is_rerun.setter
143
+ def is_rerun(self, is_rerun):
144
+ r"""Sets the is_rerun of this BuildRecordBuildRecordType.
145
+
146
+ 是否返回
147
+
148
+ :param is_rerun: The is_rerun of this BuildRecordBuildRecordType.
149
+ :type is_rerun: bool
150
+ """
151
+ self._is_rerun = is_rerun
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, BuildRecordBuildRecordType):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -0,0 +1,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BuildRecordParameters:
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
+ 'secret': 'bool',
22
+ 'value': 'str',
23
+ 'type': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'name': 'name',
28
+ 'secret': 'secret',
29
+ 'value': 'value',
30
+ 'type': 'type'
31
+ }
32
+
33
+ def __init__(self, name=None, secret=None, value=None, type=None):
34
+ r"""BuildRecordParameters
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param name: 参数名
39
+ :type name: str
40
+ :param secret: 是否为私密参数
41
+ :type secret: bool
42
+ :param value: 参数值
43
+ :type value: str
44
+ :param type: 类型
45
+ :type type: str
46
+ """
47
+
48
+
49
+
50
+ self._name = None
51
+ self._secret = None
52
+ self._value = None
53
+ self._type = None
54
+ self.discriminator = None
55
+
56
+ if name is not None:
57
+ self.name = name
58
+ if secret is not None:
59
+ self.secret = secret
60
+ if value is not None:
61
+ self.value = value
62
+ if type is not None:
63
+ self.type = type
64
+
65
+ @property
66
+ def name(self):
67
+ r"""Gets the name of this BuildRecordParameters.
68
+
69
+ 参数名
70
+
71
+ :return: The name of this BuildRecordParameters.
72
+ :rtype: str
73
+ """
74
+ return self._name
75
+
76
+ @name.setter
77
+ def name(self, name):
78
+ r"""Sets the name of this BuildRecordParameters.
79
+
80
+ 参数名
81
+
82
+ :param name: The name of this BuildRecordParameters.
83
+ :type name: str
84
+ """
85
+ self._name = name
86
+
87
+ @property
88
+ def secret(self):
89
+ r"""Gets the secret of this BuildRecordParameters.
90
+
91
+ 是否为私密参数
92
+
93
+ :return: The secret of this BuildRecordParameters.
94
+ :rtype: bool
95
+ """
96
+ return self._secret
97
+
98
+ @secret.setter
99
+ def secret(self, secret):
100
+ r"""Sets the secret of this BuildRecordParameters.
101
+
102
+ 是否为私密参数
103
+
104
+ :param secret: The secret of this BuildRecordParameters.
105
+ :type secret: bool
106
+ """
107
+ self._secret = secret
108
+
109
+ @property
110
+ def value(self):
111
+ r"""Gets the value of this BuildRecordParameters.
112
+
113
+ 参数值
114
+
115
+ :return: The value of this BuildRecordParameters.
116
+ :rtype: str
117
+ """
118
+ return self._value
119
+
120
+ @value.setter
121
+ def value(self, value):
122
+ r"""Sets the value of this BuildRecordParameters.
123
+
124
+ 参数值
125
+
126
+ :param value: The value of this BuildRecordParameters.
127
+ :type value: str
128
+ """
129
+ self._value = value
130
+
131
+ @property
132
+ def type(self):
133
+ r"""Gets the type of this BuildRecordParameters.
134
+
135
+ 类型
136
+
137
+ :return: The type of this BuildRecordParameters.
138
+ :rtype: str
139
+ """
140
+ return self._type
141
+
142
+ @type.setter
143
+ def type(self, type):
144
+ r"""Sets the type of this BuildRecordParameters.
145
+
146
+ 类型
147
+
148
+ :param type: The type of this BuildRecordParameters.
149
+ :type type: str
150
+ """
151
+ self._type = type
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, BuildRecordParameters):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ 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 CheckJobNameIsExistsRequest:
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_name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'project_id': 'project_id',
26
+ 'job_name': 'job_name'
27
+ }
28
+
29
+ def __init__(self, project_id=None, job_name=None):
30
+ r"""CheckJobNameIsExistsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param project_id: CodeArts项目ID,32位数字、小写字母组合。
35
+ :type project_id: str
36
+ :param job_name: 任务名称
37
+ :type job_name: str
38
+ """
39
+
40
+
41
+
42
+ self._project_id = None
43
+ self._job_name = None
44
+ self.discriminator = None
45
+
46
+ self.project_id = project_id
47
+ self.job_name = job_name
48
+
49
+ @property
50
+ def project_id(self):
51
+ r"""Gets the project_id of this CheckJobNameIsExistsRequest.
52
+
53
+ CodeArts项目ID,32位数字、小写字母组合。
54
+
55
+ :return: The project_id of this CheckJobNameIsExistsRequest.
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 CheckJobNameIsExistsRequest.
63
+
64
+ CodeArts项目ID,32位数字、小写字母组合。
65
+
66
+ :param project_id: The project_id of this CheckJobNameIsExistsRequest.
67
+ :type project_id: str
68
+ """
69
+ self._project_id = project_id
70
+
71
+ @property
72
+ def job_name(self):
73
+ r"""Gets the job_name of this CheckJobNameIsExistsRequest.
74
+
75
+ 任务名称
76
+
77
+ :return: The job_name of this CheckJobNameIsExistsRequest.
78
+ :rtype: str
79
+ """
80
+ return self._job_name
81
+
82
+ @job_name.setter
83
+ def job_name(self, job_name):
84
+ r"""Sets the job_name of this CheckJobNameIsExistsRequest.
85
+
86
+ 任务名称
87
+
88
+ :param job_name: The job_name of this CheckJobNameIsExistsRequest.
89
+ :type job_name: str
90
+ """
91
+ self._job_name = job_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, CheckJobNameIsExistsRequest):
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,145 @@
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 CheckJobNameIsExistsResponse(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': 'bool',
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"""CheckJobNameIsExistsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result: 项目下任务名是否存在
36
+ :type result: bool
37
+ :param status: 返回状态信息
38
+ :type status: str
39
+ """
40
+
41
+ super(CheckJobNameIsExistsResponse, 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 CheckJobNameIsExistsResponse.
55
+
56
+ 项目下任务名是否存在
57
+
58
+ :return: The result of this CheckJobNameIsExistsResponse.
59
+ :rtype: bool
60
+ """
61
+ return self._result
62
+
63
+ @result.setter
64
+ def result(self, result):
65
+ r"""Sets the result of this CheckJobNameIsExistsResponse.
66
+
67
+ 项目下任务名是否存在
68
+
69
+ :param result: The result of this CheckJobNameIsExistsResponse.
70
+ :type result: bool
71
+ """
72
+ self._result = result
73
+
74
+ @property
75
+ def status(self):
76
+ r"""Gets the status of this CheckJobNameIsExistsResponse.
77
+
78
+ 返回状态信息
79
+
80
+ :return: The status of this CheckJobNameIsExistsResponse.
81
+ :rtype: str
82
+ """
83
+ return self._status
84
+
85
+ @status.setter
86
+ def status(self, status):
87
+ r"""Sets the status of this CheckJobNameIsExistsResponse.
88
+
89
+ 返回状态信息
90
+
91
+ :param status: The status of this CheckJobNameIsExistsResponse.
92
+ :type status: str
93
+ """
94
+ self._status = status
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, CheckJobNameIsExistsResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other