huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.153__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +42 -1
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1095 -118
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1095 -118
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +42 -1
- huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
- huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/RECORD +55 -14
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.153.dist-info}/top_level.txt +0 -0
@@ -33,7 +33,16 @@ class Job:
|
|
33
33
|
'is_execute': 'bool',
|
34
34
|
'is_copy': 'bool',
|
35
35
|
'is_forbidden': 'bool',
|
36
|
-
'is_view': 'bool'
|
36
|
+
'is_view': 'bool',
|
37
|
+
'last_build_user': 'str',
|
38
|
+
'trigger_type': 'str',
|
39
|
+
'build_time': 'int',
|
40
|
+
'scm_web_url': 'str',
|
41
|
+
'scm_type': 'str',
|
42
|
+
'repo_id': 'str',
|
43
|
+
'build_project_id': 'str',
|
44
|
+
'last_job_running_status': 'str',
|
45
|
+
'last_build_user_id': 'str'
|
37
46
|
}
|
38
47
|
|
39
48
|
attribute_map = {
|
@@ -53,10 +62,19 @@ class Job:
|
|
53
62
|
'is_execute': 'is_execute',
|
54
63
|
'is_copy': 'is_copy',
|
55
64
|
'is_forbidden': 'is_forbidden',
|
56
|
-
'is_view': 'is_view'
|
65
|
+
'is_view': 'is_view',
|
66
|
+
'last_build_user': 'last_build_user',
|
67
|
+
'trigger_type': 'trigger_type',
|
68
|
+
'build_time': 'build_time',
|
69
|
+
'scm_web_url': 'scm_web_url',
|
70
|
+
'scm_type': 'scm_type',
|
71
|
+
'repo_id': 'repo_id',
|
72
|
+
'build_project_id': 'build_project_id',
|
73
|
+
'last_job_running_status': 'last_job_running_status',
|
74
|
+
'last_build_user_id': 'last_build_user_id'
|
57
75
|
}
|
58
76
|
|
59
|
-
def __init__(self, id=None, job_name=None, job_creator=None, user_name=None, last_build_time=None, health_score=None, source_code=None, last_build_status=None, is_finished=None, disabled=None, favorite=None, is_modify=None, is_delete=None, is_execute=None, is_copy=None, is_forbidden=None, is_view=None):
|
77
|
+
def __init__(self, id=None, job_name=None, job_creator=None, user_name=None, last_build_time=None, health_score=None, source_code=None, last_build_status=None, is_finished=None, disabled=None, favorite=None, is_modify=None, is_delete=None, is_execute=None, is_copy=None, is_forbidden=None, is_view=None, last_build_user=None, trigger_type=None, build_time=None, scm_web_url=None, scm_type=None, repo_id=None, build_project_id=None, last_job_running_status=None, last_build_user_id=None):
|
60
78
|
r"""Job
|
61
79
|
|
62
80
|
The model defined in huaweicloud sdk
|
@@ -95,6 +113,24 @@ class Job:
|
|
95
113
|
:type is_forbidden: bool
|
96
114
|
:param is_view: 是否有查看任务权限
|
97
115
|
:type is_view: bool
|
116
|
+
:param last_build_user: 最后一次构建用户
|
117
|
+
:type last_build_user: str
|
118
|
+
:param trigger_type: 触发类型
|
119
|
+
:type trigger_type: str
|
120
|
+
:param build_time: 构建时间
|
121
|
+
:type build_time: int
|
122
|
+
:param scm_web_url: 代码仓web地址
|
123
|
+
:type scm_web_url: str
|
124
|
+
:param scm_type: 代码仓类型
|
125
|
+
:type scm_type: str
|
126
|
+
:param repo_id: 代码仓ID
|
127
|
+
:type repo_id: str
|
128
|
+
:param build_project_id: 构建项目ID
|
129
|
+
:type build_project_id: str
|
130
|
+
:param last_job_running_status: 最后一次构建时间
|
131
|
+
:type last_job_running_status: str
|
132
|
+
:param last_build_user_id: 最后一次构建用户ID
|
133
|
+
:type last_build_user_id: str
|
98
134
|
"""
|
99
135
|
|
100
136
|
|
@@ -116,6 +152,15 @@ class Job:
|
|
116
152
|
self._is_copy = None
|
117
153
|
self._is_forbidden = None
|
118
154
|
self._is_view = None
|
155
|
+
self._last_build_user = None
|
156
|
+
self._trigger_type = None
|
157
|
+
self._build_time = None
|
158
|
+
self._scm_web_url = None
|
159
|
+
self._scm_type = None
|
160
|
+
self._repo_id = None
|
161
|
+
self._build_project_id = None
|
162
|
+
self._last_job_running_status = None
|
163
|
+
self._last_build_user_id = None
|
119
164
|
self.discriminator = None
|
120
165
|
|
121
166
|
if id is not None:
|
@@ -152,6 +197,24 @@ class Job:
|
|
152
197
|
self.is_forbidden = is_forbidden
|
153
198
|
if is_view is not None:
|
154
199
|
self.is_view = is_view
|
200
|
+
if last_build_user is not None:
|
201
|
+
self.last_build_user = last_build_user
|
202
|
+
if trigger_type is not None:
|
203
|
+
self.trigger_type = trigger_type
|
204
|
+
if build_time is not None:
|
205
|
+
self.build_time = build_time
|
206
|
+
if scm_web_url is not None:
|
207
|
+
self.scm_web_url = scm_web_url
|
208
|
+
if scm_type is not None:
|
209
|
+
self.scm_type = scm_type
|
210
|
+
if repo_id is not None:
|
211
|
+
self.repo_id = repo_id
|
212
|
+
if build_project_id is not None:
|
213
|
+
self.build_project_id = build_project_id
|
214
|
+
if last_job_running_status is not None:
|
215
|
+
self.last_job_running_status = last_job_running_status
|
216
|
+
if last_build_user_id is not None:
|
217
|
+
self.last_build_user_id = last_build_user_id
|
155
218
|
|
156
219
|
@property
|
157
220
|
def id(self):
|
@@ -527,6 +590,204 @@ class Job:
|
|
527
590
|
"""
|
528
591
|
self._is_view = is_view
|
529
592
|
|
593
|
+
@property
|
594
|
+
def last_build_user(self):
|
595
|
+
r"""Gets the last_build_user of this Job.
|
596
|
+
|
597
|
+
最后一次构建用户
|
598
|
+
|
599
|
+
:return: The last_build_user of this Job.
|
600
|
+
:rtype: str
|
601
|
+
"""
|
602
|
+
return self._last_build_user
|
603
|
+
|
604
|
+
@last_build_user.setter
|
605
|
+
def last_build_user(self, last_build_user):
|
606
|
+
r"""Sets the last_build_user of this Job.
|
607
|
+
|
608
|
+
最后一次构建用户
|
609
|
+
|
610
|
+
:param last_build_user: The last_build_user of this Job.
|
611
|
+
:type last_build_user: str
|
612
|
+
"""
|
613
|
+
self._last_build_user = last_build_user
|
614
|
+
|
615
|
+
@property
|
616
|
+
def trigger_type(self):
|
617
|
+
r"""Gets the trigger_type of this Job.
|
618
|
+
|
619
|
+
触发类型
|
620
|
+
|
621
|
+
:return: The trigger_type of this Job.
|
622
|
+
:rtype: str
|
623
|
+
"""
|
624
|
+
return self._trigger_type
|
625
|
+
|
626
|
+
@trigger_type.setter
|
627
|
+
def trigger_type(self, trigger_type):
|
628
|
+
r"""Sets the trigger_type of this Job.
|
629
|
+
|
630
|
+
触发类型
|
631
|
+
|
632
|
+
:param trigger_type: The trigger_type of this Job.
|
633
|
+
:type trigger_type: str
|
634
|
+
"""
|
635
|
+
self._trigger_type = trigger_type
|
636
|
+
|
637
|
+
@property
|
638
|
+
def build_time(self):
|
639
|
+
r"""Gets the build_time of this Job.
|
640
|
+
|
641
|
+
构建时间
|
642
|
+
|
643
|
+
:return: The build_time of this Job.
|
644
|
+
:rtype: int
|
645
|
+
"""
|
646
|
+
return self._build_time
|
647
|
+
|
648
|
+
@build_time.setter
|
649
|
+
def build_time(self, build_time):
|
650
|
+
r"""Sets the build_time of this Job.
|
651
|
+
|
652
|
+
构建时间
|
653
|
+
|
654
|
+
:param build_time: The build_time of this Job.
|
655
|
+
:type build_time: int
|
656
|
+
"""
|
657
|
+
self._build_time = build_time
|
658
|
+
|
659
|
+
@property
|
660
|
+
def scm_web_url(self):
|
661
|
+
r"""Gets the scm_web_url of this Job.
|
662
|
+
|
663
|
+
代码仓web地址
|
664
|
+
|
665
|
+
:return: The scm_web_url of this Job.
|
666
|
+
:rtype: str
|
667
|
+
"""
|
668
|
+
return self._scm_web_url
|
669
|
+
|
670
|
+
@scm_web_url.setter
|
671
|
+
def scm_web_url(self, scm_web_url):
|
672
|
+
r"""Sets the scm_web_url of this Job.
|
673
|
+
|
674
|
+
代码仓web地址
|
675
|
+
|
676
|
+
:param scm_web_url: The scm_web_url of this Job.
|
677
|
+
:type scm_web_url: str
|
678
|
+
"""
|
679
|
+
self._scm_web_url = scm_web_url
|
680
|
+
|
681
|
+
@property
|
682
|
+
def scm_type(self):
|
683
|
+
r"""Gets the scm_type of this Job.
|
684
|
+
|
685
|
+
代码仓类型
|
686
|
+
|
687
|
+
:return: The scm_type of this Job.
|
688
|
+
:rtype: str
|
689
|
+
"""
|
690
|
+
return self._scm_type
|
691
|
+
|
692
|
+
@scm_type.setter
|
693
|
+
def scm_type(self, scm_type):
|
694
|
+
r"""Sets the scm_type of this Job.
|
695
|
+
|
696
|
+
代码仓类型
|
697
|
+
|
698
|
+
:param scm_type: The scm_type of this Job.
|
699
|
+
:type scm_type: str
|
700
|
+
"""
|
701
|
+
self._scm_type = scm_type
|
702
|
+
|
703
|
+
@property
|
704
|
+
def repo_id(self):
|
705
|
+
r"""Gets the repo_id of this Job.
|
706
|
+
|
707
|
+
代码仓ID
|
708
|
+
|
709
|
+
:return: The repo_id of this Job.
|
710
|
+
:rtype: str
|
711
|
+
"""
|
712
|
+
return self._repo_id
|
713
|
+
|
714
|
+
@repo_id.setter
|
715
|
+
def repo_id(self, repo_id):
|
716
|
+
r"""Sets the repo_id of this Job.
|
717
|
+
|
718
|
+
代码仓ID
|
719
|
+
|
720
|
+
:param repo_id: The repo_id of this Job.
|
721
|
+
:type repo_id: str
|
722
|
+
"""
|
723
|
+
self._repo_id = repo_id
|
724
|
+
|
725
|
+
@property
|
726
|
+
def build_project_id(self):
|
727
|
+
r"""Gets the build_project_id of this Job.
|
728
|
+
|
729
|
+
构建项目ID
|
730
|
+
|
731
|
+
:return: The build_project_id of this Job.
|
732
|
+
:rtype: str
|
733
|
+
"""
|
734
|
+
return self._build_project_id
|
735
|
+
|
736
|
+
@build_project_id.setter
|
737
|
+
def build_project_id(self, build_project_id):
|
738
|
+
r"""Sets the build_project_id of this Job.
|
739
|
+
|
740
|
+
构建项目ID
|
741
|
+
|
742
|
+
:param build_project_id: The build_project_id of this Job.
|
743
|
+
:type build_project_id: str
|
744
|
+
"""
|
745
|
+
self._build_project_id = build_project_id
|
746
|
+
|
747
|
+
@property
|
748
|
+
def last_job_running_status(self):
|
749
|
+
r"""Gets the last_job_running_status of this Job.
|
750
|
+
|
751
|
+
最后一次构建时间
|
752
|
+
|
753
|
+
:return: The last_job_running_status of this Job.
|
754
|
+
:rtype: str
|
755
|
+
"""
|
756
|
+
return self._last_job_running_status
|
757
|
+
|
758
|
+
@last_job_running_status.setter
|
759
|
+
def last_job_running_status(self, last_job_running_status):
|
760
|
+
r"""Sets the last_job_running_status of this Job.
|
761
|
+
|
762
|
+
最后一次构建时间
|
763
|
+
|
764
|
+
:param last_job_running_status: The last_job_running_status of this Job.
|
765
|
+
:type last_job_running_status: str
|
766
|
+
"""
|
767
|
+
self._last_job_running_status = last_job_running_status
|
768
|
+
|
769
|
+
@property
|
770
|
+
def last_build_user_id(self):
|
771
|
+
r"""Gets the last_build_user_id of this Job.
|
772
|
+
|
773
|
+
最后一次构建用户ID
|
774
|
+
|
775
|
+
:return: The last_build_user_id of this Job.
|
776
|
+
:rtype: str
|
777
|
+
"""
|
778
|
+
return self._last_build_user_id
|
779
|
+
|
780
|
+
@last_build_user_id.setter
|
781
|
+
def last_build_user_id(self, last_build_user_id):
|
782
|
+
r"""Sets the last_build_user_id of this Job.
|
783
|
+
|
784
|
+
最后一次构建用户ID
|
785
|
+
|
786
|
+
:param last_build_user_id: The last_build_user_id of this Job.
|
787
|
+
:type last_build_user_id: str
|
788
|
+
"""
|
789
|
+
self._last_build_user_id = last_build_user_id
|
790
|
+
|
530
791
|
def to_dict(self):
|
531
792
|
"""Returns the model properties as a dict"""
|
532
793
|
result = {}
|
@@ -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 JobsRequestBody:
|
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_ids': 'list[str]'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'job_ids': 'job_ids'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, job_ids=None):
|
28
|
+
r"""JobsRequestBody
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param job_ids: job_ids列表
|
33
|
+
:type job_ids: list[str]
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._job_ids = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.job_ids = job_ids
|
42
|
+
|
43
|
+
@property
|
44
|
+
def job_ids(self):
|
45
|
+
r"""Gets the job_ids of this JobsRequestBody.
|
46
|
+
|
47
|
+
job_ids列表
|
48
|
+
|
49
|
+
:return: The job_ids of this JobsRequestBody.
|
50
|
+
:rtype: list[str]
|
51
|
+
"""
|
52
|
+
return self._job_ids
|
53
|
+
|
54
|
+
@job_ids.setter
|
55
|
+
def job_ids(self, job_ids):
|
56
|
+
r"""Sets the job_ids of this JobsRequestBody.
|
57
|
+
|
58
|
+
job_ids列表
|
59
|
+
|
60
|
+
:param job_ids: The job_ids of this JobsRequestBody.
|
61
|
+
:type job_ids: list[str]
|
62
|
+
"""
|
63
|
+
self._job_ids = job_ids
|
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, JobsRequestBody):
|
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,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListBriefRecordRequest:
|
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
|
+
'limit': 'int',
|
21
|
+
'body': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'limit': 'limit',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, limit=None, body=None):
|
30
|
+
r"""ListBriefRecordRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param limit: 每页显示的条目数量,limit小于等于100
|
35
|
+
:type limit: int
|
36
|
+
:param body: build_project_id,构建工程ID,36位UUID
|
37
|
+
:type body: list[str]
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._limit = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.limit = limit
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def limit(self):
|
52
|
+
r"""Gets the limit of this ListBriefRecordRequest.
|
53
|
+
|
54
|
+
每页显示的条目数量,limit小于等于100
|
55
|
+
|
56
|
+
:return: The limit of this ListBriefRecordRequest.
|
57
|
+
:rtype: int
|
58
|
+
"""
|
59
|
+
return self._limit
|
60
|
+
|
61
|
+
@limit.setter
|
62
|
+
def limit(self, limit):
|
63
|
+
r"""Sets the limit of this ListBriefRecordRequest.
|
64
|
+
|
65
|
+
每页显示的条目数量,limit小于等于100
|
66
|
+
|
67
|
+
:param limit: The limit of this ListBriefRecordRequest.
|
68
|
+
:type limit: int
|
69
|
+
"""
|
70
|
+
self._limit = limit
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
r"""Gets the body of this ListBriefRecordRequest.
|
75
|
+
|
76
|
+
build_project_id,构建工程ID,36位UUID
|
77
|
+
|
78
|
+
:return: The body of this ListBriefRecordRequest.
|
79
|
+
:rtype: list[str]
|
80
|
+
"""
|
81
|
+
return self._body
|
82
|
+
|
83
|
+
@body.setter
|
84
|
+
def body(self, body):
|
85
|
+
r"""Sets the body of this ListBriefRecordRequest.
|
86
|
+
|
87
|
+
build_project_id,构建工程ID,36位UUID
|
88
|
+
|
89
|
+
:param body: The body of this ListBriefRecordRequest.
|
90
|
+
:type body: list[str]
|
91
|
+
"""
|
92
|
+
self._body = body
|
93
|
+
|
94
|
+
def to_dict(self):
|
95
|
+
"""Returns the model properties as a dict"""
|
96
|
+
result = {}
|
97
|
+
|
98
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
99
|
+
value = getattr(self, attr)
|
100
|
+
if isinstance(value, list):
|
101
|
+
result[attr] = list(map(
|
102
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
103
|
+
value
|
104
|
+
))
|
105
|
+
elif hasattr(value, "to_dict"):
|
106
|
+
result[attr] = value.to_dict()
|
107
|
+
elif isinstance(value, dict):
|
108
|
+
result[attr] = dict(map(
|
109
|
+
lambda item: (item[0], item[1].to_dict())
|
110
|
+
if hasattr(item[1], "to_dict") else item,
|
111
|
+
value.items()
|
112
|
+
))
|
113
|
+
else:
|
114
|
+
if attr in self.sensitive_list:
|
115
|
+
result[attr] = "****"
|
116
|
+
else:
|
117
|
+
result[attr] = value
|
118
|
+
|
119
|
+
return result
|
120
|
+
|
121
|
+
def to_str(self):
|
122
|
+
"""Returns the string representation of the model"""
|
123
|
+
import simplejson as json
|
124
|
+
if six.PY2:
|
125
|
+
import sys
|
126
|
+
reload(sys)
|
127
|
+
sys.setdefaultencoding("utf-8")
|
128
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
129
|
+
|
130
|
+
def __repr__(self):
|
131
|
+
"""For `print`"""
|
132
|
+
return self.to_str()
|
133
|
+
|
134
|
+
def __eq__(self, other):
|
135
|
+
"""Returns true if both objects are equal"""
|
136
|
+
if not isinstance(other, ListBriefRecordRequest):
|
137
|
+
return False
|
138
|
+
|
139
|
+
return self.__dict__ == other.__dict__
|
140
|
+
|
141
|
+
def __ne__(self, other):
|
142
|
+
"""Returns true if both objects are not equal"""
|
143
|
+
return not self == other
|