@huaweicloud/huaweicloud-sdk-codeartsdeploy 3.1.44 → 3.1.46

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 (193) hide show
  1. package/huaweicloud-sdk-codeartsdeploy.ts +4 -0
  2. package/package.json +4 -4
  3. package/v2/{CodeArtsDeployClient.js → CodeArtsDeployClient.ts} +608 -388
  4. package/v2/CodeArtsDeployRegion.ts +40 -0
  5. package/v2/model/AppComponentDao.ts +82 -0
  6. package/v2/model/ConfigInfoDO.ts +73 -0
  7. package/v2/model/CreateDeployTaskByTemplateRequest.ts +33 -0
  8. package/v2/model/CreateDeployTaskByTemplateResponse.ts +30 -0
  9. package/v2/model/CreateDeploymentGroupRequest.ts +33 -0
  10. package/v2/model/CreateDeploymentGroupResponse.ts +19 -0
  11. package/v2/model/CreateDeploymentHostRequest.ts +45 -0
  12. package/v2/model/CreateDeploymentHostResponse.ts +19 -0
  13. package/v2/model/DeleteDeployTaskRequest.ts +39 -0
  14. package/v2/model/DeleteDeployTaskResponse.ts +19 -0
  15. package/v2/model/DeleteDeploymentGroupRequest.ts +39 -0
  16. package/v2/model/DeleteDeploymentGroupResponse.ts +19 -0
  17. package/v2/model/DeleteDeploymentHostRequest.ts +51 -0
  18. package/v2/model/DeleteDeploymentHostResponse.ts +19 -0
  19. package/v2/model/DeploymentGroup.ts +78 -0
  20. package/v2/model/DeploymentGroupDetail.ts +160 -0
  21. package/v2/model/DeploymentGroupUpdateRequest.ts +49 -0
  22. package/v2/model/DeploymentHost.ts +86 -0
  23. package/v2/model/DeploymentHostAuthorizationBody.ts +49 -0
  24. package/v2/model/DeploymentHostDetail.ts +270 -0
  25. package/v2/model/DeploymentHostInfo.ts +98 -0
  26. package/v2/model/DeploymentHostRequest.ts +77 -0
  27. package/v2/model/DeploymentUpdateHost.ts +71 -0
  28. package/v2/model/DynamicConfigInfo.ts +33 -0
  29. package/v2/model/EnvExecutionBody.ts +34 -0
  30. package/v2/model/ExecuteRecordV2Body.ts +75 -0
  31. package/v2/model/KeyValueDO.ts +16 -0
  32. package/v2/model/ListDeployTaskHistoryByDateRequest.ts +81 -0
  33. package/v2/model/ListDeployTaskHistoryByDateResponse.ts +25 -0
  34. package/v2/model/ListDeployTasksRequest.ts +51 -0
  35. package/v2/model/ListDeployTasksResponse.ts +25 -0
  36. package/v2/model/ListHostGroupsRequest.ts +88 -0
  37. package/v2/model/ListHostGroupsResponse.ts +25 -0
  38. package/v2/model/ListHostsRequest.ts +86 -0
  39. package/v2/model/ListHostsResponse.ts +30 -0
  40. package/v2/model/ListTaskSuccessRateRequest.ts +24 -0
  41. package/v2/model/ListTaskSuccessRateResponse.ts +64 -0
  42. package/v2/model/ParamTypeLimits.ts +11 -0
  43. package/v2/model/PermissionGroupDetail.ts +61 -0
  44. package/v2/model/PermissionHostDetail.ts +61 -0
  45. package/v2/model/ShowDeployTaskDetailRequest.ts +18 -0
  46. package/v2/model/ShowDeployTaskDetailResponse.ts +351 -0
  47. package/v2/model/ShowDeploymentGroupDetailRequest.ts +18 -0
  48. package/v2/model/ShowDeploymentGroupDetailResponse.ts +162 -0
  49. package/v2/model/ShowDeploymentHostDetailRequest.ts +30 -0
  50. package/v2/model/ShowDeploymentHostDetailResponse.ts +273 -0
  51. package/v2/model/ShowProjectSuccessRateRequest.ts +42 -0
  52. package/v2/model/ShowProjectSuccessRateResponse.ts +96 -0
  53. package/v2/model/StartDeployTaskRequest.ts +45 -0
  54. package/v2/model/StartDeployTaskResponse.ts +47 -0
  55. package/v2/model/Step.ts +26 -0
  56. package/v2/model/TaskInfo.ts +349 -0
  57. package/v2/model/TaskSuccessRate.ts +61 -0
  58. package/v2/model/TasksSuccessRateQuery.ts +42 -0
  59. package/v2/model/TemplateTaskRequestBody.ts +71 -0
  60. package/v2/model/UpdateDeploymentGroupRequest.ts +45 -0
  61. package/v2/model/UpdateDeploymentGroupResponse.ts +19 -0
  62. package/v2/model/UpdateDeploymentHostRequest.ts +57 -0
  63. package/v2/model/UpdateDeploymentHostResponse.ts +19 -0
  64. package/v2/model/UserInfo.ts +28 -0
  65. package/v2/{public-api.d.ts → public-api.ts} +1 -0
  66. package/LICENSE +0 -13
  67. package/README.md +0 -1
  68. package/huaweicloud-sdk-codeartsdeploy.d.ts +0 -2
  69. package/huaweicloud-sdk-codeartsdeploy.js +0 -31
  70. package/v2/CodeArtsDeployClient.d.ts +0 -538
  71. package/v2/CodeArtsDeployRegion.d.ts +0 -12
  72. package/v2/CodeArtsDeployRegion.js +0 -37
  73. package/v2/model/AppComponentDao.d.ts +0 -31
  74. package/v2/model/AppComponentDao.js +0 -101
  75. package/v2/model/ConfigInfoDO.d.ts +0 -40
  76. package/v2/model/ConfigInfoDO.js +0 -77
  77. package/v2/model/CreateDeployTaskByTemplateRequest.d.ts +0 -18
  78. package/v2/model/CreateDeployTaskByTemplateRequest.js +0 -37
  79. package/v2/model/CreateDeployTaskByTemplateResponse.d.ts +0 -12
  80. package/v2/model/CreateDeployTaskByTemplateResponse.js +0 -55
  81. package/v2/model/CreateDeploymentGroupRequest.d.ts +0 -18
  82. package/v2/model/CreateDeploymentGroupRequest.js +0 -37
  83. package/v2/model/CreateDeploymentGroupResponse.d.ts +0 -8
  84. package/v2/model/CreateDeploymentGroupResponse.js +0 -41
  85. package/v2/model/CreateDeploymentHostRequest.d.ts +0 -22
  86. package/v2/model/CreateDeploymentHostRequest.js +0 -52
  87. package/v2/model/CreateDeploymentHostResponse.d.ts +0 -8
  88. package/v2/model/CreateDeploymentHostResponse.js +0 -41
  89. package/v2/model/DeleteDeployTaskRequest.d.ts +0 -19
  90. package/v2/model/DeleteDeployTaskRequest.js +0 -48
  91. package/v2/model/DeleteDeployTaskResponse.d.ts +0 -8
  92. package/v2/model/DeleteDeployTaskResponse.js +0 -41
  93. package/v2/model/DeleteDeploymentGroupRequest.d.ts +0 -19
  94. package/v2/model/DeleteDeploymentGroupRequest.js +0 -48
  95. package/v2/model/DeleteDeploymentGroupResponse.d.ts +0 -8
  96. package/v2/model/DeleteDeploymentGroupResponse.js +0 -41
  97. package/v2/model/DeleteDeploymentHostRequest.d.ts +0 -23
  98. package/v2/model/DeleteDeploymentHostRequest.js +0 -63
  99. package/v2/model/DeleteDeploymentHostResponse.d.ts +0 -8
  100. package/v2/model/DeleteDeploymentHostResponse.js +0 -41
  101. package/v2/model/DeploymentGroup.d.ts +0 -33
  102. package/v2/model/DeploymentGroup.js +0 -90
  103. package/v2/model/DeploymentGroupDetail.d.ts +0 -61
  104. package/v2/model/DeploymentGroupDetail.js +0 -193
  105. package/v2/model/DeploymentGroupUpdateRequest.d.ts +0 -24
  106. package/v2/model/DeploymentGroupUpdateRequest.js +0 -56
  107. package/v2/model/DeploymentHost.d.ts +0 -36
  108. package/v2/model/DeploymentHost.js +0 -96
  109. package/v2/model/DeploymentHostAuthorizationBody.d.ts +0 -23
  110. package/v2/model/DeploymentHostAuthorizationBody.js +0 -56
  111. package/v2/model/DeploymentHostDetail.d.ts +0 -103
  112. package/v2/model/DeploymentHostDetail.js +0 -325
  113. package/v2/model/DeploymentHostInfo.d.ts +0 -40
  114. package/v2/model/DeploymentHostInfo.js +0 -111
  115. package/v2/model/DeploymentHostRequest.d.ts +0 -28
  116. package/v2/model/DeploymentHostRequest.js +0 -86
  117. package/v2/model/DeploymentUpdateHost.d.ts +0 -26
  118. package/v2/model/DeploymentUpdateHost.js +0 -82
  119. package/v2/model/DynamicConfigInfo.d.ts +0 -19
  120. package/v2/model/DynamicConfigInfo.js +0 -32
  121. package/v2/model/EnvExecutionBody.d.ts +0 -14
  122. package/v2/model/EnvExecutionBody.js +0 -41
  123. package/v2/model/ExecuteRecordV2Body.d.ts +0 -29
  124. package/v2/model/ExecuteRecordV2Body.js +0 -85
  125. package/v2/model/KeyValueDO.d.ts +0 -7
  126. package/v2/model/KeyValueDO.js +0 -17
  127. package/v2/model/ListDeployTaskHistoryByDateRequest.d.ts +0 -33
  128. package/v2/model/ListDeployTaskHistoryByDateRequest.js +0 -93
  129. package/v2/model/ListDeployTaskHistoryByDateResponse.d.ts +0 -11
  130. package/v2/model/ListDeployTaskHistoryByDateResponse.js +0 -45
  131. package/v2/model/ListDeployTasksRequest.d.ts +0 -23
  132. package/v2/model/ListDeployTasksRequest.js +0 -58
  133. package/v2/model/ListDeployTasksResponse.d.ts +0 -11
  134. package/v2/model/ListDeployTasksResponse.js +0 -45
  135. package/v2/model/ListHostGroupsRequest.d.ts +0 -43
  136. package/v2/model/ListHostGroupsRequest.js +0 -100
  137. package/v2/model/ListHostGroupsResponse.d.ts +0 -11
  138. package/v2/model/ListHostGroupsResponse.js +0 -45
  139. package/v2/model/ListHostsRequest.d.ts +0 -37
  140. package/v2/model/ListHostsRequest.js +0 -101
  141. package/v2/model/ListHostsResponse.d.ts +0 -13
  142. package/v2/model/ListHostsResponse.js +0 -49
  143. package/v2/model/ListTaskSuccessRateRequest.d.ts +0 -10
  144. package/v2/model/ListTaskSuccessRateRequest.js +0 -28
  145. package/v2/model/ListTaskSuccessRateResponse.d.ts +0 -25
  146. package/v2/model/ListTaskSuccessRateResponse.js +0 -97
  147. package/v2/model/ParamTypeLimits.d.ts +0 -5
  148. package/v2/model/ParamTypeLimits.js +0 -13
  149. package/v2/model/PermissionGroupDetail.d.ts +0 -23
  150. package/v2/model/PermissionGroupDetail.js +0 -79
  151. package/v2/model/PermissionHostDetail.d.ts +0 -23
  152. package/v2/model/PermissionHostDetail.js +0 -79
  153. package/v2/model/ShowDeployTaskDetailRequest.d.ts +0 -7
  154. package/v2/model/ShowDeployTaskDetailRequest.js +0 -24
  155. package/v2/model/ShowDeployTaskDetailResponse.d.ts +0 -140
  156. package/v2/model/ShowDeployTaskDetailResponse.js +0 -442
  157. package/v2/model/ShowDeploymentGroupDetailRequest.d.ts +0 -7
  158. package/v2/model/ShowDeploymentGroupDetailRequest.js +0 -24
  159. package/v2/model/ShowDeploymentGroupDetailResponse.d.ts +0 -62
  160. package/v2/model/ShowDeploymentGroupDetailResponse.js +0 -211
  161. package/v2/model/ShowDeploymentHostDetailRequest.d.ts +0 -11
  162. package/v2/model/ShowDeploymentHostDetailRequest.js +0 -39
  163. package/v2/model/ShowDeploymentHostDetailResponse.d.ts +0 -105
  164. package/v2/model/ShowDeploymentHostDetailResponse.js +0 -344
  165. package/v2/model/ShowProjectSuccessRateRequest.d.ts +0 -15
  166. package/v2/model/ShowProjectSuccessRateRequest.js +0 -54
  167. package/v2/model/ShowProjectSuccessRateResponse.d.ts +0 -36
  168. package/v2/model/ShowProjectSuccessRateResponse.js +0 -139
  169. package/v2/model/StartDeployTaskRequest.d.ts +0 -22
  170. package/v2/model/StartDeployTaskRequest.js +0 -52
  171. package/v2/model/StartDeployTaskResponse.d.ts +0 -19
  172. package/v2/model/StartDeployTaskResponse.js +0 -73
  173. package/v2/model/Step.d.ts +0 -15
  174. package/v2/model/Step.js +0 -25
  175. package/v2/model/TaskInfo.d.ts +0 -139
  176. package/v2/model/TaskInfo.js +0 -424
  177. package/v2/model/TaskSuccessRate.d.ts +0 -23
  178. package/v2/model/TaskSuccessRate.js +0 -79
  179. package/v2/model/TasksSuccessRateQuery.d.ts +0 -15
  180. package/v2/model/TasksSuccessRateQuery.js +0 -54
  181. package/v2/model/TemplateTaskRequestBody.d.ts +0 -26
  182. package/v2/model/TemplateTaskRequestBody.js +0 -87
  183. package/v2/model/UpdateDeploymentGroupRequest.d.ts +0 -22
  184. package/v2/model/UpdateDeploymentGroupRequest.js +0 -52
  185. package/v2/model/UpdateDeploymentGroupResponse.d.ts +0 -8
  186. package/v2/model/UpdateDeploymentGroupResponse.js +0 -41
  187. package/v2/model/UpdateDeploymentHostRequest.d.ts +0 -26
  188. package/v2/model/UpdateDeploymentHostRequest.js +0 -67
  189. package/v2/model/UpdateDeploymentHostResponse.d.ts +0 -8
  190. package/v2/model/UpdateDeploymentHostResponse.js +0 -41
  191. package/v2/model/UserInfo.d.ts +0 -11
  192. package/v2/model/UserInfo.js +0 -37
  193. package/v2/public-api.js +0 -78
