huaweicloudsdkcodeartsbuild 3.1.164__py3-none-any.whl → 3.1.166__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 +66 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1553 -172
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1553 -172
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +66 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +30 -1
- huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_list.py +256 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_list_tips.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_job_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_job_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_group_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/domain_statuses.py +521 -0
- huaweicloudsdkcodeartsbuild/v3/model/domains_statuses_request_body.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response.py +339 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response_authorization.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response_created_by.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_request_body.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_response_body_result.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_tree_response_body.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_role_permission.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_status_result_response_body_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_request.py +171 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_result_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body_jobs.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/project_permission_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/role_permissions_request_body.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_details_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_details_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result_main_resource_list.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/switched_packet_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/switched_packet_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/tips.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_job_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_job_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_response.py +174 -0
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/RECORD +75 -10
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkcodeartsbuild-3.1.164.dist-info/top_level.txt +0 -1
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -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 MoveJobGroupRequestBodyJobs:
|
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
|
+
'job_id': 'str',
|
21
|
+
'job_name': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'job_name': 'job_name'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, job_name=None):
|
30
|
+
r"""MoveJobGroupRequestBodyJobs
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 任务编号
|
35
|
+
:type job_id: str
|
36
|
+
:param job_name: 任务名称
|
37
|
+
:type job_name: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._job_name = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if job_id is not None:
|
47
|
+
self.job_id = job_id
|
48
|
+
if job_name is not None:
|
49
|
+
self.job_name = job_name
|
50
|
+
|
51
|
+
@property
|
52
|
+
def job_id(self):
|
53
|
+
r"""Gets the job_id of this MoveJobGroupRequestBodyJobs.
|
54
|
+
|
55
|
+
任务编号
|
56
|
+
|
57
|
+
:return: The job_id of this MoveJobGroupRequestBodyJobs.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._job_id
|
61
|
+
|
62
|
+
@job_id.setter
|
63
|
+
def job_id(self, job_id):
|
64
|
+
r"""Sets the job_id of this MoveJobGroupRequestBodyJobs.
|
65
|
+
|
66
|
+
任务编号
|
67
|
+
|
68
|
+
:param job_id: The job_id of this MoveJobGroupRequestBodyJobs.
|
69
|
+
:type job_id: str
|
70
|
+
"""
|
71
|
+
self._job_id = job_id
|
72
|
+
|
73
|
+
@property
|
74
|
+
def job_name(self):
|
75
|
+
r"""Gets the job_name of this MoveJobGroupRequestBodyJobs.
|
76
|
+
|
77
|
+
任务名称
|
78
|
+
|
79
|
+
:return: The job_name of this MoveJobGroupRequestBodyJobs.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._job_name
|
83
|
+
|
84
|
+
@job_name.setter
|
85
|
+
def job_name(self, job_name):
|
86
|
+
r"""Sets the job_name of this MoveJobGroupRequestBodyJobs.
|
87
|
+
|
88
|
+
任务名称
|
89
|
+
|
90
|
+
:param job_name: The job_name of this MoveJobGroupRequestBodyJobs.
|
91
|
+
:type job_name: str
|
92
|
+
"""
|
93
|
+
self._job_name = job_name
|
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, MoveJobGroupRequestBodyJobs):
|
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,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class MoveJobGroupResponseBodyResult:
|
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
|
+
'job_id': 'str',
|
21
|
+
'group_path_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'group_path_id': 'group_path_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, group_path_id=None):
|
30
|
+
r"""MoveJobGroupResponseBodyResult
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 任务编号
|
35
|
+
:type job_id: str
|
36
|
+
:param group_path_id: 分组路径
|
37
|
+
:type group_path_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._group_path_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if job_id is not None:
|
47
|
+
self.job_id = job_id
|
48
|
+
if group_path_id is not None:
|
49
|
+
self.group_path_id = group_path_id
|
50
|
+
|
51
|
+
@property
|
52
|
+
def job_id(self):
|
53
|
+
r"""Gets the job_id of this MoveJobGroupResponseBodyResult.
|
54
|
+
|
55
|
+
任务编号
|
56
|
+
|
57
|
+
:return: The job_id of this MoveJobGroupResponseBodyResult.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._job_id
|
61
|
+
|
62
|
+
@job_id.setter
|
63
|
+
def job_id(self, job_id):
|
64
|
+
r"""Sets the job_id of this MoveJobGroupResponseBodyResult.
|
65
|
+
|
66
|
+
任务编号
|
67
|
+
|
68
|
+
:param job_id: The job_id of this MoveJobGroupResponseBodyResult.
|
69
|
+
:type job_id: str
|
70
|
+
"""
|
71
|
+
self._job_id = job_id
|
72
|
+
|
73
|
+
@property
|
74
|
+
def group_path_id(self):
|
75
|
+
r"""Gets the group_path_id of this MoveJobGroupResponseBodyResult.
|
76
|
+
|
77
|
+
分组路径
|
78
|
+
|
79
|
+
:return: The group_path_id of this MoveJobGroupResponseBodyResult.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._group_path_id
|
83
|
+
|
84
|
+
@group_path_id.setter
|
85
|
+
def group_path_id(self, group_path_id):
|
86
|
+
r"""Sets the group_path_id of this MoveJobGroupResponseBodyResult.
|
87
|
+
|
88
|
+
分组路径
|
89
|
+
|
90
|
+
:param group_path_id: The group_path_id of this MoveJobGroupResponseBodyResult.
|
91
|
+
:type group_path_id: str
|
92
|
+
"""
|
93
|
+
self._group_path_id = group_path_id
|
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, MoveJobGroupResponseBodyResult):
|
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,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ProjectPermissionRequestBody:
|
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
|
+
'job_id': 'str',
|
21
|
+
'project_id': 'str',
|
22
|
+
'project_switch': 'bool'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'job_id': 'job_id',
|
27
|
+
'project_id': 'project_id',
|
28
|
+
'project_switch': 'project_switch'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, job_id=None, project_id=None, project_switch=None):
|
32
|
+
r"""ProjectPermissionRequestBody
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param job_id: **参数解释**: 填写需要查询构建历史列表的构建任务ID。获取方法:在构建任务详情页,拷贝浏览器URL末尾的32位数字、字母组合的字符串,即为构建任务ID。 **约束限制**: 不涉及。 **取值范围**: 只能是英文字母和数字,长度为32个字符。 **默认取值**: 不涉及。
|
37
|
+
:type job_id: str
|
38
|
+
:param project_id: **参数解释**: CodeArts项目ID。获取方式请参考[获取CodeArts项目ID](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0022.html)。 **约束限制**: 不涉及。 **取值范围**: 32位数字、字母组合的字符串。 **默认取值**: 不涉及。
|
39
|
+
:type project_id: str
|
40
|
+
:param project_switch: **参数解释**: 是否同步最新一次项目权限。 **约束限制**: 不涉及。 **取值范围**: ● true:使用项目级权限。 ● false:不使用项目级权限。 **默认取值**: 不涉及。
|
41
|
+
:type project_switch: bool
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._job_id = None
|
47
|
+
self._project_id = None
|
48
|
+
self._project_switch = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if job_id is not None:
|
52
|
+
self.job_id = job_id
|
53
|
+
if project_id is not None:
|
54
|
+
self.project_id = project_id
|
55
|
+
if project_switch is not None:
|
56
|
+
self.project_switch = project_switch
|
57
|
+
|
58
|
+
@property
|
59
|
+
def job_id(self):
|
60
|
+
r"""Gets the job_id of this ProjectPermissionRequestBody.
|
61
|
+
|
62
|
+
**参数解释**: 填写需要查询构建历史列表的构建任务ID。获取方法:在构建任务详情页,拷贝浏览器URL末尾的32位数字、字母组合的字符串,即为构建任务ID。 **约束限制**: 不涉及。 **取值范围**: 只能是英文字母和数字,长度为32个字符。 **默认取值**: 不涉及。
|
63
|
+
|
64
|
+
:return: The job_id of this ProjectPermissionRequestBody.
|
65
|
+
:rtype: str
|
66
|
+
"""
|
67
|
+
return self._job_id
|
68
|
+
|
69
|
+
@job_id.setter
|
70
|
+
def job_id(self, job_id):
|
71
|
+
r"""Sets the job_id of this ProjectPermissionRequestBody.
|
72
|
+
|
73
|
+
**参数解释**: 填写需要查询构建历史列表的构建任务ID。获取方法:在构建任务详情页,拷贝浏览器URL末尾的32位数字、字母组合的字符串,即为构建任务ID。 **约束限制**: 不涉及。 **取值范围**: 只能是英文字母和数字,长度为32个字符。 **默认取值**: 不涉及。
|
74
|
+
|
75
|
+
:param job_id: The job_id of this ProjectPermissionRequestBody.
|
76
|
+
:type job_id: str
|
77
|
+
"""
|
78
|
+
self._job_id = job_id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def project_id(self):
|
82
|
+
r"""Gets the project_id of this ProjectPermissionRequestBody.
|
83
|
+
|
84
|
+
**参数解释**: CodeArts项目ID。获取方式请参考[获取CodeArts项目ID](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0022.html)。 **约束限制**: 不涉及。 **取值范围**: 32位数字、字母组合的字符串。 **默认取值**: 不涉及。
|
85
|
+
|
86
|
+
:return: The project_id of this ProjectPermissionRequestBody.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._project_id
|
90
|
+
|
91
|
+
@project_id.setter
|
92
|
+
def project_id(self, project_id):
|
93
|
+
r"""Sets the project_id of this ProjectPermissionRequestBody.
|
94
|
+
|
95
|
+
**参数解释**: CodeArts项目ID。获取方式请参考[获取CodeArts项目ID](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0022.html)。 **约束限制**: 不涉及。 **取值范围**: 32位数字、字母组合的字符串。 **默认取值**: 不涉及。
|
96
|
+
|
97
|
+
:param project_id: The project_id of this ProjectPermissionRequestBody.
|
98
|
+
:type project_id: str
|
99
|
+
"""
|
100
|
+
self._project_id = project_id
|
101
|
+
|
102
|
+
@property
|
103
|
+
def project_switch(self):
|
104
|
+
r"""Gets the project_switch of this ProjectPermissionRequestBody.
|
105
|
+
|
106
|
+
**参数解释**: 是否同步最新一次项目权限。 **约束限制**: 不涉及。 **取值范围**: ● true:使用项目级权限。 ● false:不使用项目级权限。 **默认取值**: 不涉及。
|
107
|
+
|
108
|
+
:return: The project_switch of this ProjectPermissionRequestBody.
|
109
|
+
:rtype: bool
|
110
|
+
"""
|
111
|
+
return self._project_switch
|
112
|
+
|
113
|
+
@project_switch.setter
|
114
|
+
def project_switch(self, project_switch):
|
115
|
+
r"""Sets the project_switch of this ProjectPermissionRequestBody.
|
116
|
+
|
117
|
+
**参数解释**: 是否同步最新一次项目权限。 **约束限制**: 不涉及。 **取值范围**: ● true:使用项目级权限。 ● false:不使用项目级权限。 **默认取值**: 不涉及。
|
118
|
+
|
119
|
+
:param project_switch: The project_switch of this ProjectPermissionRequestBody.
|
120
|
+
:type project_switch: bool
|
121
|
+
"""
|
122
|
+
self._project_switch = project_switch
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, ProjectPermissionRequestBody):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
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 RemoverFavouriteCustomTemplateRequest:
|
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"""RemoverFavouriteCustomTemplateRequest
|
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
|
+
self.uuid = uuid
|
42
|
+
|
43
|
+
@property
|
44
|
+
def uuid(self):
|
45
|
+
r"""Gets the uuid of this RemoverFavouriteCustomTemplateRequest.
|
46
|
+
|
47
|
+
uuid
|
48
|
+
|
49
|
+
:return: The uuid of this RemoverFavouriteCustomTemplateRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._uuid
|
53
|
+
|
54
|
+
@uuid.setter
|
55
|
+
def uuid(self, uuid):
|
56
|
+
r"""Sets the uuid of this RemoverFavouriteCustomTemplateRequest.
|
57
|
+
|
58
|
+
uuid
|
59
|
+
|
60
|
+
:param uuid: The uuid of this RemoverFavouriteCustomTemplateRequest.
|
61
|
+
:type uuid: str
|
62
|
+
"""
|
63
|
+
self._uuid = uuid
|
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, RemoverFavouriteCustomTemplateRequest):
|
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
|
@@ -0,0 +1,116 @@
|
|
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 RemoverFavouriteCustomTemplateResponse(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
|
+
'status': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'status': 'status'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, status=None):
|
29
|
+
r"""RemoverFavouriteCustomTemplateResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param status: 状态
|
34
|
+
:type status: str
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(RemoverFavouriteCustomTemplateResponse, self).__init__()
|
38
|
+
|
39
|
+
self._status = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if status is not None:
|
43
|
+
self.status = status
|
44
|
+
|
45
|
+
@property
|
46
|
+
def status(self):
|
47
|
+
r"""Gets the status of this RemoverFavouriteCustomTemplateResponse.
|
48
|
+
|
49
|
+
状态
|
50
|
+
|
51
|
+
:return: The status of this RemoverFavouriteCustomTemplateResponse.
|
52
|
+
:rtype: str
|
53
|
+
"""
|
54
|
+
return self._status
|
55
|
+
|
56
|
+
@status.setter
|
57
|
+
def status(self, status):
|
58
|
+
r"""Sets the status of this RemoverFavouriteCustomTemplateResponse.
|
59
|
+
|
60
|
+
状态
|
61
|
+
|
62
|
+
:param status: The status of this RemoverFavouriteCustomTemplateResponse.
|
63
|
+
:type status: str
|
64
|
+
"""
|
65
|
+
self._status = status
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, RemoverFavouriteCustomTemplateResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|