@huaweicloud/huaweicloud-sdk-codeartsdeploy 3.1.105 → 3.1.106
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/package.json +2 -2
- package/v2/CodeArtsDeployClient.d.ts +863 -24
- package/v2/CodeArtsDeployClient.d.ts.map +1 -1
- package/v2/CodeArtsDeployClient.js +2274 -468
- package/v2/CodeArtsDeployClient.js.map +1 -1
- package/v2/model/AppBaseInfo.d.ts +14 -0
- package/v2/model/AppBaseInfo.d.ts.map +1 -0
- package/v2/model/AppBaseInfo.js +31 -0
- package/v2/model/AppBaseInfo.js.map +1 -0
- package/v2/model/AppBatchDeleteRequest.d.ts +12 -0
- package/v2/model/AppBatchDeleteRequest.d.ts.map +1 -0
- package/v2/model/AppBatchDeleteRequest.js +31 -0
- package/v2/model/AppBatchDeleteRequest.js.map +1 -0
- package/v2/model/AppDeleteResult.d.ts +26 -0
- package/v2/model/AppDeleteResult.d.ts.map +1 -0
- package/v2/model/AppDeleteResult.js +52 -0
- package/v2/model/AppDeleteResult.js.map +1 -0
- package/v2/model/AppGroupsEntity.d.ts +32 -0
- package/v2/model/AppGroupsEntity.d.ts.map +1 -0
- package/v2/model/AppGroupsEntity.js +73 -0
- package/v2/model/AppGroupsEntity.js.map +1 -0
- package/v2/model/AppPermission.d.ts +40 -0
- package/v2/model/AppPermission.d.ts.map +1 -0
- package/v2/model/AppPermission.js +108 -0
- package/v2/model/AppPermission.js.map +1 -0
- package/v2/model/ApplicationPermissionVO.d.ts +59 -0
- package/v2/model/ApplicationPermissionVO.d.ts.map +1 -0
- package/v2/model/ApplicationPermissionVO.js +129 -0
- package/v2/model/ApplicationPermissionVO.js.map +1 -0
- package/v2/model/BatchDeleteAppRequest.d.ts +7 -0
- package/v2/model/BatchDeleteAppRequest.d.ts.map +1 -0
- package/v2/model/BatchDeleteAppRequest.js +13 -0
- package/v2/model/BatchDeleteAppRequest.js.map +1 -0
- package/v2/model/BatchDeleteAppResponse.d.ts +12 -0
- package/v2/model/BatchDeleteAppResponse.d.ts.map +1 -0
- package/v2/model/BatchDeleteAppResponse.js +25 -0
- package/v2/model/BatchDeleteAppResponse.js.map +1 -0
- package/v2/model/BatchDeleteHostsRequest.d.ts +23 -0
- package/v2/model/BatchDeleteHostsRequest.d.ts.map +1 -0
- package/v2/model/BatchDeleteHostsRequest.js +44 -0
- package/v2/model/BatchDeleteHostsRequest.js.map +1 -0
- package/v2/model/BatchDeleteHostsResponse.d.ts +9 -0
- package/v2/model/BatchDeleteHostsResponse.d.ts.map +1 -0
- package/v2/model/BatchDeleteHostsResponse.js +19 -0
- package/v2/model/BatchDeleteHostsResponse.js.map +1 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequest.d.ts +7 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequest.d.ts.map +1 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequest.js +13 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequest.js.map +1 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequestBody.d.ts +15 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequestBody.d.ts.map +1 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequestBody.js +36 -0
- package/v2/model/BatchUpdateApplicationPermissionsRequestBody.js.map +1 -0
- package/v2/model/BatchUpdateApplicationPermissionsResponse.d.ts +7 -0
- package/v2/model/BatchUpdateApplicationPermissionsResponse.d.ts.map +1 -0
- package/v2/model/BatchUpdateApplicationPermissionsResponse.js +15 -0
- package/v2/model/BatchUpdateApplicationPermissionsResponse.js.map +1 -0
- package/v2/model/BatchUpdatePermissionLevelRequest.d.ts +7 -0
- package/v2/model/BatchUpdatePermissionLevelRequest.d.ts.map +1 -0
- package/v2/model/BatchUpdatePermissionLevelRequest.js +13 -0
- package/v2/model/BatchUpdatePermissionLevelRequest.js.map +1 -0
- package/v2/model/BatchUpdatePermissionLevelRequestBody.d.ts +24 -0
- package/v2/model/BatchUpdatePermissionLevelRequestBody.d.ts.map +1 -0
- package/v2/model/BatchUpdatePermissionLevelRequestBody.js +51 -0
- package/v2/model/BatchUpdatePermissionLevelRequestBody.js.map +1 -0
- package/v2/model/BatchUpdatePermissionLevelResponse.d.ts +7 -0
- package/v2/model/BatchUpdatePermissionLevelResponse.d.ts.map +1 -0
- package/v2/model/BatchUpdatePermissionLevelResponse.js +15 -0
- package/v2/model/BatchUpdatePermissionLevelResponse.js.map +1 -0
- package/v2/model/CheckCanCreateRequest.d.ts +8 -0
- package/v2/model/CheckCanCreateRequest.d.ts.map +1 -0
- package/v2/model/CheckCanCreateRequest.js +20 -0
- package/v2/model/CheckCanCreateRequest.js.map +1 -0
- package/v2/model/CheckCanCreateResponse.d.ts +10 -0
- package/v2/model/CheckCanCreateResponse.d.ts.map +1 -0
- package/v2/model/CheckCanCreateResponse.js +19 -0
- package/v2/model/CheckCanCreateResponse.js.map +1 -0
- package/v2/model/CheckCanCreateResponseBodyResult.d.ts +6 -0
- package/v2/model/CheckCanCreateResponseBodyResult.d.ts.map +1 -0
- package/v2/model/CheckCanCreateResponseBodyResult.js +13 -0
- package/v2/model/CheckCanCreateResponseBodyResult.js.map +1 -0
- package/v2/model/CheckIsDuplicateAppNameRequest.d.ts +10 -0
- package/v2/model/CheckIsDuplicateAppNameRequest.d.ts.map +1 -0
- package/v2/model/CheckIsDuplicateAppNameRequest.js +25 -0
- package/v2/model/CheckIsDuplicateAppNameRequest.js.map +1 -0
- package/v2/model/CheckIsDuplicateAppNameResponse.d.ts +9 -0
- package/v2/model/CheckIsDuplicateAppNameResponse.d.ts.map +1 -0
- package/v2/model/CheckIsDuplicateAppNameResponse.js +19 -0
- package/v2/model/CheckIsDuplicateAppNameResponse.js.map +1 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedRequest.d.ts +8 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedRequest.d.ts.map +1 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedRequest.js +20 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedRequest.js.map +1 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedResponse.d.ts +9 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedResponse.d.ts.map +1 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedResponse.js +21 -0
- package/v2/model/CheckWhetherHostGroupCanBeCreatedResponse.js.map +1 -0
- package/v2/model/CopyApplicationRequest.d.ts +8 -0
- package/v2/model/CopyApplicationRequest.d.ts.map +1 -0
- package/v2/model/CopyApplicationRequest.js +20 -0
- package/v2/model/CopyApplicationRequest.js.map +1 -0
- package/v2/model/CopyApplicationResponse.d.ts +10 -0
- package/v2/model/CopyApplicationResponse.d.ts.map +1 -0
- package/v2/model/CopyApplicationResponse.js +19 -0
- package/v2/model/CopyApplicationResponse.js.map +1 -0
- package/v2/model/CopyHostsToTargetRequest.d.ts +23 -0
- package/v2/model/CopyHostsToTargetRequest.d.ts.map +1 -0
- package/v2/model/CopyHostsToTargetRequest.js +44 -0
- package/v2/model/CopyHostsToTargetRequest.js.map +1 -0
- package/v2/model/CopyHostsToTargetResponse.d.ts +9 -0
- package/v2/model/CopyHostsToTargetResponse.d.ts.map +1 -0
- package/v2/model/CopyHostsToTargetResponse.js +19 -0
- package/v2/model/CopyHostsToTargetResponse.js.map +1 -0
- package/v2/model/CreateAppGroupsRequest.d.ts +11 -0
- package/v2/model/CreateAppGroupsRequest.d.ts.map +1 -0
- package/v2/model/CreateAppGroupsRequest.js +24 -0
- package/v2/model/CreateAppGroupsRequest.js.map +1 -0
- package/v2/model/CreateAppGroupsRequestBody.d.ts +10 -0
- package/v2/model/CreateAppGroupsRequestBody.d.ts.map +1 -0
- package/v2/model/CreateAppGroupsRequestBody.js +24 -0
- package/v2/model/CreateAppGroupsRequestBody.js.map +1 -0
- package/v2/model/CreateAppGroupsResponse.d.ts +9 -0
- package/v2/model/CreateAppGroupsResponse.d.ts.map +1 -0
- package/v2/model/CreateAppGroupsResponse.js +19 -0
- package/v2/model/CreateAppGroupsResponse.js.map +1 -0
- package/v2/model/DeleteAppGroupsRequest.d.ts +12 -0
- package/v2/model/DeleteAppGroupsRequest.d.ts.map +1 -0
- package/v2/model/DeleteAppGroupsRequest.js +31 -0
- package/v2/model/DeleteAppGroupsRequest.js.map +1 -0
- package/v2/model/DeleteAppGroupsResponse.d.ts +9 -0
- package/v2/model/DeleteAppGroupsResponse.d.ts.map +1 -0
- package/v2/model/DeleteAppGroupsResponse.js +19 -0
- package/v2/model/DeleteAppGroupsResponse.js.map +1 -0
- package/v2/model/DeleteHostClusterRequest.d.ts +20 -0
- package/v2/model/DeleteHostClusterRequest.d.ts.map +1 -0
- package/v2/model/DeleteHostClusterRequest.js +40 -0
- package/v2/model/DeleteHostClusterRequest.js.map +1 -0
- package/v2/model/DeleteHostClusterResponse.d.ts +9 -0
- package/v2/model/DeleteHostClusterResponse.d.ts.map +1 -0
- package/v2/model/DeleteHostClusterResponse.js +19 -0
- package/v2/model/DeleteHostClusterResponse.js.map +1 -0
- package/v2/model/DeleteHostRequest.d.ts +24 -0
- package/v2/model/DeleteHostRequest.d.ts.map +1 -0
- package/v2/model/DeleteHostRequest.js +51 -0
- package/v2/model/DeleteHostRequest.js.map +1 -0
- package/v2/model/DeleteHostResponse.d.ts +9 -0
- package/v2/model/DeleteHostResponse.d.ts.map +1 -0
- package/v2/model/DeleteHostResponse.js +19 -0
- package/v2/model/DeleteHostResponse.js.map +1 -0
- package/v2/model/DeployV2OperationsDO.d.ts +2 -0
- package/v2/model/DeployV2OperationsDO.d.ts.map +1 -1
- package/v2/model/DeployV2OperationsDO.js +4 -0
- package/v2/model/DeployV2OperationsDO.js.map +1 -1
- package/v2/model/DeploymentHostListEntity.d.ts +8 -0
- package/v2/model/DeploymentHostListEntity.d.ts.map +1 -0
- package/v2/model/DeploymentHostListEntity.js +19 -0
- package/v2/model/DeploymentHostListEntity.js.map +1 -0
- package/v2/model/DeploymentHostRequestExternal.d.ts +29 -0
- package/v2/model/DeploymentHostRequestExternal.d.ts.map +1 -0
- package/v2/model/DeploymentHostRequestExternal.js +68 -0
- package/v2/model/DeploymentHostRequestExternal.js.map +1 -0
- package/v2/model/DeploymentHostsCopyRequest.d.ts +12 -0
- package/v2/model/DeploymentHostsCopyRequest.d.ts.map +1 -0
- package/v2/model/DeploymentHostsCopyRequest.js +31 -0
- package/v2/model/DeploymentHostsCopyRequest.js.map +1 -0
- package/v2/model/DevUcClusterPermission.d.ts +67 -0
- package/v2/model/DevUcClusterPermission.d.ts.map +1 -0
- package/v2/model/DevUcClusterPermission.js +149 -0
- package/v2/model/DevUcClusterPermission.js.map +1 -0
- package/v2/model/DevUcEnvironmentPermission.d.ts +65 -0
- package/v2/model/DevUcEnvironmentPermission.d.ts.map +1 -0
- package/v2/model/DevUcEnvironmentPermission.js +143 -0
- package/v2/model/DevUcEnvironmentPermission.js.map +1 -0
- package/v2/model/EnvironmentBaseInfo.d.ts +18 -0
- package/v2/model/EnvironmentBaseInfo.d.ts.map +1 -0
- package/v2/model/EnvironmentBaseInfo.js +41 -0
- package/v2/model/EnvironmentBaseInfo.js.map +1 -0
- package/v2/model/EnvironmentHostInfo.d.ts +59 -0
- package/v2/model/EnvironmentHostInfo.d.ts.map +1 -0
- package/v2/model/EnvironmentHostInfo.js +141 -0
- package/v2/model/EnvironmentHostInfo.js.map +1 -0
- package/v2/model/EnvironmentHostPermission.d.ts +24 -0
- package/v2/model/EnvironmentHostPermission.d.ts.map +1 -0
- package/v2/model/EnvironmentHostPermission.js +59 -0
- package/v2/model/EnvironmentHostPermission.js.map +1 -0
- package/v2/model/EnvironmentInfo.d.ts +20 -0
- package/v2/model/EnvironmentInfo.d.ts.map +1 -0
- package/v2/model/EnvironmentInfo.js +47 -0
- package/v2/model/EnvironmentInfo.js.map +1 -0
- package/v2/model/EnvironmentPermissionV2Body.d.ts +27 -0
- package/v2/model/EnvironmentPermissionV2Body.d.ts.map +1 -0
- package/v2/model/EnvironmentPermissionV2Body.js +51 -0
- package/v2/model/EnvironmentPermissionV2Body.js.map +1 -0
- package/v2/model/EnvironmentRequest.d.ts +8 -0
- package/v2/model/EnvironmentRequest.d.ts.map +1 -0
- package/v2/model/EnvironmentRequest.js +17 -0
- package/v2/model/EnvironmentRequest.js.map +1 -0
- package/v2/model/HostClusterRequest.d.ts +12 -0
- package/v2/model/HostClusterRequest.d.ts.map +1 -0
- package/v2/model/HostClusterRequest.js +28 -0
- package/v2/model/HostClusterRequest.js.map +1 -0
- package/v2/model/ListAppGroupsRequest.d.ts +8 -0
- package/v2/model/ListAppGroupsRequest.d.ts.map +1 -0
- package/v2/model/ListAppGroupsRequest.js +20 -0
- package/v2/model/ListAppGroupsRequest.js.map +1 -0
- package/v2/model/ListAppGroupsResponse.d.ts +10 -0
- package/v2/model/ListAppGroupsResponse.d.ts.map +1 -0
- package/v2/model/ListAppGroupsResponse.js +19 -0
- package/v2/model/ListAppGroupsResponse.js.map +1 -0
- package/v2/model/ListApplicationPermissionsRequest.d.ts +12 -0
- package/v2/model/ListApplicationPermissionsRequest.d.ts.map +1 -0
- package/v2/model/ListApplicationPermissionsRequest.js +29 -0
- package/v2/model/ListApplicationPermissionsRequest.js.map +1 -0
- package/v2/model/ListApplicationPermissionsResponse.d.ts +10 -0
- package/v2/model/ListApplicationPermissionsResponse.d.ts.map +1 -0
- package/v2/model/ListApplicationPermissionsResponse.js +19 -0
- package/v2/model/ListApplicationPermissionsResponse.js.map +1 -0
- package/v2/model/ListAssociateEnvironmentsInfosRequest.d.ts +16 -0
- package/v2/model/ListAssociateEnvironmentsInfosRequest.d.ts.map +1 -0
- package/v2/model/ListAssociateEnvironmentsInfosRequest.js +40 -0
- package/v2/model/ListAssociateEnvironmentsInfosRequest.js.map +1 -0
- package/v2/model/ListAssociateEnvironmentsInfosResponse.d.ts +12 -0
- package/v2/model/ListAssociateEnvironmentsInfosResponse.d.ts.map +1 -0
- package/v2/model/ListAssociateEnvironmentsInfosResponse.js +23 -0
- package/v2/model/ListAssociateEnvironmentsInfosResponse.js.map +1 -0
- package/v2/model/ListEnvironmentHostsRequest.d.ts +28 -0
- package/v2/model/ListEnvironmentHostsRequest.d.ts.map +1 -0
- package/v2/model/ListEnvironmentHostsRequest.js +71 -0
- package/v2/model/ListEnvironmentHostsRequest.js.map +1 -0
- package/v2/model/ListEnvironmentHostsResponse.d.ts +12 -0
- package/v2/model/ListEnvironmentHostsResponse.d.ts.map +1 -0
- package/v2/model/ListEnvironmentHostsResponse.js +23 -0
- package/v2/model/ListEnvironmentHostsResponse.js.map +1 -0
- package/v2/model/ListEnvironmentPermissionsRequest.d.ts +12 -0
- package/v2/model/ListEnvironmentPermissionsRequest.d.ts.map +1 -0
- package/v2/model/ListEnvironmentPermissionsRequest.js +31 -0
- package/v2/model/ListEnvironmentPermissionsRequest.js.map +1 -0
- package/v2/model/ListEnvironmentPermissionsResponse.d.ts +8 -0
- package/v2/model/ListEnvironmentPermissionsResponse.d.ts.map +1 -0
- package/v2/model/ListEnvironmentPermissionsResponse.js +15 -0
- package/v2/model/ListEnvironmentPermissionsResponse.js.map +1 -0
- package/v2/model/ListHostGroupBaseInfosRequest.d.ts +32 -0
- package/v2/model/ListHostGroupBaseInfosRequest.d.ts.map +1 -0
- package/v2/model/ListHostGroupBaseInfosRequest.js +68 -0
- package/v2/model/ListHostGroupBaseInfosRequest.js.map +1 -0
- package/v2/model/ListHostGroupBaseInfosResponse.d.ts +12 -0
- package/v2/model/ListHostGroupBaseInfosResponse.d.ts.map +1 -0
- package/v2/model/ListHostGroupBaseInfosResponse.js +23 -0
- package/v2/model/ListHostGroupBaseInfosResponse.js.map +1 -0
- package/v2/model/ListHostGroupPermissionsRequest.d.ts +8 -0
- package/v2/model/ListHostGroupPermissionsRequest.d.ts.map +1 -0
- package/v2/model/ListHostGroupPermissionsRequest.js +20 -0
- package/v2/model/ListHostGroupPermissionsRequest.js.map +1 -0
- package/v2/model/ListHostGroupPermissionsResponse.d.ts +8 -0
- package/v2/model/ListHostGroupPermissionsResponse.d.ts.map +1 -0
- package/v2/model/ListHostGroupPermissionsResponse.js +15 -0
- package/v2/model/ListHostGroupPermissionsResponse.js.map +1 -0
- package/v2/model/MoveAppGroupsRequest.d.ts +11 -0
- package/v2/model/MoveAppGroupsRequest.d.ts.map +1 -0
- package/v2/model/MoveAppGroupsRequest.js +24 -0
- package/v2/model/MoveAppGroupsRequest.js.map +1 -0
- package/v2/model/MoveAppGroupsRequestBody.d.ts +16 -0
- package/v2/model/MoveAppGroupsRequestBody.d.ts.map +1 -0
- package/v2/model/MoveAppGroupsRequestBody.js +28 -0
- package/v2/model/MoveAppGroupsRequestBody.js.map +1 -0
- package/v2/model/MoveAppGroupsResponse.d.ts +9 -0
- package/v2/model/MoveAppGroupsResponse.d.ts.map +1 -0
- package/v2/model/MoveAppGroupsResponse.js +19 -0
- package/v2/model/MoveAppGroupsResponse.js.map +1 -0
- package/v2/model/MoveAppToGroupRequest.d.ts +11 -0
- package/v2/model/MoveAppToGroupRequest.d.ts.map +1 -0
- package/v2/model/MoveAppToGroupRequest.js +24 -0
- package/v2/model/MoveAppToGroupRequest.js.map +1 -0
- package/v2/model/MoveAppToGroupRequestBody.d.ts +12 -0
- package/v2/model/MoveAppToGroupRequestBody.d.ts.map +1 -0
- package/v2/model/MoveAppToGroupRequestBody.js +31 -0
- package/v2/model/MoveAppToGroupRequestBody.js.map +1 -0
- package/v2/model/MoveAppToGroupResponse.d.ts +10 -0
- package/v2/model/MoveAppToGroupResponse.d.ts.map +1 -0
- package/v2/model/MoveAppToGroupResponse.js +19 -0
- package/v2/model/MoveAppToGroupResponse.js.map +1 -0
- package/v2/model/MoveAppToGroupResult.d.ts +22 -0
- package/v2/model/MoveAppToGroupResult.d.ts.map +1 -0
- package/v2/model/MoveAppToGroupResult.js +53 -0
- package/v2/model/MoveAppToGroupResult.js.map +1 -0
- package/v2/model/PermissionUpdateV2Body.d.ts +32 -0
- package/v2/model/PermissionUpdateV2Body.d.ts.map +1 -0
- package/v2/model/PermissionUpdateV2Body.js +66 -0
- package/v2/model/PermissionUpdateV2Body.js.map +1 -0
- package/v2/model/UpdateAppDisableStatusRequest.d.ts +11 -0
- package/v2/model/UpdateAppDisableStatusRequest.d.ts.map +1 -0
- package/v2/model/UpdateAppDisableStatusRequest.js +24 -0
- package/v2/model/UpdateAppDisableStatusRequest.js.map +1 -0
- package/v2/model/UpdateAppDisableStatusRequestBody.d.ts +8 -0
- package/v2/model/UpdateAppDisableStatusRequestBody.d.ts.map +1 -0
- package/v2/model/UpdateAppDisableStatusRequestBody.js +20 -0
- package/v2/model/UpdateAppDisableStatusRequestBody.js.map +1 -0
- package/v2/model/UpdateAppDisableStatusResponse.d.ts +7 -0
- package/v2/model/UpdateAppDisableStatusResponse.d.ts.map +1 -0
- package/v2/model/UpdateAppDisableStatusResponse.js +15 -0
- package/v2/model/UpdateAppDisableStatusResponse.js.map +1 -0
- package/v2/model/UpdateAppGroupsRequest.d.ts +15 -0
- package/v2/model/UpdateAppGroupsRequest.d.ts.map +1 -0
- package/v2/model/UpdateAppGroupsRequest.js +35 -0
- package/v2/model/UpdateAppGroupsRequest.js.map +1 -0
- package/v2/model/UpdateAppGroupsRequestBody.d.ts +6 -0
- package/v2/model/UpdateAppGroupsRequestBody.d.ts.map +1 -0
- package/v2/model/UpdateAppGroupsRequestBody.js +14 -0
- package/v2/model/UpdateAppGroupsRequestBody.js.map +1 -0
- package/v2/model/UpdateAppGroupsResponse.d.ts +9 -0
- package/v2/model/UpdateAppGroupsResponse.d.ts.map +1 -0
- package/v2/model/UpdateAppGroupsResponse.js +19 -0
- package/v2/model/UpdateAppGroupsResponse.js.map +1 -0
- package/v2/model/UpdateAppInfoRequest.d.ts +19 -0
- package/v2/model/UpdateAppInfoRequest.d.ts.map +1 -0
- package/v2/model/UpdateAppInfoRequest.js +33 -0
- package/v2/model/UpdateAppInfoRequest.js.map +1 -0
- package/v2/model/UpdateAppInfoRequestBody.d.ts +41 -0
- package/v2/model/UpdateAppInfoRequestBody.d.ts.map +1 -0
- package/v2/model/UpdateAppInfoRequestBody.js +88 -0
- package/v2/model/UpdateAppInfoRequestBody.js.map +1 -0
- package/v2/model/UpdateAppInfoResponse.d.ts +10 -0
- package/v2/model/UpdateAppInfoResponse.d.ts.map +1 -0
- package/v2/model/UpdateAppInfoResponse.js +19 -0
- package/v2/model/UpdateAppInfoResponse.js.map +1 -0
- package/v2/model/UpdateEnvironmentPermissionRequest.d.ts +27 -0
- package/v2/model/UpdateEnvironmentPermissionRequest.d.ts.map +1 -0
- package/v2/model/UpdateEnvironmentPermissionRequest.js +55 -0
- package/v2/model/UpdateEnvironmentPermissionRequest.js.map +1 -0
- package/v2/model/UpdateEnvironmentPermissionResponse.d.ts +10 -0
- package/v2/model/UpdateEnvironmentPermissionResponse.d.ts.map +1 -0
- package/v2/model/UpdateEnvironmentPermissionResponse.js +19 -0
- package/v2/model/UpdateEnvironmentPermissionResponse.js.map +1 -0
- package/v2/model/UpdateEnvironmentRequest.d.ts +27 -0
- package/v2/model/UpdateEnvironmentRequest.d.ts.map +1 -0
- package/v2/model/UpdateEnvironmentRequest.js +55 -0
- package/v2/model/UpdateEnvironmentRequest.js.map +1 -0
- package/v2/model/UpdateEnvironmentResponse.d.ts +9 -0
- package/v2/model/UpdateEnvironmentResponse.d.ts.map +1 -0
- package/v2/model/UpdateEnvironmentResponse.js +19 -0
- package/v2/model/UpdateEnvironmentResponse.js.map +1 -0
- package/v2/model/UpdateHostClusterRequest.d.ts +23 -0
- package/v2/model/UpdateHostClusterRequest.d.ts.map +1 -0
- package/v2/model/UpdateHostClusterRequest.js +44 -0
- package/v2/model/UpdateHostClusterRequest.js.map +1 -0
- package/v2/model/UpdateHostClusterResponse.d.ts +9 -0
- package/v2/model/UpdateHostClusterResponse.d.ts.map +1 -0
- package/v2/model/UpdateHostClusterResponse.js +19 -0
- package/v2/model/UpdateHostClusterResponse.js.map +1 -0
- package/v2/model/UpdateHostGroupPermissionsRequest.d.ts +23 -0
- package/v2/model/UpdateHostGroupPermissionsRequest.d.ts.map +1 -0
- package/v2/model/UpdateHostGroupPermissionsRequest.js +44 -0
- package/v2/model/UpdateHostGroupPermissionsRequest.js.map +1 -0
- package/v2/model/UpdateHostGroupPermissionsResponse.d.ts +68 -0
- package/v2/model/UpdateHostGroupPermissionsResponse.d.ts.map +1 -0
- package/v2/model/UpdateHostGroupPermissionsResponse.js +151 -0
- package/v2/model/UpdateHostGroupPermissionsResponse.js.map +1 -0
- package/v2/model/UpdateHostInfoRequest.d.ts +27 -0
- package/v2/model/UpdateHostInfoRequest.d.ts.map +1 -0
- package/v2/model/UpdateHostInfoRequest.js +55 -0
- package/v2/model/UpdateHostInfoRequest.js.map +1 -0
- package/v2/model/UpdateHostInfoResponse.d.ts +9 -0
- package/v2/model/UpdateHostInfoResponse.d.ts.map +1 -0
- package/v2/model/UpdateHostInfoResponse.js +19 -0
- package/v2/model/UpdateHostInfoResponse.js.map +1 -0
- package/v2/model/UpdateTaskV2RequestBody.d.ts +26 -0
- package/v2/model/UpdateTaskV2RequestBody.d.ts.map +1 -0
- package/v2/model/UpdateTaskV2RequestBody.js +51 -0
- package/v2/model/UpdateTaskV2RequestBody.js.map +1 -0
- package/v2/public-api.d.ts +90 -0
- package/v2/public-api.d.ts.map +1 -1
- package/v2/public-api.js +90 -0
- package/v2/public-api.js.map +1 -1
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RequiredError = exports.ParamCreater = exports.CodeArtsDeployClient = void 0;
|
|
4
4
|
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
5
|
+
const BatchDeleteAppRequest_1 = require("./model/BatchDeleteAppRequest");
|
|
6
|
+
const BatchDeleteHostsRequest_1 = require("./model/BatchDeleteHostsRequest");
|
|
7
|
+
const BatchUpdateApplicationPermissionsRequest_1 = require("./model/BatchUpdateApplicationPermissionsRequest");
|
|
8
|
+
const BatchUpdatePermissionLevelRequest_1 = require("./model/BatchUpdatePermissionLevelRequest");
|
|
9
|
+
const CheckCanCreateRequest_1 = require("./model/CheckCanCreateRequest");
|
|
10
|
+
const CheckIsDuplicateAppNameRequest_1 = require("./model/CheckIsDuplicateAppNameRequest");
|
|
11
|
+
const CheckWhetherHostGroupCanBeCreatedRequest_1 = require("./model/CheckWhetherHostGroupCanBeCreatedRequest");
|
|
12
|
+
const CopyApplicationRequest_1 = require("./model/CopyApplicationRequest");
|
|
13
|
+
const CopyHostsToTargetRequest_1 = require("./model/CopyHostsToTargetRequest");
|
|
14
|
+
const CreateAppGroupsRequest_1 = require("./model/CreateAppGroupsRequest");
|
|
5
15
|
const CreateAppRequest_1 = require("./model/CreateAppRequest");
|
|
6
16
|
const CreateDeployTaskByTemplateRequest_1 = require("./model/CreateDeployTaskByTemplateRequest");
|
|
7
17
|
const CreateDeploymentGroupRequest_1 = require("./model/CreateDeploymentGroupRequest");
|
|
@@ -9,22 +19,34 @@ const CreateDeploymentHostRequest_1 = require("./model/CreateDeploymentHostReque
|
|
|
9
19
|
const CreateEnvironmentRequest_1 = require("./model/CreateEnvironmentRequest");
|
|
10
20
|
const CreateHostClusterRequest_1 = require("./model/CreateHostClusterRequest");
|
|
11
21
|
const CreateHostRequest_1 = require("./model/CreateHostRequest");
|
|
22
|
+
const DeleteAppGroupsRequest_1 = require("./model/DeleteAppGroupsRequest");
|
|
12
23
|
const DeleteApplicationRequest_1 = require("./model/DeleteApplicationRequest");
|
|
13
24
|
const DeleteDeployTaskRequest_1 = require("./model/DeleteDeployTaskRequest");
|
|
14
25
|
const DeleteDeploymentGroupRequest_1 = require("./model/DeleteDeploymentGroupRequest");
|
|
15
26
|
const DeleteDeploymentHostRequest_1 = require("./model/DeleteDeploymentHostRequest");
|
|
16
27
|
const DeleteEnvironmentRequest_1 = require("./model/DeleteEnvironmentRequest");
|
|
28
|
+
const DeleteHostClusterRequest_1 = require("./model/DeleteHostClusterRequest");
|
|
17
29
|
const DeleteHostFromEnvironmentRequest_1 = require("./model/DeleteHostFromEnvironmentRequest");
|
|
30
|
+
const DeleteHostRequest_1 = require("./model/DeleteHostRequest");
|
|
18
31
|
const ImportHostToEnvironmentRequest_1 = require("./model/ImportHostToEnvironmentRequest");
|
|
19
32
|
const ListAllAppRequest_1 = require("./model/ListAllAppRequest");
|
|
33
|
+
const ListAppGroupsRequest_1 = require("./model/ListAppGroupsRequest");
|
|
34
|
+
const ListApplicationPermissionsRequest_1 = require("./model/ListApplicationPermissionsRequest");
|
|
35
|
+
const ListAssociateEnvironmentsInfosRequest_1 = require("./model/ListAssociateEnvironmentsInfosRequest");
|
|
20
36
|
const ListDeployTaskHistoryByDateRequest_1 = require("./model/ListDeployTaskHistoryByDateRequest");
|
|
21
37
|
const ListDeployTasksRequest_1 = require("./model/ListDeployTasksRequest");
|
|
38
|
+
const ListEnvironmentHostsRequest_1 = require("./model/ListEnvironmentHostsRequest");
|
|
39
|
+
const ListEnvironmentPermissionsRequest_1 = require("./model/ListEnvironmentPermissionsRequest");
|
|
22
40
|
const ListEnvironmentsRequest_1 = require("./model/ListEnvironmentsRequest");
|
|
23
41
|
const ListHostClustersRequest_1 = require("./model/ListHostClustersRequest");
|
|
42
|
+
const ListHostGroupBaseInfosRequest_1 = require("./model/ListHostGroupBaseInfosRequest");
|
|
43
|
+
const ListHostGroupPermissionsRequest_1 = require("./model/ListHostGroupPermissionsRequest");
|
|
24
44
|
const ListHostGroupsRequest_1 = require("./model/ListHostGroupsRequest");
|
|
25
45
|
const ListHostsRequest_1 = require("./model/ListHostsRequest");
|
|
26
46
|
const ListNewHostsRequest_1 = require("./model/ListNewHostsRequest");
|
|
27
47
|
const ListTaskSuccessRateRequest_1 = require("./model/ListTaskSuccessRateRequest");
|
|
48
|
+
const MoveAppGroupsRequest_1 = require("./model/MoveAppGroupsRequest");
|
|
49
|
+
const MoveAppToGroupRequest_1 = require("./model/MoveAppToGroupRequest");
|
|
28
50
|
const ShowAppDetailByIdRequest_1 = require("./model/ShowAppDetailByIdRequest");
|
|
29
51
|
const ShowDeployTaskDetailRequest_1 = require("./model/ShowDeployTaskDetailRequest");
|
|
30
52
|
const ShowDeploymentGroupDetailRequest_1 = require("./model/ShowDeploymentGroupDetailRequest");
|
|
@@ -35,8 +57,16 @@ const ShowHostClusterDetailRequest_1 = require("./model/ShowHostClusterDetailReq
|
|
|
35
57
|
const ShowHostDetailRequest_1 = require("./model/ShowHostDetailRequest");
|
|
36
58
|
const ShowProjectSuccessRateRequest_1 = require("./model/ShowProjectSuccessRateRequest");
|
|
37
59
|
const StartDeployTaskRequest_1 = require("./model/StartDeployTaskRequest");
|
|
60
|
+
const UpdateAppDisableStatusRequest_1 = require("./model/UpdateAppDisableStatusRequest");
|
|
61
|
+
const UpdateAppGroupsRequest_1 = require("./model/UpdateAppGroupsRequest");
|
|
62
|
+
const UpdateAppInfoRequest_1 = require("./model/UpdateAppInfoRequest");
|
|
38
63
|
const UpdateDeploymentGroupRequest_1 = require("./model/UpdateDeploymentGroupRequest");
|
|
39
64
|
const UpdateDeploymentHostRequest_1 = require("./model/UpdateDeploymentHostRequest");
|
|
65
|
+
const UpdateEnvironmentPermissionRequest_1 = require("./model/UpdateEnvironmentPermissionRequest");
|
|
66
|
+
const UpdateEnvironmentRequest_1 = require("./model/UpdateEnvironmentRequest");
|
|
67
|
+
const UpdateHostClusterRequest_1 = require("./model/UpdateHostClusterRequest");
|
|
68
|
+
const UpdateHostGroupPermissionsRequest_1 = require("./model/UpdateHostGroupPermissionsRequest");
|
|
69
|
+
const UpdateHostInfoRequest_1 = require("./model/UpdateHostInfoRequest");
|
|
40
70
|
class CodeArtsDeployClient {
|
|
41
71
|
static newBuilder() {
|
|
42
72
|
return new ClientBuilder_1.ClientBuilder(newClient);
|
|
@@ -47,6 +77,222 @@ class CodeArtsDeployClient {
|
|
|
47
77
|
getPath() {
|
|
48
78
|
return __dirname;
|
|
49
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* 创建分组。
|
|
82
|
+
*
|
|
83
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
84
|
+
*
|
|
85
|
+
* @summary 创建分组
|
|
86
|
+
* @param {string} projectId 项目Id
|
|
87
|
+
* @param {CreateAppGroupsRequestBody} createAppGroupsRequestBody 创建分组请求体
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
createAppGroups(createAppGroupsRequest) {
|
|
92
|
+
const options = (0, exports.ParamCreater)().createAppGroups(createAppGroupsRequest);
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
options['responseHeaders'] = [''];
|
|
95
|
+
return this.hcClient.sendRequest(options);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 删除分组。
|
|
99
|
+
*
|
|
100
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
101
|
+
*
|
|
102
|
+
* @summary 删除分组
|
|
103
|
+
* @param {string} projectId 项目Id
|
|
104
|
+
* @param {string} groupId 分组Id
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
deleteAppGroups(deleteAppGroupsRequest) {
|
|
109
|
+
const options = (0, exports.ParamCreater)().deleteAppGroups(deleteAppGroupsRequest);
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
options['responseHeaders'] = [''];
|
|
112
|
+
return this.hcClient.sendRequest(options);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 查询分组列表。
|
|
116
|
+
*
|
|
117
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
118
|
+
*
|
|
119
|
+
* @summary 查询分组列表
|
|
120
|
+
* @param {string} projectId 项目Id
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
listAppGroups(listAppGroupsRequest) {
|
|
125
|
+
const options = (0, exports.ParamCreater)().listAppGroups(listAppGroupsRequest);
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
options['responseHeaders'] = [''];
|
|
128
|
+
return this.hcClient.sendRequest(options);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* 往上或者往下移动单个分组,用来在页面上调整分组位置。
|
|
132
|
+
*
|
|
133
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
134
|
+
*
|
|
135
|
+
* @summary 移动分组
|
|
136
|
+
* @param {string} projectId 项目Id
|
|
137
|
+
* @param {MoveAppGroupsRequestBody} moveAppGroupsRequestBody 移动分组请求体
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
moveAppGroups(moveAppGroupsRequest) {
|
|
142
|
+
const options = (0, exports.ParamCreater)().moveAppGroups(moveAppGroupsRequest);
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
options['responseHeaders'] = [''];
|
|
145
|
+
return this.hcClient.sendRequest(options);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* 将应用移动至指定分组(支持批量)。
|
|
149
|
+
*
|
|
150
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
151
|
+
*
|
|
152
|
+
* @summary 移动应用至指定分组
|
|
153
|
+
* @param {string} projectId 项目Id
|
|
154
|
+
* @param {MoveAppToGroupRequestBody} moveAppToGroupRequestBody 移动应用至指定分组请求体
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
moveAppToGroup(moveAppToGroupRequest) {
|
|
159
|
+
const options = (0, exports.ParamCreater)().moveAppToGroup(moveAppToGroupRequest);
|
|
160
|
+
// @ts-ignore
|
|
161
|
+
options['responseHeaders'] = [''];
|
|
162
|
+
return this.hcClient.sendRequest(options);
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* 修改分组。
|
|
166
|
+
*
|
|
167
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
168
|
+
*
|
|
169
|
+
* @summary 修改分组
|
|
170
|
+
* @param {string} projectId 项目Id
|
|
171
|
+
* @param {string} groupId 分组Id
|
|
172
|
+
* @param {UpdateAppGroupsRequestBody} updateAppGroupsRequestBody 修改分组请求体
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
updateAppGroups(updateAppGroupsRequest) {
|
|
177
|
+
const options = (0, exports.ParamCreater)().updateAppGroups(updateAppGroupsRequest);
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
options['responseHeaders'] = [''];
|
|
180
|
+
return this.hcClient.sendRequest(options);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* 批量修改应用权限。
|
|
184
|
+
*
|
|
185
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
186
|
+
*
|
|
187
|
+
* @summary 批量修改应用权限
|
|
188
|
+
* @param {BatchUpdateApplicationPermissionsRequestBody} batchUpdateApplicationPermissionsRequestBody 批量修改应用权限请求体
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
batchUpdateApplicationPermissions(batchUpdateApplicationPermissionsRequest) {
|
|
193
|
+
const options = (0, exports.ParamCreater)().batchUpdateApplicationPermissions(batchUpdateApplicationPermissionsRequest);
|
|
194
|
+
// @ts-ignore
|
|
195
|
+
options['responseHeaders'] = [''];
|
|
196
|
+
return this.hcClient.sendRequest(options);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* 批量配置应用下鉴权级别为项目级或实例级。
|
|
200
|
+
*
|
|
201
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
202
|
+
*
|
|
203
|
+
* @summary 批量配置应用下鉴权级别
|
|
204
|
+
* @param {BatchUpdatePermissionLevelRequestBody} batchUpdatePermissionLevelRequestBody 批量配置应用下鉴权级别请求体
|
|
205
|
+
* @param {*} [options] Override http request option.
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
*/
|
|
208
|
+
batchUpdatePermissionLevel(batchUpdatePermissionLevelRequest) {
|
|
209
|
+
const options = (0, exports.ParamCreater)().batchUpdatePermissionLevel(batchUpdatePermissionLevelRequest);
|
|
210
|
+
// @ts-ignore
|
|
211
|
+
options['responseHeaders'] = [''];
|
|
212
|
+
return this.hcClient.sendRequest(options);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* 查询当前用户是否有项目下创建应用权限。
|
|
216
|
+
*
|
|
217
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
218
|
+
*
|
|
219
|
+
* @summary 查询当前用户是否有项目下创建应用权限
|
|
220
|
+
* @param {string} projectId 项目id
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
checkCanCreate(checkCanCreateRequest) {
|
|
225
|
+
const options = (0, exports.ParamCreater)().checkCanCreate(checkCanCreateRequest);
|
|
226
|
+
// @ts-ignore
|
|
227
|
+
options['responseHeaders'] = [''];
|
|
228
|
+
return this.hcClient.sendRequest(options);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* 查询应用实例级/项目级权限矩阵,传递app_id时,查询应用实例级权限矩阵;未传app_id,传递project_id时,查询应用项目级权限矩阵。
|
|
232
|
+
*
|
|
233
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
234
|
+
*
|
|
235
|
+
* @summary 查询应用实例级/项目级权限矩阵
|
|
236
|
+
* @param {string} [appId] 应用id
|
|
237
|
+
* @param {string} [projectId] 项目id
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
listApplicationPermissions(listApplicationPermissionsRequest) {
|
|
242
|
+
const options = (0, exports.ParamCreater)().listApplicationPermissions(listApplicationPermissionsRequest);
|
|
243
|
+
// @ts-ignore
|
|
244
|
+
options['responseHeaders'] = [''];
|
|
245
|
+
return this.hcClient.sendRequest(options);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 批量删除项目下应用。
|
|
249
|
+
*
|
|
250
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
251
|
+
*
|
|
252
|
+
* @summary 批量删除项目下应用
|
|
253
|
+
* @param {AppBatchDeleteRequest} batchDeleteAppRequestBody 批量删除应用请求体
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
batchDeleteApp(batchDeleteAppRequest) {
|
|
258
|
+
const options = (0, exports.ParamCreater)().batchDeleteApp(batchDeleteAppRequest);
|
|
259
|
+
// @ts-ignore
|
|
260
|
+
options['responseHeaders'] = [''];
|
|
261
|
+
return this.hcClient.sendRequest(options);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* 查询项目下是否存在同名应用。
|
|
265
|
+
*
|
|
266
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
267
|
+
*
|
|
268
|
+
* @summary 查询项目下是否存在同名应用
|
|
269
|
+
* @param {string} name 应用名称
|
|
270
|
+
* @param {string} projectId 项目id
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
checkIsDuplicateAppName(checkIsDuplicateAppNameRequest) {
|
|
275
|
+
const options = (0, exports.ParamCreater)().checkIsDuplicateAppName(checkIsDuplicateAppNameRequest);
|
|
276
|
+
// @ts-ignore
|
|
277
|
+
options['responseHeaders'] = [''];
|
|
278
|
+
return this.hcClient.sendRequest(options);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 复制应用。
|
|
282
|
+
*
|
|
283
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
284
|
+
*
|
|
285
|
+
* @summary 复制应用
|
|
286
|
+
* @param {string} appId 应用id
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
copyApplication(copyApplicationRequest) {
|
|
291
|
+
const options = (0, exports.ParamCreater)().copyApplication(copyApplicationRequest);
|
|
292
|
+
// @ts-ignore
|
|
293
|
+
options['responseHeaders'] = [''];
|
|
294
|
+
return this.hcClient.sendRequest(options);
|
|
295
|
+
}
|
|
50
296
|
/**
|
|
51
297
|
* 新建应用。
|
|
52
298
|
*
|
|
@@ -138,8 +384,8 @@ class CodeArtsDeployClient {
|
|
|
138
384
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
139
385
|
*
|
|
140
386
|
* @summary 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表
|
|
141
|
-
* @param {string} projectId 项目
|
|
142
|
-
* @param {string} id 任务
|
|
387
|
+
* @param {string} projectId 项目id
|
|
388
|
+
* @param {string} id 任务id
|
|
143
389
|
* @param {number} page 分页页码, 表示从此页开始查询, page大于等于1
|
|
144
390
|
* @param {number} size 每页显示的条目数量,size小于等于100
|
|
145
391
|
* @param {string} startDate 区间开始时间,格式yyyy-MM-dd。 开始时间和结束时间间隔不能超过30天
|
|
@@ -160,7 +406,7 @@ class CodeArtsDeployClient {
|
|
|
160
406
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
161
407
|
*
|
|
162
408
|
* @summary 获取应用列表
|
|
163
|
-
* @param {string} projectId 项目
|
|
409
|
+
* @param {string} projectId 项目id
|
|
164
410
|
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
165
411
|
* @param {number} page 分页页码, 表示从此页开始查询, page大于等于1
|
|
166
412
|
* @param {number} size 每页显示的条目数量,size小于等于100
|
|
@@ -206,7 +452,7 @@ class CodeArtsDeployClient {
|
|
|
206
452
|
return this.hcClient.sendRequest(options);
|
|
207
453
|
}
|
|
208
454
|
/**
|
|
209
|
-
*
|
|
455
|
+
* 查询部署记录的执行参数。
|
|
210
456
|
*
|
|
211
457
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
212
458
|
*
|
|
@@ -240,6 +486,40 @@ class CodeArtsDeployClient {
|
|
|
240
486
|
options['responseHeaders'] = [''];
|
|
241
487
|
return this.hcClient.sendRequest(options);
|
|
242
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* 禁用/取消禁用应用。
|
|
491
|
+
*
|
|
492
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
493
|
+
*
|
|
494
|
+
* @summary 禁用/取消禁用应用
|
|
495
|
+
* @param {string} appId 应用id
|
|
496
|
+
* @param {UpdateAppDisableStatusRequestBody} updateAppDisableStatusRequestBody 禁用参数
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
updateAppDisableStatus(updateAppDisableStatusRequest) {
|
|
501
|
+
const options = (0, exports.ParamCreater)().updateAppDisableStatus(updateAppDisableStatusRequest);
|
|
502
|
+
// @ts-ignore
|
|
503
|
+
options['responseHeaders'] = [''];
|
|
504
|
+
return this.hcClient.sendRequest(options);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* 更新应用。
|
|
508
|
+
*
|
|
509
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
510
|
+
*
|
|
511
|
+
* @summary 更新应用
|
|
512
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
513
|
+
* @param {UpdateAppInfoRequestBody} updateAppInfoRequestBody 更新应用请求体
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
updateAppInfo(updateAppInfoRequest) {
|
|
518
|
+
const options = (0, exports.ParamCreater)().updateAppInfo(updateAppInfoRequest);
|
|
519
|
+
// @ts-ignore
|
|
520
|
+
options['responseHeaders'] = [''];
|
|
521
|
+
return this.hcClient.sendRequest(options);
|
|
522
|
+
}
|
|
243
523
|
/**
|
|
244
524
|
* 应用下创建环境。
|
|
245
525
|
*
|
|
@@ -314,6 +594,27 @@ class CodeArtsDeployClient {
|
|
|
314
594
|
options['responseHeaders'] = [''];
|
|
315
595
|
return this.hcClient.sendRequest(options);
|
|
316
596
|
}
|
|
597
|
+
/**
|
|
598
|
+
* 查询环境内的主机列表。
|
|
599
|
+
*
|
|
600
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
601
|
+
*
|
|
602
|
+
* @summary 查询环境内的主机列表
|
|
603
|
+
* @param {string} applicationId 应用id
|
|
604
|
+
* @param {string} environmentId 环境id
|
|
605
|
+
* @param {string} [keyField] 主机名、ip关键字模糊搜索
|
|
606
|
+
* @param {boolean} [asProxy] 是否为代理机,true为代理机
|
|
607
|
+
* @param {number} [pageIndex] 分页页码
|
|
608
|
+
* @param {number} [pageSize] 分页查询每页条数
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
listEnvironmentHosts(listEnvironmentHostsRequest) {
|
|
613
|
+
const options = (0, exports.ParamCreater)().listEnvironmentHosts(listEnvironmentHostsRequest);
|
|
614
|
+
// @ts-ignore
|
|
615
|
+
options['responseHeaders'] = [''];
|
|
616
|
+
return this.hcClient.sendRequest(options);
|
|
617
|
+
}
|
|
317
618
|
/**
|
|
318
619
|
* 查询应用下环境列表。
|
|
319
620
|
*
|
|
@@ -321,7 +622,7 @@ class CodeArtsDeployClient {
|
|
|
321
622
|
*
|
|
322
623
|
* @summary 查询应用下环境列表
|
|
323
624
|
* @param {string} applicationId 应用id
|
|
324
|
-
* @param {string} projectId 项目
|
|
625
|
+
* @param {string} projectId 项目id
|
|
325
626
|
* @param {number} [pageIndex] 分页页码, 表示从此页开始查询, page大于等于1
|
|
326
627
|
* @param {number} [pageSize] 每页显示的条目数量,size小于等于100
|
|
327
628
|
* @param {string} [name] 要查询的环境名称
|
|
@@ -354,145 +655,254 @@ class CodeArtsDeployClient {
|
|
|
354
655
|
return this.hcClient.sendRequest(options);
|
|
355
656
|
}
|
|
356
657
|
/**
|
|
357
|
-
*
|
|
658
|
+
* 应用下编辑环境。
|
|
358
659
|
*
|
|
359
660
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
360
661
|
*
|
|
361
|
-
* @summary
|
|
362
|
-
* @param {string} groupId 主机集群id
|
|
662
|
+
* @summary 应用下编辑环境
|
|
363
663
|
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
364
|
-
* @param {
|
|
664
|
+
* @param {string} applicationId 应用id
|
|
665
|
+
* @param {string} environmentId 环境id
|
|
666
|
+
* @param {EnvironmentRequest} updateEnvironmentRequestBody 更新环境请求体
|
|
365
667
|
* @param {*} [options] Override http request option.
|
|
366
668
|
* @throws {RequiredError}
|
|
367
669
|
*/
|
|
368
|
-
|
|
369
|
-
const options = (0, exports.ParamCreater)().
|
|
670
|
+
updateEnvironment(updateEnvironmentRequest) {
|
|
671
|
+
const options = (0, exports.ParamCreater)().updateEnvironment(updateEnvironmentRequest);
|
|
370
672
|
// @ts-ignore
|
|
371
673
|
options['responseHeaders'] = [''];
|
|
372
674
|
return this.hcClient.sendRequest(options);
|
|
373
675
|
}
|
|
374
676
|
/**
|
|
375
|
-
*
|
|
677
|
+
* 查询环境权限。
|
|
376
678
|
*
|
|
377
679
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
378
680
|
*
|
|
379
|
-
* @summary
|
|
380
|
-
* @param {string}
|
|
381
|
-
* @param {
|
|
382
|
-
* @param {CreateHostRequestBody} createHostRequestBody 创建主机请求体
|
|
681
|
+
* @summary 查询环境权限
|
|
682
|
+
* @param {string} applicationId 应用id
|
|
683
|
+
* @param {string} environmentId 环境id
|
|
383
684
|
* @param {*} [options] Override http request option.
|
|
384
685
|
* @throws {RequiredError}
|
|
385
686
|
*/
|
|
386
|
-
|
|
387
|
-
const options = (0, exports.ParamCreater)().
|
|
687
|
+
listEnvironmentPermissions(listEnvironmentPermissionsRequest) {
|
|
688
|
+
const options = (0, exports.ParamCreater)().listEnvironmentPermissions(listEnvironmentPermissionsRequest);
|
|
388
689
|
// @ts-ignore
|
|
389
690
|
options['responseHeaders'] = [''];
|
|
390
691
|
return this.hcClient.sendRequest(options);
|
|
391
692
|
}
|
|
392
693
|
/**
|
|
393
|
-
*
|
|
694
|
+
* 编辑环境权限。
|
|
394
695
|
*
|
|
395
696
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
396
697
|
*
|
|
397
|
-
* @summary
|
|
398
|
-
* @param {string} groupId 主机集群id
|
|
399
|
-
* @param {string} hostId 主机id
|
|
698
|
+
* @summary 编辑环境权限
|
|
400
699
|
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
700
|
+
* @param {string} applicationId 应用id
|
|
701
|
+
* @param {string} environmentId 环境id
|
|
702
|
+
* @param {EnvironmentPermissionV2Body} updateEnvironmentPermissionRequestBody 环境权限对象
|
|
401
703
|
* @param {*} [options] Override http request option.
|
|
402
704
|
* @throws {RequiredError}
|
|
403
705
|
*/
|
|
404
|
-
|
|
405
|
-
const options = (0, exports.ParamCreater)().
|
|
706
|
+
updateEnvironmentPermission(updateEnvironmentPermissionRequest) {
|
|
707
|
+
const options = (0, exports.ParamCreater)().updateEnvironmentPermission(updateEnvironmentPermissionRequest);
|
|
406
708
|
// @ts-ignore
|
|
407
709
|
options['responseHeaders'] = [''];
|
|
408
710
|
return this.hcClient.sendRequest(options);
|
|
409
711
|
}
|
|
410
712
|
/**
|
|
411
|
-
*
|
|
713
|
+
* 批量删除主机集群下的主机。
|
|
412
714
|
*
|
|
413
715
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
414
716
|
*
|
|
415
|
-
* @summary
|
|
717
|
+
* @summary 批量删除主机集群下的主机
|
|
718
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
416
719
|
* @param {string} groupId 主机集群id
|
|
417
|
-
* @param {
|
|
418
|
-
* @param {number} [offset] 偏移量,表示从此偏移量开始查询,offset大于等于0
|
|
419
|
-
* @param {number} [limit] 每页显示的条目数量,默认为1000
|
|
420
|
-
* @param {string} [name] 主机名,可输入中英文,数字和符号(-_.)
|
|
421
|
-
* @param {string} [sortKey] 排序字段,支持:AS_PROXY|HOST_NAME|OS|OWNER_NAME|as_proxy|host_name|os|owner_name|nickName。不填默认为:as_proxy
|
|
422
|
-
* @param {'DESC' | 'ASC'} [sortDir] 排序方式,默认为:DESC。DESC:降序排序。ASC:升序排序
|
|
423
|
-
* @param {boolean} [withAuth] 返回结果是否加密
|
|
720
|
+
* @param {DeploymentHostListEntity} batchDeleteHostsRequestBody 批量删除主机请求参数
|
|
424
721
|
* @param {*} [options] Override http request option.
|
|
425
722
|
* @throws {RequiredError}
|
|
426
723
|
*/
|
|
427
|
-
|
|
428
|
-
const options = (0, exports.ParamCreater)().
|
|
724
|
+
batchDeleteHosts(batchDeleteHostsRequest) {
|
|
725
|
+
const options = (0, exports.ParamCreater)().batchDeleteHosts(batchDeleteHostsRequest);
|
|
429
726
|
// @ts-ignore
|
|
430
727
|
options['responseHeaders'] = [''];
|
|
431
728
|
return this.hcClient.sendRequest(options);
|
|
432
729
|
}
|
|
433
730
|
/**
|
|
434
|
-
*
|
|
731
|
+
* 批量复制主机至目标主机集群。
|
|
435
732
|
*
|
|
436
733
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
437
734
|
*
|
|
438
|
-
* @summary
|
|
439
|
-
* @param {
|
|
440
|
-
* @param {string}
|
|
441
|
-
* @param {
|
|
442
|
-
* @param {number} [pageIndex] 页码数
|
|
443
|
-
* @param {number} [pageSize] 每页显示的条目数量,默认为10
|
|
444
|
-
* @param {string} [sortKey] 排序字段:as_proxy|host_name|owner_name,不传使用默认排序
|
|
445
|
-
* @param {'DESC' | 'ASC'} [sortDir] 排序方式:DESC、ASC,默认为DESC
|
|
446
|
-
* @param {boolean} [asProxy] 是否为代理机
|
|
735
|
+
* @summary 批量复制主机至目标主机集群
|
|
736
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
737
|
+
* @param {string} groupId 源主机集群id
|
|
738
|
+
* @param {DeploymentHostsCopyRequest} copyHostsToTargetRequestBody 复制主机请求体
|
|
447
739
|
* @param {*} [options] Override http request option.
|
|
448
740
|
* @throws {RequiredError}
|
|
449
741
|
*/
|
|
450
|
-
|
|
451
|
-
const options = (0, exports.ParamCreater)().
|
|
742
|
+
copyHostsToTarget(copyHostsToTargetRequest) {
|
|
743
|
+
const options = (0, exports.ParamCreater)().copyHostsToTarget(copyHostsToTargetRequest);
|
|
452
744
|
// @ts-ignore
|
|
453
745
|
options['responseHeaders'] = [''];
|
|
454
746
|
return this.hcClient.sendRequest(options);
|
|
455
747
|
}
|
|
456
748
|
/**
|
|
457
|
-
*
|
|
749
|
+
* 在指定主机集群下新建主机。该接口于2024年09月30日后不再维护,推荐使用新版CreateHost接口。
|
|
458
750
|
*
|
|
459
751
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
460
752
|
*
|
|
461
|
-
* @summary
|
|
753
|
+
* @summary 新建主机
|
|
462
754
|
* @param {string} groupId 主机集群id
|
|
463
|
-
* @param {
|
|
755
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
756
|
+
* @param {DeploymentHost} createDeploymentHostRequestBody 创建主机请求体
|
|
464
757
|
* @param {*} [options] Override http request option.
|
|
465
758
|
* @throws {RequiredError}
|
|
466
759
|
*/
|
|
467
|
-
|
|
468
|
-
const options = (0, exports.ParamCreater)().
|
|
760
|
+
createDeploymentHost(createDeploymentHostRequest) {
|
|
761
|
+
const options = (0, exports.ParamCreater)().createDeploymentHost(createDeploymentHostRequest);
|
|
469
762
|
// @ts-ignore
|
|
470
763
|
options['responseHeaders'] = [''];
|
|
471
764
|
return this.hcClient.sendRequest(options);
|
|
472
765
|
}
|
|
473
766
|
/**
|
|
474
|
-
*
|
|
767
|
+
* 在指定主机集群下新建主机。
|
|
475
768
|
*
|
|
476
769
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
477
770
|
*
|
|
478
|
-
* @summary
|
|
771
|
+
* @summary 新建主机
|
|
479
772
|
* @param {string} groupId 主机集群id
|
|
480
|
-
* @param {
|
|
773
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
774
|
+
* @param {CreateHostRequestBody} createHostRequestBody 创建主机请求体
|
|
481
775
|
* @param {*} [options] Override http request option.
|
|
482
776
|
* @throws {RequiredError}
|
|
483
777
|
*/
|
|
484
|
-
|
|
485
|
-
const options = (0, exports.ParamCreater)().
|
|
778
|
+
createHost(createHostRequest) {
|
|
779
|
+
const options = (0, exports.ParamCreater)().createHost(createHostRequest);
|
|
486
780
|
// @ts-ignore
|
|
487
781
|
options['responseHeaders'] = [''];
|
|
488
782
|
return this.hcClient.sendRequest(options);
|
|
489
783
|
}
|
|
490
784
|
/**
|
|
491
|
-
* 根据主机id
|
|
785
|
+
* 根据主机id删除主机。该接口于2024年9月30日后不再维护。
|
|
492
786
|
*
|
|
493
787
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
494
788
|
*
|
|
495
|
-
* @summary
|
|
789
|
+
* @summary 删除主机
|
|
790
|
+
* @param {string} groupId 主机集群id
|
|
791
|
+
* @param {string} hostId 主机id
|
|
792
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
deleteDeploymentHost(deleteDeploymentHostRequest) {
|
|
797
|
+
const options = (0, exports.ParamCreater)().deleteDeploymentHost(deleteDeploymentHostRequest);
|
|
798
|
+
// @ts-ignore
|
|
799
|
+
options['responseHeaders'] = [''];
|
|
800
|
+
return this.hcClient.sendRequest(options);
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* 根据主机id删除主机集群下主机。
|
|
804
|
+
*
|
|
805
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
806
|
+
*
|
|
807
|
+
* @summary 删除主机集群下主机
|
|
808
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
809
|
+
* @param {string} groupId 主机集群id
|
|
810
|
+
* @param {string} hostId 主机id
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
*/
|
|
814
|
+
deleteHost(deleteHostRequest) {
|
|
815
|
+
const options = (0, exports.ParamCreater)().deleteHost(deleteHostRequest);
|
|
816
|
+
// @ts-ignore
|
|
817
|
+
options['responseHeaders'] = [''];
|
|
818
|
+
return this.hcClient.sendRequest(options);
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* 根据主机集群id查询指定主机集群下的主机列表。该接口于2024年09月30日后不再维护,推荐使用新版ListNewHosts接口。
|
|
822
|
+
*
|
|
823
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
824
|
+
*
|
|
825
|
+
* @summary 查询主机列表
|
|
826
|
+
* @param {string} groupId 主机集群id
|
|
827
|
+
* @param {boolean} [asProxy] 是否为代理机
|
|
828
|
+
* @param {number} [offset] 偏移量,表示从此偏移量开始查询,offset大于等于0
|
|
829
|
+
* @param {number} [limit] 每页显示的条目数量,默认为1000
|
|
830
|
+
* @param {string} [name] 主机名,可输入中英文,数字和符号(-_.)
|
|
831
|
+
* @param {string} [sortKey] 排序字段,支持:AS_PROXY|HOST_NAME|OS|OWNER_NAME|as_proxy|host_name|os|owner_name|nickName。不填默认为:as_proxy
|
|
832
|
+
* @param {'DESC' | 'ASC'} [sortDir] 排序方式,默认为:DESC。DESC:降序排序。ASC:升序排序
|
|
833
|
+
* @param {boolean} [withAuth] 返回结果是否加密
|
|
834
|
+
* @param {*} [options] Override http request option.
|
|
835
|
+
* @throws {RequiredError}
|
|
836
|
+
*/
|
|
837
|
+
listHosts(listHostsRequest) {
|
|
838
|
+
const options = (0, exports.ParamCreater)().listHosts(listHostsRequest);
|
|
839
|
+
// @ts-ignore
|
|
840
|
+
options['responseHeaders'] = [''];
|
|
841
|
+
return this.hcClient.sendRequest(options);
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* 根据主机集群id查询指定主机集群下的主机列表。
|
|
845
|
+
*
|
|
846
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
847
|
+
*
|
|
848
|
+
* @summary 查询主机列表
|
|
849
|
+
* @param {string} groupId 项目id
|
|
850
|
+
* @param {string} [keyField] 主机名模糊查询信息
|
|
851
|
+
* @param {string} [environmentId] 环境id
|
|
852
|
+
* @param {number} [pageIndex] 页码数
|
|
853
|
+
* @param {number} [pageSize] 每页显示的条目数量,默认为10
|
|
854
|
+
* @param {string} [sortKey] 排序字段:as_proxy|host_name|owner_name,不传使用默认排序
|
|
855
|
+
* @param {'DESC' | 'ASC'} [sortDir] 排序方式:DESC、ASC,默认为DESC
|
|
856
|
+
* @param {boolean} [asProxy] 是否为代理机
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
listNewHosts(listNewHostsRequest) {
|
|
861
|
+
const options = (0, exports.ParamCreater)().listNewHosts(listNewHostsRequest);
|
|
862
|
+
// @ts-ignore
|
|
863
|
+
options['responseHeaders'] = [''];
|
|
864
|
+
return this.hcClient.sendRequest(options);
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* 根据主机id查询主机详情。该接口于2024年09月30日后不再维护,推荐使用新版ShowHostDetail接口。
|
|
868
|
+
*
|
|
869
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
870
|
+
*
|
|
871
|
+
* @summary 查询主机详情
|
|
872
|
+
* @param {string} groupId 主机集群id
|
|
873
|
+
* @param {string} hostId 主机id
|
|
874
|
+
* @param {*} [options] Override http request option.
|
|
875
|
+
* @throws {RequiredError}
|
|
876
|
+
*/
|
|
877
|
+
showDeploymentHostDetail(showDeploymentHostDetailRequest) {
|
|
878
|
+
const options = (0, exports.ParamCreater)().showDeploymentHostDetail(showDeploymentHostDetailRequest);
|
|
879
|
+
// @ts-ignore
|
|
880
|
+
options['responseHeaders'] = [''];
|
|
881
|
+
return this.hcClient.sendRequest(options);
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* 根据主机id查询主机详情。
|
|
885
|
+
*
|
|
886
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
887
|
+
*
|
|
888
|
+
* @summary 查询主机详情
|
|
889
|
+
* @param {string} groupId 主机集群id
|
|
890
|
+
* @param {string} hostId 主机id
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
*/
|
|
894
|
+
showHostDetail(showHostDetailRequest) {
|
|
895
|
+
const options = (0, exports.ParamCreater)().showHostDetail(showHostDetailRequest);
|
|
896
|
+
// @ts-ignore
|
|
897
|
+
options['responseHeaders'] = [''];
|
|
898
|
+
return this.hcClient.sendRequest(options);
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* 根据主机id修改主机信息。该接口于2024年9月30日后不再维护。
|
|
902
|
+
*
|
|
903
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
904
|
+
*
|
|
905
|
+
* @summary 修改主机
|
|
496
906
|
* @param {string} groupId 主机集群id
|
|
497
907
|
* @param {string} hostId 主机id
|
|
498
908
|
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
@@ -506,6 +916,25 @@ class CodeArtsDeployClient {
|
|
|
506
916
|
options['responseHeaders'] = [''];
|
|
507
917
|
return this.hcClient.sendRequest(options);
|
|
508
918
|
}
|
|
919
|
+
/**
|
|
920
|
+
* 根据主机id编辑主机集群下主机信息。
|
|
921
|
+
*
|
|
922
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
923
|
+
*
|
|
924
|
+
* @summary 编辑主机集群下主机信息
|
|
925
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
926
|
+
* @param {string} groupId 主机集群id
|
|
927
|
+
* @param {string} hostId 主机id
|
|
928
|
+
* @param {DeploymentHostRequestExternal} updateHostInfoRequestBody 编辑主机请求体
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
updateHostInfo(updateHostInfoRequest) {
|
|
933
|
+
const options = (0, exports.ParamCreater)().updateHostInfo(updateHostInfoRequest);
|
|
934
|
+
// @ts-ignore
|
|
935
|
+
options['responseHeaders'] = [''];
|
|
936
|
+
return this.hcClient.sendRequest(options);
|
|
937
|
+
}
|
|
509
938
|
/**
|
|
510
939
|
* 在项目下新建主机集群。该接口于2024年09月30日后不再维护,推荐使用新版CreateHostCluster接口。
|
|
511
940
|
*
|
|
@@ -557,13 +986,48 @@ class CodeArtsDeployClient {
|
|
|
557
986
|
options['responseHeaders'] = [''];
|
|
558
987
|
return this.hcClient.sendRequest(options);
|
|
559
988
|
}
|
|
989
|
+
/**
|
|
990
|
+
* 根据主机集群id删除主机集群。
|
|
991
|
+
*
|
|
992
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
993
|
+
*
|
|
994
|
+
* @summary 删除主机集群
|
|
995
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
996
|
+
* @param {string} groupId 主机集群id
|
|
997
|
+
* @param {*} [options] Override http request option.
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
*/
|
|
1000
|
+
deleteHostCluster(deleteHostClusterRequest) {
|
|
1001
|
+
const options = (0, exports.ParamCreater)().deleteHostCluster(deleteHostClusterRequest);
|
|
1002
|
+
// @ts-ignore
|
|
1003
|
+
options['responseHeaders'] = [''];
|
|
1004
|
+
return this.hcClient.sendRequest(options);
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* 查询主机集群关联环境信息。
|
|
1008
|
+
*
|
|
1009
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1010
|
+
*
|
|
1011
|
+
* @summary 查询主机集群关联环境信息
|
|
1012
|
+
* @param {string} groupId 主机集群id
|
|
1013
|
+
* @param {number} [pageIndex] 页码
|
|
1014
|
+
* @param {number} [pageSize] 每页查询条数
|
|
1015
|
+
* @param {*} [options] Override http request option.
|
|
1016
|
+
* @throws {RequiredError}
|
|
1017
|
+
*/
|
|
1018
|
+
listAssociateEnvironmentsInfos(listAssociateEnvironmentsInfosRequest) {
|
|
1019
|
+
const options = (0, exports.ParamCreater)().listAssociateEnvironmentsInfos(listAssociateEnvironmentsInfosRequest);
|
|
1020
|
+
// @ts-ignore
|
|
1021
|
+
options['responseHeaders'] = [''];
|
|
1022
|
+
return this.hcClient.sendRequest(options);
|
|
1023
|
+
}
|
|
560
1024
|
/**
|
|
561
1025
|
* 按条件查询主机集群列表。
|
|
562
1026
|
*
|
|
563
1027
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
564
1028
|
*
|
|
565
1029
|
* @summary 查询主机集群列表
|
|
566
|
-
* @param {string} projectId 项目
|
|
1030
|
+
* @param {string} projectId 项目id
|
|
567
1031
|
* @param {string} [name] 主机集群模糊查询信息
|
|
568
1032
|
* @param {'windows' | 'linux'} [os] 操作系统:windows|linux
|
|
569
1033
|
* @param {number} [pageIndex] 页码数
|
|
@@ -581,13 +1045,34 @@ class CodeArtsDeployClient {
|
|
|
581
1045
|
options['responseHeaders'] = [''];
|
|
582
1046
|
return this.hcClient.sendRequest(options);
|
|
583
1047
|
}
|
|
1048
|
+
/**
|
|
1049
|
+
* 查询应用下环境基本信息列表。
|
|
1050
|
+
*
|
|
1051
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1052
|
+
*
|
|
1053
|
+
* @summary 查询应用下环境基本信息列表
|
|
1054
|
+
* @param {string} applicationId 应用id
|
|
1055
|
+
* @param {string} projectUuid 项目id
|
|
1056
|
+
* @param {'linux' | 'windows'} [os] 操作系统:windows|linux
|
|
1057
|
+
* @param {number} [pageIndex] 分页页码
|
|
1058
|
+
* @param {number} [pageSize] 分页查询每页条数
|
|
1059
|
+
* @param {string} [name] 按主机集群名称搜索关键字
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
listHostGroupBaseInfos(listHostGroupBaseInfosRequest) {
|
|
1064
|
+
const options = (0, exports.ParamCreater)().listHostGroupBaseInfos(listHostGroupBaseInfosRequest);
|
|
1065
|
+
// @ts-ignore
|
|
1066
|
+
options['responseHeaders'] = [''];
|
|
1067
|
+
return this.hcClient.sendRequest(options);
|
|
1068
|
+
}
|
|
584
1069
|
/**
|
|
585
1070
|
* 按条件查询主机集群列表。该接口于2024年09月30日后不再维护,推荐使用新版ListHostClusters接口。
|
|
586
1071
|
*
|
|
587
1072
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
588
1073
|
*
|
|
589
1074
|
* @summary 查询主机集群列表
|
|
590
|
-
* @param {string} projectId 项目
|
|
1075
|
+
* @param {string} projectId 项目id
|
|
591
1076
|
* @param {string} regionName 局点信息
|
|
592
1077
|
* @param {'windows' | 'linux'} [os] 操作系统:windows|linux
|
|
593
1078
|
* @param {number} [offset] 偏移量,表示从此偏移量开始查询,offset大于等于0
|
|
@@ -642,7 +1127,7 @@ class CodeArtsDeployClient {
|
|
|
642
1127
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
643
1128
|
*
|
|
644
1129
|
* @summary 修改主机集群
|
|
645
|
-
* @param {string} groupId 主机集群
|
|
1130
|
+
* @param {string} groupId 主机集群id
|
|
646
1131
|
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
647
1132
|
* @param {DeploymentGroupUpdateRequest} updateDeploymentGroupRequestBody 主机集群请求体
|
|
648
1133
|
* @param {*} [options] Override http request option.
|
|
@@ -654,13 +1139,81 @@ class CodeArtsDeployClient {
|
|
|
654
1139
|
options['responseHeaders'] = [''];
|
|
655
1140
|
return this.hcClient.sendRequest(options);
|
|
656
1141
|
}
|
|
1142
|
+
/**
|
|
1143
|
+
* 编辑主机集群。
|
|
1144
|
+
*
|
|
1145
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1146
|
+
*
|
|
1147
|
+
* @summary 编辑主机集群
|
|
1148
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
1149
|
+
* @param {string} groupId 主机集群id
|
|
1150
|
+
* @param {HostClusterRequest} updateHostClusterRequestBody 编辑主机集群请求体
|
|
1151
|
+
* @param {*} [options] Override http request option.
|
|
1152
|
+
* @throws {RequiredError}
|
|
1153
|
+
*/
|
|
1154
|
+
updateHostCluster(updateHostClusterRequest) {
|
|
1155
|
+
const options = (0, exports.ParamCreater)().updateHostCluster(updateHostClusterRequest);
|
|
1156
|
+
// @ts-ignore
|
|
1157
|
+
options['responseHeaders'] = [''];
|
|
1158
|
+
return this.hcClient.sendRequest(options);
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* 判断当前用户在项目下是否有权限创建主机集群。
|
|
1162
|
+
*
|
|
1163
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1164
|
+
*
|
|
1165
|
+
* @summary 判断当前用户在项目下是否有权限创建主机集群
|
|
1166
|
+
* @param {string} projectId 项目id
|
|
1167
|
+
* @param {*} [options] Override http request option.
|
|
1168
|
+
* @throws {RequiredError}
|
|
1169
|
+
*/
|
|
1170
|
+
checkWhetherHostGroupCanBeCreated(checkWhetherHostGroupCanBeCreatedRequest) {
|
|
1171
|
+
const options = (0, exports.ParamCreater)().checkWhetherHostGroupCanBeCreated(checkWhetherHostGroupCanBeCreatedRequest);
|
|
1172
|
+
// @ts-ignore
|
|
1173
|
+
options['responseHeaders'] = [''];
|
|
1174
|
+
return this.hcClient.sendRequest(options);
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* 根据主机集群id查询主机集群权限矩阵。
|
|
1178
|
+
*
|
|
1179
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1180
|
+
*
|
|
1181
|
+
* @summary 查询主机集群权限矩阵
|
|
1182
|
+
* @param {string} groupId 主机集群id
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
*/
|
|
1186
|
+
listHostGroupPermissions(listHostGroupPermissionsRequest) {
|
|
1187
|
+
const options = (0, exports.ParamCreater)().listHostGroupPermissions(listHostGroupPermissionsRequest);
|
|
1188
|
+
// @ts-ignore
|
|
1189
|
+
options['responseHeaders'] = [''];
|
|
1190
|
+
return this.hcClient.sendRequest(options);
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* 根据主机集群id修改主机集群权限矩阵。
|
|
1194
|
+
*
|
|
1195
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1196
|
+
*
|
|
1197
|
+
* @summary 修改主机集群权限矩阵
|
|
1198
|
+
* @param {'application/json;charset=utf-8' | 'application/json'} contentType 消息体的类型(格式),下方类型可任选其一使用: application/json;charset=utf-8 application/json
|
|
1199
|
+
* @param {string} groupId 主机集群id
|
|
1200
|
+
* @param {PermissionUpdateV2Body} updateHostGroupPermissionsRequestBody 更新主机集群权限请求体
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
*/
|
|
1204
|
+
updateHostGroupPermissions(updateHostGroupPermissionsRequest) {
|
|
1205
|
+
const options = (0, exports.ParamCreater)().updateHostGroupPermissions(updateHostGroupPermissionsRequest);
|
|
1206
|
+
// @ts-ignore
|
|
1207
|
+
options['responseHeaders'] = [''];
|
|
1208
|
+
return this.hcClient.sendRequest(options);
|
|
1209
|
+
}
|
|
657
1210
|
/**
|
|
658
1211
|
* 获取指定应用的应用部署成功率。
|
|
659
1212
|
*
|
|
660
1213
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
661
1214
|
*
|
|
662
1215
|
* @summary 获取指定应用的应用部署成功率
|
|
663
|
-
* @param {string} projectId 项目
|
|
1216
|
+
* @param {string} projectId 项目id
|
|
664
1217
|
* @param {TasksSuccessRateQuery} listTaskSuccessRateRequestBody 应用部署成功率接口请求参数
|
|
665
1218
|
* @param {*} [options] Override http request option.
|
|
666
1219
|
* @throws {RequiredError}
|
|
@@ -677,7 +1230,7 @@ class CodeArtsDeployClient {
|
|
|
677
1230
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
678
1231
|
*
|
|
679
1232
|
* @summary 获取指定项目的应用部署成功率
|
|
680
|
-
* @param {string} projectId 项目
|
|
1233
|
+
* @param {string} projectId 项目id
|
|
681
1234
|
* @param {string} startDate 部署应用开始时间范围的左边界(包含),格式yyyy-MM-dd
|
|
682
1235
|
* @param {string} endDate 部署应用开始时间范围的右边界(包含),格式yyyy-MM-dd 。最大时间范围为1年。
|
|
683
1236
|
* @param {*} [options] Override http request option.
|
|
@@ -694,14 +1247,14 @@ exports.CodeArtsDeployClient = CodeArtsDeployClient;
|
|
|
694
1247
|
const ParamCreater = function () {
|
|
695
1248
|
return {
|
|
696
1249
|
/**
|
|
697
|
-
*
|
|
1250
|
+
* 创建分组。
|
|
698
1251
|
*
|
|
699
1252
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
700
1253
|
*/
|
|
701
|
-
|
|
1254
|
+
createAppGroups(createAppGroupsRequest) {
|
|
702
1255
|
const options = {
|
|
703
1256
|
method: "POST",
|
|
704
|
-
url: "/v1/applications",
|
|
1257
|
+
url: "/v1/projects/{project_id}/applications/groups",
|
|
705
1258
|
contentType: "application/json",
|
|
706
1259
|
queryParams: {},
|
|
707
1260
|
pathParams: {},
|
|
@@ -710,150 +1263,146 @@ const ParamCreater = function () {
|
|
|
710
1263
|
};
|
|
711
1264
|
const localVarHeaderParameter = {};
|
|
712
1265
|
let body;
|
|
713
|
-
let
|
|
714
|
-
if (
|
|
715
|
-
if (
|
|
716
|
-
|
|
717
|
-
body =
|
|
1266
|
+
let projectId;
|
|
1267
|
+
if (createAppGroupsRequest !== null && createAppGroupsRequest !== undefined) {
|
|
1268
|
+
if (createAppGroupsRequest instanceof CreateAppGroupsRequest_1.CreateAppGroupsRequest) {
|
|
1269
|
+
projectId = createAppGroupsRequest.projectId;
|
|
1270
|
+
body = createAppGroupsRequest.body;
|
|
718
1271
|
}
|
|
719
1272
|
else {
|
|
720
|
-
|
|
721
|
-
body =
|
|
1273
|
+
projectId = createAppGroupsRequest['project_id'];
|
|
1274
|
+
body = createAppGroupsRequest['body'];
|
|
722
1275
|
}
|
|
723
1276
|
}
|
|
1277
|
+
if (projectId === null || projectId === undefined) {
|
|
1278
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling createAppGroups.');
|
|
1279
|
+
}
|
|
724
1280
|
if (body === null || body === undefined) {
|
|
725
1281
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
726
1282
|
}
|
|
727
|
-
if (contentType !== undefined && contentType !== null) {
|
|
728
|
-
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
729
|
-
}
|
|
730
1283
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
731
1284
|
options.data = body !== undefined ? body : {};
|
|
1285
|
+
options.pathParams = { 'project_id': projectId, };
|
|
732
1286
|
options.headers = localVarHeaderParameter;
|
|
733
1287
|
return options;
|
|
734
1288
|
},
|
|
735
1289
|
/**
|
|
736
|
-
*
|
|
1290
|
+
* 删除分组。
|
|
737
1291
|
*
|
|
738
1292
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
739
1293
|
*/
|
|
740
|
-
|
|
1294
|
+
deleteAppGroups(deleteAppGroupsRequest) {
|
|
741
1295
|
const options = {
|
|
742
|
-
method: "
|
|
743
|
-
url: "/
|
|
1296
|
+
method: "DELETE",
|
|
1297
|
+
url: "/v1/projects/{project_id}/applications/groups/{group_id}",
|
|
744
1298
|
contentType: "application/json",
|
|
745
1299
|
queryParams: {},
|
|
746
1300
|
pathParams: {},
|
|
747
|
-
headers: {}
|
|
748
|
-
data: {}
|
|
1301
|
+
headers: {}
|
|
749
1302
|
};
|
|
750
1303
|
const localVarHeaderParameter = {};
|
|
751
|
-
let
|
|
752
|
-
let
|
|
753
|
-
if (
|
|
754
|
-
if (
|
|
755
|
-
|
|
756
|
-
|
|
1304
|
+
let projectId;
|
|
1305
|
+
let groupId;
|
|
1306
|
+
if (deleteAppGroupsRequest !== null && deleteAppGroupsRequest !== undefined) {
|
|
1307
|
+
if (deleteAppGroupsRequest instanceof DeleteAppGroupsRequest_1.DeleteAppGroupsRequest) {
|
|
1308
|
+
projectId = deleteAppGroupsRequest.projectId;
|
|
1309
|
+
groupId = deleteAppGroupsRequest.groupId;
|
|
757
1310
|
}
|
|
758
1311
|
else {
|
|
759
|
-
|
|
760
|
-
|
|
1312
|
+
projectId = deleteAppGroupsRequest['project_id'];
|
|
1313
|
+
groupId = deleteAppGroupsRequest['group_id'];
|
|
761
1314
|
}
|
|
762
1315
|
}
|
|
763
|
-
if (
|
|
764
|
-
throw new RequiredError('
|
|
1316
|
+
if (projectId === null || projectId === undefined) {
|
|
1317
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling deleteAppGroups.');
|
|
765
1318
|
}
|
|
766
|
-
if (
|
|
767
|
-
|
|
1319
|
+
if (groupId === null || groupId === undefined) {
|
|
1320
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteAppGroups.');
|
|
768
1321
|
}
|
|
769
|
-
|
|
770
|
-
options.data = body !== undefined ? body : {};
|
|
1322
|
+
options.pathParams = { 'project_id': projectId, 'group_id': groupId, };
|
|
771
1323
|
options.headers = localVarHeaderParameter;
|
|
772
1324
|
return options;
|
|
773
1325
|
},
|
|
774
1326
|
/**
|
|
775
|
-
*
|
|
1327
|
+
* 查询分组列表。
|
|
776
1328
|
*
|
|
777
1329
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
778
1330
|
*/
|
|
779
|
-
|
|
1331
|
+
listAppGroups(listAppGroupsRequest) {
|
|
780
1332
|
const options = {
|
|
781
|
-
method: "
|
|
782
|
-
url: "/v1/
|
|
1333
|
+
method: "GET",
|
|
1334
|
+
url: "/v1/projects/{project_id}/applications/groups",
|
|
783
1335
|
contentType: "application/json",
|
|
784
1336
|
queryParams: {},
|
|
785
1337
|
pathParams: {},
|
|
786
1338
|
headers: {}
|
|
787
1339
|
};
|
|
788
1340
|
const localVarHeaderParameter = {};
|
|
789
|
-
let
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
appId = deleteApplicationRequest.appId;
|
|
794
|
-
contentType = deleteApplicationRequest.contentType;
|
|
1341
|
+
let projectId;
|
|
1342
|
+
if (listAppGroupsRequest !== null && listAppGroupsRequest !== undefined) {
|
|
1343
|
+
if (listAppGroupsRequest instanceof ListAppGroupsRequest_1.ListAppGroupsRequest) {
|
|
1344
|
+
projectId = listAppGroupsRequest.projectId;
|
|
795
1345
|
}
|
|
796
1346
|
else {
|
|
797
|
-
|
|
798
|
-
contentType = deleteApplicationRequest['Content-Type'];
|
|
1347
|
+
projectId = listAppGroupsRequest['project_id'];
|
|
799
1348
|
}
|
|
800
1349
|
}
|
|
801
|
-
if (
|
|
802
|
-
throw new RequiredError('
|
|
803
|
-
}
|
|
804
|
-
if (contentType !== undefined && contentType !== null) {
|
|
805
|
-
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1350
|
+
if (projectId === null || projectId === undefined) {
|
|
1351
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listAppGroups.');
|
|
806
1352
|
}
|
|
807
|
-
options.pathParams = { '
|
|
1353
|
+
options.pathParams = { 'project_id': projectId, };
|
|
808
1354
|
options.headers = localVarHeaderParameter;
|
|
809
1355
|
return options;
|
|
810
1356
|
},
|
|
811
1357
|
/**
|
|
812
|
-
*
|
|
1358
|
+
* 往上或者往下移动单个分组,用来在页面上调整分组位置。
|
|
813
1359
|
*
|
|
814
1360
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
815
1361
|
*/
|
|
816
|
-
|
|
1362
|
+
moveAppGroups(moveAppGroupsRequest) {
|
|
817
1363
|
const options = {
|
|
818
|
-
method: "
|
|
819
|
-
url: "/
|
|
1364
|
+
method: "PUT",
|
|
1365
|
+
url: "/v1/projects/{project_id}/applications/groups/swap",
|
|
820
1366
|
contentType: "application/json",
|
|
821
1367
|
queryParams: {},
|
|
822
1368
|
pathParams: {},
|
|
823
|
-
headers: {}
|
|
1369
|
+
headers: {},
|
|
1370
|
+
data: {}
|
|
824
1371
|
};
|
|
825
1372
|
const localVarHeaderParameter = {};
|
|
826
|
-
let
|
|
827
|
-
let
|
|
828
|
-
if (
|
|
829
|
-
if (
|
|
830
|
-
|
|
831
|
-
|
|
1373
|
+
let body;
|
|
1374
|
+
let projectId;
|
|
1375
|
+
if (moveAppGroupsRequest !== null && moveAppGroupsRequest !== undefined) {
|
|
1376
|
+
if (moveAppGroupsRequest instanceof MoveAppGroupsRequest_1.MoveAppGroupsRequest) {
|
|
1377
|
+
projectId = moveAppGroupsRequest.projectId;
|
|
1378
|
+
body = moveAppGroupsRequest.body;
|
|
832
1379
|
}
|
|
833
1380
|
else {
|
|
834
|
-
|
|
835
|
-
|
|
1381
|
+
projectId = moveAppGroupsRequest['project_id'];
|
|
1382
|
+
body = moveAppGroupsRequest['body'];
|
|
836
1383
|
}
|
|
837
1384
|
}
|
|
838
|
-
if (
|
|
839
|
-
throw new RequiredError('
|
|
1385
|
+
if (projectId === null || projectId === undefined) {
|
|
1386
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling moveAppGroups.');
|
|
840
1387
|
}
|
|
841
|
-
if (
|
|
842
|
-
|
|
1388
|
+
if (body === null || body === undefined) {
|
|
1389
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
843
1390
|
}
|
|
844
|
-
|
|
1391
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1392
|
+
options.data = body !== undefined ? body : {};
|
|
1393
|
+
options.pathParams = { 'project_id': projectId, };
|
|
845
1394
|
options.headers = localVarHeaderParameter;
|
|
846
1395
|
return options;
|
|
847
1396
|
},
|
|
848
1397
|
/**
|
|
849
|
-
*
|
|
1398
|
+
* 将应用移动至指定分组(支持批量)。
|
|
850
1399
|
*
|
|
851
1400
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
852
1401
|
*/
|
|
853
|
-
|
|
1402
|
+
moveAppToGroup(moveAppToGroupRequest) {
|
|
854
1403
|
const options = {
|
|
855
|
-
method: "
|
|
856
|
-
url: "/v1/applications/
|
|
1404
|
+
method: "PUT",
|
|
1405
|
+
url: "/v1/projects/{project_id}/applications/groups/move",
|
|
857
1406
|
contentType: "application/json",
|
|
858
1407
|
queryParams: {},
|
|
859
1408
|
pathParams: {},
|
|
@@ -862,237 +1411,185 @@ const ParamCreater = function () {
|
|
|
862
1411
|
};
|
|
863
1412
|
const localVarHeaderParameter = {};
|
|
864
1413
|
let body;
|
|
865
|
-
let
|
|
866
|
-
if (
|
|
867
|
-
if (
|
|
868
|
-
|
|
869
|
-
body =
|
|
1414
|
+
let projectId;
|
|
1415
|
+
if (moveAppToGroupRequest !== null && moveAppToGroupRequest !== undefined) {
|
|
1416
|
+
if (moveAppToGroupRequest instanceof MoveAppToGroupRequest_1.MoveAppToGroupRequest) {
|
|
1417
|
+
projectId = moveAppToGroupRequest.projectId;
|
|
1418
|
+
body = moveAppToGroupRequest.body;
|
|
870
1419
|
}
|
|
871
1420
|
else {
|
|
872
|
-
|
|
873
|
-
body =
|
|
1421
|
+
projectId = moveAppToGroupRequest['project_id'];
|
|
1422
|
+
body = moveAppToGroupRequest['body'];
|
|
874
1423
|
}
|
|
875
1424
|
}
|
|
1425
|
+
if (projectId === null || projectId === undefined) {
|
|
1426
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling moveAppToGroup.');
|
|
1427
|
+
}
|
|
876
1428
|
if (body === null || body === undefined) {
|
|
877
1429
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
878
1430
|
}
|
|
879
|
-
if (contentType !== undefined && contentType !== null) {
|
|
880
|
-
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
881
|
-
}
|
|
882
1431
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
883
1432
|
options.data = body !== undefined ? body : {};
|
|
1433
|
+
options.pathParams = { 'project_id': projectId, };
|
|
884
1434
|
options.headers = localVarHeaderParameter;
|
|
885
1435
|
return options;
|
|
886
1436
|
},
|
|
887
1437
|
/**
|
|
888
|
-
*
|
|
1438
|
+
* 修改分组。
|
|
889
1439
|
*
|
|
890
1440
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
891
1441
|
*/
|
|
892
|
-
|
|
1442
|
+
updateAppGroups(updateAppGroupsRequest) {
|
|
893
1443
|
const options = {
|
|
894
|
-
method: "
|
|
895
|
-
url: "/
|
|
1444
|
+
method: "PUT",
|
|
1445
|
+
url: "/v1/projects/{project_id}/applications/groups/{group_id}",
|
|
896
1446
|
contentType: "application/json",
|
|
897
1447
|
queryParams: {},
|
|
898
1448
|
pathParams: {},
|
|
899
|
-
headers: {}
|
|
1449
|
+
headers: {},
|
|
1450
|
+
data: {}
|
|
900
1451
|
};
|
|
901
1452
|
const localVarHeaderParameter = {};
|
|
902
|
-
|
|
1453
|
+
let body;
|
|
903
1454
|
let projectId;
|
|
904
|
-
let
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
if (listDeployTaskHistoryByDateRequest !== null && listDeployTaskHistoryByDateRequest !== undefined) {
|
|
911
|
-
if (listDeployTaskHistoryByDateRequest instanceof ListDeployTaskHistoryByDateRequest_1.ListDeployTaskHistoryByDateRequest) {
|
|
912
|
-
projectId = listDeployTaskHistoryByDateRequest.projectId;
|
|
913
|
-
id = listDeployTaskHistoryByDateRequest.id;
|
|
914
|
-
page = listDeployTaskHistoryByDateRequest.page;
|
|
915
|
-
size = listDeployTaskHistoryByDateRequest.size;
|
|
916
|
-
startDate = listDeployTaskHistoryByDateRequest.startDate;
|
|
917
|
-
endDate = listDeployTaskHistoryByDateRequest.endDate;
|
|
918
|
-
contentType = listDeployTaskHistoryByDateRequest.contentType;
|
|
1455
|
+
let groupId;
|
|
1456
|
+
if (updateAppGroupsRequest !== null && updateAppGroupsRequest !== undefined) {
|
|
1457
|
+
if (updateAppGroupsRequest instanceof UpdateAppGroupsRequest_1.UpdateAppGroupsRequest) {
|
|
1458
|
+
projectId = updateAppGroupsRequest.projectId;
|
|
1459
|
+
groupId = updateAppGroupsRequest.groupId;
|
|
1460
|
+
body = updateAppGroupsRequest.body;
|
|
919
1461
|
}
|
|
920
1462
|
else {
|
|
921
|
-
projectId =
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
size = listDeployTaskHistoryByDateRequest['size'];
|
|
925
|
-
startDate = listDeployTaskHistoryByDateRequest['start_date'];
|
|
926
|
-
endDate = listDeployTaskHistoryByDateRequest['end_date'];
|
|
927
|
-
contentType = listDeployTaskHistoryByDateRequest['Content-Type'];
|
|
1463
|
+
projectId = updateAppGroupsRequest['project_id'];
|
|
1464
|
+
groupId = updateAppGroupsRequest['group_id'];
|
|
1465
|
+
body = updateAppGroupsRequest['body'];
|
|
928
1466
|
}
|
|
929
1467
|
}
|
|
930
1468
|
if (projectId === null || projectId === undefined) {
|
|
931
|
-
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling
|
|
932
|
-
}
|
|
933
|
-
if (id === null || id === undefined) {
|
|
934
|
-
throw new RequiredError('id', 'Required parameter id was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
935
|
-
}
|
|
936
|
-
if (page === null || page === undefined) {
|
|
937
|
-
throw new RequiredError('page', 'Required parameter page was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
938
|
-
}
|
|
939
|
-
if (page !== null && page !== undefined) {
|
|
940
|
-
localVarQueryParameter['page'] = page;
|
|
941
|
-
}
|
|
942
|
-
if (size === null || size === undefined) {
|
|
943
|
-
throw new RequiredError('size', 'Required parameter size was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
944
|
-
}
|
|
945
|
-
if (size !== null && size !== undefined) {
|
|
946
|
-
localVarQueryParameter['size'] = size;
|
|
947
|
-
}
|
|
948
|
-
if (startDate === null || startDate === undefined) {
|
|
949
|
-
throw new RequiredError('startDate', 'Required parameter startDate was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
950
|
-
}
|
|
951
|
-
if (startDate !== null && startDate !== undefined) {
|
|
952
|
-
localVarQueryParameter['start_date'] = startDate;
|
|
953
|
-
}
|
|
954
|
-
if (endDate === null || endDate === undefined) {
|
|
955
|
-
throw new RequiredError('endDate', 'Required parameter endDate was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1469
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling updateAppGroups.');
|
|
956
1470
|
}
|
|
957
|
-
if (
|
|
958
|
-
|
|
1471
|
+
if (groupId === null || groupId === undefined) {
|
|
1472
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateAppGroups.');
|
|
959
1473
|
}
|
|
960
|
-
if (
|
|
961
|
-
|
|
1474
|
+
if (body === null || body === undefined) {
|
|
1475
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
962
1476
|
}
|
|
963
|
-
|
|
964
|
-
options.
|
|
1477
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1478
|
+
options.data = body !== undefined ? body : {};
|
|
1479
|
+
options.pathParams = { 'project_id': projectId, 'group_id': groupId, };
|
|
965
1480
|
options.headers = localVarHeaderParameter;
|
|
966
1481
|
return options;
|
|
967
1482
|
},
|
|
968
1483
|
/**
|
|
969
|
-
*
|
|
1484
|
+
* 批量修改应用权限。
|
|
970
1485
|
*
|
|
971
1486
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
972
1487
|
*/
|
|
973
|
-
|
|
1488
|
+
batchUpdateApplicationPermissions(batchUpdateApplicationPermissionsRequest) {
|
|
974
1489
|
const options = {
|
|
975
|
-
method: "
|
|
976
|
-
url: "/
|
|
1490
|
+
method: "PUT",
|
|
1491
|
+
url: "/v3/applications/permissions",
|
|
977
1492
|
contentType: "application/json",
|
|
978
1493
|
queryParams: {},
|
|
979
1494
|
pathParams: {},
|
|
980
|
-
headers: {}
|
|
1495
|
+
headers: {},
|
|
1496
|
+
data: {}
|
|
981
1497
|
};
|
|
982
1498
|
const localVarHeaderParameter = {};
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
let size;
|
|
988
|
-
if (listDeployTasksRequest !== null && listDeployTasksRequest !== undefined) {
|
|
989
|
-
if (listDeployTasksRequest instanceof ListDeployTasksRequest_1.ListDeployTasksRequest) {
|
|
990
|
-
projectId = listDeployTasksRequest.projectId;
|
|
991
|
-
contentType = listDeployTasksRequest.contentType;
|
|
992
|
-
page = listDeployTasksRequest.page;
|
|
993
|
-
size = listDeployTasksRequest.size;
|
|
1499
|
+
let body;
|
|
1500
|
+
if (batchUpdateApplicationPermissionsRequest !== null && batchUpdateApplicationPermissionsRequest !== undefined) {
|
|
1501
|
+
if (batchUpdateApplicationPermissionsRequest instanceof BatchUpdateApplicationPermissionsRequest_1.BatchUpdateApplicationPermissionsRequest) {
|
|
1502
|
+
body = batchUpdateApplicationPermissionsRequest.body;
|
|
994
1503
|
}
|
|
995
1504
|
else {
|
|
996
|
-
|
|
997
|
-
contentType = listDeployTasksRequest['Content-Type'];
|
|
998
|
-
page = listDeployTasksRequest['page'];
|
|
999
|
-
size = listDeployTasksRequest['size'];
|
|
1505
|
+
body = batchUpdateApplicationPermissionsRequest['body'];
|
|
1000
1506
|
}
|
|
1001
1507
|
}
|
|
1002
|
-
if (
|
|
1003
|
-
throw new RequiredError('
|
|
1004
|
-
}
|
|
1005
|
-
if (page === null || page === undefined) {
|
|
1006
|
-
throw new RequiredError('page', 'Required parameter page was null or undefined when calling listDeployTasks.');
|
|
1007
|
-
}
|
|
1008
|
-
if (page !== null && page !== undefined) {
|
|
1009
|
-
localVarQueryParameter['page'] = page;
|
|
1010
|
-
}
|
|
1011
|
-
if (size === null || size === undefined) {
|
|
1012
|
-
throw new RequiredError('size', 'Required parameter size was null or undefined when calling listDeployTasks.');
|
|
1013
|
-
}
|
|
1014
|
-
if (size !== null && size !== undefined) {
|
|
1015
|
-
localVarQueryParameter['size'] = size;
|
|
1016
|
-
}
|
|
1017
|
-
if (contentType !== undefined && contentType !== null) {
|
|
1018
|
-
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1508
|
+
if (body === null || body === undefined) {
|
|
1509
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1019
1510
|
}
|
|
1020
|
-
|
|
1021
|
-
options.
|
|
1511
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1512
|
+
options.data = body !== undefined ? body : {};
|
|
1022
1513
|
options.headers = localVarHeaderParameter;
|
|
1023
1514
|
return options;
|
|
1024
1515
|
},
|
|
1025
1516
|
/**
|
|
1026
|
-
*
|
|
1517
|
+
* 批量配置应用下鉴权级别为项目级或实例级。
|
|
1027
1518
|
*
|
|
1028
1519
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1029
1520
|
*/
|
|
1030
|
-
|
|
1521
|
+
batchUpdatePermissionLevel(batchUpdatePermissionLevelRequest) {
|
|
1031
1522
|
const options = {
|
|
1032
|
-
method: "
|
|
1033
|
-
url: "/
|
|
1523
|
+
method: "PUT",
|
|
1524
|
+
url: "/v3/applications/permission-level",
|
|
1034
1525
|
contentType: "application/json",
|
|
1035
1526
|
queryParams: {},
|
|
1036
1527
|
pathParams: {},
|
|
1037
|
-
headers: {}
|
|
1528
|
+
headers: {},
|
|
1529
|
+
data: {}
|
|
1038
1530
|
};
|
|
1039
1531
|
const localVarHeaderParameter = {};
|
|
1040
|
-
let
|
|
1041
|
-
if (
|
|
1042
|
-
if (
|
|
1043
|
-
|
|
1532
|
+
let body;
|
|
1533
|
+
if (batchUpdatePermissionLevelRequest !== null && batchUpdatePermissionLevelRequest !== undefined) {
|
|
1534
|
+
if (batchUpdatePermissionLevelRequest instanceof BatchUpdatePermissionLevelRequest_1.BatchUpdatePermissionLevelRequest) {
|
|
1535
|
+
body = batchUpdatePermissionLevelRequest.body;
|
|
1044
1536
|
}
|
|
1045
1537
|
else {
|
|
1046
|
-
|
|
1538
|
+
body = batchUpdatePermissionLevelRequest['body'];
|
|
1047
1539
|
}
|
|
1048
1540
|
}
|
|
1049
|
-
if (
|
|
1050
|
-
throw new RequiredError('
|
|
1541
|
+
if (body === null || body === undefined) {
|
|
1542
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1051
1543
|
}
|
|
1052
|
-
|
|
1544
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1545
|
+
options.data = body !== undefined ? body : {};
|
|
1053
1546
|
options.headers = localVarHeaderParameter;
|
|
1054
1547
|
return options;
|
|
1055
1548
|
},
|
|
1056
1549
|
/**
|
|
1057
|
-
*
|
|
1550
|
+
* 查询当前用户是否有项目下创建应用权限。
|
|
1058
1551
|
*
|
|
1059
1552
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1060
1553
|
*/
|
|
1061
|
-
|
|
1554
|
+
checkCanCreate(checkCanCreateRequest) {
|
|
1062
1555
|
const options = {
|
|
1063
1556
|
method: "GET",
|
|
1064
|
-
url: "/
|
|
1557
|
+
url: "/v1/applications/creatable",
|
|
1065
1558
|
contentType: "application/json",
|
|
1066
1559
|
queryParams: {},
|
|
1067
1560
|
pathParams: {},
|
|
1068
1561
|
headers: {}
|
|
1069
1562
|
};
|
|
1070
1563
|
const localVarHeaderParameter = {};
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1564
|
+
const localVarQueryParameter = {};
|
|
1565
|
+
let projectId;
|
|
1566
|
+
if (checkCanCreateRequest !== null && checkCanCreateRequest !== undefined) {
|
|
1567
|
+
if (checkCanCreateRequest instanceof CheckCanCreateRequest_1.CheckCanCreateRequest) {
|
|
1568
|
+
projectId = checkCanCreateRequest.projectId;
|
|
1075
1569
|
}
|
|
1076
1570
|
else {
|
|
1077
|
-
|
|
1571
|
+
projectId = checkCanCreateRequest['project_id'];
|
|
1078
1572
|
}
|
|
1079
1573
|
}
|
|
1080
|
-
if (
|
|
1081
|
-
throw new RequiredError('
|
|
1574
|
+
if (projectId === null || projectId === undefined) {
|
|
1575
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling checkCanCreate.');
|
|
1082
1576
|
}
|
|
1083
|
-
|
|
1577
|
+
if (projectId !== null && projectId !== undefined) {
|
|
1578
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
1579
|
+
}
|
|
1580
|
+
options.queryParams = localVarQueryParameter;
|
|
1084
1581
|
options.headers = localVarHeaderParameter;
|
|
1085
1582
|
return options;
|
|
1086
1583
|
},
|
|
1087
1584
|
/**
|
|
1088
|
-
*
|
|
1585
|
+
* 查询应用实例级/项目级权限矩阵,传递app_id时,查询应用实例级权限矩阵;未传app_id,传递project_id时,查询应用项目级权限矩阵。
|
|
1089
1586
|
*
|
|
1090
1587
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1091
1588
|
*/
|
|
1092
|
-
|
|
1589
|
+
listApplicationPermissions(listApplicationPermissionsRequest) {
|
|
1093
1590
|
const options = {
|
|
1094
1591
|
method: "GET",
|
|
1095
|
-
url: "/
|
|
1592
|
+
url: "/v3/applications/permissions",
|
|
1096
1593
|
contentType: "application/json",
|
|
1097
1594
|
queryParams: {},
|
|
1098
1595
|
pathParams: {},
|
|
@@ -1100,38 +1597,37 @@ const ParamCreater = function () {
|
|
|
1100
1597
|
};
|
|
1101
1598
|
const localVarHeaderParameter = {};
|
|
1102
1599
|
const localVarQueryParameter = {};
|
|
1103
|
-
let
|
|
1104
|
-
let
|
|
1105
|
-
if (
|
|
1106
|
-
if (
|
|
1107
|
-
|
|
1108
|
-
|
|
1600
|
+
let appId;
|
|
1601
|
+
let projectId;
|
|
1602
|
+
if (listApplicationPermissionsRequest !== null && listApplicationPermissionsRequest !== undefined) {
|
|
1603
|
+
if (listApplicationPermissionsRequest instanceof ListApplicationPermissionsRequest_1.ListApplicationPermissionsRequest) {
|
|
1604
|
+
appId = listApplicationPermissionsRequest.appId;
|
|
1605
|
+
projectId = listApplicationPermissionsRequest.projectId;
|
|
1109
1606
|
}
|
|
1110
1607
|
else {
|
|
1111
|
-
|
|
1112
|
-
|
|
1608
|
+
appId = listApplicationPermissionsRequest['app_id'];
|
|
1609
|
+
projectId = listApplicationPermissionsRequest['project_id'];
|
|
1113
1610
|
}
|
|
1114
1611
|
}
|
|
1115
|
-
if (
|
|
1116
|
-
|
|
1612
|
+
if (appId !== null && appId !== undefined) {
|
|
1613
|
+
localVarQueryParameter['app_id'] = appId;
|
|
1117
1614
|
}
|
|
1118
|
-
if (
|
|
1119
|
-
localVarQueryParameter['
|
|
1615
|
+
if (projectId !== null && projectId !== undefined) {
|
|
1616
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
1120
1617
|
}
|
|
1121
1618
|
options.queryParams = localVarQueryParameter;
|
|
1122
|
-
options.pathParams = { 'task_id': taskId, };
|
|
1123
1619
|
options.headers = localVarHeaderParameter;
|
|
1124
1620
|
return options;
|
|
1125
1621
|
},
|
|
1126
1622
|
/**
|
|
1127
|
-
*
|
|
1623
|
+
* 批量删除项目下应用。
|
|
1128
1624
|
*
|
|
1129
1625
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1130
1626
|
*/
|
|
1131
|
-
|
|
1627
|
+
batchDeleteApp(batchDeleteAppRequest) {
|
|
1132
1628
|
const options = {
|
|
1133
1629
|
method: "POST",
|
|
1134
|
-
url: "/v2/
|
|
1630
|
+
url: "/v2/applications/batch-delete",
|
|
1135
1631
|
contentType: "application/json",
|
|
1136
1632
|
queryParams: {},
|
|
1137
1633
|
pathParams: {},
|
|
@@ -1140,22 +1636,163 @@ const ParamCreater = function () {
|
|
|
1140
1636
|
};
|
|
1141
1637
|
const localVarHeaderParameter = {};
|
|
1142
1638
|
let body;
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
if (startDeployTaskRequest instanceof StartDeployTaskRequest_1.StartDeployTaskRequest) {
|
|
1147
|
-
taskId = startDeployTaskRequest.taskId;
|
|
1148
|
-
contentType = startDeployTaskRequest.contentType;
|
|
1149
|
-
body = startDeployTaskRequest.body;
|
|
1639
|
+
if (batchDeleteAppRequest !== null && batchDeleteAppRequest !== undefined) {
|
|
1640
|
+
if (batchDeleteAppRequest instanceof BatchDeleteAppRequest_1.BatchDeleteAppRequest) {
|
|
1641
|
+
body = batchDeleteAppRequest.body;
|
|
1150
1642
|
}
|
|
1151
1643
|
else {
|
|
1152
|
-
|
|
1153
|
-
contentType = startDeployTaskRequest['Content-Type'];
|
|
1154
|
-
body = startDeployTaskRequest['body'];
|
|
1644
|
+
body = batchDeleteAppRequest['body'];
|
|
1155
1645
|
}
|
|
1156
1646
|
}
|
|
1157
|
-
if (
|
|
1158
|
-
throw new RequiredError('
|
|
1647
|
+
if (body === null || body === undefined) {
|
|
1648
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1649
|
+
}
|
|
1650
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1651
|
+
options.data = body !== undefined ? body : {};
|
|
1652
|
+
options.headers = localVarHeaderParameter;
|
|
1653
|
+
return options;
|
|
1654
|
+
},
|
|
1655
|
+
/**
|
|
1656
|
+
* 查询项目下是否存在同名应用。
|
|
1657
|
+
*
|
|
1658
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1659
|
+
*/
|
|
1660
|
+
checkIsDuplicateAppName(checkIsDuplicateAppNameRequest) {
|
|
1661
|
+
const options = {
|
|
1662
|
+
method: "GET",
|
|
1663
|
+
url: "/v1/applications/exist",
|
|
1664
|
+
contentType: "application/json",
|
|
1665
|
+
queryParams: {},
|
|
1666
|
+
pathParams: {},
|
|
1667
|
+
headers: {}
|
|
1668
|
+
};
|
|
1669
|
+
const localVarHeaderParameter = {};
|
|
1670
|
+
const localVarQueryParameter = {};
|
|
1671
|
+
let name;
|
|
1672
|
+
let projectId;
|
|
1673
|
+
if (checkIsDuplicateAppNameRequest !== null && checkIsDuplicateAppNameRequest !== undefined) {
|
|
1674
|
+
if (checkIsDuplicateAppNameRequest instanceof CheckIsDuplicateAppNameRequest_1.CheckIsDuplicateAppNameRequest) {
|
|
1675
|
+
name = checkIsDuplicateAppNameRequest.name;
|
|
1676
|
+
projectId = checkIsDuplicateAppNameRequest.projectId;
|
|
1677
|
+
}
|
|
1678
|
+
else {
|
|
1679
|
+
name = checkIsDuplicateAppNameRequest['name'];
|
|
1680
|
+
projectId = checkIsDuplicateAppNameRequest['project_id'];
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
if (name === null || name === undefined) {
|
|
1684
|
+
throw new RequiredError('name', 'Required parameter name was null or undefined when calling checkIsDuplicateAppName.');
|
|
1685
|
+
}
|
|
1686
|
+
if (name !== null && name !== undefined) {
|
|
1687
|
+
localVarQueryParameter['name'] = name;
|
|
1688
|
+
}
|
|
1689
|
+
if (projectId === null || projectId === undefined) {
|
|
1690
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling checkIsDuplicateAppName.');
|
|
1691
|
+
}
|
|
1692
|
+
if (projectId !== null && projectId !== undefined) {
|
|
1693
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
1694
|
+
}
|
|
1695
|
+
options.queryParams = localVarQueryParameter;
|
|
1696
|
+
options.headers = localVarHeaderParameter;
|
|
1697
|
+
return options;
|
|
1698
|
+
},
|
|
1699
|
+
/**
|
|
1700
|
+
* 复制应用。
|
|
1701
|
+
*
|
|
1702
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1703
|
+
*/
|
|
1704
|
+
copyApplication(copyApplicationRequest) {
|
|
1705
|
+
const options = {
|
|
1706
|
+
method: "POST",
|
|
1707
|
+
url: "/v1/applications/{app_id}/duplicate",
|
|
1708
|
+
contentType: "application/json",
|
|
1709
|
+
queryParams: {},
|
|
1710
|
+
pathParams: {},
|
|
1711
|
+
headers: {}
|
|
1712
|
+
};
|
|
1713
|
+
const localVarHeaderParameter = {};
|
|
1714
|
+
let appId;
|
|
1715
|
+
if (copyApplicationRequest !== null && copyApplicationRequest !== undefined) {
|
|
1716
|
+
if (copyApplicationRequest instanceof CopyApplicationRequest_1.CopyApplicationRequest) {
|
|
1717
|
+
appId = copyApplicationRequest.appId;
|
|
1718
|
+
}
|
|
1719
|
+
else {
|
|
1720
|
+
appId = copyApplicationRequest['app_id'];
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
if (appId === null || appId === undefined) {
|
|
1724
|
+
throw new RequiredError('appId', 'Required parameter appId was null or undefined when calling copyApplication.');
|
|
1725
|
+
}
|
|
1726
|
+
options.pathParams = { 'app_id': appId, };
|
|
1727
|
+
options.headers = localVarHeaderParameter;
|
|
1728
|
+
return options;
|
|
1729
|
+
},
|
|
1730
|
+
/**
|
|
1731
|
+
* 新建应用。
|
|
1732
|
+
*
|
|
1733
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1734
|
+
*/
|
|
1735
|
+
createApp(createAppRequest) {
|
|
1736
|
+
const options = {
|
|
1737
|
+
method: "POST",
|
|
1738
|
+
url: "/v1/applications",
|
|
1739
|
+
contentType: "application/json",
|
|
1740
|
+
queryParams: {},
|
|
1741
|
+
pathParams: {},
|
|
1742
|
+
headers: {},
|
|
1743
|
+
data: {}
|
|
1744
|
+
};
|
|
1745
|
+
const localVarHeaderParameter = {};
|
|
1746
|
+
let body;
|
|
1747
|
+
let contentType;
|
|
1748
|
+
if (createAppRequest !== null && createAppRequest !== undefined) {
|
|
1749
|
+
if (createAppRequest instanceof CreateAppRequest_1.CreateAppRequest) {
|
|
1750
|
+
contentType = createAppRequest.contentType;
|
|
1751
|
+
body = createAppRequest.body;
|
|
1752
|
+
}
|
|
1753
|
+
else {
|
|
1754
|
+
contentType = createAppRequest['Content-Type'];
|
|
1755
|
+
body = createAppRequest['body'];
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
if (body === null || body === undefined) {
|
|
1759
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1760
|
+
}
|
|
1761
|
+
if (contentType !== undefined && contentType !== null) {
|
|
1762
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1763
|
+
}
|
|
1764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1765
|
+
options.data = body !== undefined ? body : {};
|
|
1766
|
+
options.headers = localVarHeaderParameter;
|
|
1767
|
+
return options;
|
|
1768
|
+
},
|
|
1769
|
+
/**
|
|
1770
|
+
* 通过模板新建应用。该接口于2024年09月30日后不再维护,推荐使用新版CreateApp接口。
|
|
1771
|
+
*
|
|
1772
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1773
|
+
*/
|
|
1774
|
+
createDeployTaskByTemplate(createDeployTaskByTemplateRequest) {
|
|
1775
|
+
const options = {
|
|
1776
|
+
method: "POST",
|
|
1777
|
+
url: "/v2/tasks/template-task",
|
|
1778
|
+
contentType: "application/json",
|
|
1779
|
+
queryParams: {},
|
|
1780
|
+
pathParams: {},
|
|
1781
|
+
headers: {},
|
|
1782
|
+
data: {}
|
|
1783
|
+
};
|
|
1784
|
+
const localVarHeaderParameter = {};
|
|
1785
|
+
let body;
|
|
1786
|
+
let contentType;
|
|
1787
|
+
if (createDeployTaskByTemplateRequest !== null && createDeployTaskByTemplateRequest !== undefined) {
|
|
1788
|
+
if (createDeployTaskByTemplateRequest instanceof CreateDeployTaskByTemplateRequest_1.CreateDeployTaskByTemplateRequest) {
|
|
1789
|
+
contentType = createDeployTaskByTemplateRequest.contentType;
|
|
1790
|
+
body = createDeployTaskByTemplateRequest.body;
|
|
1791
|
+
}
|
|
1792
|
+
else {
|
|
1793
|
+
contentType = createDeployTaskByTemplateRequest['Content-Type'];
|
|
1794
|
+
body = createDeployTaskByTemplateRequest['body'];
|
|
1795
|
+
}
|
|
1159
1796
|
}
|
|
1160
1797
|
if (body === null || body === undefined) {
|
|
1161
1798
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
@@ -1165,19 +1802,92 @@ const ParamCreater = function () {
|
|
|
1165
1802
|
}
|
|
1166
1803
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1167
1804
|
options.data = body !== undefined ? body : {};
|
|
1805
|
+
options.headers = localVarHeaderParameter;
|
|
1806
|
+
return options;
|
|
1807
|
+
},
|
|
1808
|
+
/**
|
|
1809
|
+
* 根据应用id删除应用。
|
|
1810
|
+
*
|
|
1811
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1812
|
+
*/
|
|
1813
|
+
deleteApplication(deleteApplicationRequest) {
|
|
1814
|
+
const options = {
|
|
1815
|
+
method: "DELETE",
|
|
1816
|
+
url: "/v1/applications/{app_id}",
|
|
1817
|
+
contentType: "application/json",
|
|
1818
|
+
queryParams: {},
|
|
1819
|
+
pathParams: {},
|
|
1820
|
+
headers: {}
|
|
1821
|
+
};
|
|
1822
|
+
const localVarHeaderParameter = {};
|
|
1823
|
+
let appId;
|
|
1824
|
+
let contentType;
|
|
1825
|
+
if (deleteApplicationRequest !== null && deleteApplicationRequest !== undefined) {
|
|
1826
|
+
if (deleteApplicationRequest instanceof DeleteApplicationRequest_1.DeleteApplicationRequest) {
|
|
1827
|
+
appId = deleteApplicationRequest.appId;
|
|
1828
|
+
contentType = deleteApplicationRequest.contentType;
|
|
1829
|
+
}
|
|
1830
|
+
else {
|
|
1831
|
+
appId = deleteApplicationRequest['app_id'];
|
|
1832
|
+
contentType = deleteApplicationRequest['Content-Type'];
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
if (appId === null || appId === undefined) {
|
|
1836
|
+
throw new RequiredError('appId', 'Required parameter appId was null or undefined when calling deleteApplication.');
|
|
1837
|
+
}
|
|
1838
|
+
if (contentType !== undefined && contentType !== null) {
|
|
1839
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1840
|
+
}
|
|
1841
|
+
options.pathParams = { 'app_id': appId, };
|
|
1842
|
+
options.headers = localVarHeaderParameter;
|
|
1843
|
+
return options;
|
|
1844
|
+
},
|
|
1845
|
+
/**
|
|
1846
|
+
* 根据部署任务id删除应用。该接口于2024年09月30日后不再维护,推荐使用新版DeleteApplication接口。
|
|
1847
|
+
*
|
|
1848
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1849
|
+
*/
|
|
1850
|
+
deleteDeployTask(deleteDeployTaskRequest) {
|
|
1851
|
+
const options = {
|
|
1852
|
+
method: "DELETE",
|
|
1853
|
+
url: "/v2/tasks/{task_id}",
|
|
1854
|
+
contentType: "application/json",
|
|
1855
|
+
queryParams: {},
|
|
1856
|
+
pathParams: {},
|
|
1857
|
+
headers: {}
|
|
1858
|
+
};
|
|
1859
|
+
const localVarHeaderParameter = {};
|
|
1860
|
+
let taskId;
|
|
1861
|
+
let contentType;
|
|
1862
|
+
if (deleteDeployTaskRequest !== null && deleteDeployTaskRequest !== undefined) {
|
|
1863
|
+
if (deleteDeployTaskRequest instanceof DeleteDeployTaskRequest_1.DeleteDeployTaskRequest) {
|
|
1864
|
+
taskId = deleteDeployTaskRequest.taskId;
|
|
1865
|
+
contentType = deleteDeployTaskRequest.contentType;
|
|
1866
|
+
}
|
|
1867
|
+
else {
|
|
1868
|
+
taskId = deleteDeployTaskRequest['task_id'];
|
|
1869
|
+
contentType = deleteDeployTaskRequest['Content-Type'];
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
if (taskId === null || taskId === undefined) {
|
|
1873
|
+
throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling deleteDeployTask.');
|
|
1874
|
+
}
|
|
1875
|
+
if (contentType !== undefined && contentType !== null) {
|
|
1876
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1877
|
+
}
|
|
1168
1878
|
options.pathParams = { 'task_id': taskId, };
|
|
1169
1879
|
options.headers = localVarHeaderParameter;
|
|
1170
1880
|
return options;
|
|
1171
1881
|
},
|
|
1172
1882
|
/**
|
|
1173
|
-
*
|
|
1883
|
+
* 查询项目下应用列表。
|
|
1174
1884
|
*
|
|
1175
1885
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1176
1886
|
*/
|
|
1177
|
-
|
|
1887
|
+
listAllApp(listAllAppRequest) {
|
|
1178
1888
|
const options = {
|
|
1179
1889
|
method: "POST",
|
|
1180
|
-
url: "/v1/applications/
|
|
1890
|
+
url: "/v1/applications/list",
|
|
1181
1891
|
contentType: "application/json",
|
|
1182
1892
|
queryParams: {},
|
|
1183
1893
|
pathParams: {},
|
|
@@ -1186,87 +1896,815 @@ const ParamCreater = function () {
|
|
|
1186
1896
|
};
|
|
1187
1897
|
const localVarHeaderParameter = {};
|
|
1188
1898
|
let body;
|
|
1189
|
-
let applicationId;
|
|
1190
1899
|
let contentType;
|
|
1191
|
-
if (
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
body = createEnvironmentRequest.body;
|
|
1900
|
+
if (listAllAppRequest !== null && listAllAppRequest !== undefined) {
|
|
1901
|
+
if (listAllAppRequest instanceof ListAllAppRequest_1.ListAllAppRequest) {
|
|
1902
|
+
contentType = listAllAppRequest.contentType;
|
|
1903
|
+
body = listAllAppRequest.body;
|
|
1196
1904
|
}
|
|
1197
1905
|
else {
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1906
|
+
contentType = listAllAppRequest['Content-Type'];
|
|
1907
|
+
body = listAllAppRequest['body'];
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
if (body === null || body === undefined) {
|
|
1911
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1912
|
+
}
|
|
1913
|
+
if (contentType !== undefined && contentType !== null) {
|
|
1914
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1915
|
+
}
|
|
1916
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1917
|
+
options.data = body !== undefined ? body : {};
|
|
1918
|
+
options.headers = localVarHeaderParameter;
|
|
1919
|
+
return options;
|
|
1920
|
+
},
|
|
1921
|
+
/**
|
|
1922
|
+
* 根据开始时间和结束时间查询项目下指定应用的历史部署记录列表。
|
|
1923
|
+
*
|
|
1924
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1925
|
+
*/
|
|
1926
|
+
listDeployTaskHistoryByDate(listDeployTaskHistoryByDateRequest) {
|
|
1927
|
+
const options = {
|
|
1928
|
+
method: "GET",
|
|
1929
|
+
url: "/v2/{project_id}/task/{id}/history",
|
|
1930
|
+
contentType: "application/json",
|
|
1931
|
+
queryParams: {},
|
|
1932
|
+
pathParams: {},
|
|
1933
|
+
headers: {}
|
|
1934
|
+
};
|
|
1935
|
+
const localVarHeaderParameter = {};
|
|
1936
|
+
const localVarQueryParameter = {};
|
|
1937
|
+
let projectId;
|
|
1938
|
+
let id;
|
|
1939
|
+
let page;
|
|
1940
|
+
let size;
|
|
1941
|
+
let startDate;
|
|
1942
|
+
let endDate;
|
|
1943
|
+
let contentType;
|
|
1944
|
+
if (listDeployTaskHistoryByDateRequest !== null && listDeployTaskHistoryByDateRequest !== undefined) {
|
|
1945
|
+
if (listDeployTaskHistoryByDateRequest instanceof ListDeployTaskHistoryByDateRequest_1.ListDeployTaskHistoryByDateRequest) {
|
|
1946
|
+
projectId = listDeployTaskHistoryByDateRequest.projectId;
|
|
1947
|
+
id = listDeployTaskHistoryByDateRequest.id;
|
|
1948
|
+
page = listDeployTaskHistoryByDateRequest.page;
|
|
1949
|
+
size = listDeployTaskHistoryByDateRequest.size;
|
|
1950
|
+
startDate = listDeployTaskHistoryByDateRequest.startDate;
|
|
1951
|
+
endDate = listDeployTaskHistoryByDateRequest.endDate;
|
|
1952
|
+
contentType = listDeployTaskHistoryByDateRequest.contentType;
|
|
1953
|
+
}
|
|
1954
|
+
else {
|
|
1955
|
+
projectId = listDeployTaskHistoryByDateRequest['project_id'];
|
|
1956
|
+
id = listDeployTaskHistoryByDateRequest['id'];
|
|
1957
|
+
page = listDeployTaskHistoryByDateRequest['page'];
|
|
1958
|
+
size = listDeployTaskHistoryByDateRequest['size'];
|
|
1959
|
+
startDate = listDeployTaskHistoryByDateRequest['start_date'];
|
|
1960
|
+
endDate = listDeployTaskHistoryByDateRequest['end_date'];
|
|
1961
|
+
contentType = listDeployTaskHistoryByDateRequest['Content-Type'];
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
if (projectId === null || projectId === undefined) {
|
|
1965
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1966
|
+
}
|
|
1967
|
+
if (id === null || id === undefined) {
|
|
1968
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1969
|
+
}
|
|
1970
|
+
if (page === null || page === undefined) {
|
|
1971
|
+
throw new RequiredError('page', 'Required parameter page was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1972
|
+
}
|
|
1973
|
+
if (page !== null && page !== undefined) {
|
|
1974
|
+
localVarQueryParameter['page'] = page;
|
|
1975
|
+
}
|
|
1976
|
+
if (size === null || size === undefined) {
|
|
1977
|
+
throw new RequiredError('size', 'Required parameter size was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1978
|
+
}
|
|
1979
|
+
if (size !== null && size !== undefined) {
|
|
1980
|
+
localVarQueryParameter['size'] = size;
|
|
1981
|
+
}
|
|
1982
|
+
if (startDate === null || startDate === undefined) {
|
|
1983
|
+
throw new RequiredError('startDate', 'Required parameter startDate was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1984
|
+
}
|
|
1985
|
+
if (startDate !== null && startDate !== undefined) {
|
|
1986
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
1987
|
+
}
|
|
1988
|
+
if (endDate === null || endDate === undefined) {
|
|
1989
|
+
throw new RequiredError('endDate', 'Required parameter endDate was null or undefined when calling listDeployTaskHistoryByDate.');
|
|
1990
|
+
}
|
|
1991
|
+
if (endDate !== null && endDate !== undefined) {
|
|
1992
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
1993
|
+
}
|
|
1994
|
+
if (contentType !== undefined && contentType !== null) {
|
|
1995
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1996
|
+
}
|
|
1997
|
+
options.queryParams = localVarQueryParameter;
|
|
1998
|
+
options.pathParams = { 'project_id': projectId, 'id': id, };
|
|
1999
|
+
options.headers = localVarHeaderParameter;
|
|
2000
|
+
return options;
|
|
2001
|
+
},
|
|
2002
|
+
/**
|
|
2003
|
+
* 查询项目下应用列表。该接口于2024年09月30日后不再维护,推荐使用新版ListAllApp接口。
|
|
2004
|
+
*
|
|
2005
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2006
|
+
*/
|
|
2007
|
+
listDeployTasks(listDeployTasksRequest) {
|
|
2008
|
+
const options = {
|
|
2009
|
+
method: "GET",
|
|
2010
|
+
url: "/v2/{project_id}/tasks/list",
|
|
2011
|
+
contentType: "application/json",
|
|
2012
|
+
queryParams: {},
|
|
2013
|
+
pathParams: {},
|
|
2014
|
+
headers: {}
|
|
2015
|
+
};
|
|
2016
|
+
const localVarHeaderParameter = {};
|
|
2017
|
+
const localVarQueryParameter = {};
|
|
2018
|
+
let projectId;
|
|
2019
|
+
let contentType;
|
|
2020
|
+
let page;
|
|
2021
|
+
let size;
|
|
2022
|
+
if (listDeployTasksRequest !== null && listDeployTasksRequest !== undefined) {
|
|
2023
|
+
if (listDeployTasksRequest instanceof ListDeployTasksRequest_1.ListDeployTasksRequest) {
|
|
2024
|
+
projectId = listDeployTasksRequest.projectId;
|
|
2025
|
+
contentType = listDeployTasksRequest.contentType;
|
|
2026
|
+
page = listDeployTasksRequest.page;
|
|
2027
|
+
size = listDeployTasksRequest.size;
|
|
2028
|
+
}
|
|
2029
|
+
else {
|
|
2030
|
+
projectId = listDeployTasksRequest['project_id'];
|
|
2031
|
+
contentType = listDeployTasksRequest['Content-Type'];
|
|
2032
|
+
page = listDeployTasksRequest['page'];
|
|
2033
|
+
size = listDeployTasksRequest['size'];
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
if (projectId === null || projectId === undefined) {
|
|
2037
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listDeployTasks.');
|
|
2038
|
+
}
|
|
2039
|
+
if (page === null || page === undefined) {
|
|
2040
|
+
throw new RequiredError('page', 'Required parameter page was null or undefined when calling listDeployTasks.');
|
|
2041
|
+
}
|
|
2042
|
+
if (page !== null && page !== undefined) {
|
|
2043
|
+
localVarQueryParameter['page'] = page;
|
|
2044
|
+
}
|
|
2045
|
+
if (size === null || size === undefined) {
|
|
2046
|
+
throw new RequiredError('size', 'Required parameter size was null or undefined when calling listDeployTasks.');
|
|
2047
|
+
}
|
|
2048
|
+
if (size !== null && size !== undefined) {
|
|
2049
|
+
localVarQueryParameter['size'] = size;
|
|
2050
|
+
}
|
|
2051
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2052
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2053
|
+
}
|
|
2054
|
+
options.queryParams = localVarQueryParameter;
|
|
2055
|
+
options.pathParams = { 'project_id': projectId, };
|
|
2056
|
+
options.headers = localVarHeaderParameter;
|
|
2057
|
+
return options;
|
|
2058
|
+
},
|
|
2059
|
+
/**
|
|
2060
|
+
* 根据应用id获取应用详情。
|
|
2061
|
+
*
|
|
2062
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2063
|
+
*/
|
|
2064
|
+
showAppDetailById(showAppDetailByIdRequest) {
|
|
2065
|
+
const options = {
|
|
2066
|
+
method: "GET",
|
|
2067
|
+
url: "/v1/applications/{app_id}/info",
|
|
2068
|
+
contentType: "application/json",
|
|
2069
|
+
queryParams: {},
|
|
2070
|
+
pathParams: {},
|
|
2071
|
+
headers: {}
|
|
2072
|
+
};
|
|
2073
|
+
const localVarHeaderParameter = {};
|
|
2074
|
+
let appId;
|
|
2075
|
+
if (showAppDetailByIdRequest !== null && showAppDetailByIdRequest !== undefined) {
|
|
2076
|
+
if (showAppDetailByIdRequest instanceof ShowAppDetailByIdRequest_1.ShowAppDetailByIdRequest) {
|
|
2077
|
+
appId = showAppDetailByIdRequest.appId;
|
|
2078
|
+
}
|
|
2079
|
+
else {
|
|
2080
|
+
appId = showAppDetailByIdRequest['app_id'];
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
if (appId === null || appId === undefined) {
|
|
2084
|
+
throw new RequiredError('appId', 'Required parameter appId was null or undefined when calling showAppDetailById.');
|
|
2085
|
+
}
|
|
2086
|
+
options.pathParams = { 'app_id': appId, };
|
|
2087
|
+
options.headers = localVarHeaderParameter;
|
|
2088
|
+
return options;
|
|
2089
|
+
},
|
|
2090
|
+
/**
|
|
2091
|
+
* 根据部署任务id获取应用详情。该接口于2024年09月30日后不再维护,推荐使用新版ShowAppDetailById接口。
|
|
2092
|
+
*
|
|
2093
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2094
|
+
*/
|
|
2095
|
+
showDeployTaskDetail(showDeployTaskDetailRequest) {
|
|
2096
|
+
const options = {
|
|
2097
|
+
method: "GET",
|
|
2098
|
+
url: "/v2/tasks/{task_id}",
|
|
2099
|
+
contentType: "application/json",
|
|
2100
|
+
queryParams: {},
|
|
2101
|
+
pathParams: {},
|
|
2102
|
+
headers: {}
|
|
2103
|
+
};
|
|
2104
|
+
const localVarHeaderParameter = {};
|
|
2105
|
+
let taskId;
|
|
2106
|
+
if (showDeployTaskDetailRequest !== null && showDeployTaskDetailRequest !== undefined) {
|
|
2107
|
+
if (showDeployTaskDetailRequest instanceof ShowDeployTaskDetailRequest_1.ShowDeployTaskDetailRequest) {
|
|
2108
|
+
taskId = showDeployTaskDetailRequest.taskId;
|
|
2109
|
+
}
|
|
2110
|
+
else {
|
|
2111
|
+
taskId = showDeployTaskDetailRequest['task_id'];
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
if (taskId === null || taskId === undefined) {
|
|
2115
|
+
throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling showDeployTaskDetail.');
|
|
2116
|
+
}
|
|
2117
|
+
options.pathParams = { 'task_id': taskId, };
|
|
2118
|
+
options.headers = localVarHeaderParameter;
|
|
2119
|
+
return options;
|
|
2120
|
+
},
|
|
2121
|
+
/**
|
|
2122
|
+
* 查询部署记录的执行参数。
|
|
2123
|
+
*
|
|
2124
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2125
|
+
*/
|
|
2126
|
+
showExecutionParams(showExecutionParamsRequest) {
|
|
2127
|
+
const options = {
|
|
2128
|
+
method: "GET",
|
|
2129
|
+
url: "/v2/history/tasks/{task_id}/params",
|
|
2130
|
+
contentType: "application/json",
|
|
2131
|
+
queryParams: {},
|
|
2132
|
+
pathParams: {},
|
|
2133
|
+
headers: {}
|
|
2134
|
+
};
|
|
2135
|
+
const localVarHeaderParameter = {};
|
|
2136
|
+
const localVarQueryParameter = {};
|
|
2137
|
+
let taskId;
|
|
2138
|
+
let recordId;
|
|
2139
|
+
if (showExecutionParamsRequest !== null && showExecutionParamsRequest !== undefined) {
|
|
2140
|
+
if (showExecutionParamsRequest instanceof ShowExecutionParamsRequest_1.ShowExecutionParamsRequest) {
|
|
2141
|
+
taskId = showExecutionParamsRequest.taskId;
|
|
2142
|
+
recordId = showExecutionParamsRequest.recordId;
|
|
2143
|
+
}
|
|
2144
|
+
else {
|
|
2145
|
+
taskId = showExecutionParamsRequest['task_id'];
|
|
2146
|
+
recordId = showExecutionParamsRequest['record_id'];
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
if (taskId === null || taskId === undefined) {
|
|
2150
|
+
throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling showExecutionParams.');
|
|
2151
|
+
}
|
|
2152
|
+
if (recordId !== null && recordId !== undefined) {
|
|
2153
|
+
localVarQueryParameter['record_id'] = recordId;
|
|
2154
|
+
}
|
|
2155
|
+
options.queryParams = localVarQueryParameter;
|
|
2156
|
+
options.pathParams = { 'task_id': taskId, };
|
|
2157
|
+
options.headers = localVarHeaderParameter;
|
|
2158
|
+
return options;
|
|
2159
|
+
},
|
|
2160
|
+
/**
|
|
2161
|
+
* 根据部署任务id部署应用。
|
|
2162
|
+
*
|
|
2163
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2164
|
+
*/
|
|
2165
|
+
startDeployTask(startDeployTaskRequest) {
|
|
2166
|
+
const options = {
|
|
2167
|
+
method: "POST",
|
|
2168
|
+
url: "/v2/tasks/{task_id}/start",
|
|
2169
|
+
contentType: "application/json",
|
|
2170
|
+
queryParams: {},
|
|
2171
|
+
pathParams: {},
|
|
2172
|
+
headers: {},
|
|
2173
|
+
data: {}
|
|
2174
|
+
};
|
|
2175
|
+
const localVarHeaderParameter = {};
|
|
2176
|
+
let body;
|
|
2177
|
+
let taskId;
|
|
2178
|
+
let contentType;
|
|
2179
|
+
if (startDeployTaskRequest !== null && startDeployTaskRequest !== undefined) {
|
|
2180
|
+
if (startDeployTaskRequest instanceof StartDeployTaskRequest_1.StartDeployTaskRequest) {
|
|
2181
|
+
taskId = startDeployTaskRequest.taskId;
|
|
2182
|
+
contentType = startDeployTaskRequest.contentType;
|
|
2183
|
+
body = startDeployTaskRequest.body;
|
|
2184
|
+
}
|
|
2185
|
+
else {
|
|
2186
|
+
taskId = startDeployTaskRequest['task_id'];
|
|
2187
|
+
contentType = startDeployTaskRequest['Content-Type'];
|
|
2188
|
+
body = startDeployTaskRequest['body'];
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
if (taskId === null || taskId === undefined) {
|
|
2192
|
+
throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling startDeployTask.');
|
|
2193
|
+
}
|
|
2194
|
+
if (body === null || body === undefined) {
|
|
2195
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2196
|
+
}
|
|
2197
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2198
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2199
|
+
}
|
|
2200
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2201
|
+
options.data = body !== undefined ? body : {};
|
|
2202
|
+
options.pathParams = { 'task_id': taskId, };
|
|
2203
|
+
options.headers = localVarHeaderParameter;
|
|
2204
|
+
return options;
|
|
2205
|
+
},
|
|
2206
|
+
/**
|
|
2207
|
+
* 禁用/取消禁用应用。
|
|
2208
|
+
*
|
|
2209
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2210
|
+
*/
|
|
2211
|
+
updateAppDisableStatus(updateAppDisableStatusRequest) {
|
|
2212
|
+
const options = {
|
|
2213
|
+
method: "PUT",
|
|
2214
|
+
url: "/v1/applications/{app_id}/disable",
|
|
2215
|
+
contentType: "application/json",
|
|
2216
|
+
queryParams: {},
|
|
2217
|
+
pathParams: {},
|
|
2218
|
+
headers: {},
|
|
2219
|
+
data: {}
|
|
2220
|
+
};
|
|
2221
|
+
const localVarHeaderParameter = {};
|
|
2222
|
+
let body;
|
|
2223
|
+
let appId;
|
|
2224
|
+
if (updateAppDisableStatusRequest !== null && updateAppDisableStatusRequest !== undefined) {
|
|
2225
|
+
if (updateAppDisableStatusRequest instanceof UpdateAppDisableStatusRequest_1.UpdateAppDisableStatusRequest) {
|
|
2226
|
+
appId = updateAppDisableStatusRequest.appId;
|
|
2227
|
+
body = updateAppDisableStatusRequest.body;
|
|
2228
|
+
}
|
|
2229
|
+
else {
|
|
2230
|
+
appId = updateAppDisableStatusRequest['app_id'];
|
|
2231
|
+
body = updateAppDisableStatusRequest['body'];
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
if (appId === null || appId === undefined) {
|
|
2235
|
+
throw new RequiredError('appId', 'Required parameter appId was null or undefined when calling updateAppDisableStatus.');
|
|
2236
|
+
}
|
|
2237
|
+
if (body === null || body === undefined) {
|
|
2238
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2239
|
+
}
|
|
2240
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2241
|
+
options.data = body !== undefined ? body : {};
|
|
2242
|
+
options.pathParams = { 'app_id': appId, };
|
|
2243
|
+
options.headers = localVarHeaderParameter;
|
|
2244
|
+
return options;
|
|
2245
|
+
},
|
|
2246
|
+
/**
|
|
2247
|
+
* 更新应用。
|
|
2248
|
+
*
|
|
2249
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2250
|
+
*/
|
|
2251
|
+
updateAppInfo(updateAppInfoRequest) {
|
|
2252
|
+
const options = {
|
|
2253
|
+
method: "PUT",
|
|
2254
|
+
url: "/v1/applications",
|
|
2255
|
+
contentType: "application/json",
|
|
2256
|
+
queryParams: {},
|
|
2257
|
+
pathParams: {},
|
|
2258
|
+
headers: {},
|
|
2259
|
+
data: {}
|
|
2260
|
+
};
|
|
2261
|
+
const localVarHeaderParameter = {};
|
|
2262
|
+
let body;
|
|
2263
|
+
let contentType;
|
|
2264
|
+
if (updateAppInfoRequest !== null && updateAppInfoRequest !== undefined) {
|
|
2265
|
+
if (updateAppInfoRequest instanceof UpdateAppInfoRequest_1.UpdateAppInfoRequest) {
|
|
2266
|
+
contentType = updateAppInfoRequest.contentType;
|
|
2267
|
+
body = updateAppInfoRequest.body;
|
|
2268
|
+
}
|
|
2269
|
+
else {
|
|
2270
|
+
contentType = updateAppInfoRequest['Content-Type'];
|
|
2271
|
+
body = updateAppInfoRequest['body'];
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
if (body === null || body === undefined) {
|
|
2275
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2276
|
+
}
|
|
2277
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2278
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2279
|
+
}
|
|
2280
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2281
|
+
options.data = body !== undefined ? body : {};
|
|
2282
|
+
options.headers = localVarHeaderParameter;
|
|
2283
|
+
return options;
|
|
2284
|
+
},
|
|
2285
|
+
/**
|
|
2286
|
+
* 应用下创建环境。
|
|
2287
|
+
*
|
|
2288
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2289
|
+
*/
|
|
2290
|
+
createEnvironment(createEnvironmentRequest) {
|
|
2291
|
+
const options = {
|
|
2292
|
+
method: "POST",
|
|
2293
|
+
url: "/v1/applications/{application_id}/environments",
|
|
2294
|
+
contentType: "application/json",
|
|
2295
|
+
queryParams: {},
|
|
2296
|
+
pathParams: {},
|
|
2297
|
+
headers: {},
|
|
2298
|
+
data: {}
|
|
2299
|
+
};
|
|
2300
|
+
const localVarHeaderParameter = {};
|
|
2301
|
+
let body;
|
|
2302
|
+
let applicationId;
|
|
2303
|
+
let contentType;
|
|
2304
|
+
if (createEnvironmentRequest !== null && createEnvironmentRequest !== undefined) {
|
|
2305
|
+
if (createEnvironmentRequest instanceof CreateEnvironmentRequest_1.CreateEnvironmentRequest) {
|
|
2306
|
+
applicationId = createEnvironmentRequest.applicationId;
|
|
2307
|
+
contentType = createEnvironmentRequest.contentType;
|
|
2308
|
+
body = createEnvironmentRequest.body;
|
|
2309
|
+
}
|
|
2310
|
+
else {
|
|
2311
|
+
applicationId = createEnvironmentRequest['application_id'];
|
|
2312
|
+
contentType = createEnvironmentRequest['Content-Type'];
|
|
2313
|
+
body = createEnvironmentRequest['body'];
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
if (applicationId === null || applicationId === undefined) {
|
|
2317
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling createEnvironment.');
|
|
2318
|
+
}
|
|
2319
|
+
if (body === null || body === undefined) {
|
|
2320
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2321
|
+
}
|
|
2322
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2323
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2324
|
+
}
|
|
2325
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2326
|
+
options.data = body !== undefined ? body : {};
|
|
2327
|
+
options.pathParams = { 'application_id': applicationId, };
|
|
2328
|
+
options.headers = localVarHeaderParameter;
|
|
2329
|
+
return options;
|
|
2330
|
+
},
|
|
2331
|
+
/**
|
|
2332
|
+
* 删除应用下的环境。
|
|
2333
|
+
*
|
|
2334
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2335
|
+
*/
|
|
2336
|
+
deleteEnvironment(deleteEnvironmentRequest) {
|
|
2337
|
+
const options = {
|
|
2338
|
+
method: "DELETE",
|
|
2339
|
+
url: "/v1/applications/{application_id}/environments/{environment_id}",
|
|
2340
|
+
contentType: "application/json",
|
|
2341
|
+
queryParams: {},
|
|
2342
|
+
pathParams: {},
|
|
2343
|
+
headers: {}
|
|
2344
|
+
};
|
|
2345
|
+
const localVarHeaderParameter = {};
|
|
2346
|
+
let applicationId;
|
|
2347
|
+
let environmentId;
|
|
2348
|
+
let contentType;
|
|
2349
|
+
if (deleteEnvironmentRequest !== null && deleteEnvironmentRequest !== undefined) {
|
|
2350
|
+
if (deleteEnvironmentRequest instanceof DeleteEnvironmentRequest_1.DeleteEnvironmentRequest) {
|
|
2351
|
+
applicationId = deleteEnvironmentRequest.applicationId;
|
|
2352
|
+
environmentId = deleteEnvironmentRequest.environmentId;
|
|
2353
|
+
contentType = deleteEnvironmentRequest.contentType;
|
|
2354
|
+
}
|
|
2355
|
+
else {
|
|
2356
|
+
applicationId = deleteEnvironmentRequest['application_id'];
|
|
2357
|
+
environmentId = deleteEnvironmentRequest['environment_id'];
|
|
2358
|
+
contentType = deleteEnvironmentRequest['Content-Type'];
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
if (applicationId === null || applicationId === undefined) {
|
|
2362
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling deleteEnvironment.');
|
|
2363
|
+
}
|
|
2364
|
+
if (environmentId === null || environmentId === undefined) {
|
|
2365
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling deleteEnvironment.');
|
|
2366
|
+
}
|
|
2367
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2368
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2369
|
+
}
|
|
2370
|
+
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, };
|
|
2371
|
+
options.headers = localVarHeaderParameter;
|
|
2372
|
+
return options;
|
|
2373
|
+
},
|
|
2374
|
+
/**
|
|
2375
|
+
* 环境下删除主机。
|
|
2376
|
+
*
|
|
2377
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2378
|
+
*/
|
|
2379
|
+
deleteHostFromEnvironment(deleteHostFromEnvironmentRequest) {
|
|
2380
|
+
const options = {
|
|
2381
|
+
method: "DELETE",
|
|
2382
|
+
url: "/v1/applications/{application_id}/environments/{environment_id}/{host_id}",
|
|
2383
|
+
contentType: "application/json",
|
|
2384
|
+
queryParams: {},
|
|
2385
|
+
pathParams: {},
|
|
2386
|
+
headers: {}
|
|
2387
|
+
};
|
|
2388
|
+
const localVarHeaderParameter = {};
|
|
2389
|
+
let applicationId;
|
|
2390
|
+
let environmentId;
|
|
2391
|
+
let hostId;
|
|
2392
|
+
let contentType;
|
|
2393
|
+
if (deleteHostFromEnvironmentRequest !== null && deleteHostFromEnvironmentRequest !== undefined) {
|
|
2394
|
+
if (deleteHostFromEnvironmentRequest instanceof DeleteHostFromEnvironmentRequest_1.DeleteHostFromEnvironmentRequest) {
|
|
2395
|
+
applicationId = deleteHostFromEnvironmentRequest.applicationId;
|
|
2396
|
+
environmentId = deleteHostFromEnvironmentRequest.environmentId;
|
|
2397
|
+
hostId = deleteHostFromEnvironmentRequest.hostId;
|
|
2398
|
+
contentType = deleteHostFromEnvironmentRequest.contentType;
|
|
2399
|
+
}
|
|
2400
|
+
else {
|
|
2401
|
+
applicationId = deleteHostFromEnvironmentRequest['application_id'];
|
|
2402
|
+
environmentId = deleteHostFromEnvironmentRequest['environment_id'];
|
|
2403
|
+
hostId = deleteHostFromEnvironmentRequest['host_id'];
|
|
2404
|
+
contentType = deleteHostFromEnvironmentRequest['Content-Type'];
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
if (applicationId === null || applicationId === undefined) {
|
|
2408
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling deleteHostFromEnvironment.');
|
|
2409
|
+
}
|
|
2410
|
+
if (environmentId === null || environmentId === undefined) {
|
|
2411
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling deleteHostFromEnvironment.');
|
|
2412
|
+
}
|
|
2413
|
+
if (hostId === null || hostId === undefined) {
|
|
2414
|
+
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling deleteHostFromEnvironment.');
|
|
2415
|
+
}
|
|
2416
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2417
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2418
|
+
}
|
|
2419
|
+
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, 'host_id': hostId, };
|
|
2420
|
+
options.headers = localVarHeaderParameter;
|
|
2421
|
+
return options;
|
|
2422
|
+
},
|
|
2423
|
+
/**
|
|
2424
|
+
* 环境下导入主机。
|
|
2425
|
+
*
|
|
2426
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2427
|
+
*/
|
|
2428
|
+
importHostToEnvironment(importHostToEnvironmentRequest) {
|
|
2429
|
+
const options = {
|
|
2430
|
+
method: "POST",
|
|
2431
|
+
url: "/v1/applications/{application_id}/environments/{environment_id}/hosts/import",
|
|
2432
|
+
contentType: "application/json",
|
|
2433
|
+
queryParams: {},
|
|
2434
|
+
pathParams: {},
|
|
2435
|
+
headers: {},
|
|
2436
|
+
data: {}
|
|
2437
|
+
};
|
|
2438
|
+
const localVarHeaderParameter = {};
|
|
2439
|
+
let body;
|
|
2440
|
+
let applicationId;
|
|
2441
|
+
let environmentId;
|
|
2442
|
+
let contentType;
|
|
2443
|
+
if (importHostToEnvironmentRequest !== null && importHostToEnvironmentRequest !== undefined) {
|
|
2444
|
+
if (importHostToEnvironmentRequest instanceof ImportHostToEnvironmentRequest_1.ImportHostToEnvironmentRequest) {
|
|
2445
|
+
applicationId = importHostToEnvironmentRequest.applicationId;
|
|
2446
|
+
environmentId = importHostToEnvironmentRequest.environmentId;
|
|
2447
|
+
contentType = importHostToEnvironmentRequest.contentType;
|
|
2448
|
+
body = importHostToEnvironmentRequest.body;
|
|
2449
|
+
}
|
|
2450
|
+
else {
|
|
2451
|
+
applicationId = importHostToEnvironmentRequest['application_id'];
|
|
2452
|
+
environmentId = importHostToEnvironmentRequest['environment_id'];
|
|
2453
|
+
contentType = importHostToEnvironmentRequest['Content-Type'];
|
|
2454
|
+
body = importHostToEnvironmentRequest['body'];
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
if (applicationId === null || applicationId === undefined) {
|
|
2458
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling importHostToEnvironment.');
|
|
2459
|
+
}
|
|
2460
|
+
if (environmentId === null || environmentId === undefined) {
|
|
2461
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling importHostToEnvironment.');
|
|
2462
|
+
}
|
|
2463
|
+
if (body === null || body === undefined) {
|
|
2464
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2465
|
+
}
|
|
2466
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2467
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2468
|
+
}
|
|
2469
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2470
|
+
options.data = body !== undefined ? body : {};
|
|
2471
|
+
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, };
|
|
2472
|
+
options.headers = localVarHeaderParameter;
|
|
2473
|
+
return options;
|
|
2474
|
+
},
|
|
2475
|
+
/**
|
|
2476
|
+
* 查询环境内的主机列表。
|
|
2477
|
+
*
|
|
2478
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2479
|
+
*/
|
|
2480
|
+
listEnvironmentHosts(listEnvironmentHostsRequest) {
|
|
2481
|
+
const options = {
|
|
2482
|
+
method: "GET",
|
|
2483
|
+
url: "/v1/applications/{application_id}/environments/{environment_id}/hosts",
|
|
2484
|
+
contentType: "application/json",
|
|
2485
|
+
queryParams: {},
|
|
2486
|
+
pathParams: {},
|
|
2487
|
+
headers: {}
|
|
2488
|
+
};
|
|
2489
|
+
const localVarHeaderParameter = {};
|
|
2490
|
+
const localVarQueryParameter = {};
|
|
2491
|
+
let applicationId;
|
|
2492
|
+
let environmentId;
|
|
2493
|
+
let keyField;
|
|
2494
|
+
let asProxy;
|
|
2495
|
+
let pageIndex;
|
|
2496
|
+
let pageSize;
|
|
2497
|
+
if (listEnvironmentHostsRequest !== null && listEnvironmentHostsRequest !== undefined) {
|
|
2498
|
+
if (listEnvironmentHostsRequest instanceof ListEnvironmentHostsRequest_1.ListEnvironmentHostsRequest) {
|
|
2499
|
+
applicationId = listEnvironmentHostsRequest.applicationId;
|
|
2500
|
+
environmentId = listEnvironmentHostsRequest.environmentId;
|
|
2501
|
+
keyField = listEnvironmentHostsRequest.keyField;
|
|
2502
|
+
asProxy = listEnvironmentHostsRequest.asProxy;
|
|
2503
|
+
pageIndex = listEnvironmentHostsRequest.pageIndex;
|
|
2504
|
+
pageSize = listEnvironmentHostsRequest.pageSize;
|
|
2505
|
+
}
|
|
2506
|
+
else {
|
|
2507
|
+
applicationId = listEnvironmentHostsRequest['application_id'];
|
|
2508
|
+
environmentId = listEnvironmentHostsRequest['environment_id'];
|
|
2509
|
+
keyField = listEnvironmentHostsRequest['key_field'];
|
|
2510
|
+
asProxy = listEnvironmentHostsRequest['as_proxy'];
|
|
2511
|
+
pageIndex = listEnvironmentHostsRequest['page_index'];
|
|
2512
|
+
pageSize = listEnvironmentHostsRequest['page_size'];
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
if (applicationId === null || applicationId === undefined) {
|
|
2516
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling listEnvironmentHosts.');
|
|
2517
|
+
}
|
|
2518
|
+
if (environmentId === null || environmentId === undefined) {
|
|
2519
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling listEnvironmentHosts.');
|
|
2520
|
+
}
|
|
2521
|
+
if (keyField !== null && keyField !== undefined) {
|
|
2522
|
+
localVarQueryParameter['key_field'] = keyField;
|
|
2523
|
+
}
|
|
2524
|
+
if (asProxy !== null && asProxy !== undefined) {
|
|
2525
|
+
localVarQueryParameter['as_proxy'] = asProxy;
|
|
2526
|
+
}
|
|
2527
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
|
2528
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
|
2529
|
+
}
|
|
2530
|
+
if (pageSize !== null && pageSize !== undefined) {
|
|
2531
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2532
|
+
}
|
|
2533
|
+
options.queryParams = localVarQueryParameter;
|
|
2534
|
+
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, };
|
|
2535
|
+
options.headers = localVarHeaderParameter;
|
|
2536
|
+
return options;
|
|
2537
|
+
},
|
|
2538
|
+
/**
|
|
2539
|
+
* 查询应用下环境列表。
|
|
2540
|
+
*
|
|
2541
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2542
|
+
*/
|
|
2543
|
+
listEnvironments(listEnvironmentsRequest) {
|
|
2544
|
+
const options = {
|
|
2545
|
+
method: "GET",
|
|
2546
|
+
url: "/v1/applications/{application_id}/environments",
|
|
2547
|
+
contentType: "application/json",
|
|
2548
|
+
queryParams: {},
|
|
2549
|
+
pathParams: {},
|
|
2550
|
+
headers: {}
|
|
2551
|
+
};
|
|
2552
|
+
const localVarHeaderParameter = {};
|
|
2553
|
+
const localVarQueryParameter = {};
|
|
2554
|
+
let applicationId;
|
|
2555
|
+
let projectId;
|
|
2556
|
+
let pageIndex;
|
|
2557
|
+
let pageSize;
|
|
2558
|
+
let name;
|
|
2559
|
+
let sortKey;
|
|
2560
|
+
let sortDir;
|
|
2561
|
+
if (listEnvironmentsRequest !== null && listEnvironmentsRequest !== undefined) {
|
|
2562
|
+
if (listEnvironmentsRequest instanceof ListEnvironmentsRequest_1.ListEnvironmentsRequest) {
|
|
2563
|
+
applicationId = listEnvironmentsRequest.applicationId;
|
|
2564
|
+
projectId = listEnvironmentsRequest.projectId;
|
|
2565
|
+
pageIndex = listEnvironmentsRequest.pageIndex;
|
|
2566
|
+
pageSize = listEnvironmentsRequest.pageSize;
|
|
2567
|
+
name = listEnvironmentsRequest.name;
|
|
2568
|
+
sortKey = listEnvironmentsRequest.sortKey;
|
|
2569
|
+
sortDir = listEnvironmentsRequest.sortDir;
|
|
2570
|
+
}
|
|
2571
|
+
else {
|
|
2572
|
+
applicationId = listEnvironmentsRequest['application_id'];
|
|
2573
|
+
projectId = listEnvironmentsRequest['project_id'];
|
|
2574
|
+
pageIndex = listEnvironmentsRequest['page_index'];
|
|
2575
|
+
pageSize = listEnvironmentsRequest['page_size'];
|
|
2576
|
+
name = listEnvironmentsRequest['name'];
|
|
2577
|
+
sortKey = listEnvironmentsRequest['sort_key'];
|
|
2578
|
+
sortDir = listEnvironmentsRequest['sort_dir'];
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
if (applicationId === null || applicationId === undefined) {
|
|
2582
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling listEnvironments.');
|
|
2583
|
+
}
|
|
2584
|
+
if (projectId === null || projectId === undefined) {
|
|
2585
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listEnvironments.');
|
|
2586
|
+
}
|
|
2587
|
+
if (projectId !== null && projectId !== undefined) {
|
|
2588
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
2589
|
+
}
|
|
2590
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
|
2591
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
|
2592
|
+
}
|
|
2593
|
+
if (pageSize !== null && pageSize !== undefined) {
|
|
2594
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2595
|
+
}
|
|
2596
|
+
if (name !== null && name !== undefined) {
|
|
2597
|
+
localVarQueryParameter['name'] = name;
|
|
2598
|
+
}
|
|
2599
|
+
if (sortKey !== null && sortKey !== undefined) {
|
|
2600
|
+
localVarQueryParameter['sort_key'] = sortKey;
|
|
2601
|
+
}
|
|
2602
|
+
if (sortDir !== null && sortDir !== undefined) {
|
|
2603
|
+
localVarQueryParameter['sort_dir'] = sortDir;
|
|
2604
|
+
}
|
|
2605
|
+
options.queryParams = localVarQueryParameter;
|
|
2606
|
+
options.pathParams = { 'application_id': applicationId, };
|
|
2607
|
+
options.headers = localVarHeaderParameter;
|
|
2608
|
+
return options;
|
|
2609
|
+
},
|
|
2610
|
+
/**
|
|
2611
|
+
* 查询环境详情。
|
|
2612
|
+
*
|
|
2613
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2614
|
+
*/
|
|
2615
|
+
showEnvironmentDetail(showEnvironmentDetailRequest) {
|
|
2616
|
+
const options = {
|
|
2617
|
+
method: "GET",
|
|
2618
|
+
url: "/v1/applications/{application_id}/environments/{environment_id}",
|
|
2619
|
+
contentType: "application/json",
|
|
2620
|
+
queryParams: {},
|
|
2621
|
+
pathParams: {},
|
|
2622
|
+
headers: {}
|
|
2623
|
+
};
|
|
2624
|
+
const localVarHeaderParameter = {};
|
|
2625
|
+
let applicationId;
|
|
2626
|
+
let environmentId;
|
|
2627
|
+
if (showEnvironmentDetailRequest !== null && showEnvironmentDetailRequest !== undefined) {
|
|
2628
|
+
if (showEnvironmentDetailRequest instanceof ShowEnvironmentDetailRequest_1.ShowEnvironmentDetailRequest) {
|
|
2629
|
+
applicationId = showEnvironmentDetailRequest.applicationId;
|
|
2630
|
+
environmentId = showEnvironmentDetailRequest.environmentId;
|
|
2631
|
+
}
|
|
2632
|
+
else {
|
|
2633
|
+
applicationId = showEnvironmentDetailRequest['application_id'];
|
|
2634
|
+
environmentId = showEnvironmentDetailRequest['environment_id'];
|
|
1201
2635
|
}
|
|
1202
2636
|
}
|
|
1203
2637
|
if (applicationId === null || applicationId === undefined) {
|
|
1204
|
-
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling
|
|
1205
|
-
}
|
|
1206
|
-
if (body === null || body === undefined) {
|
|
1207
|
-
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2638
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling showEnvironmentDetail.');
|
|
1208
2639
|
}
|
|
1209
|
-
if (
|
|
1210
|
-
|
|
2640
|
+
if (environmentId === null || environmentId === undefined) {
|
|
2641
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling showEnvironmentDetail.');
|
|
1211
2642
|
}
|
|
1212
|
-
|
|
1213
|
-
options.data = body !== undefined ? body : {};
|
|
1214
|
-
options.pathParams = { 'application_id': applicationId, };
|
|
2643
|
+
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, };
|
|
1215
2644
|
options.headers = localVarHeaderParameter;
|
|
1216
2645
|
return options;
|
|
1217
2646
|
},
|
|
1218
2647
|
/**
|
|
1219
|
-
*
|
|
2648
|
+
* 应用下编辑环境。
|
|
1220
2649
|
*
|
|
1221
2650
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1222
2651
|
*/
|
|
1223
|
-
|
|
2652
|
+
updateEnvironment(updateEnvironmentRequest) {
|
|
1224
2653
|
const options = {
|
|
1225
|
-
method: "
|
|
2654
|
+
method: "PUT",
|
|
1226
2655
|
url: "/v1/applications/{application_id}/environments/{environment_id}",
|
|
1227
2656
|
contentType: "application/json",
|
|
1228
2657
|
queryParams: {},
|
|
1229
2658
|
pathParams: {},
|
|
1230
|
-
headers: {}
|
|
2659
|
+
headers: {},
|
|
2660
|
+
data: {}
|
|
1231
2661
|
};
|
|
1232
2662
|
const localVarHeaderParameter = {};
|
|
2663
|
+
let body;
|
|
2664
|
+
let contentType;
|
|
1233
2665
|
let applicationId;
|
|
1234
2666
|
let environmentId;
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
applicationId =
|
|
1239
|
-
environmentId =
|
|
1240
|
-
|
|
2667
|
+
if (updateEnvironmentRequest !== null && updateEnvironmentRequest !== undefined) {
|
|
2668
|
+
if (updateEnvironmentRequest instanceof UpdateEnvironmentRequest_1.UpdateEnvironmentRequest) {
|
|
2669
|
+
contentType = updateEnvironmentRequest.contentType;
|
|
2670
|
+
applicationId = updateEnvironmentRequest.applicationId;
|
|
2671
|
+
environmentId = updateEnvironmentRequest.environmentId;
|
|
2672
|
+
body = updateEnvironmentRequest.body;
|
|
1241
2673
|
}
|
|
1242
2674
|
else {
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
2675
|
+
contentType = updateEnvironmentRequest['Content-Type'];
|
|
2676
|
+
applicationId = updateEnvironmentRequest['application_id'];
|
|
2677
|
+
environmentId = updateEnvironmentRequest['environment_id'];
|
|
2678
|
+
body = updateEnvironmentRequest['body'];
|
|
1246
2679
|
}
|
|
1247
2680
|
}
|
|
1248
2681
|
if (applicationId === null || applicationId === undefined) {
|
|
1249
|
-
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling
|
|
2682
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling updateEnvironment.');
|
|
1250
2683
|
}
|
|
1251
2684
|
if (environmentId === null || environmentId === undefined) {
|
|
1252
|
-
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling
|
|
2685
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling updateEnvironment.');
|
|
2686
|
+
}
|
|
2687
|
+
if (body === null || body === undefined) {
|
|
2688
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1253
2689
|
}
|
|
1254
2690
|
if (contentType !== undefined && contentType !== null) {
|
|
1255
2691
|
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1256
2692
|
}
|
|
2693
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2694
|
+
options.data = body !== undefined ? body : {};
|
|
1257
2695
|
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, };
|
|
1258
2696
|
options.headers = localVarHeaderParameter;
|
|
1259
2697
|
return options;
|
|
1260
2698
|
},
|
|
1261
2699
|
/**
|
|
1262
|
-
*
|
|
2700
|
+
* 查询环境权限。
|
|
1263
2701
|
*
|
|
1264
2702
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1265
2703
|
*/
|
|
1266
|
-
|
|
2704
|
+
listEnvironmentPermissions(listEnvironmentPermissionsRequest) {
|
|
1267
2705
|
const options = {
|
|
1268
|
-
method: "
|
|
1269
|
-
url: "/
|
|
2706
|
+
method: "GET",
|
|
2707
|
+
url: "/v2/applications/{application_id}/environments/{environment_id}/permissions",
|
|
1270
2708
|
contentType: "application/json",
|
|
1271
2709
|
queryParams: {},
|
|
1272
2710
|
pathParams: {},
|
|
@@ -1275,47 +2713,35 @@ const ParamCreater = function () {
|
|
|
1275
2713
|
const localVarHeaderParameter = {};
|
|
1276
2714
|
let applicationId;
|
|
1277
2715
|
let environmentId;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
applicationId = deleteHostFromEnvironmentRequest.applicationId;
|
|
1283
|
-
environmentId = deleteHostFromEnvironmentRequest.environmentId;
|
|
1284
|
-
hostId = deleteHostFromEnvironmentRequest.hostId;
|
|
1285
|
-
contentType = deleteHostFromEnvironmentRequest.contentType;
|
|
2716
|
+
if (listEnvironmentPermissionsRequest !== null && listEnvironmentPermissionsRequest !== undefined) {
|
|
2717
|
+
if (listEnvironmentPermissionsRequest instanceof ListEnvironmentPermissionsRequest_1.ListEnvironmentPermissionsRequest) {
|
|
2718
|
+
applicationId = listEnvironmentPermissionsRequest.applicationId;
|
|
2719
|
+
environmentId = listEnvironmentPermissionsRequest.environmentId;
|
|
1286
2720
|
}
|
|
1287
2721
|
else {
|
|
1288
|
-
applicationId =
|
|
1289
|
-
environmentId =
|
|
1290
|
-
hostId = deleteHostFromEnvironmentRequest['host_id'];
|
|
1291
|
-
contentType = deleteHostFromEnvironmentRequest['Content-Type'];
|
|
2722
|
+
applicationId = listEnvironmentPermissionsRequest['application_id'];
|
|
2723
|
+
environmentId = listEnvironmentPermissionsRequest['environment_id'];
|
|
1292
2724
|
}
|
|
1293
2725
|
}
|
|
1294
2726
|
if (applicationId === null || applicationId === undefined) {
|
|
1295
|
-
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling
|
|
2727
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling listEnvironmentPermissions.');
|
|
1296
2728
|
}
|
|
1297
2729
|
if (environmentId === null || environmentId === undefined) {
|
|
1298
|
-
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling
|
|
1299
|
-
}
|
|
1300
|
-
if (hostId === null || hostId === undefined) {
|
|
1301
|
-
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling deleteHostFromEnvironment.');
|
|
1302
|
-
}
|
|
1303
|
-
if (contentType !== undefined && contentType !== null) {
|
|
1304
|
-
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2730
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling listEnvironmentPermissions.');
|
|
1305
2731
|
}
|
|
1306
|
-
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId,
|
|
2732
|
+
options.pathParams = { 'application_id': applicationId, 'environment_id': environmentId, };
|
|
1307
2733
|
options.headers = localVarHeaderParameter;
|
|
1308
2734
|
return options;
|
|
1309
2735
|
},
|
|
1310
2736
|
/**
|
|
1311
|
-
*
|
|
2737
|
+
* 编辑环境权限。
|
|
1312
2738
|
*
|
|
1313
2739
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1314
2740
|
*/
|
|
1315
|
-
|
|
2741
|
+
updateEnvironmentPermission(updateEnvironmentPermissionRequest) {
|
|
1316
2742
|
const options = {
|
|
1317
|
-
method: "
|
|
1318
|
-
url: "/
|
|
2743
|
+
method: "PUT",
|
|
2744
|
+
url: "/v2/applications/{application_id}/environments/{environment_id}/permissions",
|
|
1319
2745
|
contentType: "application/json",
|
|
1320
2746
|
queryParams: {},
|
|
1321
2747
|
pathParams: {},
|
|
@@ -1324,28 +2750,28 @@ const ParamCreater = function () {
|
|
|
1324
2750
|
};
|
|
1325
2751
|
const localVarHeaderParameter = {};
|
|
1326
2752
|
let body;
|
|
2753
|
+
let contentType;
|
|
1327
2754
|
let applicationId;
|
|
1328
2755
|
let environmentId;
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
applicationId =
|
|
1333
|
-
environmentId =
|
|
1334
|
-
|
|
1335
|
-
body = importHostToEnvironmentRequest.body;
|
|
2756
|
+
if (updateEnvironmentPermissionRequest !== null && updateEnvironmentPermissionRequest !== undefined) {
|
|
2757
|
+
if (updateEnvironmentPermissionRequest instanceof UpdateEnvironmentPermissionRequest_1.UpdateEnvironmentPermissionRequest) {
|
|
2758
|
+
contentType = updateEnvironmentPermissionRequest.contentType;
|
|
2759
|
+
applicationId = updateEnvironmentPermissionRequest.applicationId;
|
|
2760
|
+
environmentId = updateEnvironmentPermissionRequest.environmentId;
|
|
2761
|
+
body = updateEnvironmentPermissionRequest.body;
|
|
1336
2762
|
}
|
|
1337
2763
|
else {
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
body =
|
|
2764
|
+
contentType = updateEnvironmentPermissionRequest['Content-Type'];
|
|
2765
|
+
applicationId = updateEnvironmentPermissionRequest['application_id'];
|
|
2766
|
+
environmentId = updateEnvironmentPermissionRequest['environment_id'];
|
|
2767
|
+
body = updateEnvironmentPermissionRequest['body'];
|
|
1342
2768
|
}
|
|
1343
2769
|
}
|
|
1344
2770
|
if (applicationId === null || applicationId === undefined) {
|
|
1345
|
-
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling
|
|
2771
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling updateEnvironmentPermission.');
|
|
1346
2772
|
}
|
|
1347
2773
|
if (environmentId === null || environmentId === undefined) {
|
|
1348
|
-
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling
|
|
2774
|
+
throw new RequiredError('environmentId', 'Required parameter environmentId was null or undefined when calling updateEnvironmentPermission.');
|
|
1349
2775
|
}
|
|
1350
2776
|
if (body === null || body === undefined) {
|
|
1351
2777
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
@@ -1360,111 +2786,94 @@ const ParamCreater = function () {
|
|
|
1360
2786
|
return options;
|
|
1361
2787
|
},
|
|
1362
2788
|
/**
|
|
1363
|
-
*
|
|
2789
|
+
* 批量删除主机集群下的主机。
|
|
1364
2790
|
*
|
|
1365
2791
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1366
2792
|
*/
|
|
1367
|
-
|
|
2793
|
+
batchDeleteHosts(batchDeleteHostsRequest) {
|
|
1368
2794
|
const options = {
|
|
1369
|
-
method: "
|
|
1370
|
-
url: "/v1/
|
|
2795
|
+
method: "POST",
|
|
2796
|
+
url: "/v1/resources/host-groups/{group_id}/hosts/batch-delete",
|
|
1371
2797
|
contentType: "application/json",
|
|
1372
2798
|
queryParams: {},
|
|
1373
2799
|
pathParams: {},
|
|
1374
|
-
headers: {}
|
|
2800
|
+
headers: {},
|
|
2801
|
+
data: {}
|
|
1375
2802
|
};
|
|
1376
2803
|
const localVarHeaderParameter = {};
|
|
1377
|
-
|
|
1378
|
-
let
|
|
1379
|
-
let
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
if (listEnvironmentsRequest !== null && listEnvironmentsRequest !== undefined) {
|
|
1386
|
-
if (listEnvironmentsRequest instanceof ListEnvironmentsRequest_1.ListEnvironmentsRequest) {
|
|
1387
|
-
applicationId = listEnvironmentsRequest.applicationId;
|
|
1388
|
-
projectId = listEnvironmentsRequest.projectId;
|
|
1389
|
-
pageIndex = listEnvironmentsRequest.pageIndex;
|
|
1390
|
-
pageSize = listEnvironmentsRequest.pageSize;
|
|
1391
|
-
name = listEnvironmentsRequest.name;
|
|
1392
|
-
sortKey = listEnvironmentsRequest.sortKey;
|
|
1393
|
-
sortDir = listEnvironmentsRequest.sortDir;
|
|
2804
|
+
let body;
|
|
2805
|
+
let contentType;
|
|
2806
|
+
let groupId;
|
|
2807
|
+
if (batchDeleteHostsRequest !== null && batchDeleteHostsRequest !== undefined) {
|
|
2808
|
+
if (batchDeleteHostsRequest instanceof BatchDeleteHostsRequest_1.BatchDeleteHostsRequest) {
|
|
2809
|
+
contentType = batchDeleteHostsRequest.contentType;
|
|
2810
|
+
groupId = batchDeleteHostsRequest.groupId;
|
|
2811
|
+
body = batchDeleteHostsRequest.body;
|
|
1394
2812
|
}
|
|
1395
2813
|
else {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
pageSize = listEnvironmentsRequest['page_size'];
|
|
1400
|
-
name = listEnvironmentsRequest['name'];
|
|
1401
|
-
sortKey = listEnvironmentsRequest['sort_key'];
|
|
1402
|
-
sortDir = listEnvironmentsRequest['sort_dir'];
|
|
2814
|
+
contentType = batchDeleteHostsRequest['Content-Type'];
|
|
2815
|
+
groupId = batchDeleteHostsRequest['group_id'];
|
|
2816
|
+
body = batchDeleteHostsRequest['body'];
|
|
1403
2817
|
}
|
|
1404
2818
|
}
|
|
1405
|
-
if (
|
|
1406
|
-
throw new RequiredError('
|
|
1407
|
-
}
|
|
1408
|
-
if (projectId === null || projectId === undefined) {
|
|
1409
|
-
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling listEnvironments.');
|
|
1410
|
-
}
|
|
1411
|
-
if (projectId !== null && projectId !== undefined) {
|
|
1412
|
-
localVarQueryParameter['project_id'] = projectId;
|
|
1413
|
-
}
|
|
1414
|
-
if (pageIndex !== null && pageIndex !== undefined) {
|
|
1415
|
-
localVarQueryParameter['page_index'] = pageIndex;
|
|
1416
|
-
}
|
|
1417
|
-
if (pageSize !== null && pageSize !== undefined) {
|
|
1418
|
-
localVarQueryParameter['page_size'] = pageSize;
|
|
1419
|
-
}
|
|
1420
|
-
if (name !== null && name !== undefined) {
|
|
1421
|
-
localVarQueryParameter['name'] = name;
|
|
2819
|
+
if (groupId === null || groupId === undefined) {
|
|
2820
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling batchDeleteHosts.');
|
|
1422
2821
|
}
|
|
1423
|
-
if (
|
|
1424
|
-
|
|
2822
|
+
if (body === null || body === undefined) {
|
|
2823
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1425
2824
|
}
|
|
1426
|
-
if (
|
|
1427
|
-
|
|
2825
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2826
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1428
2827
|
}
|
|
1429
|
-
|
|
1430
|
-
options.
|
|
2828
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2829
|
+
options.data = body !== undefined ? body : {};
|
|
2830
|
+
options.pathParams = { 'group_id': groupId, };
|
|
1431
2831
|
options.headers = localVarHeaderParameter;
|
|
1432
2832
|
return options;
|
|
1433
2833
|
},
|
|
1434
2834
|
/**
|
|
1435
|
-
*
|
|
2835
|
+
* 批量复制主机至目标主机集群。
|
|
1436
2836
|
*
|
|
1437
2837
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1438
2838
|
*/
|
|
1439
|
-
|
|
2839
|
+
copyHostsToTarget(copyHostsToTargetRequest) {
|
|
1440
2840
|
const options = {
|
|
1441
|
-
method: "
|
|
1442
|
-
url: "/v1/
|
|
2841
|
+
method: "POST",
|
|
2842
|
+
url: "/v1/resources/host-groups/{group_id}/hosts/replication",
|
|
1443
2843
|
contentType: "application/json",
|
|
1444
2844
|
queryParams: {},
|
|
1445
2845
|
pathParams: {},
|
|
1446
|
-
headers: {}
|
|
2846
|
+
headers: {},
|
|
2847
|
+
data: {}
|
|
1447
2848
|
};
|
|
1448
2849
|
const localVarHeaderParameter = {};
|
|
1449
|
-
let
|
|
1450
|
-
let
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
2850
|
+
let body;
|
|
2851
|
+
let contentType;
|
|
2852
|
+
let groupId;
|
|
2853
|
+
if (copyHostsToTargetRequest !== null && copyHostsToTargetRequest !== undefined) {
|
|
2854
|
+
if (copyHostsToTargetRequest instanceof CopyHostsToTargetRequest_1.CopyHostsToTargetRequest) {
|
|
2855
|
+
contentType = copyHostsToTargetRequest.contentType;
|
|
2856
|
+
groupId = copyHostsToTargetRequest.groupId;
|
|
2857
|
+
body = copyHostsToTargetRequest.body;
|
|
1455
2858
|
}
|
|
1456
2859
|
else {
|
|
1457
|
-
|
|
1458
|
-
|
|
2860
|
+
contentType = copyHostsToTargetRequest['Content-Type'];
|
|
2861
|
+
groupId = copyHostsToTargetRequest['group_id'];
|
|
2862
|
+
body = copyHostsToTargetRequest['body'];
|
|
1459
2863
|
}
|
|
1460
2864
|
}
|
|
1461
|
-
if (
|
|
1462
|
-
throw new RequiredError('
|
|
2865
|
+
if (groupId === null || groupId === undefined) {
|
|
2866
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling copyHostsToTarget.');
|
|
1463
2867
|
}
|
|
1464
|
-
if (
|
|
1465
|
-
throw new RequiredError('
|
|
2868
|
+
if (body === null || body === undefined) {
|
|
2869
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1466
2870
|
}
|
|
1467
|
-
|
|
2871
|
+
if (contentType !== undefined && contentType !== null) {
|
|
2872
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
2873
|
+
}
|
|
2874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2875
|
+
options.data = body !== undefined ? body : {};
|
|
2876
|
+
options.pathParams = { 'group_id': groupId, };
|
|
1468
2877
|
options.headers = localVarHeaderParameter;
|
|
1469
2878
|
return options;
|
|
1470
2879
|
},
|
|
@@ -1603,6 +3012,49 @@ const ParamCreater = function () {
|
|
|
1603
3012
|
options.headers = localVarHeaderParameter;
|
|
1604
3013
|
return options;
|
|
1605
3014
|
},
|
|
3015
|
+
/**
|
|
3016
|
+
* 根据主机id删除主机集群下主机。
|
|
3017
|
+
*
|
|
3018
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3019
|
+
*/
|
|
3020
|
+
deleteHost(deleteHostRequest) {
|
|
3021
|
+
const options = {
|
|
3022
|
+
method: "DELETE",
|
|
3023
|
+
url: "/v1/resources/host-groups/{group_id}/hosts/{host_id}",
|
|
3024
|
+
contentType: "application/json",
|
|
3025
|
+
queryParams: {},
|
|
3026
|
+
pathParams: {},
|
|
3027
|
+
headers: {}
|
|
3028
|
+
};
|
|
3029
|
+
const localVarHeaderParameter = {};
|
|
3030
|
+
let contentType;
|
|
3031
|
+
let groupId;
|
|
3032
|
+
let hostId;
|
|
3033
|
+
if (deleteHostRequest !== null && deleteHostRequest !== undefined) {
|
|
3034
|
+
if (deleteHostRequest instanceof DeleteHostRequest_1.DeleteHostRequest) {
|
|
3035
|
+
contentType = deleteHostRequest.contentType;
|
|
3036
|
+
groupId = deleteHostRequest.groupId;
|
|
3037
|
+
hostId = deleteHostRequest.hostId;
|
|
3038
|
+
}
|
|
3039
|
+
else {
|
|
3040
|
+
contentType = deleteHostRequest['Content-Type'];
|
|
3041
|
+
groupId = deleteHostRequest['group_id'];
|
|
3042
|
+
hostId = deleteHostRequest['host_id'];
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
if (groupId === null || groupId === undefined) {
|
|
3046
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteHost.');
|
|
3047
|
+
}
|
|
3048
|
+
if (hostId === null || hostId === undefined) {
|
|
3049
|
+
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling deleteHost.');
|
|
3050
|
+
}
|
|
3051
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3052
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3053
|
+
}
|
|
3054
|
+
options.pathParams = { 'group_id': groupId, 'host_id': hostId, };
|
|
3055
|
+
options.headers = localVarHeaderParameter;
|
|
3056
|
+
return options;
|
|
3057
|
+
},
|
|
1606
3058
|
/**
|
|
1607
3059
|
* 根据主机集群id查询指定主机集群下的主机列表。该接口于2024年09月30日后不再维护,推荐使用新版ListNewHosts接口。
|
|
1608
3060
|
*
|
|
@@ -1813,29 +3265,81 @@ const ParamCreater = function () {
|
|
|
1813
3265
|
hostId = showHostDetailRequest.hostId;
|
|
1814
3266
|
}
|
|
1815
3267
|
else {
|
|
1816
|
-
groupId = showHostDetailRequest['group_id'];
|
|
1817
|
-
hostId = showHostDetailRequest['host_id'];
|
|
3268
|
+
groupId = showHostDetailRequest['group_id'];
|
|
3269
|
+
hostId = showHostDetailRequest['host_id'];
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
if (groupId === null || groupId === undefined) {
|
|
3273
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling showHostDetail.');
|
|
3274
|
+
}
|
|
3275
|
+
if (hostId === null || hostId === undefined) {
|
|
3276
|
+
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling showHostDetail.');
|
|
3277
|
+
}
|
|
3278
|
+
options.pathParams = { 'group_id': groupId, 'host_id': hostId, };
|
|
3279
|
+
options.headers = localVarHeaderParameter;
|
|
3280
|
+
return options;
|
|
3281
|
+
},
|
|
3282
|
+
/**
|
|
3283
|
+
* 根据主机id修改主机信息。该接口于2024年9月30日后不再维护。
|
|
3284
|
+
*
|
|
3285
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3286
|
+
*/
|
|
3287
|
+
updateDeploymentHost(updateDeploymentHostRequest) {
|
|
3288
|
+
const options = {
|
|
3289
|
+
method: "PUT",
|
|
3290
|
+
url: "/v2/host-groups/{group_id}/hosts/{host_id}",
|
|
3291
|
+
contentType: "application/json",
|
|
3292
|
+
queryParams: {},
|
|
3293
|
+
pathParams: {},
|
|
3294
|
+
headers: {},
|
|
3295
|
+
data: {}
|
|
3296
|
+
};
|
|
3297
|
+
const localVarHeaderParameter = {};
|
|
3298
|
+
let body;
|
|
3299
|
+
let groupId;
|
|
3300
|
+
let hostId;
|
|
3301
|
+
let contentType;
|
|
3302
|
+
if (updateDeploymentHostRequest !== null && updateDeploymentHostRequest !== undefined) {
|
|
3303
|
+
if (updateDeploymentHostRequest instanceof UpdateDeploymentHostRequest_1.UpdateDeploymentHostRequest) {
|
|
3304
|
+
groupId = updateDeploymentHostRequest.groupId;
|
|
3305
|
+
hostId = updateDeploymentHostRequest.hostId;
|
|
3306
|
+
contentType = updateDeploymentHostRequest.contentType;
|
|
3307
|
+
body = updateDeploymentHostRequest.body;
|
|
3308
|
+
}
|
|
3309
|
+
else {
|
|
3310
|
+
groupId = updateDeploymentHostRequest['group_id'];
|
|
3311
|
+
hostId = updateDeploymentHostRequest['host_id'];
|
|
3312
|
+
contentType = updateDeploymentHostRequest['Content-Type'];
|
|
3313
|
+
body = updateDeploymentHostRequest['body'];
|
|
1818
3314
|
}
|
|
1819
3315
|
}
|
|
1820
3316
|
if (groupId === null || groupId === undefined) {
|
|
1821
|
-
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling
|
|
3317
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateDeploymentHost.');
|
|
1822
3318
|
}
|
|
1823
3319
|
if (hostId === null || hostId === undefined) {
|
|
1824
|
-
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling
|
|
3320
|
+
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling updateDeploymentHost.');
|
|
3321
|
+
}
|
|
3322
|
+
if (body === null || body === undefined) {
|
|
3323
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3324
|
+
}
|
|
3325
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3326
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
1825
3327
|
}
|
|
3328
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3329
|
+
options.data = body !== undefined ? body : {};
|
|
1826
3330
|
options.pathParams = { 'group_id': groupId, 'host_id': hostId, };
|
|
1827
3331
|
options.headers = localVarHeaderParameter;
|
|
1828
3332
|
return options;
|
|
1829
3333
|
},
|
|
1830
3334
|
/**
|
|
1831
|
-
* 根据主机id
|
|
3335
|
+
* 根据主机id编辑主机集群下主机信息。
|
|
1832
3336
|
*
|
|
1833
3337
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1834
3338
|
*/
|
|
1835
|
-
|
|
3339
|
+
updateHostInfo(updateHostInfoRequest) {
|
|
1836
3340
|
const options = {
|
|
1837
3341
|
method: "PUT",
|
|
1838
|
-
url: "/
|
|
3342
|
+
url: "/v1/resources/host-groups/{group_id}/hosts/{host_id}",
|
|
1839
3343
|
contentType: "application/json",
|
|
1840
3344
|
queryParams: {},
|
|
1841
3345
|
pathParams: {},
|
|
@@ -1844,28 +3348,28 @@ const ParamCreater = function () {
|
|
|
1844
3348
|
};
|
|
1845
3349
|
const localVarHeaderParameter = {};
|
|
1846
3350
|
let body;
|
|
3351
|
+
let contentType;
|
|
1847
3352
|
let groupId;
|
|
1848
3353
|
let hostId;
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
groupId =
|
|
1853
|
-
hostId =
|
|
1854
|
-
|
|
1855
|
-
body = updateDeploymentHostRequest.body;
|
|
3354
|
+
if (updateHostInfoRequest !== null && updateHostInfoRequest !== undefined) {
|
|
3355
|
+
if (updateHostInfoRequest instanceof UpdateHostInfoRequest_1.UpdateHostInfoRequest) {
|
|
3356
|
+
contentType = updateHostInfoRequest.contentType;
|
|
3357
|
+
groupId = updateHostInfoRequest.groupId;
|
|
3358
|
+
hostId = updateHostInfoRequest.hostId;
|
|
3359
|
+
body = updateHostInfoRequest.body;
|
|
1856
3360
|
}
|
|
1857
3361
|
else {
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
body =
|
|
3362
|
+
contentType = updateHostInfoRequest['Content-Type'];
|
|
3363
|
+
groupId = updateHostInfoRequest['group_id'];
|
|
3364
|
+
hostId = updateHostInfoRequest['host_id'];
|
|
3365
|
+
body = updateHostInfoRequest['body'];
|
|
1862
3366
|
}
|
|
1863
3367
|
}
|
|
1864
3368
|
if (groupId === null || groupId === undefined) {
|
|
1865
|
-
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling
|
|
3369
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateHostInfo.');
|
|
1866
3370
|
}
|
|
1867
3371
|
if (hostId === null || hostId === undefined) {
|
|
1868
|
-
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling
|
|
3372
|
+
throw new RequiredError('hostId', 'Required parameter hostId was null or undefined when calling updateHostInfo.');
|
|
1869
3373
|
}
|
|
1870
3374
|
if (body === null || body === undefined) {
|
|
1871
3375
|
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
@@ -1994,6 +3498,88 @@ const ParamCreater = function () {
|
|
|
1994
3498
|
options.headers = localVarHeaderParameter;
|
|
1995
3499
|
return options;
|
|
1996
3500
|
},
|
|
3501
|
+
/**
|
|
3502
|
+
* 根据主机集群id删除主机集群。
|
|
3503
|
+
*
|
|
3504
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3505
|
+
*/
|
|
3506
|
+
deleteHostCluster(deleteHostClusterRequest) {
|
|
3507
|
+
const options = {
|
|
3508
|
+
method: "DELETE",
|
|
3509
|
+
url: "/v1/resources/host-groups/{group_id}",
|
|
3510
|
+
contentType: "application/json",
|
|
3511
|
+
queryParams: {},
|
|
3512
|
+
pathParams: {},
|
|
3513
|
+
headers: {}
|
|
3514
|
+
};
|
|
3515
|
+
const localVarHeaderParameter = {};
|
|
3516
|
+
let contentType;
|
|
3517
|
+
let groupId;
|
|
3518
|
+
if (deleteHostClusterRequest !== null && deleteHostClusterRequest !== undefined) {
|
|
3519
|
+
if (deleteHostClusterRequest instanceof DeleteHostClusterRequest_1.DeleteHostClusterRequest) {
|
|
3520
|
+
contentType = deleteHostClusterRequest.contentType;
|
|
3521
|
+
groupId = deleteHostClusterRequest.groupId;
|
|
3522
|
+
}
|
|
3523
|
+
else {
|
|
3524
|
+
contentType = deleteHostClusterRequest['Content-Type'];
|
|
3525
|
+
groupId = deleteHostClusterRequest['group_id'];
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
if (groupId === null || groupId === undefined) {
|
|
3529
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling deleteHostCluster.');
|
|
3530
|
+
}
|
|
3531
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3532
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3533
|
+
}
|
|
3534
|
+
options.pathParams = { 'group_id': groupId, };
|
|
3535
|
+
options.headers = localVarHeaderParameter;
|
|
3536
|
+
return options;
|
|
3537
|
+
},
|
|
3538
|
+
/**
|
|
3539
|
+
* 查询主机集群关联环境信息。
|
|
3540
|
+
*
|
|
3541
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3542
|
+
*/
|
|
3543
|
+
listAssociateEnvironmentsInfos(listAssociateEnvironmentsInfosRequest) {
|
|
3544
|
+
const options = {
|
|
3545
|
+
method: "GET",
|
|
3546
|
+
url: "/v1/resources/host-groups/{group_id}/environments/infos",
|
|
3547
|
+
contentType: "application/json",
|
|
3548
|
+
queryParams: {},
|
|
3549
|
+
pathParams: {},
|
|
3550
|
+
headers: {}
|
|
3551
|
+
};
|
|
3552
|
+
const localVarHeaderParameter = {};
|
|
3553
|
+
const localVarQueryParameter = {};
|
|
3554
|
+
let groupId;
|
|
3555
|
+
let pageIndex;
|
|
3556
|
+
let pageSize;
|
|
3557
|
+
if (listAssociateEnvironmentsInfosRequest !== null && listAssociateEnvironmentsInfosRequest !== undefined) {
|
|
3558
|
+
if (listAssociateEnvironmentsInfosRequest instanceof ListAssociateEnvironmentsInfosRequest_1.ListAssociateEnvironmentsInfosRequest) {
|
|
3559
|
+
groupId = listAssociateEnvironmentsInfosRequest.groupId;
|
|
3560
|
+
pageIndex = listAssociateEnvironmentsInfosRequest.pageIndex;
|
|
3561
|
+
pageSize = listAssociateEnvironmentsInfosRequest.pageSize;
|
|
3562
|
+
}
|
|
3563
|
+
else {
|
|
3564
|
+
groupId = listAssociateEnvironmentsInfosRequest['group_id'];
|
|
3565
|
+
pageIndex = listAssociateEnvironmentsInfosRequest['page_index'];
|
|
3566
|
+
pageSize = listAssociateEnvironmentsInfosRequest['page_size'];
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
if (groupId === null || groupId === undefined) {
|
|
3570
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling listAssociateEnvironmentsInfos.');
|
|
3571
|
+
}
|
|
3572
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
|
3573
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
|
3574
|
+
}
|
|
3575
|
+
if (pageSize !== null && pageSize !== undefined) {
|
|
3576
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
3577
|
+
}
|
|
3578
|
+
options.queryParams = localVarQueryParameter;
|
|
3579
|
+
options.pathParams = { 'group_id': groupId, };
|
|
3580
|
+
options.headers = localVarHeaderParameter;
|
|
3581
|
+
return options;
|
|
3582
|
+
},
|
|
1997
3583
|
/**
|
|
1998
3584
|
* 按条件查询主机集群列表。
|
|
1999
3585
|
*
|
|
@@ -2077,6 +3663,72 @@ const ParamCreater = function () {
|
|
|
2077
3663
|
options.headers = localVarHeaderParameter;
|
|
2078
3664
|
return options;
|
|
2079
3665
|
},
|
|
3666
|
+
/**
|
|
3667
|
+
* 查询应用下环境基本信息列表。
|
|
3668
|
+
*
|
|
3669
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3670
|
+
*/
|
|
3671
|
+
listHostGroupBaseInfos(listHostGroupBaseInfosRequest) {
|
|
3672
|
+
const options = {
|
|
3673
|
+
method: "GET",
|
|
3674
|
+
url: "/v1/applications/{application_id}/host-groups/base/infos",
|
|
3675
|
+
contentType: "application/json",
|
|
3676
|
+
queryParams: {},
|
|
3677
|
+
pathParams: {},
|
|
3678
|
+
headers: {}
|
|
3679
|
+
};
|
|
3680
|
+
const localVarHeaderParameter = {};
|
|
3681
|
+
const localVarQueryParameter = {};
|
|
3682
|
+
let applicationId;
|
|
3683
|
+
let projectUuid;
|
|
3684
|
+
let os;
|
|
3685
|
+
let pageIndex;
|
|
3686
|
+
let pageSize;
|
|
3687
|
+
let name;
|
|
3688
|
+
if (listHostGroupBaseInfosRequest !== null && listHostGroupBaseInfosRequest !== undefined) {
|
|
3689
|
+
if (listHostGroupBaseInfosRequest instanceof ListHostGroupBaseInfosRequest_1.ListHostGroupBaseInfosRequest) {
|
|
3690
|
+
applicationId = listHostGroupBaseInfosRequest.applicationId;
|
|
3691
|
+
projectUuid = listHostGroupBaseInfosRequest.projectUuid;
|
|
3692
|
+
os = listHostGroupBaseInfosRequest.os;
|
|
3693
|
+
pageIndex = listHostGroupBaseInfosRequest.pageIndex;
|
|
3694
|
+
pageSize = listHostGroupBaseInfosRequest.pageSize;
|
|
3695
|
+
name = listHostGroupBaseInfosRequest.name;
|
|
3696
|
+
}
|
|
3697
|
+
else {
|
|
3698
|
+
applicationId = listHostGroupBaseInfosRequest['application_id'];
|
|
3699
|
+
projectUuid = listHostGroupBaseInfosRequest['project_uuid'];
|
|
3700
|
+
os = listHostGroupBaseInfosRequest['os'];
|
|
3701
|
+
pageIndex = listHostGroupBaseInfosRequest['page_index'];
|
|
3702
|
+
pageSize = listHostGroupBaseInfosRequest['page_size'];
|
|
3703
|
+
name = listHostGroupBaseInfosRequest['name'];
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
if (applicationId === null || applicationId === undefined) {
|
|
3707
|
+
throw new RequiredError('applicationId', 'Required parameter applicationId was null or undefined when calling listHostGroupBaseInfos.');
|
|
3708
|
+
}
|
|
3709
|
+
if (projectUuid === null || projectUuid === undefined) {
|
|
3710
|
+
throw new RequiredError('projectUuid', 'Required parameter projectUuid was null or undefined when calling listHostGroupBaseInfos.');
|
|
3711
|
+
}
|
|
3712
|
+
if (projectUuid !== null && projectUuid !== undefined) {
|
|
3713
|
+
localVarQueryParameter['project_uuid'] = projectUuid;
|
|
3714
|
+
}
|
|
3715
|
+
if (os !== null && os !== undefined) {
|
|
3716
|
+
localVarQueryParameter['os'] = os;
|
|
3717
|
+
}
|
|
3718
|
+
if (pageIndex !== null && pageIndex !== undefined) {
|
|
3719
|
+
localVarQueryParameter['page_index'] = pageIndex;
|
|
3720
|
+
}
|
|
3721
|
+
if (pageSize !== null && pageSize !== undefined) {
|
|
3722
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
3723
|
+
}
|
|
3724
|
+
if (name !== null && name !== undefined) {
|
|
3725
|
+
localVarQueryParameter['name'] = name;
|
|
3726
|
+
}
|
|
3727
|
+
options.queryParams = localVarQueryParameter;
|
|
3728
|
+
options.pathParams = { 'application_id': applicationId, };
|
|
3729
|
+
options.headers = localVarHeaderParameter;
|
|
3730
|
+
return options;
|
|
3731
|
+
},
|
|
2080
3732
|
/**
|
|
2081
3733
|
* 按条件查询主机集群列表。该接口于2024年09月30日后不再维护,推荐使用新版ListHostClusters接口。
|
|
2082
3734
|
*
|
|
@@ -2265,6 +3917,160 @@ const ParamCreater = function () {
|
|
|
2265
3917
|
options.headers = localVarHeaderParameter;
|
|
2266
3918
|
return options;
|
|
2267
3919
|
},
|
|
3920
|
+
/**
|
|
3921
|
+
* 编辑主机集群。
|
|
3922
|
+
*
|
|
3923
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3924
|
+
*/
|
|
3925
|
+
updateHostCluster(updateHostClusterRequest) {
|
|
3926
|
+
const options = {
|
|
3927
|
+
method: "PUT",
|
|
3928
|
+
url: "/v1/resources/host-groups/{group_id}",
|
|
3929
|
+
contentType: "application/json",
|
|
3930
|
+
queryParams: {},
|
|
3931
|
+
pathParams: {},
|
|
3932
|
+
headers: {},
|
|
3933
|
+
data: {}
|
|
3934
|
+
};
|
|
3935
|
+
const localVarHeaderParameter = {};
|
|
3936
|
+
let body;
|
|
3937
|
+
let contentType;
|
|
3938
|
+
let groupId;
|
|
3939
|
+
if (updateHostClusterRequest !== null && updateHostClusterRequest !== undefined) {
|
|
3940
|
+
if (updateHostClusterRequest instanceof UpdateHostClusterRequest_1.UpdateHostClusterRequest) {
|
|
3941
|
+
contentType = updateHostClusterRequest.contentType;
|
|
3942
|
+
groupId = updateHostClusterRequest.groupId;
|
|
3943
|
+
body = updateHostClusterRequest.body;
|
|
3944
|
+
}
|
|
3945
|
+
else {
|
|
3946
|
+
contentType = updateHostClusterRequest['Content-Type'];
|
|
3947
|
+
groupId = updateHostClusterRequest['group_id'];
|
|
3948
|
+
body = updateHostClusterRequest['body'];
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
if (groupId === null || groupId === undefined) {
|
|
3952
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateHostCluster.');
|
|
3953
|
+
}
|
|
3954
|
+
if (body === null || body === undefined) {
|
|
3955
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3956
|
+
}
|
|
3957
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3958
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3959
|
+
}
|
|
3960
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3961
|
+
options.data = body !== undefined ? body : {};
|
|
3962
|
+
options.pathParams = { 'group_id': groupId, };
|
|
3963
|
+
options.headers = localVarHeaderParameter;
|
|
3964
|
+
return options;
|
|
3965
|
+
},
|
|
3966
|
+
/**
|
|
3967
|
+
* 判断当前用户在项目下是否有权限创建主机集群。
|
|
3968
|
+
*
|
|
3969
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3970
|
+
*/
|
|
3971
|
+
checkWhetherHostGroupCanBeCreated(checkWhetherHostGroupCanBeCreatedRequest) {
|
|
3972
|
+
const options = {
|
|
3973
|
+
method: "GET",
|
|
3974
|
+
url: "/v1/host-groups/creatable/{project_id}/permissions",
|
|
3975
|
+
contentType: "application/json",
|
|
3976
|
+
queryParams: {},
|
|
3977
|
+
pathParams: {},
|
|
3978
|
+
headers: {}
|
|
3979
|
+
};
|
|
3980
|
+
const localVarHeaderParameter = {};
|
|
3981
|
+
let projectId;
|
|
3982
|
+
if (checkWhetherHostGroupCanBeCreatedRequest !== null && checkWhetherHostGroupCanBeCreatedRequest !== undefined) {
|
|
3983
|
+
if (checkWhetherHostGroupCanBeCreatedRequest instanceof CheckWhetherHostGroupCanBeCreatedRequest_1.CheckWhetherHostGroupCanBeCreatedRequest) {
|
|
3984
|
+
projectId = checkWhetherHostGroupCanBeCreatedRequest.projectId;
|
|
3985
|
+
}
|
|
3986
|
+
else {
|
|
3987
|
+
projectId = checkWhetherHostGroupCanBeCreatedRequest['project_id'];
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
if (projectId === null || projectId === undefined) {
|
|
3991
|
+
throw new RequiredError('projectId', 'Required parameter projectId was null or undefined when calling checkWhetherHostGroupCanBeCreated.');
|
|
3992
|
+
}
|
|
3993
|
+
options.pathParams = { 'project_id': projectId, };
|
|
3994
|
+
options.headers = localVarHeaderParameter;
|
|
3995
|
+
return options;
|
|
3996
|
+
},
|
|
3997
|
+
/**
|
|
3998
|
+
* 根据主机集群id查询主机集群权限矩阵。
|
|
3999
|
+
*
|
|
4000
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4001
|
+
*/
|
|
4002
|
+
listHostGroupPermissions(listHostGroupPermissionsRequest) {
|
|
4003
|
+
const options = {
|
|
4004
|
+
method: "GET",
|
|
4005
|
+
url: "/v2/host-groups/{group_id}/permissions",
|
|
4006
|
+
contentType: "application/json",
|
|
4007
|
+
queryParams: {},
|
|
4008
|
+
pathParams: {},
|
|
4009
|
+
headers: {}
|
|
4010
|
+
};
|
|
4011
|
+
const localVarHeaderParameter = {};
|
|
4012
|
+
let groupId;
|
|
4013
|
+
if (listHostGroupPermissionsRequest !== null && listHostGroupPermissionsRequest !== undefined) {
|
|
4014
|
+
if (listHostGroupPermissionsRequest instanceof ListHostGroupPermissionsRequest_1.ListHostGroupPermissionsRequest) {
|
|
4015
|
+
groupId = listHostGroupPermissionsRequest.groupId;
|
|
4016
|
+
}
|
|
4017
|
+
else {
|
|
4018
|
+
groupId = listHostGroupPermissionsRequest['group_id'];
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
if (groupId === null || groupId === undefined) {
|
|
4022
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling listHostGroupPermissions.');
|
|
4023
|
+
}
|
|
4024
|
+
options.pathParams = { 'group_id': groupId, };
|
|
4025
|
+
options.headers = localVarHeaderParameter;
|
|
4026
|
+
return options;
|
|
4027
|
+
},
|
|
4028
|
+
/**
|
|
4029
|
+
* 根据主机集群id修改主机集群权限矩阵。
|
|
4030
|
+
*
|
|
4031
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4032
|
+
*/
|
|
4033
|
+
updateHostGroupPermissions(updateHostGroupPermissionsRequest) {
|
|
4034
|
+
const options = {
|
|
4035
|
+
method: "PUT",
|
|
4036
|
+
url: "/v2/host-groups/{group_id}/permissions",
|
|
4037
|
+
contentType: "application/json",
|
|
4038
|
+
queryParams: {},
|
|
4039
|
+
pathParams: {},
|
|
4040
|
+
headers: {},
|
|
4041
|
+
data: {}
|
|
4042
|
+
};
|
|
4043
|
+
const localVarHeaderParameter = {};
|
|
4044
|
+
let body;
|
|
4045
|
+
let contentType;
|
|
4046
|
+
let groupId;
|
|
4047
|
+
if (updateHostGroupPermissionsRequest !== null && updateHostGroupPermissionsRequest !== undefined) {
|
|
4048
|
+
if (updateHostGroupPermissionsRequest instanceof UpdateHostGroupPermissionsRequest_1.UpdateHostGroupPermissionsRequest) {
|
|
4049
|
+
contentType = updateHostGroupPermissionsRequest.contentType;
|
|
4050
|
+
groupId = updateHostGroupPermissionsRequest.groupId;
|
|
4051
|
+
body = updateHostGroupPermissionsRequest.body;
|
|
4052
|
+
}
|
|
4053
|
+
else {
|
|
4054
|
+
contentType = updateHostGroupPermissionsRequest['Content-Type'];
|
|
4055
|
+
groupId = updateHostGroupPermissionsRequest['group_id'];
|
|
4056
|
+
body = updateHostGroupPermissionsRequest['body'];
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
if (groupId === null || groupId === undefined) {
|
|
4060
|
+
throw new RequiredError('groupId', 'Required parameter groupId was null or undefined when calling updateHostGroupPermissions.');
|
|
4061
|
+
}
|
|
4062
|
+
if (body === null || body === undefined) {
|
|
4063
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4064
|
+
}
|
|
4065
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4066
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4067
|
+
}
|
|
4068
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4069
|
+
options.data = body !== undefined ? body : {};
|
|
4070
|
+
options.pathParams = { 'group_id': groupId, };
|
|
4071
|
+
options.headers = localVarHeaderParameter;
|
|
4072
|
+
return options;
|
|
4073
|
+
},
|
|
2268
4074
|
/**
|
|
2269
4075
|
* 获取指定应用的应用部署成功率。
|
|
2270
4076
|
*
|