@@ -0,0 +1,349 @@
1
+ import { AppComponentDao } from './AppComponentDao';
2
+ import { Step } from './Step';
3
+
4
+
5
+ export class TaskInfo {
6
+ private 'task_id'?: string | undefined;
7
+ public name?: string;
8
+ private 'project_id'?: string | undefined;
9
+ private 'project_name'?: string | undefined;
10
+ private 'deploy_system'?: string | undefined;
11
+ private 'create_time'?: string | undefined;
12
+ private 'update_time'?: string | undefined;
13
+ public state?: TaskInfoStateEnum;
14
+ private 'execution_time'?: string | undefined;
15
+ public description?: string;
16
+ private 'is_defaut_permission'?: boolean | undefined;
17
+ private 'template_id'?: string | undefined;
18
+ public owner?: string;
19
+ private 'nick_name'?: string | undefined;
20
+ private 'owner_id'?: string | undefined;
21
+ private 'tenant_id'?: string | undefined;
22
+ private 'tenant_name'?: string | undefined;
23
+ private 'slave_cluster_id'?: string | undefined;
24
+ private 'is_care'?: boolean | undefined;
25
+ private 'can_modify'?: boolean | undefined;
26
+ private 'can_delete'?: boolean | undefined;
27
+ private 'can_view'?: boolean | undefined;
28
+ private 'can_execute'?: boolean | undefined;
29
+ private 'can_copy'?: boolean | undefined;
30
+ private 'can_manage'?: boolean | undefined;
31
+ private 'app_component_list'?: Array<AppComponentDao> | undefined;
32
+ private 'role_id'?: number | undefined;
33
+ public id?: string;
34
+ private 'release_id'?: number | undefined;
35
+ public duration?: string;
36
+ private 'execution_state'?: string | undefined;
37
+ private 'executor_id'?: string | undefined;
38
+ private 'executor_nick_name'?: string | undefined;
39
+ public steps?: { [key: string]: Step; };
40
+ public constructor() {
41
+ }
42
+ public withTaskId(taskId: string): TaskInfo {
43
+ this['task_id'] = taskId;
44
+ return this;
45
+ }
46
+ public set taskId(taskId: string | undefined) {
47
+ this['task_id'] = taskId;
48
+ }
49
+ public get taskId() {
50
+ return this['task_id'];
51
+ }
52
+ public withName(name: string): TaskInfo {
53
+ this['name'] = name;
54
+ return this;
55
+ }
56
+ public withProjectId(projectId: string): TaskInfo {
57
+ this['project_id'] = projectId;
58
+ return this;
59
+ }
60
+ public set projectId(projectId: string | undefined) {
61
+ this['project_id'] = projectId;
62
+ }
63
+ public get projectId() {
64
+ return this['project_id'];
65
+ }
66
+ public withProjectName(projectName: string): TaskInfo {
67
+ this['project_name'] = projectName;
68
+ return this;
69
+ }
70
+ public set projectName(projectName: string | undefined) {
71
+ this['project_name'] = projectName;
72
+ }
73
+ public get projectName() {
74
+ return this['project_name'];
75
+ }
76
+ public withDeploySystem(deploySystem: string): TaskInfo {
77
+ this['deploy_system'] = deploySystem;
78
+ return this;
79
+ }
80
+ public set deploySystem(deploySystem: string | undefined) {
81
+ this['deploy_system'] = deploySystem;
82
+ }
83
+ public get deploySystem() {
84
+ return this['deploy_system'];
85
+ }
86
+ public withCreateTime(createTime: string): TaskInfo {
87
+ this['create_time'] = createTime;
88
+ return this;
89
+ }
90
+ public set createTime(createTime: string | undefined) {
91
+ this['create_time'] = createTime;
92
+ }
93
+ public get createTime() {
94
+ return this['create_time'];
95
+ }
96
+ public withUpdateTime(updateTime: string): TaskInfo {
97
+ this['update_time'] = updateTime;
98
+ return this;
99
+ }
100
+ public set updateTime(updateTime: string | undefined) {
101
+ this['update_time'] = updateTime;
102
+ }
103
+ public get updateTime() {
104
+ return this['update_time'];
105
+ }
106
+ public withState(state: TaskInfoStateEnum): TaskInfo {
107
+ this['state'] = state;
108
+ return this;
109
+ }
110
+ public withExecutionTime(executionTime: string): TaskInfo {
111
+ this['execution_time'] = executionTime;
112
+ return this;
113
+ }
114
+ public set executionTime(executionTime: string | undefined) {
115
+ this['execution_time'] = executionTime;
116
+ }
117
+ public get executionTime() {
118
+ return this['execution_time'];
119
+ }
120
+ public withDescription(description: string): TaskInfo {
121
+ this['description'] = description;
122
+ return this;
123
+ }
124
+ public withIsDefautPermission(isDefautPermission: boolean): TaskInfo {
125
+ this['is_defaut_permission'] = isDefautPermission;
126
+ return this;
127
+ }
128
+ public set isDefautPermission(isDefautPermission: boolean | undefined) {
129
+ this['is_defaut_permission'] = isDefautPermission;
130
+ }
131
+ public get isDefautPermission() {
132
+ return this['is_defaut_permission'];
133
+ }
134
+ public withTemplateId(templateId: string): TaskInfo {
135
+ this['template_id'] = templateId;
136
+ return this;
137
+ }
138
+ public set templateId(templateId: string | undefined) {
139
+ this['template_id'] = templateId;
140
+ }
141
+ public get templateId() {
142
+ return this['template_id'];
143
+ }
144
+ public withOwner(owner: string): TaskInfo {
145
+ this['owner'] = owner;
146
+ return this;
147
+ }
148
+ public withNickName(nickName: string): TaskInfo {
149
+ this['nick_name'] = nickName;
150
+ return this;
151
+ }
152
+ public set nickName(nickName: string | undefined) {
153
+ this['nick_name'] = nickName;
154
+ }
155
+ public get nickName() {
156
+ return this['nick_name'];
157
+ }
158
+ public withOwnerId(ownerId: string): TaskInfo {
159
+ this['owner_id'] = ownerId;
160
+ return this;
161
+ }
162
+ public set ownerId(ownerId: string | undefined) {
163
+ this['owner_id'] = ownerId;
164
+ }
165
+ public get ownerId() {
166
+ return this['owner_id'];
167
+ }
168
+ public withTenantId(tenantId: string): TaskInfo {
169
+ this['tenant_id'] = tenantId;
170
+ return this;
171
+ }
172
+ public set tenantId(tenantId: string | undefined) {
173
+ this['tenant_id'] = tenantId;
174
+ }
175
+ public get tenantId() {
176
+ return this['tenant_id'];
177
+ }
178
+ public withTenantName(tenantName: string): TaskInfo {
179
+ this['tenant_name'] = tenantName;
180
+ return this;
181
+ }
182
+ public set tenantName(tenantName: string | undefined) {
183
+ this['tenant_name'] = tenantName;
184
+ }
185
+ public get tenantName() {
186
+ return this['tenant_name'];
187
+ }
188
+ public withSlaveClusterId(slaveClusterId: string): TaskInfo {
189
+ this['slave_cluster_id'] = slaveClusterId;
190
+ return this;
191
+ }
192
+ public set slaveClusterId(slaveClusterId: string | undefined) {
193
+ this['slave_cluster_id'] = slaveClusterId;
194
+ }
195
+ public get slaveClusterId() {
196
+ return this['slave_cluster_id'];
197
+ }
198
+ public withIsCare(isCare: boolean): TaskInfo {
199
+ this['is_care'] = isCare;
200
+ return this;
201
+ }
202
+ public set isCare(isCare: boolean | undefined) {
203
+ this['is_care'] = isCare;
204
+ }
205
+ public get isCare() {
206
+ return this['is_care'];
207
+ }
208
+ public withCanModify(canModify: boolean): TaskInfo {
209
+ this['can_modify'] = canModify;
210
+ return this;
211
+ }
212
+ public set canModify(canModify: boolean | undefined) {
213
+ this['can_modify'] = canModify;
214
+ }
215
+ public get canModify() {
216
+ return this['can_modify'];
217
+ }
218
+ public withCanDelete(canDelete: boolean): TaskInfo {
219
+ this['can_delete'] = canDelete;
220
+ return this;
221
+ }
222
+ public set canDelete(canDelete: boolean | undefined) {
223
+ this['can_delete'] = canDelete;
224
+ }
225
+ public get canDelete() {
226
+ return this['can_delete'];
227
+ }
228
+ public withCanView(canView: boolean): TaskInfo {
229
+ this['can_view'] = canView;
230
+ return this;
231
+ }
232
+ public set canView(canView: boolean | undefined) {
233
+ this['can_view'] = canView;
234
+ }
235
+ public get canView() {
236
+ return this['can_view'];
237
+ }
238
+ public withCanExecute(canExecute: boolean): TaskInfo {
239
+ this['can_execute'] = canExecute;
240
+ return this;
241
+ }
242
+ public set canExecute(canExecute: boolean | undefined) {
243
+ this['can_execute'] = canExecute;
244
+ }
245
+ public get canExecute() {
246
+ return this['can_execute'];
247
+ }
248
+ public withCanCopy(canCopy: boolean): TaskInfo {
249
+ this['can_copy'] = canCopy;
250
+ return this;
251
+ }
252
+ public set canCopy(canCopy: boolean | undefined) {
253
+ this['can_copy'] = canCopy;
254
+ }
255
+ public get canCopy() {
256
+ return this['can_copy'];
257
+ }
258
+ public withCanManage(canManage: boolean): TaskInfo {
259
+ this['can_manage'] = canManage;
260
+ return this;
261
+ }
262
+ public set canManage(canManage: boolean | undefined) {
263
+ this['can_manage'] = canManage;
264
+ }
265
+ public get canManage() {
266
+ return this['can_manage'];
267
+ }
268
+ public withAppComponentList(appComponentList: Array<AppComponentDao>): TaskInfo {
269
+ this['app_component_list'] = appComponentList;
270
+ return this;
271
+ }
272
+ public set appComponentList(appComponentList: Array<AppComponentDao> | undefined) {
273
+ this['app_component_list'] = appComponentList;
274
+ }
275
+ public get appComponentList() {
276
+ return this['app_component_list'];
277
+ }
278
+ public withRoleId(roleId: number): TaskInfo {
279
+ this['role_id'] = roleId;
280
+ return this;
281
+ }
282
+ public set roleId(roleId: number | undefined) {
283
+ this['role_id'] = roleId;
284
+ }
285
+ public get roleId() {
286
+ return this['role_id'];
287
+ }
288
+ public withId(id: string): TaskInfo {
289
+ this['id'] = id;
290
+ return this;
291
+ }
292
+ public withReleaseId(releaseId: number): TaskInfo {
293
+ this['release_id'] = releaseId;
294
+ return this;
295
+ }
296
+ public set releaseId(releaseId: number | undefined) {
297
+ this['release_id'] = releaseId;
298
+ }
299
+ public get releaseId() {
300
+ return this['release_id'];
301
+ }
302
+ public withDuration(duration: string): TaskInfo {
303
+ this['duration'] = duration;
304
+ return this;
305
+ }
306
+ public withExecutionState(executionState: string): TaskInfo {
307
+ this['execution_state'] = executionState;
308
+ return this;
309
+ }
310
+ public set executionState(executionState: string | undefined) {
311
+ this['execution_state'] = executionState;
312
+ }
313
+ public get executionState() {
314
+ return this['execution_state'];
315
+ }
316
+ public withExecutorId(executorId: string): TaskInfo {
317
+ this['executor_id'] = executorId;
318
+ return this;
319
+ }
320
+ public set executorId(executorId: string | undefined) {
321
+ this['executor_id'] = executorId;
322
+ }
323
+ public get executorId() {
324
+ return this['executor_id'];
325
+ }
326
+ public withExecutorNickName(executorNickName: string): TaskInfo {
327
+ this['executor_nick_name'] = executorNickName;
328
+ return this;
329
+ }
330
+ public set executorNickName(executorNickName: string | undefined) {
331
+ this['executor_nick_name'] = executorNickName;
332
+ }
333
+ public get executorNickName() {
334
+ return this['executor_nick_name'];
335
+ }
336
+ public withSteps(steps: { [key: string]: Step; }): TaskInfo {
337
+ this['steps'] = steps;
338
+ return this;
339
+ }
340
+ }
341
+
342
+ /**
343
+ * @export
344
+ * @enum {string}
345
+ */
346
+ export enum TaskInfoStateEnum {
347
+ AVAILABLE = 'Available',
348
+ DRAFT = 'Draft'
349
+ }
@@ -0,0 +1,61 @@
1
+
2
+
3
+ export class TaskSuccessRate {
4
+ private 'task_id'?: string | undefined;
5
+ private 'task_name'?: string | undefined;
6
+ private 'success_rate'?: string | undefined;
7
+ private 'record_count'?: number | undefined;
8
+ private 'success_record_count'?: number | undefined;
9
+ public constructor() {
10
+ }
11
+ public withTaskId(taskId: string): TaskSuccessRate {
12
+ this['task_id'] = taskId;
13
+ return this;
14
+ }
15
+ public set taskId(taskId: string | undefined) {
16
+ this['task_id'] = taskId;
17
+ }
18
+ public get taskId() {
19
+ return this['task_id'];
20
+ }
21
+ public withTaskName(taskName: string): TaskSuccessRate {
22
+ this['task_name'] = taskName;
23
+ return this;
24
+ }
25
+ public set taskName(taskName: string | undefined) {
26
+ this['task_name'] = taskName;
27
+ }
28
+ public get taskName() {
29
+ return this['task_name'];
30
+ }
31
+ public withSuccessRate(successRate: string): TaskSuccessRate {
32
+ this['success_rate'] = successRate;
33
+ return this;
34
+ }
35
+ public set successRate(successRate: string | undefined) {
36
+ this['success_rate'] = successRate;
37
+ }
38
+ public get successRate() {
39
+ return this['success_rate'];
40
+ }
41
+ public withRecordCount(recordCount: number): TaskSuccessRate {
42
+ this['record_count'] = recordCount;
43
+ return this;
44
+ }
45
+ public set recordCount(recordCount: number | undefined) {
46
+ this['record_count'] = recordCount;
47
+ }
48
+ public get recordCount() {
49
+ return this['record_count'];
50
+ }
51
+ public withSuccessRecordCount(successRecordCount: number): TaskSuccessRate {
52
+ this['success_record_count'] = successRecordCount;
53
+ return this;
54
+ }
55
+ public set successRecordCount(successRecordCount: number | undefined) {
56
+ this['success_record_count'] = successRecordCount;
57
+ }
58
+ public get successRecordCount() {
59
+ return this['success_record_count'];
60
+ }
61
+ }
@@ -0,0 +1,42 @@
1
+
2
+
3
+ export class TasksSuccessRateQuery {
4
+ private 'start_date': string | undefined;
5
+ private 'end_date': string | undefined;
6
+ private 'task_ids': Array<string> | undefined;
7
+ public constructor(startDate?: any, endDate?: any, taskIds?: any) {
8
+ this['start_date'] = startDate;
9
+ this['end_date'] = endDate;
10
+ this['task_ids'] = taskIds;
11
+ }
12
+ public withStartDate(startDate: string): TasksSuccessRateQuery {
13
+ this['start_date'] = startDate;
14
+ return this;
15
+ }
16
+ public set startDate(startDate: string | undefined) {
17
+ this['start_date'] = startDate;
18
+ }
19
+ public get startDate() {
20
+ return this['start_date'];
21
+ }
22
+ public withEndDate(endDate: string): TasksSuccessRateQuery {
23
+ this['end_date'] = endDate;
24
+ return this;
25
+ }
26
+ public set endDate(endDate: string | undefined) {
27
+ this['end_date'] = endDate;
28
+ }
29
+ public get endDate() {
30
+ return this['end_date'];
31
+ }
32
+ public withTaskIds(taskIds: Array<string>): TasksSuccessRateQuery {
33
+ this['task_ids'] = taskIds;
34
+ return this;
35
+ }
36
+ public set taskIds(taskIds: Array<string> | undefined) {
37
+ this['task_ids'] = taskIds;
38
+ }
39
+ public get taskIds() {
40
+ return this['task_ids'];
41
+ }
42
+ }
@@ -0,0 +1,71 @@
1
+ import { ConfigInfoDO } from './ConfigInfoDO';
2
+
3
+
4
+ export class TemplateTaskRequestBody {
5
+ private 'project_id': string | undefined;
6
+ private 'project_name': string | undefined;
7
+ private 'template_id': string | undefined;
8
+ private 'task_name': string | undefined;
9
+ private 'slave_cluster_id'?: string | undefined;
10
+ public configs?: Array<ConfigInfoDO>;
11
+ public constructor(projectId?: any, projectName?: any, templateId?: any, taskName?: any) {
12
+ this['project_id'] = projectId;
13
+ this['project_name'] = projectName;
14
+ this['template_id'] = templateId;
15
+ this['task_name'] = taskName;
16
+ }
17
+ public withProjectId(projectId: string): TemplateTaskRequestBody {
18
+ this['project_id'] = projectId;
19
+ return this;
20
+ }
21
+ public set projectId(projectId: string | undefined) {
22
+ this['project_id'] = projectId;
23
+ }
24
+ public get projectId() {
25
+ return this['project_id'];
26
+ }
27
+ public withProjectName(projectName: string): TemplateTaskRequestBody {
28
+ this['project_name'] = projectName;
29
+ return this;
30
+ }
31
+ public set projectName(projectName: string | undefined) {
32
+ this['project_name'] = projectName;
33
+ }
34
+ public get projectName() {
35
+ return this['project_name'];
36
+ }
37
+ public withTemplateId(templateId: string): TemplateTaskRequestBody {
38
+ this['template_id'] = templateId;
39
+ return this;
40
+ }
41
+ public set templateId(templateId: string | undefined) {
42
+ this['template_id'] = templateId;
43
+ }
44
+ public get templateId() {
45
+ return this['template_id'];
46
+ }
47
+ public withTaskName(taskName: string): TemplateTaskRequestBody {
48
+ this['task_name'] = taskName;
49
+ return this;
50
+ }
51
+ public set taskName(taskName: string | undefined) {
52
+ this['task_name'] = taskName;
53
+ }
54
+ public get taskName() {
55
+ return this['task_name'];
56
+ }
57
+ public withSlaveClusterId(slaveClusterId: string): TemplateTaskRequestBody {
58
+ this['slave_cluster_id'] = slaveClusterId;
59
+ return this;
60
+ }
61
+ public set slaveClusterId(slaveClusterId: string | undefined) {
62
+ this['slave_cluster_id'] = slaveClusterId;
63
+ }
64
+ public get slaveClusterId() {
65
+ return this['slave_cluster_id'];
66
+ }
67
+ public withConfigs(configs: Array<ConfigInfoDO>): TemplateTaskRequestBody {
68
+ this['configs'] = configs;
69
+ return this;
70
+ }
71
+ }
@@ -0,0 +1,45 @@
1
+ import { DeploymentGroupUpdateRequest } from './DeploymentGroupUpdateRequest';
2
+
3
+
4
+ export class UpdateDeploymentGroupRequest {
5
+ private 'group_id': string | undefined;
6
+ private 'Content-Type': UpdateDeploymentGroupRequestContentTypeEnum | undefined;
7
+ public body?: DeploymentGroupUpdateRequest;
8
+ public constructor(groupId?: any, contentType?: any) {
9
+ this['group_id'] = groupId;
10
+ this['Content-Type'] = contentType;
11
+ }
12
+ public withGroupId(groupId: string): UpdateDeploymentGroupRequest {
13
+ this['group_id'] = groupId;
14
+ return this;
15
+ }
16
+ public set groupId(groupId: string | undefined) {
17
+ this['group_id'] = groupId;
18
+ }
19
+ public get groupId() {
20
+ return this['group_id'];
21
+ }
22
+ public withContentType(contentType: UpdateDeploymentGroupRequestContentTypeEnum): UpdateDeploymentGroupRequest {
23
+ this['Content-Type'] = contentType;
24
+ return this;
25
+ }
26
+ public set contentType(contentType: UpdateDeploymentGroupRequestContentTypeEnum | undefined) {
27
+ this['Content-Type'] = contentType;
28
+ }
29
+ public get contentType() {
30
+ return this['Content-Type'];
31
+ }
32
+ public withBody(body: DeploymentGroupUpdateRequest): UpdateDeploymentGroupRequest {
33
+ this['body'] = body;
34
+ return this;
35
+ }
36
+ }
37
+
38
+ /**
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ export enum UpdateDeploymentGroupRequestContentTypeEnum {
43
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
44
+ APPLICATION_JSON = 'application/json'
45
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class UpdateDeploymentGroupResponse extends SdkResponse {
5
+ private 'group_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withGroupId(groupId: string): UpdateDeploymentGroupResponse {
10
+ this['group_id'] = groupId;
11
+ return this;
12
+ }
13
+ public set groupId(groupId: string | undefined) {
14
+ this['group_id'] = groupId;
15
+ }
16
+ public get groupId() {
17
+ return this['group_id'];
18
+ }
19
+ }
@@ -0,0 +1,57 @@
1
+ import { DeploymentHostRequest } from './DeploymentHostRequest';
2
+
3
+
4
+ export class UpdateDeploymentHostRequest {
5
+ private 'group_id': string | undefined;
6
+ private 'host_id': string | undefined;
7
+ private 'Content-Type': UpdateDeploymentHostRequestContentTypeEnum | undefined;
8
+ public body?: DeploymentHostRequest;
9
+ public constructor(groupId?: any, hostId?: any, contentType?: any) {
10
+ this['group_id'] = groupId;
11
+ this['host_id'] = hostId;
12
+ this['Content-Type'] = contentType;
13
+ }
14
+ public withGroupId(groupId: string): UpdateDeploymentHostRequest {
15
+ this['group_id'] = groupId;
16
+ return this;
17
+ }
18
+ public set groupId(groupId: string | undefined) {
19
+ this['group_id'] = groupId;
20
+ }
21
+ public get groupId() {
22
+ return this['group_id'];
23
+ }
24
+ public withHostId(hostId: string): UpdateDeploymentHostRequest {
25
+ this['host_id'] = hostId;
26
+ return this;
27
+ }
28
+ public set hostId(hostId: string | undefined) {
29
+ this['host_id'] = hostId;
30
+ }
31
+ public get hostId() {
32
+ return this['host_id'];
33
+ }
34
+ public withContentType(contentType: UpdateDeploymentHostRequestContentTypeEnum): UpdateDeploymentHostRequest {
35
+ this['Content-Type'] = contentType;
36
+ return this;
37
+ }
38
+ public set contentType(contentType: UpdateDeploymentHostRequestContentTypeEnum | undefined) {
39
+ this['Content-Type'] = contentType;
40
+ }
41
+ public get contentType() {
42
+ return this['Content-Type'];
43
+ }
44
+ public withBody(body: DeploymentHostRequest): UpdateDeploymentHostRequest {
45
+ this['body'] = body;
46
+ return this;
47
+ }
48
+ }
49
+
50
+ /**
51
+ * @export
52
+ * @enum {string}
53
+ */
54
+ export enum UpdateDeploymentHostRequestContentTypeEnum {
55
+ APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
56
+ APPLICATION_JSON = 'application/json'
57
+ }
@@ -0,0 +1,19 @@
1
+
2
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
3
+
4
+ export class UpdateDeploymentHostResponse extends SdkResponse {
5
+ private 'host_id'?: string | undefined;
6
+ public constructor() {
7
+ super();
8
+ }
9
+ public withHostId(hostId: string): UpdateDeploymentHostResponse {
10
+ this['host_id'] = hostId;
11
+ return this;
12
+ }
13
+ public set hostId(hostId: string | undefined) {
14
+ this['host_id'] = hostId;
15
+ }
16
+ public get hostId() {
17
+ return this['host_id'];
18
+ }
19
+ }
@@ -0,0 +1,28 @@
1
+
2
+
3
+ export class UserInfo {
4
+ private 'user_id'?: string | undefined;
5
+ private 'user_name'?: string | undefined;
6
+ public constructor() {
7
+ }
8
+ public withUserId(userId: string): UserInfo {
9
+ this['user_id'] = userId;
10
+ return this;
11
+ }
12
+ public set userId(userId: string | undefined) {
13
+ this['user_id'] = userId;
14
+ }
15
+ public get userId() {
16
+ return this['user_id'];
17
+ }
18
+ public withUserName(userName: string): UserInfo {
19
+ this['user_name'] = userName;
20
+ return this;
21
+ }
22
+ public set userName(userName: string | undefined) {
23
+ this['user_name'] = userName;
24
+ }
25
+ public get userName() {
26
+ return this['user_name'];
27
+ }
28
+ }