@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.
- package/huaweicloud-sdk-codeartsdeploy.ts +4 -0
- package/package.json +4 -4
- package/v2/{CodeArtsDeployClient.js → CodeArtsDeployClient.ts} +608 -388
- package/v2/CodeArtsDeployRegion.ts +40 -0
- package/v2/model/AppComponentDao.ts +82 -0
- package/v2/model/ConfigInfoDO.ts +73 -0
- package/v2/model/CreateDeployTaskByTemplateRequest.ts +33 -0
- package/v2/model/CreateDeployTaskByTemplateResponse.ts +30 -0
- package/v2/model/CreateDeploymentGroupRequest.ts +33 -0
- package/v2/model/CreateDeploymentGroupResponse.ts +19 -0
- package/v2/model/CreateDeploymentHostRequest.ts +45 -0
- package/v2/model/CreateDeploymentHostResponse.ts +19 -0
- package/v2/model/DeleteDeployTaskRequest.ts +39 -0
- package/v2/model/DeleteDeployTaskResponse.ts +19 -0
- package/v2/model/DeleteDeploymentGroupRequest.ts +39 -0
- package/v2/model/DeleteDeploymentGroupResponse.ts +19 -0
- package/v2/model/DeleteDeploymentHostRequest.ts +51 -0
- package/v2/model/DeleteDeploymentHostResponse.ts +19 -0
- package/v2/model/DeploymentGroup.ts +78 -0
- package/v2/model/DeploymentGroupDetail.ts +160 -0
- package/v2/model/DeploymentGroupUpdateRequest.ts +49 -0
- package/v2/model/DeploymentHost.ts +86 -0
- package/v2/model/DeploymentHostAuthorizationBody.ts +49 -0
- package/v2/model/DeploymentHostDetail.ts +270 -0
- package/v2/model/DeploymentHostInfo.ts +98 -0
- package/v2/model/DeploymentHostRequest.ts +77 -0
- package/v2/model/DeploymentUpdateHost.ts +71 -0
- package/v2/model/DynamicConfigInfo.ts +33 -0
- package/v2/model/EnvExecutionBody.ts +34 -0
- package/v2/model/ExecuteRecordV2Body.ts +75 -0
- package/v2/model/KeyValueDO.ts +16 -0
- package/v2/model/ListDeployTaskHistoryByDateRequest.ts +81 -0
- package/v2/model/ListDeployTaskHistoryByDateResponse.ts +25 -0
- package/v2/model/ListDeployTasksRequest.ts +51 -0
- package/v2/model/ListDeployTasksResponse.ts +25 -0
- package/v2/model/ListHostGroupsRequest.ts +88 -0
- package/v2/model/ListHostGroupsResponse.ts +25 -0
- package/v2/model/ListHostsRequest.ts +86 -0
- package/v2/model/ListHostsResponse.ts +30 -0
- package/v2/model/ListTaskSuccessRateRequest.ts +24 -0
- package/v2/model/ListTaskSuccessRateResponse.ts +64 -0
- package/v2/model/ParamTypeLimits.ts +11 -0
- package/v2/model/PermissionGroupDetail.ts +61 -0
- package/v2/model/PermissionHostDetail.ts +61 -0
- package/v2/model/ShowDeployTaskDetailRequest.ts +18 -0
- package/v2/model/ShowDeployTaskDetailResponse.ts +351 -0
- package/v2/model/ShowDeploymentGroupDetailRequest.ts +18 -0
- package/v2/model/ShowDeploymentGroupDetailResponse.ts +162 -0
- package/v2/model/ShowDeploymentHostDetailRequest.ts +30 -0
- package/v2/model/ShowDeploymentHostDetailResponse.ts +273 -0
- package/v2/model/ShowProjectSuccessRateRequest.ts +42 -0
- package/v2/model/ShowProjectSuccessRateResponse.ts +96 -0
- package/v2/model/StartDeployTaskRequest.ts +45 -0
- package/v2/model/StartDeployTaskResponse.ts +47 -0
- package/v2/model/Step.ts +26 -0
- package/v2/model/TaskInfo.ts +349 -0
- package/v2/model/TaskSuccessRate.ts +61 -0
- package/v2/model/TasksSuccessRateQuery.ts +42 -0
- package/v2/model/TemplateTaskRequestBody.ts +71 -0
- package/v2/model/UpdateDeploymentGroupRequest.ts +45 -0
- package/v2/model/UpdateDeploymentGroupResponse.ts +19 -0
- package/v2/model/UpdateDeploymentHostRequest.ts +57 -0
- package/v2/model/UpdateDeploymentHostResponse.ts +19 -0
- package/v2/model/UserInfo.ts +28 -0
- package/v2/{public-api.d.ts → public-api.ts} +1 -0
- package/LICENSE +0 -13
- package/README.md +0 -1
- package/huaweicloud-sdk-codeartsdeploy.d.ts +0 -2
- package/huaweicloud-sdk-codeartsdeploy.js +0 -31
- package/v2/CodeArtsDeployClient.d.ts +0 -538
- package/v2/CodeArtsDeployRegion.d.ts +0 -12
- package/v2/CodeArtsDeployRegion.js +0 -37
- package/v2/model/AppComponentDao.d.ts +0 -31
- package/v2/model/AppComponentDao.js +0 -101
- package/v2/model/ConfigInfoDO.d.ts +0 -40
- package/v2/model/ConfigInfoDO.js +0 -77
- package/v2/model/CreateDeployTaskByTemplateRequest.d.ts +0 -18
- package/v2/model/CreateDeployTaskByTemplateRequest.js +0 -37
- package/v2/model/CreateDeployTaskByTemplateResponse.d.ts +0 -12
- package/v2/model/CreateDeployTaskByTemplateResponse.js +0 -55
- package/v2/model/CreateDeploymentGroupRequest.d.ts +0 -18
- package/v2/model/CreateDeploymentGroupRequest.js +0 -37
- package/v2/model/CreateDeploymentGroupResponse.d.ts +0 -8
- package/v2/model/CreateDeploymentGroupResponse.js +0 -41
- package/v2/model/CreateDeploymentHostRequest.d.ts +0 -22
- package/v2/model/CreateDeploymentHostRequest.js +0 -52
- package/v2/model/CreateDeploymentHostResponse.d.ts +0 -8
- package/v2/model/CreateDeploymentHostResponse.js +0 -41
- package/v2/model/DeleteDeployTaskRequest.d.ts +0 -19
- package/v2/model/DeleteDeployTaskRequest.js +0 -48
- package/v2/model/DeleteDeployTaskResponse.d.ts +0 -8
- package/v2/model/DeleteDeployTaskResponse.js +0 -41
- package/v2/model/DeleteDeploymentGroupRequest.d.ts +0 -19
- package/v2/model/DeleteDeploymentGroupRequest.js +0 -48
- package/v2/model/DeleteDeploymentGroupResponse.d.ts +0 -8
- package/v2/model/DeleteDeploymentGroupResponse.js +0 -41
- package/v2/model/DeleteDeploymentHostRequest.d.ts +0 -23
- package/v2/model/DeleteDeploymentHostRequest.js +0 -63
- package/v2/model/DeleteDeploymentHostResponse.d.ts +0 -8
- package/v2/model/DeleteDeploymentHostResponse.js +0 -41
- package/v2/model/DeploymentGroup.d.ts +0 -33
- package/v2/model/DeploymentGroup.js +0 -90
- package/v2/model/DeploymentGroupDetail.d.ts +0 -61
- package/v2/model/DeploymentGroupDetail.js +0 -193
- package/v2/model/DeploymentGroupUpdateRequest.d.ts +0 -24
- package/v2/model/DeploymentGroupUpdateRequest.js +0 -56
- package/v2/model/DeploymentHost.d.ts +0 -36
- package/v2/model/DeploymentHost.js +0 -96
- package/v2/model/DeploymentHostAuthorizationBody.d.ts +0 -23
- package/v2/model/DeploymentHostAuthorizationBody.js +0 -56
- package/v2/model/DeploymentHostDetail.d.ts +0 -103
- package/v2/model/DeploymentHostDetail.js +0 -325
- package/v2/model/DeploymentHostInfo.d.ts +0 -40
- package/v2/model/DeploymentHostInfo.js +0 -111
- package/v2/model/DeploymentHostRequest.d.ts +0 -28
- package/v2/model/DeploymentHostRequest.js +0 -86
- package/v2/model/DeploymentUpdateHost.d.ts +0 -26
- package/v2/model/DeploymentUpdateHost.js +0 -82
- package/v2/model/DynamicConfigInfo.d.ts +0 -19
- package/v2/model/DynamicConfigInfo.js +0 -32
- package/v2/model/EnvExecutionBody.d.ts +0 -14
- package/v2/model/EnvExecutionBody.js +0 -41
- package/v2/model/ExecuteRecordV2Body.d.ts +0 -29
- package/v2/model/ExecuteRecordV2Body.js +0 -85
- package/v2/model/KeyValueDO.d.ts +0 -7
- package/v2/model/KeyValueDO.js +0 -17
- package/v2/model/ListDeployTaskHistoryByDateRequest.d.ts +0 -33
- package/v2/model/ListDeployTaskHistoryByDateRequest.js +0 -93
- package/v2/model/ListDeployTaskHistoryByDateResponse.d.ts +0 -11
- package/v2/model/ListDeployTaskHistoryByDateResponse.js +0 -45
- package/v2/model/ListDeployTasksRequest.d.ts +0 -23
- package/v2/model/ListDeployTasksRequest.js +0 -58
- package/v2/model/ListDeployTasksResponse.d.ts +0 -11
- package/v2/model/ListDeployTasksResponse.js +0 -45
- package/v2/model/ListHostGroupsRequest.d.ts +0 -43
- package/v2/model/ListHostGroupsRequest.js +0 -100
- package/v2/model/ListHostGroupsResponse.d.ts +0 -11
- package/v2/model/ListHostGroupsResponse.js +0 -45
- package/v2/model/ListHostsRequest.d.ts +0 -37
- package/v2/model/ListHostsRequest.js +0 -101
- package/v2/model/ListHostsResponse.d.ts +0 -13
- package/v2/model/ListHostsResponse.js +0 -49
- package/v2/model/ListTaskSuccessRateRequest.d.ts +0 -10
- package/v2/model/ListTaskSuccessRateRequest.js +0 -28
- package/v2/model/ListTaskSuccessRateResponse.d.ts +0 -25
- package/v2/model/ListTaskSuccessRateResponse.js +0 -97
- package/v2/model/ParamTypeLimits.d.ts +0 -5
- package/v2/model/ParamTypeLimits.js +0 -13
- package/v2/model/PermissionGroupDetail.d.ts +0 -23
- package/v2/model/PermissionGroupDetail.js +0 -79
- package/v2/model/PermissionHostDetail.d.ts +0 -23
- package/v2/model/PermissionHostDetail.js +0 -79
- package/v2/model/ShowDeployTaskDetailRequest.d.ts +0 -7
- package/v2/model/ShowDeployTaskDetailRequest.js +0 -24
- package/v2/model/ShowDeployTaskDetailResponse.d.ts +0 -140
- package/v2/model/ShowDeployTaskDetailResponse.js +0 -442
- package/v2/model/ShowDeploymentGroupDetailRequest.d.ts +0 -7
- package/v2/model/ShowDeploymentGroupDetailRequest.js +0 -24
- package/v2/model/ShowDeploymentGroupDetailResponse.d.ts +0 -62
- package/v2/model/ShowDeploymentGroupDetailResponse.js +0 -211
- package/v2/model/ShowDeploymentHostDetailRequest.d.ts +0 -11
- package/v2/model/ShowDeploymentHostDetailRequest.js +0 -39
- package/v2/model/ShowDeploymentHostDetailResponse.d.ts +0 -105
- package/v2/model/ShowDeploymentHostDetailResponse.js +0 -344
- package/v2/model/ShowProjectSuccessRateRequest.d.ts +0 -15
- package/v2/model/ShowProjectSuccessRateRequest.js +0 -54
- package/v2/model/ShowProjectSuccessRateResponse.d.ts +0 -36
- package/v2/model/ShowProjectSuccessRateResponse.js +0 -139
- package/v2/model/StartDeployTaskRequest.d.ts +0 -22
- package/v2/model/StartDeployTaskRequest.js +0 -52
- package/v2/model/StartDeployTaskResponse.d.ts +0 -19
- package/v2/model/StartDeployTaskResponse.js +0 -73
- package/v2/model/Step.d.ts +0 -15
- package/v2/model/Step.js +0 -25
- package/v2/model/TaskInfo.d.ts +0 -139
- package/v2/model/TaskInfo.js +0 -424
- package/v2/model/TaskSuccessRate.d.ts +0 -23
- package/v2/model/TaskSuccessRate.js +0 -79
- package/v2/model/TasksSuccessRateQuery.d.ts +0 -15
- package/v2/model/TasksSuccessRateQuery.js +0 -54
- package/v2/model/TemplateTaskRequestBody.d.ts +0 -26
- package/v2/model/TemplateTaskRequestBody.js +0 -87
- package/v2/model/UpdateDeploymentGroupRequest.d.ts +0 -22
- package/v2/model/UpdateDeploymentGroupRequest.js +0 -52
- package/v2/model/UpdateDeploymentGroupResponse.d.ts +0 -8
- package/v2/model/UpdateDeploymentGroupResponse.js +0 -41
- package/v2/model/UpdateDeploymentHostRequest.d.ts +0 -26
- package/v2/model/UpdateDeploymentHostRequest.js +0 -67
- package/v2/model/UpdateDeploymentHostResponse.d.ts +0 -8
- package/v2/model/UpdateDeploymentHostResponse.js +0 -41
- package/v2/model/UserInfo.d.ts +0 -11
- package/v2/model/UserInfo.js +0 -37
- package/v2/public-api.js +0 -78
|
@@ -1,53 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
|
2
|
+
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
|
3
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
4
|
+
|
|
5
|
+
import { AppComponentDao } from './model/AppComponentDao';
|
|
6
|
+
import { ConfigInfoDO } from './model/ConfigInfoDO';
|
|
7
|
+
import { CreateDeployTaskByTemplateRequest } from './model/CreateDeployTaskByTemplateRequest';
|
|
8
|
+
import { CreateDeployTaskByTemplateResponse } from './model/CreateDeployTaskByTemplateResponse';
|
|
9
|
+
import { CreateDeploymentGroupRequest } from './model/CreateDeploymentGroupRequest';
|
|
10
|
+
import { CreateDeploymentGroupResponse } from './model/CreateDeploymentGroupResponse';
|
|
11
|
+
import { CreateDeploymentHostRequest } from './model/CreateDeploymentHostRequest';
|
|
12
|
+
import { CreateDeploymentHostResponse } from './model/CreateDeploymentHostResponse';
|
|
13
|
+
import { DeleteDeployTaskRequest } from './model/DeleteDeployTaskRequest';
|
|
14
|
+
import { DeleteDeployTaskResponse } from './model/DeleteDeployTaskResponse';
|
|
15
|
+
import { DeleteDeploymentGroupRequest } from './model/DeleteDeploymentGroupRequest';
|
|
16
|
+
import { DeleteDeploymentGroupResponse } from './model/DeleteDeploymentGroupResponse';
|
|
17
|
+
import { DeleteDeploymentHostRequest } from './model/DeleteDeploymentHostRequest';
|
|
18
|
+
import { DeleteDeploymentHostResponse } from './model/DeleteDeploymentHostResponse';
|
|
19
|
+
import { DeploymentGroup } from './model/DeploymentGroup';
|
|
20
|
+
import { DeploymentGroupDetail } from './model/DeploymentGroupDetail';
|
|
21
|
+
import { DeploymentGroupUpdateRequest } from './model/DeploymentGroupUpdateRequest';
|
|
22
|
+
import { DeploymentHost } from './model/DeploymentHost';
|
|
23
|
+
import { DeploymentHostAuthorizationBody } from './model/DeploymentHostAuthorizationBody';
|
|
24
|
+
import { DeploymentHostDetail } from './model/DeploymentHostDetail';
|
|
25
|
+
import { DeploymentHostInfo } from './model/DeploymentHostInfo';
|
|
26
|
+
import { DeploymentHostRequest } from './model/DeploymentHostRequest';
|
|
27
|
+
import { DeploymentUpdateHost } from './model/DeploymentUpdateHost';
|
|
28
|
+
import { DynamicConfigInfo } from './model/DynamicConfigInfo';
|
|
29
|
+
import { EnvExecutionBody } from './model/EnvExecutionBody';
|
|
30
|
+
import { ExecuteRecordV2Body } from './model/ExecuteRecordV2Body';
|
|
31
|
+
import { KeyValueDO } from './model/KeyValueDO';
|
|
32
|
+
import { ListDeployTaskHistoryByDateRequest } from './model/ListDeployTaskHistoryByDateRequest';
|
|
33
|
+
import { ListDeployTaskHistoryByDateResponse } from './model/ListDeployTaskHistoryByDateResponse';
|
|
34
|
+
import { ListDeployTasksRequest } from './model/ListDeployTasksRequest';
|
|
35
|
+
import { ListDeployTasksResponse } from './model/ListDeployTasksResponse';
|
|
36
|
+
import { ListHostGroupsRequest } from './model/ListHostGroupsRequest';
|
|
37
|
+
import { ListHostGroupsResponse } from './model/ListHostGroupsResponse';
|
|
38
|
+
import { ListHostsRequest } from './model/ListHostsRequest';
|
|
39
|
+
import { ListHostsResponse } from './model/ListHostsResponse';
|
|
40
|
+
import { ListTaskSuccessRateRequest } from './model/ListTaskSuccessRateRequest';
|
|
41
|
+
import { ListTaskSuccessRateResponse } from './model/ListTaskSuccessRateResponse';
|
|
42
|
+
import { ParamTypeLimits } from './model/ParamTypeLimits';
|
|
43
|
+
import { PermissionGroupDetail } from './model/PermissionGroupDetail';
|
|
44
|
+
import { PermissionHostDetail } from './model/PermissionHostDetail';
|
|
45
|
+
import { ShowDeployTaskDetailRequest } from './model/ShowDeployTaskDetailRequest';
|
|
46
|
+
import { ShowDeployTaskDetailResponse } from './model/ShowDeployTaskDetailResponse';
|
|
47
|
+
import { ShowDeploymentGroupDetailRequest } from './model/ShowDeploymentGroupDetailRequest';
|
|
48
|
+
import { ShowDeploymentGroupDetailResponse } from './model/ShowDeploymentGroupDetailResponse';
|
|
49
|
+
import { ShowDeploymentHostDetailRequest } from './model/ShowDeploymentHostDetailRequest';
|
|
50
|
+
import { ShowDeploymentHostDetailResponse } from './model/ShowDeploymentHostDetailResponse';
|
|
51
|
+
import { ShowProjectSuccessRateRequest } from './model/ShowProjectSuccessRateRequest';
|
|
52
|
+
import { ShowProjectSuccessRateResponse } from './model/ShowProjectSuccessRateResponse';
|
|
53
|
+
import { StartDeployTaskRequest } from './model/StartDeployTaskRequest';
|
|
54
|
+
import { StartDeployTaskResponse } from './model/StartDeployTaskResponse';
|
|
55
|
+
import { Step } from './model/Step';
|
|
56
|
+
import { TaskInfo } from './model/TaskInfo';
|
|
57
|
+
import { TaskSuccessRate } from './model/TaskSuccessRate';
|
|
58
|
+
import { TasksSuccessRateQuery } from './model/TasksSuccessRateQuery';
|
|
59
|
+
import { TemplateTaskRequestBody } from './model/TemplateTaskRequestBody';
|
|
60
|
+
import { UpdateDeploymentGroupRequest } from './model/UpdateDeploymentGroupRequest';
|
|
61
|
+
import { UpdateDeploymentGroupResponse } from './model/UpdateDeploymentGroupResponse';
|
|
62
|
+
import { UpdateDeploymentHostRequest } from './model/UpdateDeploymentHostRequest';
|
|
63
|
+
import { UpdateDeploymentHostResponse } from './model/UpdateDeploymentHostResponse';
|
|
64
|
+
import { UserInfo } from './model/UserInfo';
|
|
65
|
+
|
|
66
|
+
export class CodeArtsDeployClient {
|
|
67
|
+
public static newBuilder(): ClientBuilder<CodeArtsDeployClient> {
|
|
68
|
+
return new ClientBuilder<CodeArtsDeployClient>(newClient);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private hcClient: HcClient;
|
|
72
|
+
public constructor(client: HcClient) {
|
|
40
73
|
this.hcClient = client;
|
|
41
74
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
CodeArtsDeployClient.prototype.getPath = function () {
|
|
75
|
+
|
|
76
|
+
public getPath() {
|
|
46
77
|
return __dirname;
|
|
47
|
-
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
48
81
|
/**
|
|
49
82
|
* 通过模板新建应用。
|
|
50
|
-
*
|
|
83
|
+
*
|
|
51
84
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
52
85
|
*
|
|
53
86
|
* @summary 通过模板新建应用
|
|
@@ -56,15 +89,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
56
89
|
* @param {*} [options] Override http request option.
|
|
57
90
|
* @throws {RequiredError}
|
|
58
91
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
92
|
+
public createDeployTaskByTemplate(createDeployTaskByTemplateRequest?: CreateDeployTaskByTemplateRequest): Promise<CreateDeployTaskByTemplateResponse> {
|
|
93
|
+
const options = ParamCreater().createDeployTaskByTemplate(createDeployTaskByTemplateRequest);
|
|
94
|
+
|
|
95
|
+
// @ts-ignore
|
|
62
96
|
options['responseHeaders'] = [''];
|
|
97
|
+
|
|
63
98
|
return this.hcClient.sendRequest(options);
|
|
64
|
-
}
|
|
99
|
+
}
|
|
100
|
+
|
|
65
101
|
/**
|
|
66
102
|
* 根据部署任务id删除应用。
|
|
67
|
-
*
|
|
103
|
+
*
|
|
68
104
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
69
105
|
*
|
|
70
106
|
* @summary 删除应用
|
|
@@ -73,15 +109,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
73
109
|
* @param {*} [options] Override http request option.
|
|
74
110
|
* @throws {RequiredError}
|
|
75
111
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
112
|
+
public deleteDeployTask(deleteDeployTaskRequest?: DeleteDeployTaskRequest): Promise<DeleteDeployTaskResponse> {
|
|
113
|
+
const options = ParamCreater().deleteDeployTask(deleteDeployTaskRequest);
|
|
114
|
+
|
|
115
|
+
// @ts-ignore
|
|
79
116
|
options['responseHeaders'] = [''];
|
|
117
|
+
|
|
80
118
|
return this.hcClient.sendRequest(options);
|
|
81
|
-
}
|
|
119
|
+
}
|
|
120
|
+
|
|
82
121
|
/**
|
|
83
122
|
* 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表
|
|
84
|
-
*
|
|
123
|
+
*
|
|
85
124
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
86
125
|
*
|
|
87
126
|
* @summary 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表
|
|
@@ -95,15 +134,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
95
134
|
* @param {*} [options] Override http request option.
|
|
96
135
|
* @throws {RequiredError}
|
|
97
136
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
137
|
+
public listDeployTaskHistoryByDate(listDeployTaskHistoryByDateRequest?: ListDeployTaskHistoryByDateRequest): Promise<ListDeployTaskHistoryByDateResponse> {
|
|
138
|
+
const options = ParamCreater().listDeployTaskHistoryByDate(listDeployTaskHistoryByDateRequest);
|
|
139
|
+
|
|
140
|
+
// @ts-ignore
|
|
101
141
|
options['responseHeaders'] = [''];
|
|
142
|
+
|
|
102
143
|
return this.hcClient.sendRequest(options);
|
|
103
|
-
}
|
|
144
|
+
}
|
|
145
|
+
|
|
104
146
|
/**
|
|
105
147
|
* 查询项目下应用列表
|
|
106
|
-
*
|
|
148
|
+
*
|
|
107
149
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
108
150
|
*
|
|
109
151
|
* @summary 获取应用列表
|
|
@@ -114,15 +156,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
114
156
|
* @param {*} [options] Override http request option.
|
|
115
157
|
* @throws {RequiredError}
|
|
116
158
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
159
|
+
public listDeployTasks(listDeployTasksRequest?: ListDeployTasksRequest): Promise<ListDeployTasksResponse> {
|
|
160
|
+
const options = ParamCreater().listDeployTasks(listDeployTasksRequest);
|
|
161
|
+
|
|
162
|
+
// @ts-ignore
|
|
120
163
|
options['responseHeaders'] = [''];
|
|
164
|
+
|
|
121
165
|
return this.hcClient.sendRequest(options);
|
|
122
|
-
}
|
|
166
|
+
}
|
|
167
|
+
|
|
123
168
|
/**
|
|
124
169
|
* 根据部署任务id获取应用详情。
|
|
125
|
-
*
|
|
170
|
+
*
|
|
126
171
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
127
172
|
*
|
|
128
173
|
* @summary 获取应用详情
|
|
@@ -130,15 +175,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
130
175
|
* @param {*} [options] Override http request option.
|
|
131
176
|
* @throws {RequiredError}
|
|
132
177
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
178
|
+
public showDeployTaskDetail(showDeployTaskDetailRequest?: ShowDeployTaskDetailRequest): Promise<ShowDeployTaskDetailResponse> {
|
|
179
|
+
const options = ParamCreater().showDeployTaskDetail(showDeployTaskDetailRequest);
|
|
180
|
+
|
|
181
|
+
// @ts-ignore
|
|
136
182
|
options['responseHeaders'] = [''];
|
|
183
|
+
|
|
137
184
|
return this.hcClient.sendRequest(options);
|
|
138
|
-
}
|
|
185
|
+
}
|
|
186
|
+
|
|
139
187
|
/**
|
|
140
188
|
* 根据部署任务id部署应用。
|
|
141
|
-
*
|
|
189
|
+
*
|
|
142
190
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
143
191
|
*
|
|
144
192
|
* @summary 部署应用
|
|
@@ -148,15 +196,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
148
196
|
* @param {*} [options] Override http request option.
|
|
149
197
|
* @throws {RequiredError}
|
|
150
198
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
199
|
+
public startDeployTask(startDeployTaskRequest?: StartDeployTaskRequest): Promise<StartDeployTaskResponse> {
|
|
200
|
+
const options = ParamCreater().startDeployTask(startDeployTaskRequest);
|
|
201
|
+
|
|
202
|
+
// @ts-ignore
|
|
154
203
|
options['responseHeaders'] = [''];
|
|
204
|
+
|
|
155
205
|
return this.hcClient.sendRequest(options);
|
|
156
|
-
}
|
|
206
|
+
}
|
|
207
|
+
|
|
157
208
|
/**
|
|
158
209
|
* 在指定主机集群下新建主机。
|
|
159
|
-
*
|
|
210
|
+
*
|
|
160
211
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
161
212
|
*
|
|
162
213
|
* @summary 新建主机
|
|
@@ -166,15 +217,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
166
217
|
* @param {*} [options] Override http request option.
|
|
167
218
|
* @throws {RequiredError}
|
|
168
219
|
*/
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
220
|
+
public createDeploymentHost(createDeploymentHostRequest?: CreateDeploymentHostRequest): Promise<CreateDeploymentHostResponse> {
|
|
221
|
+
const options = ParamCreater().createDeploymentHost(createDeploymentHostRequest);
|
|
222
|
+
|
|
223
|
+
// @ts-ignore
|
|
172
224
|
options['responseHeaders'] = [''];
|
|
225
|
+
|
|
173
226
|
return this.hcClient.sendRequest(options);
|
|
174
|
-
}
|
|
227
|
+
}
|
|
228
|
+
|
|
175
229
|
/**
|
|
176
230
|
* 根据主机id删除主机。
|
|
177
|
-
*
|
|
231
|
+
*
|
|
178
232
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
179
233
|
*
|
|
180
234
|
* @summary 删除主机
|
|
@@ -184,15 +238,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
184
238
|
* @param {*} [options] Override http request option.
|
|
185
239
|
* @throws {RequiredError}
|
|
186
240
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
241
|
+
public deleteDeploymentHost(deleteDeploymentHostRequest?: DeleteDeploymentHostRequest): Promise<DeleteDeploymentHostResponse> {
|
|
242
|
+
const options = ParamCreater().deleteDeploymentHost(deleteDeploymentHostRequest);
|
|
243
|
+
|
|
244
|
+
// @ts-ignore
|
|
190
245
|
options['responseHeaders'] = [''];
|
|
246
|
+
|
|
191
247
|
return this.hcClient.sendRequest(options);
|
|
192
|
-
}
|
|
248
|
+
}
|
|
249
|
+
|
|
193
250
|
/**
|
|
194
251
|
* 根据主机集群id查询指定主机集群下的主机列表。
|
|
195
|
-
*
|
|
252
|
+
*
|
|
196
253
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
197
254
|
*
|
|
198
255
|
* @summary 查询主机列表
|
|
@@ -207,15 +264,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
207
264
|
* @param {*} [options] Override http request option.
|
|
208
265
|
* @throws {RequiredError}
|
|
209
266
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
267
|
+
public listHosts(listHostsRequest?: ListHostsRequest): Promise<ListHostsResponse> {
|
|
268
|
+
const options = ParamCreater().listHosts(listHostsRequest);
|
|
269
|
+
|
|
270
|
+
// @ts-ignore
|
|
213
271
|
options['responseHeaders'] = [''];
|
|
272
|
+
|
|
214
273
|
return this.hcClient.sendRequest(options);
|
|
215
|
-
}
|
|
274
|
+
}
|
|
275
|
+
|
|
216
276
|
/**
|
|
217
277
|
* 根据主机id查询主机详情。
|
|
218
|
-
*
|
|
278
|
+
*
|
|
219
279
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
220
280
|
*
|
|
221
281
|
* @summary 查询主机详情
|
|
@@ -224,15 +284,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
224
284
|
* @param {*} [options] Override http request option.
|
|
225
285
|
* @throws {RequiredError}
|
|
226
286
|
*/
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
287
|
+
public showDeploymentHostDetail(showDeploymentHostDetailRequest?: ShowDeploymentHostDetailRequest): Promise<ShowDeploymentHostDetailResponse> {
|
|
288
|
+
const options = ParamCreater().showDeploymentHostDetail(showDeploymentHostDetailRequest);
|
|
289
|
+
|
|
290
|
+
// @ts-ignore
|
|
230
291
|
options['responseHeaders'] = [''];
|
|
292
|
+
|
|
231
293
|
return this.hcClient.sendRequest(options);
|
|
232
|
-
}
|
|
294
|
+
}
|
|
295
|
+
|
|
233
296
|
/**
|
|
234
297
|
* 根据主机id修改主机信息。
|
|
235
|
-
*
|
|
298
|
+
*
|
|
236
299
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
237
300
|
*
|
|
238
301
|
* @summary 修改主机
|
|
@@ -243,15 +306,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
243
306
|
* @param {*} [options] Override http request option.
|
|
244
307
|
* @throws {RequiredError}
|
|
245
308
|
*/
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
309
|
+
public updateDeploymentHost(updateDeploymentHostRequest?: UpdateDeploymentHostRequest): Promise<UpdateDeploymentHostResponse> {
|
|
310
|
+
const options = ParamCreater().updateDeploymentHost(updateDeploymentHostRequest);
|
|
311
|
+
|
|
312
|
+
// @ts-ignore
|
|
249
313
|
options['responseHeaders'] = [''];
|
|
314
|
+
|
|
250
315
|
return this.hcClient.sendRequest(options);
|
|
251
|
-
}
|
|
316
|
+
}
|
|
317
|
+
|
|
252
318
|
/**
|
|
253
319
|
* 在项目下新建主机集群。
|
|
254
|
-
*
|
|
320
|
+
*
|
|
255
321
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
256
322
|
*
|
|
257
323
|
* @summary 新建主机集群
|
|
@@ -260,15 +326,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
260
326
|
* @param {*} [options] Override http request option.
|
|
261
327
|
* @throws {RequiredError}
|
|
262
328
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
329
|
+
public createDeploymentGroup(createDeploymentGroupRequest?: CreateDeploymentGroupRequest): Promise<CreateDeploymentGroupResponse> {
|
|
330
|
+
const options = ParamCreater().createDeploymentGroup(createDeploymentGroupRequest);
|
|
331
|
+
|
|
332
|
+
// @ts-ignore
|
|
266
333
|
options['responseHeaders'] = [''];
|
|
334
|
+
|
|
267
335
|
return this.hcClient.sendRequest(options);
|
|
268
|
-
}
|
|
336
|
+
}
|
|
337
|
+
|
|
269
338
|
/**
|
|
270
339
|
* 根据主机集群id删除主机集群。
|
|
271
|
-
*
|
|
340
|
+
*
|
|
272
341
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
273
342
|
*
|
|
274
343
|
* @summary 删除主机集群
|
|
@@ -277,15 +346,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
277
346
|
* @param {*} [options] Override http request option.
|
|
278
347
|
* @throws {RequiredError}
|
|
279
348
|
*/
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
349
|
+
public deleteDeploymentGroup(deleteDeploymentGroupRequest?: DeleteDeploymentGroupRequest): Promise<DeleteDeploymentGroupResponse> {
|
|
350
|
+
const options = ParamCreater().deleteDeploymentGroup(deleteDeploymentGroupRequest);
|
|
351
|
+
|
|
352
|
+
// @ts-ignore
|
|
283
353
|
options['responseHeaders'] = [''];
|
|
354
|
+
|
|
284
355
|
return this.hcClient.sendRequest(options);
|
|
285
|
-
}
|
|
356
|
+
}
|
|
357
|
+
|
|
286
358
|
/**
|
|
287
359
|
* 按条件查询主机集群列表。
|
|
288
|
-
*
|
|
360
|
+
*
|
|
289
361
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
290
362
|
*
|
|
291
363
|
* @summary 查询主机集群列表
|
|
@@ -300,15 +372,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
300
372
|
* @param {*} [options] Override http request option.
|
|
301
373
|
* @throws {RequiredError}
|
|
302
374
|
*/
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
375
|
+
public listHostGroups(listHostGroupsRequest?: ListHostGroupsRequest): Promise<ListHostGroupsResponse> {
|
|
376
|
+
const options = ParamCreater().listHostGroups(listHostGroupsRequest);
|
|
377
|
+
|
|
378
|
+
// @ts-ignore
|
|
306
379
|
options['responseHeaders'] = [''];
|
|
380
|
+
|
|
307
381
|
return this.hcClient.sendRequest(options);
|
|
308
|
-
}
|
|
382
|
+
}
|
|
383
|
+
|
|
309
384
|
/**
|
|
310
385
|
* 根据主机集群id查询主机集群详情。
|
|
311
|
-
*
|
|
386
|
+
*
|
|
312
387
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
313
388
|
*
|
|
314
389
|
* @summary 查询主机集群
|
|
@@ -316,15 +391,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
316
391
|
* @param {*} [options] Override http request option.
|
|
317
392
|
* @throws {RequiredError}
|
|
318
393
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
394
|
+
public showDeploymentGroupDetail(showDeploymentGroupDetailRequest?: ShowDeploymentGroupDetailRequest): Promise<ShowDeploymentGroupDetailResponse> {
|
|
395
|
+
const options = ParamCreater().showDeploymentGroupDetail(showDeploymentGroupDetailRequest);
|
|
396
|
+
|
|
397
|
+
// @ts-ignore
|
|
322
398
|
options['responseHeaders'] = [''];
|
|
399
|
+
|
|
323
400
|
return this.hcClient.sendRequest(options);
|
|
324
|
-
}
|
|
401
|
+
}
|
|
402
|
+
|
|
325
403
|
/**
|
|
326
404
|
* 根据主机集群id修改主机集群信息。
|
|
327
|
-
*
|
|
405
|
+
*
|
|
328
406
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
329
407
|
*
|
|
330
408
|
* @summary 修改主机集群
|
|
@@ -334,15 +412,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
334
412
|
* @param {*} [options] Override http request option.
|
|
335
413
|
* @throws {RequiredError}
|
|
336
414
|
*/
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
415
|
+
public updateDeploymentGroup(updateDeploymentGroupRequest?: UpdateDeploymentGroupRequest): Promise<UpdateDeploymentGroupResponse> {
|
|
416
|
+
const options = ParamCreater().updateDeploymentGroup(updateDeploymentGroupRequest);
|
|
417
|
+
|
|
418
|
+
// @ts-ignore
|
|
340
419
|
options['responseHeaders'] = [''];
|
|
420
|
+
|
|
341
421
|
return this.hcClient.sendRequest(options);
|
|
342
|
-
}
|
|
422
|
+
}
|
|
423
|
+
|
|
343
424
|
/**
|
|
344
425
|
* 获取指定应用的应用部署成功率
|
|
345
|
-
*
|
|
426
|
+
*
|
|
346
427
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
347
428
|
*
|
|
348
429
|
* @summary 获取指定应用的应用部署成功率
|
|
@@ -351,15 +432,18 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
351
432
|
* @param {*} [options] Override http request option.
|
|
352
433
|
* @throws {RequiredError}
|
|
353
434
|
*/
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
435
|
+
public listTaskSuccessRate(listTaskSuccessRateRequest?: ListTaskSuccessRateRequest): Promise<ListTaskSuccessRateResponse> {
|
|
436
|
+
const options = ParamCreater().listTaskSuccessRate(listTaskSuccessRateRequest);
|
|
437
|
+
|
|
438
|
+
// @ts-ignore
|
|
357
439
|
options['responseHeaders'] = [''];
|
|
440
|
+
|
|
358
441
|
return this.hcClient.sendRequest(options);
|
|
359
|
-
}
|
|
442
|
+
}
|
|
443
|
+
|
|
360
444
|
/**
|
|
361
445
|
* 获取指定项目的应用部署成功率
|
|
362
|
-
*
|
|
446
|
+
*
|
|
363
447
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
364
448
|
*
|
|
365
449
|
* @summary 获取指定项目的应用部署成功率
|
|
@@ -369,24 +453,26 @@ var CodeArtsDeployClient = /** @class */ (function () {
|
|
|
369
453
|
* @param {*} [options] Override http request option.
|
|
370
454
|
* @throws {RequiredError}
|
|
371
455
|
*/
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
456
|
+
public showProjectSuccessRate(showProjectSuccessRateRequest?: ShowProjectSuccessRateRequest): Promise<ShowProjectSuccessRateResponse> {
|
|
457
|
+
const options = ParamCreater().showProjectSuccessRate(showProjectSuccessRateRequest);
|
|
458
|
+
|
|
459
|
+
// @ts-ignore
|
|
375
460
|
options['responseHeaders'] = [''];
|
|
461
|
+
|
|
376
462
|
return this.hcClient.sendRequest(options);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
var ParamCreater = function () {
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export const ParamCreater = function () {
|
|
382
467
|
return {
|
|
468
|
+
|
|
383
469
|
/**
|
|
384
470
|
* 通过模板新建应用。
|
|
385
|
-
*
|
|
471
|
+
*
|
|
386
472
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
387
473
|
*/
|
|
388
|
-
createDeployTaskByTemplate
|
|
389
|
-
|
|
474
|
+
createDeployTaskByTemplate(createDeployTaskByTemplateRequest?: CreateDeployTaskByTemplateRequest) {
|
|
475
|
+
const options = {
|
|
390
476
|
method: "POST",
|
|
391
477
|
url: "/v2/tasks/template-task",
|
|
392
478
|
contentType: "application/json",
|
|
@@ -395,37 +481,43 @@ var ParamCreater = function () {
|
|
|
395
481
|
headers: {},
|
|
396
482
|
data: {}
|
|
397
483
|
};
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
484
|
+
const localVarHeaderParameter = {} as any;
|
|
485
|
+
|
|
486
|
+
let body: any;
|
|
487
|
+
|
|
488
|
+
let contentType;
|
|
489
|
+
|
|
401
490
|
if (createDeployTaskByTemplateRequest !== null && createDeployTaskByTemplateRequest !== undefined) {
|
|
402
|
-
if (createDeployTaskByTemplateRequest instanceof
|
|
491
|
+
if (createDeployTaskByTemplateRequest instanceof CreateDeployTaskByTemplateRequest) {
|
|
403
492
|
contentType = createDeployTaskByTemplateRequest.contentType;
|
|
404
|
-
body = createDeployTaskByTemplateRequest.body
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
493
|
+
body = createDeployTaskByTemplateRequest.body
|
|
494
|
+
} else {
|
|
407
495
|
contentType = createDeployTaskByTemplateRequest['Content-Type'];
|
|
408
496
|
body = createDeployTaskByTemplateRequest['body'];
|
|
409
497
|
}
|
|
410
498
|
}
|
|
499
|
+
|
|
500
|
+
|
|
411
501
|
if (body === null || body === undefined) {
|
|
412
|
-
throw new RequiredError('body',
|
|
502
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
413
503
|
}
|
|
414
504
|
if (contentType !== undefined && contentType !== null) {
|
|
415
505
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
416
506
|
}
|
|
417
507
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
508
|
+
|
|
418
509
|
options.data = body !== undefined ? body : {};
|
|
419
510
|
options.headers = localVarHeaderParameter;
|
|
420
511
|
return options;
|
|
421
512
|
},
|
|
513
|
+
|
|
422
514
|
/**
|
|
423
515
|
* 根据部署任务id删除应用。
|
|
424
|
-
*
|
|
516
|
+
*
|
|
425
517
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
426
518
|
*/
|
|
427
|
-
deleteDeployTask
|
|
428
|
-
|
|
519
|
+
deleteDeployTask(deleteDeployTaskRequest?: DeleteDeployTaskRequest) {
|
|
520
|
+
const options = {
|
|
429
521
|
method: "DELETE",
|
|
430
522
|
url: "/v2/tasks/{task_id}",
|
|
431
523
|
contentType: "application/json",
|
|
@@ -433,36 +525,43 @@ var ParamCreater = function () {
|
|
|
433
525
|
pathParams: {},
|
|
434
526
|
headers: {}
|
|
435
527
|
};
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
528
|
+
const localVarHeaderParameter = {} as any;
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
let taskId;
|
|
532
|
+
|
|
533
|
+
let contentType;
|
|
534
|
+
|
|
439
535
|
if (deleteDeployTaskRequest !== null && deleteDeployTaskRequest !== undefined) {
|
|
440
|
-
if (deleteDeployTaskRequest instanceof
|
|
536
|
+
if (deleteDeployTaskRequest instanceof DeleteDeployTaskRequest) {
|
|
441
537
|
taskId = deleteDeployTaskRequest.taskId;
|
|
442
538
|
contentType = deleteDeployTaskRequest.contentType;
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
539
|
+
} else {
|
|
445
540
|
taskId = deleteDeployTaskRequest['task_id'];
|
|
446
541
|
contentType = deleteDeployTaskRequest['Content-Type'];
|
|
447
542
|
}
|
|
448
543
|
}
|
|
544
|
+
|
|
545
|
+
|
|
449
546
|
if (taskId === null || taskId === undefined) {
|
|
450
|
-
|
|
547
|
+
throw new RequiredError('taskId','Required parameter taskId was null or undefined when calling deleteDeployTask.');
|
|
451
548
|
}
|
|
452
549
|
if (contentType !== undefined && contentType !== null) {
|
|
453
550
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
454
551
|
}
|
|
552
|
+
|
|
455
553
|
options.pathParams = { 'task_id': taskId, };
|
|
456
554
|
options.headers = localVarHeaderParameter;
|
|
457
555
|
return options;
|
|
458
556
|
},
|
|
557
|
+
|
|
459
558
|
/**
|
|
460
559
|
* 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表
|
|
461
|
-
*
|
|
560
|
+
*
|
|
462
561
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
463
562
|
*/
|
|
464
|
-
listDeployTaskHistoryByDate
|
|
465
|
-
|
|
563
|
+
listDeployTaskHistoryByDate(listDeployTaskHistoryByDateRequest?: ListDeployTaskHistoryByDateRequest) {
|
|
564
|
+
const options = {
|
|
466
565
|
method: "GET",
|
|
467
566
|
url: "/v2/{project_id}/task/{id}/history",
|
|
468
567
|
contentType: "application/json",
|
|
@@ -470,17 +569,25 @@ var ParamCreater = function () {
|
|
|
470
569
|
pathParams: {},
|
|
471
570
|
headers: {}
|
|
472
571
|
};
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
572
|
+
const localVarHeaderParameter = {} as any;
|
|
573
|
+
const localVarQueryParameter = {} as any;
|
|
574
|
+
|
|
575
|
+
let projectId;
|
|
576
|
+
|
|
577
|
+
let id;
|
|
578
|
+
|
|
579
|
+
let page;
|
|
580
|
+
|
|
581
|
+
let size;
|
|
582
|
+
|
|
583
|
+
let startDate;
|
|
584
|
+
|
|
585
|
+
let endDate;
|
|
586
|
+
|
|
587
|
+
let contentType;
|
|
588
|
+
|
|
482
589
|
if (listDeployTaskHistoryByDateRequest !== null && listDeployTaskHistoryByDateRequest !== undefined) {
|
|
483
|
-
if (listDeployTaskHistoryByDateRequest instanceof
|
|
590
|
+
if (listDeployTaskHistoryByDateRequest instanceof ListDeployTaskHistoryByDateRequest) {
|
|
484
591
|
projectId = listDeployTaskHistoryByDateRequest.projectId;
|
|
485
592
|
id = listDeployTaskHistoryByDateRequest.id;
|
|
486
593
|
page = listDeployTaskHistoryByDateRequest.page;
|
|
@@ -488,8 +595,7 @@ var ParamCreater = function () {
|
|
|
488
595
|
startDate = listDeployTaskHistoryByDateRequest.startDate;
|
|
489
596
|
endDate = listDeployTaskHistoryByDateRequest.endDate;
|
|
490
597
|
contentType = listDeployTaskHistoryByDateRequest.contentType;
|
|
491
|
-
}
|
|
492
|
-
else {
|
|
598
|
+
} else {
|
|
493
599
|
projectId = listDeployTaskHistoryByDateRequest['project_id'];
|
|
494
600
|
id = listDeployTaskHistoryByDateRequest['id'];
|
|
495
601
|
page = listDeployTaskHistoryByDateRequest['page'];
|
|
@@ -499,32 +605,34 @@ var ParamCreater = function () {
|
|
|
499
605
|
contentType = listDeployTaskHistoryByDateRequest['Content-Type'];
|
|
500
606
|
}
|
|
501
607
|
}
|
|
608
|
+
|
|
609
|
+
|
|
502
610
|
if (projectId === null || projectId === undefined) {
|
|
503
|
-
|
|
611
|
+
throw new RequiredError('projectId','Required parameter projectId was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
504
612
|
}
|
|
505
613
|
if (id === null || id === undefined) {
|
|
506
|
-
|
|
614
|
+
throw new RequiredError('id','Required parameter id was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
507
615
|
}
|
|
508
616
|
if (page === null || page === undefined) {
|
|
509
|
-
throw new RequiredError('page',
|
|
617
|
+
throw new RequiredError('page','Required parameter page was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
510
618
|
}
|
|
511
619
|
if (page !== null && page !== undefined) {
|
|
512
620
|
localVarQueryParameter['page'] = page;
|
|
513
621
|
}
|
|
514
622
|
if (size === null || size === undefined) {
|
|
515
|
-
throw new RequiredError('size',
|
|
623
|
+
throw new RequiredError('size','Required parameter size was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
516
624
|
}
|
|
517
625
|
if (size !== null && size !== undefined) {
|
|
518
626
|
localVarQueryParameter['size'] = size;
|
|
519
627
|
}
|
|
520
628
|
if (startDate === null || startDate === undefined) {
|
|
521
|
-
throw new RequiredError('startDate',
|
|
629
|
+
throw new RequiredError('startDate','Required parameter startDate was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
522
630
|
}
|
|
523
631
|
if (startDate !== null && startDate !== undefined) {
|
|
524
632
|
localVarQueryParameter['start_date'] = startDate;
|
|
525
633
|
}
|
|
526
634
|
if (endDate === null || endDate === undefined) {
|
|
527
|
-
throw new RequiredError('endDate',
|
|
635
|
+
throw new RequiredError('endDate','Required parameter endDate was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
528
636
|
}
|
|
529
637
|
if (endDate !== null && endDate !== undefined) {
|
|
530
638
|
localVarQueryParameter['end_date'] = endDate;
|
|
@@ -532,18 +640,20 @@ var ParamCreater = function () {
|
|
|
532
640
|
if (contentType !== undefined && contentType !== null) {
|
|
533
641
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
534
642
|
}
|
|
643
|
+
|
|
535
644
|
options.queryParams = localVarQueryParameter;
|
|
536
|
-
options.pathParams = { 'project_id': projectId,
|
|
645
|
+
options.pathParams = { 'project_id': projectId,'id': id, };
|
|
537
646
|
options.headers = localVarHeaderParameter;
|
|
538
647
|
return options;
|
|
539
648
|
},
|
|
649
|
+
|
|
540
650
|
/**
|
|
541
651
|
* 查询项目下应用列表
|
|
542
|
-
*
|
|
652
|
+
*
|
|
543
653
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
544
654
|
*/
|
|
545
|
-
listDeployTasks
|
|
546
|
-
|
|
655
|
+
listDeployTasks(listDeployTasksRequest?: ListDeployTasksRequest) {
|
|
656
|
+
const options = {
|
|
547
657
|
method: "GET",
|
|
548
658
|
url: "/v2/{project_id}/tasks/list",
|
|
549
659
|
contentType: "application/json",
|
|
@@ -551,37 +661,43 @@ var ParamCreater = function () {
|
|
|
551
661
|
pathParams: {},
|
|
552
662
|
headers: {}
|
|
553
663
|
};
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
664
|
+
const localVarHeaderParameter = {} as any;
|
|
665
|
+
const localVarQueryParameter = {} as any;
|
|
666
|
+
|
|
667
|
+
let projectId;
|
|
668
|
+
|
|
669
|
+
let contentType;
|
|
670
|
+
|
|
671
|
+
let page;
|
|
672
|
+
|
|
673
|
+
let size;
|
|
674
|
+
|
|
560
675
|
if (listDeployTasksRequest !== null && listDeployTasksRequest !== undefined) {
|
|
561
|
-
if (listDeployTasksRequest instanceof
|
|
676
|
+
if (listDeployTasksRequest instanceof ListDeployTasksRequest) {
|
|
562
677
|
projectId = listDeployTasksRequest.projectId;
|
|
563
678
|
contentType = listDeployTasksRequest.contentType;
|
|
564
679
|
page = listDeployTasksRequest.page;
|
|
565
680
|
size = listDeployTasksRequest.size;
|
|
566
|
-
}
|
|
567
|
-
else {
|
|
681
|
+
} else {
|
|
568
682
|
projectId = listDeployTasksRequest['project_id'];
|
|
569
683
|
contentType = listDeployTasksRequest['Content-Type'];
|
|
570
684
|
page = listDeployTasksRequest['page'];
|
|
571
685
|
size = listDeployTasksRequest['size'];
|
|
572
686
|
}
|
|
573
687
|
}
|
|
688
|
+
|
|
689
|
+
|
|
574
690
|
if (projectId === null || projectId === undefined) {
|
|
575
|
-
|
|
691
|
+
throw new RequiredError('projectId','Required parameter projectId was null or undefined when calling listDeployTasks.');
|
|
576
692
|
}
|
|
577
693
|
if (page === null || page === undefined) {
|
|
578
|
-
throw new RequiredError('page',
|
|
694
|
+
throw new RequiredError('page','Required parameter page was null or undefined when calling listDeployTasks.');
|
|
579
695
|
}
|
|
580
696
|
if (page !== null && page !== undefined) {
|
|
581
697
|
localVarQueryParameter['page'] = page;
|
|
582
698
|
}
|
|
583
699
|
if (size === null || size === undefined) {
|
|
584
|
-
throw new RequiredError('size',
|
|
700
|
+
throw new RequiredError('size','Required parameter size was null or undefined when calling listDeployTasks.');
|
|
585
701
|
}
|
|
586
702
|
if (size !== null && size !== undefined) {
|
|
587
703
|
localVarQueryParameter['size'] = size;
|
|
@@ -589,18 +705,20 @@ var ParamCreater = function () {
|
|
|
589
705
|
if (contentType !== undefined && contentType !== null) {
|
|
590
706
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
591
707
|
}
|
|
708
|
+
|
|
592
709
|
options.queryParams = localVarQueryParameter;
|
|
593
710
|
options.pathParams = { 'project_id': projectId, };
|
|
594
711
|
options.headers = localVarHeaderParameter;
|
|
595
712
|
return options;
|
|
596
713
|
},
|
|
714
|
+
|
|
597
715
|
/**
|
|
598
716
|
* 根据部署任务id获取应用详情。
|
|
599
|
-
*
|
|
717
|
+
*
|
|
600
718
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
601
719
|
*/
|
|
602
|
-
showDeployTaskDetail
|
|
603
|
-
|
|
720
|
+
showDeployTaskDetail(showDeployTaskDetailRequest?: ShowDeployTaskDetailRequest) {
|
|
721
|
+
const options = {
|
|
604
722
|
method: "GET",
|
|
605
723
|
url: "/v2/tasks/{task_id}",
|
|
606
724
|
contentType: "application/json",
|
|
@@ -608,30 +726,36 @@ var ParamCreater = function () {
|
|
|
608
726
|
pathParams: {},
|
|
609
727
|
headers: {}
|
|
610
728
|
};
|
|
611
|
-
|
|
612
|
-
|
|
729
|
+
const localVarHeaderParameter = {} as any;
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
let taskId;
|
|
733
|
+
|
|
613
734
|
if (showDeployTaskDetailRequest !== null && showDeployTaskDetailRequest !== undefined) {
|
|
614
|
-
if (showDeployTaskDetailRequest instanceof
|
|
735
|
+
if (showDeployTaskDetailRequest instanceof ShowDeployTaskDetailRequest) {
|
|
615
736
|
taskId = showDeployTaskDetailRequest.taskId;
|
|
616
|
-
}
|
|
617
|
-
else {
|
|
737
|
+
} else {
|
|
618
738
|
taskId = showDeployTaskDetailRequest['task_id'];
|
|
619
739
|
}
|
|
620
740
|
}
|
|
741
|
+
|
|
742
|
+
|
|
621
743
|
if (taskId === null || taskId === undefined) {
|
|
622
|
-
|
|
744
|
+
throw new RequiredError('taskId','Required parameter taskId was null or undefined when calling showDeployTaskDetail.');
|
|
623
745
|
}
|
|
746
|
+
|
|
624
747
|
options.pathParams = { 'task_id': taskId, };
|
|
625
748
|
options.headers = localVarHeaderParameter;
|
|
626
749
|
return options;
|
|
627
750
|
},
|
|
751
|
+
|
|
628
752
|
/**
|
|
629
753
|
* 根据部署任务id部署应用。
|
|
630
|
-
*
|
|
754
|
+
*
|
|
631
755
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
632
756
|
*/
|
|
633
|
-
startDeployTask
|
|
634
|
-
|
|
757
|
+
startDeployTask(startDeployTaskRequest?: StartDeployTaskRequest) {
|
|
758
|
+
const options = {
|
|
635
759
|
method: "POST",
|
|
636
760
|
url: "/v2/tasks/{task_id}/start",
|
|
637
761
|
contentType: "application/json",
|
|
@@ -640,44 +764,51 @@ var ParamCreater = function () {
|
|
|
640
764
|
headers: {},
|
|
641
765
|
data: {}
|
|
642
766
|
};
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
767
|
+
const localVarHeaderParameter = {} as any;
|
|
768
|
+
|
|
769
|
+
let body: any;
|
|
770
|
+
|
|
771
|
+
let taskId;
|
|
772
|
+
|
|
773
|
+
let contentType;
|
|
774
|
+
|
|
647
775
|
if (startDeployTaskRequest !== null && startDeployTaskRequest !== undefined) {
|
|
648
|
-
if (startDeployTaskRequest instanceof
|
|
776
|
+
if (startDeployTaskRequest instanceof StartDeployTaskRequest) {
|
|
649
777
|
taskId = startDeployTaskRequest.taskId;
|
|
650
778
|
contentType = startDeployTaskRequest.contentType;
|
|
651
|
-
body = startDeployTaskRequest.body
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
779
|
+
body = startDeployTaskRequest.body
|
|
780
|
+
} else {
|
|
654
781
|
taskId = startDeployTaskRequest['task_id'];
|
|
655
782
|
contentType = startDeployTaskRequest['Content-Type'];
|
|
656
783
|
body = startDeployTaskRequest['body'];
|
|
657
784
|
}
|
|
658
785
|
}
|
|
786
|
+
|
|
787
|
+
|
|
659
788
|
if (taskId === null || taskId === undefined) {
|
|
660
|
-
|
|
789
|
+
throw new RequiredError('taskId','Required parameter taskId was null or undefined when calling startDeployTask.');
|
|
661
790
|
}
|
|
662
791
|
if (body === null || body === undefined) {
|
|
663
|
-
throw new RequiredError('body',
|
|
792
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
664
793
|
}
|
|
665
794
|
if (contentType !== undefined && contentType !== null) {
|
|
666
795
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
667
796
|
}
|
|
668
797
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
798
|
+
|
|
669
799
|
options.data = body !== undefined ? body : {};
|
|
670
800
|
options.pathParams = { 'task_id': taskId, };
|
|
671
801
|
options.headers = localVarHeaderParameter;
|
|
672
802
|
return options;
|
|
673
803
|
},
|
|
804
|
+
|
|
674
805
|
/**
|
|
675
806
|
* 在指定主机集群下新建主机。
|
|
676
|
-
*
|
|
807
|
+
*
|
|
677
808
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
678
809
|
*/
|
|
679
|
-
createDeploymentHost
|
|
680
|
-
|
|
810
|
+
createDeploymentHost(createDeploymentHostRequest?: CreateDeploymentHostRequest) {
|
|
811
|
+
const options = {
|
|
681
812
|
method: "POST",
|
|
682
813
|
url: "/v2/host-groups/{group_id}/hosts",
|
|
683
814
|
contentType: "application/json",
|
|
@@ -686,44 +817,51 @@ var ParamCreater = function () {
|
|
|
686
817
|
headers: {},
|
|
687
818
|
data: {}
|
|
688
819
|
};
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
820
|
+
const localVarHeaderParameter = {} as any;
|
|
821
|
+
|
|
822
|
+
let body: any;
|
|
823
|
+
|
|
824
|
+
let groupId;
|
|
825
|
+
|
|
826
|
+
let contentType;
|
|
827
|
+
|
|
693
828
|
if (createDeploymentHostRequest !== null && createDeploymentHostRequest !== undefined) {
|
|
694
|
-
if (createDeploymentHostRequest instanceof
|
|
829
|
+
if (createDeploymentHostRequest instanceof CreateDeploymentHostRequest) {
|
|
695
830
|
groupId = createDeploymentHostRequest.groupId;
|
|
696
831
|
contentType = createDeploymentHostRequest.contentType;
|
|
697
|
-
body = createDeploymentHostRequest.body
|
|
698
|
-
}
|
|
699
|
-
else {
|
|
832
|
+
body = createDeploymentHostRequest.body
|
|
833
|
+
} else {
|
|
700
834
|
groupId = createDeploymentHostRequest['group_id'];
|
|
701
835
|
contentType = createDeploymentHostRequest['Content-Type'];
|
|
702
836
|
body = createDeploymentHostRequest['body'];
|
|
703
837
|
}
|
|
704
838
|
}
|
|
839
|
+
|
|
840
|
+
|
|
705
841
|
if (groupId === null || groupId === undefined) {
|
|
706
|
-
|
|
842
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling createDeploymentHost.');
|
|
707
843
|
}
|
|
708
844
|
if (body === null || body === undefined) {
|
|
709
|
-
throw new RequiredError('body',
|
|
845
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
710
846
|
}
|
|
711
847
|
if (contentType !== undefined && contentType !== null) {
|
|
712
848
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
713
849
|
}
|
|
714
850
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
851
|
+
|
|
715
852
|
options.data = body !== undefined ? body : {};
|
|
716
853
|
options.pathParams = { 'group_id': groupId, };
|
|
717
854
|
options.headers = localVarHeaderParameter;
|
|
718
855
|
return options;
|
|
719
856
|
},
|
|
857
|
+
|
|
720
858
|
/**
|
|
721
859
|
* 根据主机id删除主机。
|
|
722
|
-
*
|
|
860
|
+
*
|
|
723
861
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
724
862
|
*/
|
|
725
|
-
deleteDeploymentHost
|
|
726
|
-
|
|
863
|
+
deleteDeploymentHost(deleteDeploymentHostRequest?: DeleteDeploymentHostRequest) {
|
|
864
|
+
const options = {
|
|
727
865
|
method: "DELETE",
|
|
728
866
|
url: "/v2/host-groups/{group_id}/hosts/{host_id}",
|
|
729
867
|
contentType: "application/json",
|
|
@@ -731,42 +869,50 @@ var ParamCreater = function () {
|
|
|
731
869
|
pathParams: {},
|
|
732
870
|
headers: {}
|
|
733
871
|
};
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
872
|
+
const localVarHeaderParameter = {} as any;
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
let groupId;
|
|
876
|
+
|
|
877
|
+
let hostId;
|
|
878
|
+
|
|
879
|
+
let contentType;
|
|
880
|
+
|
|
738
881
|
if (deleteDeploymentHostRequest !== null && deleteDeploymentHostRequest !== undefined) {
|
|
739
|
-
if (deleteDeploymentHostRequest instanceof
|
|
882
|
+
if (deleteDeploymentHostRequest instanceof DeleteDeploymentHostRequest) {
|
|
740
883
|
groupId = deleteDeploymentHostRequest.groupId;
|
|
741
884
|
hostId = deleteDeploymentHostRequest.hostId;
|
|
742
885
|
contentType = deleteDeploymentHostRequest.contentType;
|
|
743
|
-
}
|
|
744
|
-
else {
|
|
886
|
+
} else {
|
|
745
887
|
groupId = deleteDeploymentHostRequest['group_id'];
|
|
746
888
|
hostId = deleteDeploymentHostRequest['host_id'];
|
|
747
889
|
contentType = deleteDeploymentHostRequest['Content-Type'];
|
|
748
890
|
}
|
|
749
891
|
}
|
|
892
|
+
|
|
893
|
+
|
|
750
894
|
if (groupId === null || groupId === undefined) {
|
|
751
|
-
|
|
895
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling deleteDeploymentHost.');
|
|
752
896
|
}
|
|
753
897
|
if (hostId === null || hostId === undefined) {
|
|
754
|
-
|
|
898
|
+
throw new RequiredError('hostId','Required parameter hostId was null or undefined when calling deleteDeploymentHost.');
|
|
755
899
|
}
|
|
756
900
|
if (contentType !== undefined && contentType !== null) {
|
|
757
901
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
758
902
|
}
|
|
759
|
-
|
|
903
|
+
|
|
904
|
+
options.pathParams = { 'group_id': groupId,'host_id': hostId, };
|
|
760
905
|
options.headers = localVarHeaderParameter;
|
|
761
906
|
return options;
|
|
762
907
|
},
|
|
908
|
+
|
|
763
909
|
/**
|
|
764
910
|
* 根据主机集群id查询指定主机集群下的主机列表。
|
|
765
|
-
*
|
|
911
|
+
*
|
|
766
912
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
767
913
|
*/
|
|
768
|
-
listHosts
|
|
769
|
-
|
|
914
|
+
listHosts(listHostsRequest?: ListHostsRequest) {
|
|
915
|
+
const options = {
|
|
770
916
|
method: "GET",
|
|
771
917
|
url: "/v2/host-groups/{group_id}/hosts",
|
|
772
918
|
contentType: "application/json",
|
|
@@ -774,18 +920,27 @@ var ParamCreater = function () {
|
|
|
774
920
|
pathParams: {},
|
|
775
921
|
headers: {}
|
|
776
922
|
};
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
923
|
+
const localVarHeaderParameter = {} as any;
|
|
924
|
+
const localVarQueryParameter = {} as any;
|
|
925
|
+
|
|
926
|
+
let groupId;
|
|
927
|
+
|
|
928
|
+
let asProxy;
|
|
929
|
+
|
|
930
|
+
let offset;
|
|
931
|
+
|
|
932
|
+
let limit;
|
|
933
|
+
|
|
934
|
+
let name;
|
|
935
|
+
|
|
936
|
+
let sortKey;
|
|
937
|
+
|
|
938
|
+
let sortDir;
|
|
939
|
+
|
|
940
|
+
let withAuth;
|
|
941
|
+
|
|
787
942
|
if (listHostsRequest !== null && listHostsRequest !== undefined) {
|
|
788
|
-
if (listHostsRequest instanceof
|
|
943
|
+
if (listHostsRequest instanceof ListHostsRequest) {
|
|
789
944
|
groupId = listHostsRequest.groupId;
|
|
790
945
|
asProxy = listHostsRequest.asProxy;
|
|
791
946
|
offset = listHostsRequest.offset;
|
|
@@ -794,8 +949,7 @@ var ParamCreater = function () {
|
|
|
794
949
|
sortKey = listHostsRequest.sortKey;
|
|
795
950
|
sortDir = listHostsRequest.sortDir;
|
|
796
951
|
withAuth = listHostsRequest.withAuth;
|
|
797
|
-
}
|
|
798
|
-
else {
|
|
952
|
+
} else {
|
|
799
953
|
groupId = listHostsRequest['group_id'];
|
|
800
954
|
asProxy = listHostsRequest['as_proxy'];
|
|
801
955
|
offset = listHostsRequest['offset'];
|
|
@@ -806,8 +960,10 @@ var ParamCreater = function () {
|
|
|
806
960
|
withAuth = listHostsRequest['with_auth'];
|
|
807
961
|
}
|
|
808
962
|
}
|
|
963
|
+
|
|
964
|
+
|
|
809
965
|
if (groupId === null || groupId === undefined) {
|
|
810
|
-
|
|
966
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling listHosts.');
|
|
811
967
|
}
|
|
812
968
|
if (asProxy !== null && asProxy !== undefined) {
|
|
813
969
|
localVarQueryParameter['as_proxy'] = asProxy;
|
|
@@ -830,18 +986,20 @@ var ParamCreater = function () {
|
|
|
830
986
|
if (withAuth !== null && withAuth !== undefined) {
|
|
831
987
|
localVarQueryParameter['with_auth'] = withAuth;
|
|
832
988
|
}
|
|
989
|
+
|
|
833
990
|
options.queryParams = localVarQueryParameter;
|
|
834
991
|
options.pathParams = { 'group_id': groupId, };
|
|
835
992
|
options.headers = localVarHeaderParameter;
|
|
836
993
|
return options;
|
|
837
994
|
},
|
|
995
|
+
|
|
838
996
|
/**
|
|
839
997
|
* 根据主机id查询主机详情。
|
|
840
|
-
*
|
|
998
|
+
*
|
|
841
999
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
842
1000
|
*/
|
|
843
|
-
showDeploymentHostDetail
|
|
844
|
-
|
|
1001
|
+
showDeploymentHostDetail(showDeploymentHostDetailRequest?: ShowDeploymentHostDetailRequest) {
|
|
1002
|
+
const options = {
|
|
845
1003
|
method: "GET",
|
|
846
1004
|
url: "/v2/host-groups/{group_id}/hosts/{host_id}",
|
|
847
1005
|
contentType: "application/json",
|
|
@@ -849,36 +1007,43 @@ var ParamCreater = function () {
|
|
|
849
1007
|
pathParams: {},
|
|
850
1008
|
headers: {}
|
|
851
1009
|
};
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1010
|
+
const localVarHeaderParameter = {} as any;
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
let groupId;
|
|
1014
|
+
|
|
1015
|
+
let hostId;
|
|
1016
|
+
|
|
855
1017
|
if (showDeploymentHostDetailRequest !== null && showDeploymentHostDetailRequest !== undefined) {
|
|
856
|
-
if (showDeploymentHostDetailRequest instanceof
|
|
1018
|
+
if (showDeploymentHostDetailRequest instanceof ShowDeploymentHostDetailRequest) {
|
|
857
1019
|
groupId = showDeploymentHostDetailRequest.groupId;
|
|
858
1020
|
hostId = showDeploymentHostDetailRequest.hostId;
|
|
859
|
-
}
|
|
860
|
-
else {
|
|
1021
|
+
} else {
|
|
861
1022
|
groupId = showDeploymentHostDetailRequest['group_id'];
|
|
862
1023
|
hostId = showDeploymentHostDetailRequest['host_id'];
|
|
863
1024
|
}
|
|
864
1025
|
}
|
|
1026
|
+
|
|
1027
|
+
|
|
865
1028
|
if (groupId === null || groupId === undefined) {
|
|
866
|
-
|
|
1029
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling showDeploymentHostDetail.');
|
|
867
1030
|
}
|
|
868
1031
|
if (hostId === null || hostId === undefined) {
|
|
869
|
-
|
|
1032
|
+
throw new RequiredError('hostId','Required parameter hostId was null or undefined when calling showDeploymentHostDetail.');
|
|
870
1033
|
}
|
|
871
|
-
|
|
1034
|
+
|
|
1035
|
+
options.pathParams = { 'group_id': groupId,'host_id': hostId, };
|
|
872
1036
|
options.headers = localVarHeaderParameter;
|
|
873
1037
|
return options;
|
|
874
1038
|
},
|
|
1039
|
+
|
|
875
1040
|
/**
|
|
876
1041
|
* 根据主机id修改主机信息。
|
|
877
|
-
*
|
|
1042
|
+
*
|
|
878
1043
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
879
1044
|
*/
|
|
880
|
-
updateDeploymentHost
|
|
881
|
-
|
|
1045
|
+
updateDeploymentHost(updateDeploymentHostRequest?: UpdateDeploymentHostRequest) {
|
|
1046
|
+
const options = {
|
|
882
1047
|
method: "PUT",
|
|
883
1048
|
url: "/v2/host-groups/{group_id}/hosts/{host_id}",
|
|
884
1049
|
contentType: "application/json",
|
|
@@ -887,50 +1052,58 @@ var ParamCreater = function () {
|
|
|
887
1052
|
headers: {},
|
|
888
1053
|
data: {}
|
|
889
1054
|
};
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
1055
|
+
const localVarHeaderParameter = {} as any;
|
|
1056
|
+
|
|
1057
|
+
let body: any;
|
|
1058
|
+
|
|
1059
|
+
let groupId;
|
|
1060
|
+
|
|
1061
|
+
let hostId;
|
|
1062
|
+
|
|
1063
|
+
let contentType;
|
|
1064
|
+
|
|
895
1065
|
if (updateDeploymentHostRequest !== null && updateDeploymentHostRequest !== undefined) {
|
|
896
|
-
if (updateDeploymentHostRequest instanceof
|
|
1066
|
+
if (updateDeploymentHostRequest instanceof UpdateDeploymentHostRequest) {
|
|
897
1067
|
groupId = updateDeploymentHostRequest.groupId;
|
|
898
1068
|
hostId = updateDeploymentHostRequest.hostId;
|
|
899
1069
|
contentType = updateDeploymentHostRequest.contentType;
|
|
900
|
-
body = updateDeploymentHostRequest.body
|
|
901
|
-
}
|
|
902
|
-
else {
|
|
1070
|
+
body = updateDeploymentHostRequest.body
|
|
1071
|
+
} else {
|
|
903
1072
|
groupId = updateDeploymentHostRequest['group_id'];
|
|
904
1073
|
hostId = updateDeploymentHostRequest['host_id'];
|
|
905
1074
|
contentType = updateDeploymentHostRequest['Content-Type'];
|
|
906
1075
|
body = updateDeploymentHostRequest['body'];
|
|
907
1076
|
}
|
|
908
1077
|
}
|
|
1078
|
+
|
|
1079
|
+
|
|
909
1080
|
if (groupId === null || groupId === undefined) {
|
|
910
|
-
|
|
1081
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling updateDeploymentHost.');
|
|
911
1082
|
}
|
|
912
1083
|
if (hostId === null || hostId === undefined) {
|
|
913
|
-
|
|
1084
|
+
throw new RequiredError('hostId','Required parameter hostId was null or undefined when calling updateDeploymentHost.');
|
|
914
1085
|
}
|
|
915
1086
|
if (body === null || body === undefined) {
|
|
916
|
-
throw new RequiredError('body',
|
|
1087
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
917
1088
|
}
|
|
918
1089
|
if (contentType !== undefined && contentType !== null) {
|
|
919
1090
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
920
1091
|
}
|
|
921
1092
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1093
|
+
|
|
922
1094
|
options.data = body !== undefined ? body : {};
|
|
923
|
-
options.pathParams = { 'group_id': groupId,
|
|
1095
|
+
options.pathParams = { 'group_id': groupId,'host_id': hostId, };
|
|
924
1096
|
options.headers = localVarHeaderParameter;
|
|
925
1097
|
return options;
|
|
926
1098
|
},
|
|
1099
|
+
|
|
927
1100
|
/**
|
|
928
1101
|
* 在项目下新建主机集群。
|
|
929
|
-
*
|
|
1102
|
+
*
|
|
930
1103
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
931
1104
|
*/
|
|
932
|
-
createDeploymentGroup
|
|
933
|
-
|
|
1105
|
+
createDeploymentGroup(createDeploymentGroupRequest?: CreateDeploymentGroupRequest) {
|
|
1106
|
+
const options = {
|
|
934
1107
|
method: "POST",
|
|
935
1108
|
url: "/v2/host-groups",
|
|
936
1109
|
contentType: "application/json",
|
|
@@ -939,37 +1112,43 @@ var ParamCreater = function () {
|
|
|
939
1112
|
headers: {},
|
|
940
1113
|
data: {}
|
|
941
1114
|
};
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1115
|
+
const localVarHeaderParameter = {} as any;
|
|
1116
|
+
|
|
1117
|
+
let body: any;
|
|
1118
|
+
|
|
1119
|
+
let contentType;
|
|
1120
|
+
|
|
945
1121
|
if (createDeploymentGroupRequest !== null && createDeploymentGroupRequest !== undefined) {
|
|
946
|
-
if (createDeploymentGroupRequest instanceof
|
|
1122
|
+
if (createDeploymentGroupRequest instanceof CreateDeploymentGroupRequest) {
|
|
947
1123
|
contentType = createDeploymentGroupRequest.contentType;
|
|
948
|
-
body = createDeploymentGroupRequest.body
|
|
949
|
-
}
|
|
950
|
-
else {
|
|
1124
|
+
body = createDeploymentGroupRequest.body
|
|
1125
|
+
} else {
|
|
951
1126
|
contentType = createDeploymentGroupRequest['Content-Type'];
|
|
952
1127
|
body = createDeploymentGroupRequest['body'];
|
|
953
1128
|
}
|
|
954
1129
|
}
|
|
1130
|
+
|
|
1131
|
+
|
|
955
1132
|
if (body === null || body === undefined) {
|
|
956
|
-
throw new RequiredError('body',
|
|
1133
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
957
1134
|
}
|
|
958
1135
|
if (contentType !== undefined && contentType !== null) {
|
|
959
1136
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
960
1137
|
}
|
|
961
1138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1139
|
+
|
|
962
1140
|
options.data = body !== undefined ? body : {};
|
|
963
1141
|
options.headers = localVarHeaderParameter;
|
|
964
1142
|
return options;
|
|
965
1143
|
},
|
|
1144
|
+
|
|
966
1145
|
/**
|
|
967
1146
|
* 根据主机集群id删除主机集群。
|
|
968
|
-
*
|
|
1147
|
+
*
|
|
969
1148
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
970
1149
|
*/
|
|
971
|
-
deleteDeploymentGroup
|
|
972
|
-
|
|
1150
|
+
deleteDeploymentGroup(deleteDeploymentGroupRequest?: DeleteDeploymentGroupRequest) {
|
|
1151
|
+
const options = {
|
|
973
1152
|
method: "DELETE",
|
|
974
1153
|
url: "/v2/host-groups/{group_id}",
|
|
975
1154
|
contentType: "application/json",
|
|
@@ -977,36 +1156,43 @@ var ParamCreater = function () {
|
|
|
977
1156
|
pathParams: {},
|
|
978
1157
|
headers: {}
|
|
979
1158
|
};
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1159
|
+
const localVarHeaderParameter = {} as any;
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
let groupId;
|
|
1163
|
+
|
|
1164
|
+
let contentType;
|
|
1165
|
+
|
|
983
1166
|
if (deleteDeploymentGroupRequest !== null && deleteDeploymentGroupRequest !== undefined) {
|
|
984
|
-
if (deleteDeploymentGroupRequest instanceof
|
|
1167
|
+
if (deleteDeploymentGroupRequest instanceof DeleteDeploymentGroupRequest) {
|
|
985
1168
|
groupId = deleteDeploymentGroupRequest.groupId;
|
|
986
1169
|
contentType = deleteDeploymentGroupRequest.contentType;
|
|
987
|
-
}
|
|
988
|
-
else {
|
|
1170
|
+
} else {
|
|
989
1171
|
groupId = deleteDeploymentGroupRequest['group_id'];
|
|
990
1172
|
contentType = deleteDeploymentGroupRequest['Content-Type'];
|
|
991
1173
|
}
|
|
992
1174
|
}
|
|
1175
|
+
|
|
1176
|
+
|
|
993
1177
|
if (groupId === null || groupId === undefined) {
|
|
994
|
-
|
|
1178
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling deleteDeploymentGroup.');
|
|
995
1179
|
}
|
|
996
1180
|
if (contentType !== undefined && contentType !== null) {
|
|
997
1181
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
998
1182
|
}
|
|
1183
|
+
|
|
999
1184
|
options.pathParams = { 'group_id': groupId, };
|
|
1000
1185
|
options.headers = localVarHeaderParameter;
|
|
1001
1186
|
return options;
|
|
1002
1187
|
},
|
|
1188
|
+
|
|
1003
1189
|
/**
|
|
1004
1190
|
* 按条件查询主机集群列表。
|
|
1005
|
-
*
|
|
1191
|
+
*
|
|
1006
1192
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1007
1193
|
*/
|
|
1008
|
-
listHostGroups
|
|
1009
|
-
|
|
1194
|
+
listHostGroups(listHostGroupsRequest?: ListHostGroupsRequest) {
|
|
1195
|
+
const options = {
|
|
1010
1196
|
method: "GET",
|
|
1011
1197
|
url: "/v2/host-groups",
|
|
1012
1198
|
contentType: "application/json",
|
|
@@ -1014,18 +1200,27 @@ var ParamCreater = function () {
|
|
|
1014
1200
|
pathParams: {},
|
|
1015
1201
|
headers: {}
|
|
1016
1202
|
};
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1203
|
+
const localVarHeaderParameter = {} as any;
|
|
1204
|
+
const localVarQueryParameter = {} as any;
|
|
1205
|
+
|
|
1206
|
+
let regionName;
|
|
1207
|
+
|
|
1208
|
+
let projectId;
|
|
1209
|
+
|
|
1210
|
+
let os;
|
|
1211
|
+
|
|
1212
|
+
let offset;
|
|
1213
|
+
|
|
1214
|
+
let limit;
|
|
1215
|
+
|
|
1216
|
+
let name;
|
|
1217
|
+
|
|
1218
|
+
let sortKey;
|
|
1219
|
+
|
|
1220
|
+
let sortDir;
|
|
1221
|
+
|
|
1027
1222
|
if (listHostGroupsRequest !== null && listHostGroupsRequest !== undefined) {
|
|
1028
|
-
if (listHostGroupsRequest instanceof
|
|
1223
|
+
if (listHostGroupsRequest instanceof ListHostGroupsRequest) {
|
|
1029
1224
|
regionName = listHostGroupsRequest.regionName;
|
|
1030
1225
|
projectId = listHostGroupsRequest.projectId;
|
|
1031
1226
|
os = listHostGroupsRequest.os;
|
|
@@ -1034,8 +1229,7 @@ var ParamCreater = function () {
|
|
|
1034
1229
|
name = listHostGroupsRequest.name;
|
|
1035
1230
|
sortKey = listHostGroupsRequest.sortKey;
|
|
1036
1231
|
sortDir = listHostGroupsRequest.sortDir;
|
|
1037
|
-
}
|
|
1038
|
-
else {
|
|
1232
|
+
} else {
|
|
1039
1233
|
regionName = listHostGroupsRequest['region_name'];
|
|
1040
1234
|
projectId = listHostGroupsRequest['project_id'];
|
|
1041
1235
|
os = listHostGroupsRequest['os'];
|
|
@@ -1046,8 +1240,10 @@ var ParamCreater = function () {
|
|
|
1046
1240
|
sortDir = listHostGroupsRequest['sort_dir'];
|
|
1047
1241
|
}
|
|
1048
1242
|
}
|
|
1243
|
+
|
|
1244
|
+
|
|
1049
1245
|
if (regionName === null || regionName === undefined) {
|
|
1050
|
-
throw new RequiredError('regionName',
|
|
1246
|
+
throw new RequiredError('regionName','Required parameter regionName was null or undefined when calling listHostGroups.');
|
|
1051
1247
|
}
|
|
1052
1248
|
if (regionName !== null && regionName !== undefined) {
|
|
1053
1249
|
localVarQueryParameter['region_name'] = regionName;
|
|
@@ -1073,17 +1269,19 @@ var ParamCreater = function () {
|
|
|
1073
1269
|
if (sortDir !== null && sortDir !== undefined) {
|
|
1074
1270
|
localVarQueryParameter['sort_dir'] = sortDir;
|
|
1075
1271
|
}
|
|
1272
|
+
|
|
1076
1273
|
options.queryParams = localVarQueryParameter;
|
|
1077
1274
|
options.headers = localVarHeaderParameter;
|
|
1078
1275
|
return options;
|
|
1079
1276
|
},
|
|
1277
|
+
|
|
1080
1278
|
/**
|
|
1081
1279
|
* 根据主机集群id查询主机集群详情。
|
|
1082
|
-
*
|
|
1280
|
+
*
|
|
1083
1281
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1084
1282
|
*/
|
|
1085
|
-
showDeploymentGroupDetail
|
|
1086
|
-
|
|
1283
|
+
showDeploymentGroupDetail(showDeploymentGroupDetailRequest?: ShowDeploymentGroupDetailRequest) {
|
|
1284
|
+
const options = {
|
|
1087
1285
|
method: "GET",
|
|
1088
1286
|
url: "/v2/host-groups/{group_id}",
|
|
1089
1287
|
contentType: "application/json",
|
|
@@ -1091,30 +1289,36 @@ var ParamCreater = function () {
|
|
|
1091
1289
|
pathParams: {},
|
|
1092
1290
|
headers: {}
|
|
1093
1291
|
};
|
|
1094
|
-
|
|
1095
|
-
|
|
1292
|
+
const localVarHeaderParameter = {} as any;
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
let groupId;
|
|
1296
|
+
|
|
1096
1297
|
if (showDeploymentGroupDetailRequest !== null && showDeploymentGroupDetailRequest !== undefined) {
|
|
1097
|
-
if (showDeploymentGroupDetailRequest instanceof
|
|
1298
|
+
if (showDeploymentGroupDetailRequest instanceof ShowDeploymentGroupDetailRequest) {
|
|
1098
1299
|
groupId = showDeploymentGroupDetailRequest.groupId;
|
|
1099
|
-
}
|
|
1100
|
-
else {
|
|
1300
|
+
} else {
|
|
1101
1301
|
groupId = showDeploymentGroupDetailRequest['group_id'];
|
|
1102
1302
|
}
|
|
1103
1303
|
}
|
|
1304
|
+
|
|
1305
|
+
|
|
1104
1306
|
if (groupId === null || groupId === undefined) {
|
|
1105
|
-
|
|
1307
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling showDeploymentGroupDetail.');
|
|
1106
1308
|
}
|
|
1309
|
+
|
|
1107
1310
|
options.pathParams = { 'group_id': groupId, };
|
|
1108
1311
|
options.headers = localVarHeaderParameter;
|
|
1109
1312
|
return options;
|
|
1110
1313
|
},
|
|
1314
|
+
|
|
1111
1315
|
/**
|
|
1112
1316
|
* 根据主机集群id修改主机集群信息。
|
|
1113
|
-
*
|
|
1317
|
+
*
|
|
1114
1318
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1115
1319
|
*/
|
|
1116
|
-
updateDeploymentGroup
|
|
1117
|
-
|
|
1320
|
+
updateDeploymentGroup(updateDeploymentGroupRequest?: UpdateDeploymentGroupRequest) {
|
|
1321
|
+
const options = {
|
|
1118
1322
|
method: "PUT",
|
|
1119
1323
|
url: "/v2/host-groups/{group_id}",
|
|
1120
1324
|
contentType: "application/json",
|
|
@@ -1123,44 +1327,51 @@ var ParamCreater = function () {
|
|
|
1123
1327
|
headers: {},
|
|
1124
1328
|
data: {}
|
|
1125
1329
|
};
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1330
|
+
const localVarHeaderParameter = {} as any;
|
|
1331
|
+
|
|
1332
|
+
let body: any;
|
|
1333
|
+
|
|
1334
|
+
let groupId;
|
|
1335
|
+
|
|
1336
|
+
let contentType;
|
|
1337
|
+
|
|
1130
1338
|
if (updateDeploymentGroupRequest !== null && updateDeploymentGroupRequest !== undefined) {
|
|
1131
|
-
if (updateDeploymentGroupRequest instanceof
|
|
1339
|
+
if (updateDeploymentGroupRequest instanceof UpdateDeploymentGroupRequest) {
|
|
1132
1340
|
groupId = updateDeploymentGroupRequest.groupId;
|
|
1133
1341
|
contentType = updateDeploymentGroupRequest.contentType;
|
|
1134
|
-
body = updateDeploymentGroupRequest.body
|
|
1135
|
-
}
|
|
1136
|
-
else {
|
|
1342
|
+
body = updateDeploymentGroupRequest.body
|
|
1343
|
+
} else {
|
|
1137
1344
|
groupId = updateDeploymentGroupRequest['group_id'];
|
|
1138
1345
|
contentType = updateDeploymentGroupRequest['Content-Type'];
|
|
1139
1346
|
body = updateDeploymentGroupRequest['body'];
|
|
1140
1347
|
}
|
|
1141
1348
|
}
|
|
1349
|
+
|
|
1350
|
+
|
|
1142
1351
|
if (groupId === null || groupId === undefined) {
|
|
1143
|
-
|
|
1352
|
+
throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling updateDeploymentGroup.');
|
|
1144
1353
|
}
|
|
1145
1354
|
if (body === null || body === undefined) {
|
|
1146
|
-
throw new RequiredError('body',
|
|
1355
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1147
1356
|
}
|
|
1148
1357
|
if (contentType !== undefined && contentType !== null) {
|
|
1149
1358
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1150
1359
|
}
|
|
1151
1360
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1361
|
+
|
|
1152
1362
|
options.data = body !== undefined ? body : {};
|
|
1153
1363
|
options.pathParams = { 'group_id': groupId, };
|
|
1154
1364
|
options.headers = localVarHeaderParameter;
|
|
1155
1365
|
return options;
|
|
1156
1366
|
},
|
|
1367
|
+
|
|
1157
1368
|
/**
|
|
1158
1369
|
* 获取指定应用的应用部署成功率
|
|
1159
|
-
*
|
|
1370
|
+
*
|
|
1160
1371
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1161
1372
|
*/
|
|
1162
|
-
listTaskSuccessRate
|
|
1163
|
-
|
|
1373
|
+
listTaskSuccessRate(listTaskSuccessRateRequest?: ListTaskSuccessRateRequest) {
|
|
1374
|
+
const options = {
|
|
1164
1375
|
method: "POST",
|
|
1165
1376
|
url: "/v2/{project_id}/tasks/metrics/success-rate",
|
|
1166
1377
|
contentType: "application/json",
|
|
@@ -1169,38 +1380,44 @@ var ParamCreater = function () {
|
|
|
1169
1380
|
headers: {},
|
|
1170
1381
|
data: {}
|
|
1171
1382
|
};
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1383
|
+
const localVarHeaderParameter = {} as any;
|
|
1384
|
+
|
|
1385
|
+
let body: any;
|
|
1386
|
+
|
|
1387
|
+
let projectId;
|
|
1388
|
+
|
|
1175
1389
|
if (listTaskSuccessRateRequest !== null && listTaskSuccessRateRequest !== undefined) {
|
|
1176
|
-
if (listTaskSuccessRateRequest instanceof
|
|
1390
|
+
if (listTaskSuccessRateRequest instanceof ListTaskSuccessRateRequest) {
|
|
1177
1391
|
projectId = listTaskSuccessRateRequest.projectId;
|
|
1178
|
-
body = listTaskSuccessRateRequest.body
|
|
1179
|
-
}
|
|
1180
|
-
else {
|
|
1392
|
+
body = listTaskSuccessRateRequest.body
|
|
1393
|
+
} else {
|
|
1181
1394
|
projectId = listTaskSuccessRateRequest['project_id'];
|
|
1182
1395
|
body = listTaskSuccessRateRequest['body'];
|
|
1183
1396
|
}
|
|
1184
1397
|
}
|
|
1398
|
+
|
|
1399
|
+
|
|
1185
1400
|
if (projectId === null || projectId === undefined) {
|
|
1186
|
-
|
|
1401
|
+
throw new RequiredError('projectId','Required parameter projectId was null or undefined when calling listTaskSuccessRate.');
|
|
1187
1402
|
}
|
|
1188
1403
|
if (body === null || body === undefined) {
|
|
1189
|
-
throw new RequiredError('body',
|
|
1404
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling body.');
|
|
1190
1405
|
}
|
|
1191
1406
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1407
|
+
|
|
1192
1408
|
options.data = body !== undefined ? body : {};
|
|
1193
1409
|
options.pathParams = { 'project_id': projectId, };
|
|
1194
1410
|
options.headers = localVarHeaderParameter;
|
|
1195
1411
|
return options;
|
|
1196
1412
|
},
|
|
1413
|
+
|
|
1197
1414
|
/**
|
|
1198
1415
|
* 获取指定项目的应用部署成功率
|
|
1199
|
-
*
|
|
1416
|
+
*
|
|
1200
1417
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1201
1418
|
*/
|
|
1202
|
-
showProjectSuccessRate
|
|
1203
|
-
|
|
1419
|
+
showProjectSuccessRate(showProjectSuccessRateRequest?: ShowProjectSuccessRateRequest) {
|
|
1420
|
+
const options = {
|
|
1204
1421
|
method: "GET",
|
|
1205
1422
|
url: "/v2/{project_id}/metrics/success-rate",
|
|
1206
1423
|
contentType: "application/json",
|
|
@@ -1208,63 +1425,66 @@ var ParamCreater = function () {
|
|
|
1208
1425
|
pathParams: {},
|
|
1209
1426
|
headers: {}
|
|
1210
1427
|
};
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1428
|
+
const localVarHeaderParameter = {} as any;
|
|
1429
|
+
const localVarQueryParameter = {} as any;
|
|
1430
|
+
|
|
1431
|
+
let projectId;
|
|
1432
|
+
|
|
1433
|
+
let startDate;
|
|
1434
|
+
|
|
1435
|
+
let endDate;
|
|
1436
|
+
|
|
1216
1437
|
if (showProjectSuccessRateRequest !== null && showProjectSuccessRateRequest !== undefined) {
|
|
1217
|
-
if (showProjectSuccessRateRequest instanceof
|
|
1438
|
+
if (showProjectSuccessRateRequest instanceof ShowProjectSuccessRateRequest) {
|
|
1218
1439
|
projectId = showProjectSuccessRateRequest.projectId;
|
|
1219
1440
|
startDate = showProjectSuccessRateRequest.startDate;
|
|
1220
1441
|
endDate = showProjectSuccessRateRequest.endDate;
|
|
1221
|
-
}
|
|
1222
|
-
else {
|
|
1442
|
+
} else {
|
|
1223
1443
|
projectId = showProjectSuccessRateRequest['project_id'];
|
|
1224
1444
|
startDate = showProjectSuccessRateRequest['start_date'];
|
|
1225
1445
|
endDate = showProjectSuccessRateRequest['end_date'];
|
|
1226
1446
|
}
|
|
1227
1447
|
}
|
|
1448
|
+
|
|
1449
|
+
|
|
1228
1450
|
if (projectId === null || projectId === undefined) {
|
|
1229
|
-
|
|
1451
|
+
throw new RequiredError('projectId','Required parameter projectId was null or undefined when calling showProjectSuccessRate.');
|
|
1230
1452
|
}
|
|
1231
1453
|
if (startDate === null || startDate === undefined) {
|
|
1232
|
-
throw new RequiredError('startDate',
|
|
1454
|
+
throw new RequiredError('startDate','Required parameter startDate was null or undefined when calling showProjectSuccessRate.');
|
|
1233
1455
|
}
|
|
1234
1456
|
if (startDate !== null && startDate !== undefined) {
|
|
1235
1457
|
localVarQueryParameter['start_date'] = startDate;
|
|
1236
1458
|
}
|
|
1237
1459
|
if (endDate === null || endDate === undefined) {
|
|
1238
|
-
throw new RequiredError('endDate',
|
|
1460
|
+
throw new RequiredError('endDate','Required parameter endDate was null or undefined when calling showProjectSuccessRate.');
|
|
1239
1461
|
}
|
|
1240
1462
|
if (endDate !== null && endDate !== undefined) {
|
|
1241
1463
|
localVarQueryParameter['end_date'] = endDate;
|
|
1242
1464
|
}
|
|
1465
|
+
|
|
1243
1466
|
options.queryParams = localVarQueryParameter;
|
|
1244
1467
|
options.pathParams = { 'project_id': projectId, };
|
|
1245
1468
|
options.headers = localVarHeaderParameter;
|
|
1246
1469
|
return options;
|
|
1247
1470
|
},
|
|
1248
|
-
|
|
1471
|
+
|
|
1472
|
+
}
|
|
1249
1473
|
};
|
|
1250
|
-
|
|
1251
|
-
function newClient(client) {
|
|
1474
|
+
|
|
1475
|
+
function newClient(client: HcClient): CodeArtsDeployClient {
|
|
1252
1476
|
return new CodeArtsDeployClient(client);
|
|
1253
1477
|
}
|
|
1478
|
+
|
|
1254
1479
|
/**
|
|
1255
1480
|
*
|
|
1256
1481
|
* @export
|
|
1257
1482
|
* @class RequiredError
|
|
1258
1483
|
* @extends {Error}
|
|
1259
1484
|
*/
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
_this.field = field;
|
|
1265
|
-
_this.name = "RequiredError";
|
|
1266
|
-
return _this;
|
|
1485
|
+
export class RequiredError extends Error {
|
|
1486
|
+
name: "RequiredError" = "RequiredError";
|
|
1487
|
+
constructor(public field: string, msg?: string) {
|
|
1488
|
+
super(msg);
|
|
1267
1489
|
}
|
|
1268
|
-
|
|
1269
|
-
}(Error));
|
|
1270
|
-
exports.RequiredError = RequiredError;
|
|
1490
|
+
}
|