@huaweicloud/huaweicloud-sdk-css 3.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/huaweicloud-sdk-css.d.ts +4 -0
- package/huaweicloud-sdk-css.d.ts.map +1 -0
- package/huaweicloud-sdk-css.js +33 -0
- package/huaweicloud-sdk-css.js.map +1 -0
- package/package.json +23 -0
- package/v1/CssClient.d.ts +2162 -0
- package/v1/CssClient.d.ts.map +1 -0
- package/v1/CssClient.js +4296 -0
- package/v1/CssClient.js.map +1 -0
- package/v1/CssRegion.d.ts +26 -0
- package/v1/CssRegion.d.ts.map +1 -0
- package/v1/CssRegion.js +60 -0
- package/v1/CssRegion.js.map +1 -0
- package/v1/model/Actions.d.ts +18 -0
- package/v1/model/Actions.d.ts.map +1 -0
- package/v1/model/Actions.js +37 -0
- package/v1/model/Actions.js.map +1 -0
- package/v1/model/AddFavoriteReq.d.ts +9 -0
- package/v1/model/AddFavoriteReq.d.ts.map +1 -0
- package/v1/model/AddFavoriteReq.js +19 -0
- package/v1/model/AddFavoriteReq.js.map +1 -0
- package/v1/model/AddFavoriteReqTemplate.d.ts +8 -0
- package/v1/model/AddFavoriteReqTemplate.d.ts.map +1 -0
- package/v1/model/AddFavoriteReqTemplate.js +18 -0
- package/v1/model/AddFavoriteReqTemplate.js.map +1 -0
- package/v1/model/AddFavoriteRequest.d.ts +11 -0
- package/v1/model/AddFavoriteRequest.d.ts.map +1 -0
- package/v1/model/AddFavoriteRequest.js +24 -0
- package/v1/model/AddFavoriteRequest.js.map +1 -0
- package/v1/model/AddFavoriteResponse.d.ts +5 -0
- package/v1/model/AddFavoriteResponse.d.ts.map +1 -0
- package/v1/model/AddFavoriteResponse.js +11 -0
- package/v1/model/AddFavoriteResponse.js.map +1 -0
- package/v1/model/AddIndependentNodeRequest.d.ts +13 -0
- package/v1/model/AddIndependentNodeRequest.d.ts.map +1 -0
- package/v1/model/AddIndependentNodeRequest.js +29 -0
- package/v1/model/AddIndependentNodeRequest.js.map +1 -0
- package/v1/model/AddIndependentNodeResponse.d.ts +7 -0
- package/v1/model/AddIndependentNodeResponse.d.ts.map +1 -0
- package/v1/model/AddIndependentNodeResponse.js +15 -0
- package/v1/model/AddIndependentNodeResponse.js.map +1 -0
- package/v1/model/AddressAndPorts.d.ts +8 -0
- package/v1/model/AddressAndPorts.d.ts.map +1 -0
- package/v1/model/AddressAndPorts.js +18 -0
- package/v1/model/AddressAndPorts.js.map +1 -0
- package/v1/model/BackupRsp.d.ts +8 -0
- package/v1/model/BackupRsp.d.ts.map +1 -0
- package/v1/model/BackupRsp.js +17 -0
- package/v1/model/BackupRsp.js.map +1 -0
- package/v1/model/BatchAddOrDeleteTagOnClusterReq.d.ts +12 -0
- package/v1/model/BatchAddOrDeleteTagOnClusterReq.d.ts.map +1 -0
- package/v1/model/BatchAddOrDeleteTagOnClusterReq.js +23 -0
- package/v1/model/BatchAddOrDeleteTagOnClusterReq.js.map +1 -0
- package/v1/model/BindPublicReq.d.ts +9 -0
- package/v1/model/BindPublicReq.d.ts.map +1 -0
- package/v1/model/BindPublicReq.js +18 -0
- package/v1/model/BindPublicReq.js.map +1 -0
- package/v1/model/BindPublicReqEip.d.ts +7 -0
- package/v1/model/BindPublicReqEip.d.ts.map +1 -0
- package/v1/model/BindPublicReqEip.js +14 -0
- package/v1/model/BindPublicReqEip.js.map +1 -0
- package/v1/model/BindPublicReqEipBandWidth.d.ts +6 -0
- package/v1/model/BindPublicReqEipBandWidth.d.ts.map +1 -0
- package/v1/model/BindPublicReqEipBandWidth.js +14 -0
- package/v1/model/BindPublicReqEipBandWidth.js.map +1 -0
- package/v1/model/BindPublicReqEipReq.d.ts +9 -0
- package/v1/model/BindPublicReqEipReq.d.ts.map +1 -0
- package/v1/model/BindPublicReqEipReq.js +18 -0
- package/v1/model/BindPublicReqEipReq.js.map +1 -0
- package/v1/model/ChangeModeReq.d.ts +10 -0
- package/v1/model/ChangeModeReq.d.ts.map +1 -0
- package/v1/model/ChangeModeReq.js +23 -0
- package/v1/model/ChangeModeReq.js.map +1 -0
- package/v1/model/ChangeModeRequest.d.ts +11 -0
- package/v1/model/ChangeModeRequest.d.ts.map +1 -0
- package/v1/model/ChangeModeRequest.js +24 -0
- package/v1/model/ChangeModeRequest.js.map +1 -0
- package/v1/model/ChangeModeResponse.d.ts +5 -0
- package/v1/model/ChangeModeResponse.d.ts.map +1 -0
- package/v1/model/ChangeModeResponse.js +11 -0
- package/v1/model/ChangeModeResponse.js.map +1 -0
- package/v1/model/ChangeSecurityGroupReq.d.ts +8 -0
- package/v1/model/ChangeSecurityGroupReq.d.ts.map +1 -0
- package/v1/model/ChangeSecurityGroupReq.js +20 -0
- package/v1/model/ChangeSecurityGroupReq.js.map +1 -0
- package/v1/model/ChangeSecurityGroupRequest.d.ts +11 -0
- package/v1/model/ChangeSecurityGroupRequest.d.ts.map +1 -0
- package/v1/model/ChangeSecurityGroupRequest.js +24 -0
- package/v1/model/ChangeSecurityGroupRequest.js.map +1 -0
- package/v1/model/ChangeSecurityGroupResponse.d.ts +5 -0
- package/v1/model/ChangeSecurityGroupResponse.d.ts.map +1 -0
- package/v1/model/ChangeSecurityGroupResponse.js +11 -0
- package/v1/model/ChangeSecurityGroupResponse.js.map +1 -0
- package/v1/model/CloseKibanaPublicReq.d.ts +9 -0
- package/v1/model/CloseKibanaPublicReq.d.ts.map +1 -0
- package/v1/model/CloseKibanaPublicReq.js +17 -0
- package/v1/model/CloseKibanaPublicReq.js.map +1 -0
- package/v1/model/ClusterDetailDatastore.d.ts +8 -0
- package/v1/model/ClusterDetailDatastore.d.ts.map +1 -0
- package/v1/model/ClusterDetailDatastore.js +17 -0
- package/v1/model/ClusterDetailDatastore.js.map +1 -0
- package/v1/model/ClusterDetailFailedReasons.d.ts +8 -0
- package/v1/model/ClusterDetailFailedReasons.d.ts.map +1 -0
- package/v1/model/ClusterDetailFailedReasons.js +17 -0
- package/v1/model/ClusterDetailFailedReasons.js.map +1 -0
- package/v1/model/ClusterDetailInstances.d.ts +21 -0
- package/v1/model/ClusterDetailInstances.d.ts.map +1 -0
- package/v1/model/ClusterDetailInstances.js +41 -0
- package/v1/model/ClusterDetailInstances.js.map +1 -0
- package/v1/model/ClusterDetailTags.d.ts +8 -0
- package/v1/model/ClusterDetailTags.d.ts.map +1 -0
- package/v1/model/ClusterDetailTags.js +17 -0
- package/v1/model/ClusterDetailTags.js.map +1 -0
- package/v1/model/ClusterList.d.ts +60 -0
- package/v1/model/ClusterList.d.ts.map +1 -0
- package/v1/model/ClusterList.js +109 -0
- package/v1/model/ClusterList.js.map +1 -0
- package/v1/model/ClusterListDatastore.d.ts +8 -0
- package/v1/model/ClusterListDatastore.d.ts.map +1 -0
- package/v1/model/ClusterListDatastore.js +17 -0
- package/v1/model/ClusterListDatastore.js.map +1 -0
- package/v1/model/ClusterListFailedReasons.d.ts +8 -0
- package/v1/model/ClusterListFailedReasons.d.ts.map +1 -0
- package/v1/model/ClusterListFailedReasons.js +17 -0
- package/v1/model/ClusterListFailedReasons.js.map +1 -0
- package/v1/model/ClusterListInstances.d.ts +21 -0
- package/v1/model/ClusterListInstances.d.ts.map +1 -0
- package/v1/model/ClusterListInstances.js +41 -0
- package/v1/model/ClusterListInstances.js.map +1 -0
- package/v1/model/ClusterListTags.d.ts +8 -0
- package/v1/model/ClusterListTags.d.ts.map +1 -0
- package/v1/model/ClusterListTags.js +17 -0
- package/v1/model/ClusterListTags.js.map +1 -0
- package/v1/model/ClusterLogRecord.d.ts +22 -0
- package/v1/model/ClusterLogRecord.d.ts.map +1 -0
- package/v1/model/ClusterLogRecord.js +45 -0
- package/v1/model/ClusterLogRecord.js.map +1 -0
- package/v1/model/ClusterVolumeRsp.d.ts +8 -0
- package/v1/model/ClusterVolumeRsp.d.ts.map +1 -0
- package/v1/model/ClusterVolumeRsp.js +17 -0
- package/v1/model/ClusterVolumeRsp.js.map +1 -0
- package/v1/model/ConfigListRsp.d.ts +18 -0
- package/v1/model/ConfigListRsp.d.ts.map +1 -0
- package/v1/model/ConfigListRsp.js +37 -0
- package/v1/model/ConfigListRsp.js.map +1 -0
- package/v1/model/Confs.d.ts +15 -0
- package/v1/model/Confs.d.ts.map +1 -0
- package/v1/model/Confs.js +29 -0
- package/v1/model/Confs.js.map +1 -0
- package/v1/model/Connections.d.ts +24 -0
- package/v1/model/Connections.d.ts.map +1 -0
- package/v1/model/Connections.js +55 -0
- package/v1/model/Connections.js.map +1 -0
- package/v1/model/CreateAutoCreatePolicyRequest.d.ts +11 -0
- package/v1/model/CreateAutoCreatePolicyRequest.d.ts.map +1 -0
- package/v1/model/CreateAutoCreatePolicyRequest.js +24 -0
- package/v1/model/CreateAutoCreatePolicyRequest.js.map +1 -0
- package/v1/model/CreateAutoCreatePolicyResponse.d.ts +5 -0
- package/v1/model/CreateAutoCreatePolicyResponse.d.ts.map +1 -0
- package/v1/model/CreateAutoCreatePolicyResponse.js +11 -0
- package/v1/model/CreateAutoCreatePolicyResponse.js.map +1 -0
- package/v1/model/CreateBindPublicRequest.d.ts +11 -0
- package/v1/model/CreateBindPublicRequest.d.ts.map +1 -0
- package/v1/model/CreateBindPublicRequest.js +24 -0
- package/v1/model/CreateBindPublicRequest.js.map +1 -0
- package/v1/model/CreateBindPublicResponse.d.ts +7 -0
- package/v1/model/CreateBindPublicResponse.d.ts.map +1 -0
- package/v1/model/CreateBindPublicResponse.js +15 -0
- package/v1/model/CreateBindPublicResponse.js.map +1 -0
- package/v1/model/CreateClusterBackupStrategyBody.d.ts +16 -0
- package/v1/model/CreateClusterBackupStrategyBody.d.ts.map +1 -0
- package/v1/model/CreateClusterBackupStrategyBody.js +36 -0
- package/v1/model/CreateClusterBackupStrategyBody.js.map +1 -0
- package/v1/model/CreateClusterBody.d.ts +33 -0
- package/v1/model/CreateClusterBody.d.ts.map +1 -0
- package/v1/model/CreateClusterBody.js +63 -0
- package/v1/model/CreateClusterBody.js.map +1 -0
- package/v1/model/CreateClusterClusterResponse.d.ts +8 -0
- package/v1/model/CreateClusterClusterResponse.d.ts.map +1 -0
- package/v1/model/CreateClusterClusterResponse.js +17 -0
- package/v1/model/CreateClusterClusterResponse.js.map +1 -0
- package/v1/model/CreateClusterDatastoreBody.d.ts +8 -0
- package/v1/model/CreateClusterDatastoreBody.d.ts.map +1 -0
- package/v1/model/CreateClusterDatastoreBody.js +19 -0
- package/v1/model/CreateClusterDatastoreBody.js.map +1 -0
- package/v1/model/CreateClusterInstanceBody.d.ts +16 -0
- package/v1/model/CreateClusterInstanceBody.d.ts.map +1 -0
- package/v1/model/CreateClusterInstanceBody.js +34 -0
- package/v1/model/CreateClusterInstanceBody.js.map +1 -0
- package/v1/model/CreateClusterInstanceNicsBody.d.ts +10 -0
- package/v1/model/CreateClusterInstanceNicsBody.d.ts.map +1 -0
- package/v1/model/CreateClusterInstanceNicsBody.js +24 -0
- package/v1/model/CreateClusterInstanceNicsBody.js.map +1 -0
- package/v1/model/CreateClusterInstanceVolumeBody.d.ts +10 -0
- package/v1/model/CreateClusterInstanceVolumeBody.d.ts.map +1 -0
- package/v1/model/CreateClusterInstanceVolumeBody.js +25 -0
- package/v1/model/CreateClusterInstanceVolumeBody.js.map +1 -0
- package/v1/model/CreateClusterReq.d.ts +7 -0
- package/v1/model/CreateClusterReq.d.ts.map +1 -0
- package/v1/model/CreateClusterReq.js +14 -0
- package/v1/model/CreateClusterReq.js.map +1 -0
- package/v1/model/CreateClusterRequest.d.ts +7 -0
- package/v1/model/CreateClusterRequest.d.ts.map +1 -0
- package/v1/model/CreateClusterRequest.js +13 -0
- package/v1/model/CreateClusterRequest.js.map +1 -0
- package/v1/model/CreateClusterResponse.d.ts +10 -0
- package/v1/model/CreateClusterResponse.d.ts.map +1 -0
- package/v1/model/CreateClusterResponse.js +19 -0
- package/v1/model/CreateClusterResponse.js.map +1 -0
- package/v1/model/CreateClusterTagsBody.d.ts +8 -0
- package/v1/model/CreateClusterTagsBody.d.ts.map +1 -0
- package/v1/model/CreateClusterTagsBody.js +19 -0
- package/v1/model/CreateClusterTagsBody.js.map +1 -0
- package/v1/model/CreateClustersTagsRequest.d.ts +15 -0
- package/v1/model/CreateClustersTagsRequest.d.ts.map +1 -0
- package/v1/model/CreateClustersTagsRequest.js +35 -0
- package/v1/model/CreateClustersTagsRequest.js.map +1 -0
- package/v1/model/CreateClustersTagsResponse.d.ts +5 -0
- package/v1/model/CreateClustersTagsResponse.d.ts.map +1 -0
- package/v1/model/CreateClustersTagsResponse.js +11 -0
- package/v1/model/CreateClustersTagsResponse.js.map +1 -0
- package/v1/model/CreateCnfReq.d.ts +11 -0
- package/v1/model/CreateCnfReq.d.ts.map +1 -0
- package/v1/model/CreateCnfReq.js +24 -0
- package/v1/model/CreateCnfReq.js.map +1 -0
- package/v1/model/CreateCnfRequest.d.ts +11 -0
- package/v1/model/CreateCnfRequest.d.ts.map +1 -0
- package/v1/model/CreateCnfRequest.js +24 -0
- package/v1/model/CreateCnfRequest.js.map +1 -0
- package/v1/model/CreateCnfResponse.d.ts +5 -0
- package/v1/model/CreateCnfResponse.d.ts.map +1 -0
- package/v1/model/CreateCnfResponse.js +11 -0
- package/v1/model/CreateCnfResponse.js.map +1 -0
- package/v1/model/CreateLoadIkThesaurusRequest.d.ts +11 -0
- package/v1/model/CreateLoadIkThesaurusRequest.d.ts.map +1 -0
- package/v1/model/CreateLoadIkThesaurusRequest.js +24 -0
- package/v1/model/CreateLoadIkThesaurusRequest.js.map +1 -0
- package/v1/model/CreateLoadIkThesaurusResponse.d.ts +5 -0
- package/v1/model/CreateLoadIkThesaurusResponse.d.ts.map +1 -0
- package/v1/model/CreateLoadIkThesaurusResponse.js +11 -0
- package/v1/model/CreateLoadIkThesaurusResponse.js.map +1 -0
- package/v1/model/CreateLogBackupRequest.d.ts +8 -0
- package/v1/model/CreateLogBackupRequest.d.ts.map +1 -0
- package/v1/model/CreateLogBackupRequest.js +20 -0
- package/v1/model/CreateLogBackupRequest.js.map +1 -0
- package/v1/model/CreateLogBackupResponse.d.ts +5 -0
- package/v1/model/CreateLogBackupResponse.d.ts.map +1 -0
- package/v1/model/CreateLogBackupResponse.js +11 -0
- package/v1/model/CreateLogBackupResponse.js.map +1 -0
- package/v1/model/CreateSnapshotReq.d.ts +10 -0
- package/v1/model/CreateSnapshotReq.d.ts.map +1 -0
- package/v1/model/CreateSnapshotReq.js +22 -0
- package/v1/model/CreateSnapshotReq.js.map +1 -0
- package/v1/model/CreateSnapshotRequest.d.ts +11 -0
- package/v1/model/CreateSnapshotRequest.d.ts.map +1 -0
- package/v1/model/CreateSnapshotRequest.js +24 -0
- package/v1/model/CreateSnapshotRequest.js.map +1 -0
- package/v1/model/CreateSnapshotResponse.d.ts +8 -0
- package/v1/model/CreateSnapshotResponse.d.ts.map +1 -0
- package/v1/model/CreateSnapshotResponse.js +15 -0
- package/v1/model/CreateSnapshotResponse.js.map +1 -0
- package/v1/model/CustomTemplates.d.ts +12 -0
- package/v1/model/CustomTemplates.d.ts.map +1 -0
- package/v1/model/CustomTemplates.js +25 -0
- package/v1/model/CustomTemplates.js.map +1 -0
- package/v1/model/DeleteClusterRequest.d.ts +8 -0
- package/v1/model/DeleteClusterRequest.d.ts.map +1 -0
- package/v1/model/DeleteClusterRequest.js +20 -0
- package/v1/model/DeleteClusterRequest.js.map +1 -0
- package/v1/model/DeleteClusterResponse.d.ts +5 -0
- package/v1/model/DeleteClusterResponse.d.ts.map +1 -0
- package/v1/model/DeleteClusterResponse.js +11 -0
- package/v1/model/DeleteClusterResponse.js.map +1 -0
- package/v1/model/DeleteClustersTagsRequest.d.ts +14 -0
- package/v1/model/DeleteClustersTagsRequest.d.ts.map +1 -0
- package/v1/model/DeleteClustersTagsRequest.js +36 -0
- package/v1/model/DeleteClustersTagsRequest.js.map +1 -0
- package/v1/model/DeleteClustersTagsResponse.d.ts +5 -0
- package/v1/model/DeleteClustersTagsResponse.d.ts.map +1 -0
- package/v1/model/DeleteClustersTagsResponse.js +11 -0
- package/v1/model/DeleteClustersTagsResponse.js.map +1 -0
- package/v1/model/DeleteConfReq.d.ts +6 -0
- package/v1/model/DeleteConfReq.d.ts.map +1 -0
- package/v1/model/DeleteConfReq.js +14 -0
- package/v1/model/DeleteConfReq.js.map +1 -0
- package/v1/model/DeleteConfRequest.d.ts +11 -0
- package/v1/model/DeleteConfRequest.d.ts.map +1 -0
- package/v1/model/DeleteConfRequest.js +24 -0
- package/v1/model/DeleteConfRequest.js.map +1 -0
- package/v1/model/DeleteConfResponse.d.ts +5 -0
- package/v1/model/DeleteConfResponse.d.ts.map +1 -0
- package/v1/model/DeleteConfResponse.js +11 -0
- package/v1/model/DeleteConfResponse.js.map +1 -0
- package/v1/model/DeleteIkThesaurusRequest.d.ts +8 -0
- package/v1/model/DeleteIkThesaurusRequest.d.ts.map +1 -0
- package/v1/model/DeleteIkThesaurusRequest.js +20 -0
- package/v1/model/DeleteIkThesaurusRequest.js.map +1 -0
- package/v1/model/DeleteIkThesaurusResponse.d.ts +5 -0
- package/v1/model/DeleteIkThesaurusResponse.d.ts.map +1 -0
- package/v1/model/DeleteIkThesaurusResponse.js +11 -0
- package/v1/model/DeleteIkThesaurusResponse.js.map +1 -0
- package/v1/model/DeleteSnapshotRequest.d.ts +12 -0
- package/v1/model/DeleteSnapshotRequest.d.ts.map +1 -0
- package/v1/model/DeleteSnapshotRequest.js +31 -0
- package/v1/model/DeleteSnapshotRequest.js.map +1 -0
- package/v1/model/DeleteSnapshotResponse.d.ts +5 -0
- package/v1/model/DeleteSnapshotResponse.d.ts.map +1 -0
- package/v1/model/DeleteSnapshotResponse.js +11 -0
- package/v1/model/DeleteSnapshotResponse.js.map +1 -0
- package/v1/model/DeleteTemplateReq.d.ts +6 -0
- package/v1/model/DeleteTemplateReq.d.ts.map +1 -0
- package/v1/model/DeleteTemplateReq.js +14 -0
- package/v1/model/DeleteTemplateReq.js.map +1 -0
- package/v1/model/DeleteTemplateRequest.d.ts +7 -0
- package/v1/model/DeleteTemplateRequest.d.ts.map +1 -0
- package/v1/model/DeleteTemplateRequest.js +13 -0
- package/v1/model/DeleteTemplateRequest.js.map +1 -0
- package/v1/model/DeleteTemplateResponse.d.ts +5 -0
- package/v1/model/DeleteTemplateResponse.d.ts.map +1 -0
- package/v1/model/DeleteTemplateResponse.js +11 -0
- package/v1/model/DeleteTemplateResponse.js.map +1 -0
- package/v1/model/DownloadCertRequest.d.ts +4 -0
- package/v1/model/DownloadCertRequest.d.ts.map +1 -0
- package/v1/model/DownloadCertRequest.js +9 -0
- package/v1/model/DownloadCertRequest.js.map +1 -0
- package/v1/model/DownloadCertResponse.d.ts +5 -0
- package/v1/model/DownloadCertResponse.d.ts.map +1 -0
- package/v1/model/DownloadCertResponse.js +11 -0
- package/v1/model/DownloadCertResponse.js.map +1 -0
- package/v1/model/ElbWhiteListResp.d.ts +8 -0
- package/v1/model/ElbWhiteListResp.d.ts.map +1 -0
- package/v1/model/ElbWhiteListResp.js +17 -0
- package/v1/model/ElbWhiteListResp.js.map +1 -0
- package/v1/model/EsflavorsVersionsFlavorsResp.d.ts +20 -0
- package/v1/model/EsflavorsVersionsFlavorsResp.d.ts.map +1 -0
- package/v1/model/EsflavorsVersionsFlavorsResp.js +43 -0
- package/v1/model/EsflavorsVersionsFlavorsResp.js.map +1 -0
- package/v1/model/EsflavorsVersionsResp.d.ts +11 -0
- package/v1/model/EsflavorsVersionsResp.d.ts.map +1 -0
- package/v1/model/EsflavorsVersionsResp.js +21 -0
- package/v1/model/EsflavorsVersionsResp.js.map +1 -0
- package/v1/model/ExtendClusterGrowReq.d.ts +6 -0
- package/v1/model/ExtendClusterGrowReq.d.ts.map +1 -0
- package/v1/model/ExtendClusterGrowReq.js +14 -0
- package/v1/model/ExtendClusterGrowReq.js.map +1 -0
- package/v1/model/ExtendClusterReq.d.ts +9 -0
- package/v1/model/ExtendClusterReq.d.ts.map +1 -0
- package/v1/model/ExtendClusterReq.js +18 -0
- package/v1/model/ExtendClusterReq.js.map +1 -0
- package/v1/model/GetLogBackupReq.d.ts +10 -0
- package/v1/model/GetLogBackupReq.d.ts.map +1 -0
- package/v1/model/GetLogBackupReq.js +24 -0
- package/v1/model/GetLogBackupReq.js.map +1 -0
- package/v1/model/IndependentBodyReq.d.ts +16 -0
- package/v1/model/IndependentBodyReq.d.ts.map +1 -0
- package/v1/model/IndependentBodyReq.js +42 -0
- package/v1/model/IndependentBodyReq.js.map +1 -0
- package/v1/model/IndependentReq.d.ts +7 -0
- package/v1/model/IndependentReq.d.ts.map +1 -0
- package/v1/model/IndependentReq.js +14 -0
- package/v1/model/IndependentReq.js.map +1 -0
- package/v1/model/KibanaElbWhiteListResp.d.ts +8 -0
- package/v1/model/KibanaElbWhiteListResp.d.ts.map +1 -0
- package/v1/model/KibanaElbWhiteListResp.js +17 -0
- package/v1/model/KibanaElbWhiteListResp.js.map +1 -0
- package/v1/model/ListActionsRequest.d.ts +8 -0
- package/v1/model/ListActionsRequest.d.ts.map +1 -0
- package/v1/model/ListActionsRequest.js +20 -0
- package/v1/model/ListActionsRequest.js.map +1 -0
- package/v1/model/ListActionsResponse.d.ts +8 -0
- package/v1/model/ListActionsResponse.d.ts.map +1 -0
- package/v1/model/ListActionsResponse.js +15 -0
- package/v1/model/ListActionsResponse.js.map +1 -0
- package/v1/model/ListClustersDetailsRequest.d.ts +8 -0
- package/v1/model/ListClustersDetailsRequest.d.ts.map +1 -0
- package/v1/model/ListClustersDetailsRequest.js +17 -0
- package/v1/model/ListClustersDetailsRequest.js.map +1 -0
- package/v1/model/ListClustersDetailsResponse.d.ts +10 -0
- package/v1/model/ListClustersDetailsResponse.d.ts.map +1 -0
- package/v1/model/ListClustersDetailsResponse.js +19 -0
- package/v1/model/ListClustersDetailsResponse.js.map +1 -0
- package/v1/model/ListClustersTagsRequest.d.ts +8 -0
- package/v1/model/ListClustersTagsRequest.d.ts.map +1 -0
- package/v1/model/ListClustersTagsRequest.js +20 -0
- package/v1/model/ListClustersTagsRequest.js.map +1 -0
- package/v1/model/ListClustersTagsResponse.d.ts +8 -0
- package/v1/model/ListClustersTagsResponse.d.ts.map +1 -0
- package/v1/model/ListClustersTagsResponse.js +15 -0
- package/v1/model/ListClustersTagsResponse.js.map +1 -0
- package/v1/model/ListConfsRequest.d.ts +8 -0
- package/v1/model/ListConfsRequest.d.ts.map +1 -0
- package/v1/model/ListConfsRequest.js +20 -0
- package/v1/model/ListConfsRequest.js.map +1 -0
- package/v1/model/ListConfsResponse.d.ts +8 -0
- package/v1/model/ListConfsResponse.d.ts.map +1 -0
- package/v1/model/ListConfsResponse.js +15 -0
- package/v1/model/ListConfsResponse.js.map +1 -0
- package/v1/model/ListFlavorsRequest.d.ts +4 -0
- package/v1/model/ListFlavorsRequest.d.ts.map +1 -0
- package/v1/model/ListFlavorsRequest.js +9 -0
- package/v1/model/ListFlavorsRequest.js.map +1 -0
- package/v1/model/ListFlavorsResponse.d.ts +8 -0
- package/v1/model/ListFlavorsResponse.d.ts.map +1 -0
- package/v1/model/ListFlavorsResponse.js +15 -0
- package/v1/model/ListFlavorsResponse.js.map +1 -0
- package/v1/model/ListLogsJobRequest.d.ts +12 -0
- package/v1/model/ListLogsJobRequest.d.ts.map +1 -0
- package/v1/model/ListLogsJobRequest.js +28 -0
- package/v1/model/ListLogsJobRequest.js.map +1 -0
- package/v1/model/ListLogsJobResponse.d.ts +8 -0
- package/v1/model/ListLogsJobResponse.d.ts.map +1 -0
- package/v1/model/ListLogsJobResponse.js +15 -0
- package/v1/model/ListLogsJobResponse.js.map +1 -0
- package/v1/model/ListPipelinesRequest.d.ts +8 -0
- package/v1/model/ListPipelinesRequest.d.ts.map +1 -0
- package/v1/model/ListPipelinesRequest.js +20 -0
- package/v1/model/ListPipelinesRequest.js.map +1 -0
- package/v1/model/ListPipelinesResponse.d.ts +8 -0
- package/v1/model/ListPipelinesResponse.d.ts.map +1 -0
- package/v1/model/ListPipelinesResponse.js +15 -0
- package/v1/model/ListPipelinesResponse.js.map +1 -0
- package/v1/model/ListSnapshotBackupsDatastoreResp.d.ts +8 -0
- package/v1/model/ListSnapshotBackupsDatastoreResp.d.ts.map +1 -0
- package/v1/model/ListSnapshotBackupsDatastoreResp.js +17 -0
- package/v1/model/ListSnapshotBackupsDatastoreResp.js.map +1 -0
- package/v1/model/ListSnapshotBackupsResp.d.ts +49 -0
- package/v1/model/ListSnapshotBackupsResp.d.ts.map +1 -0
- package/v1/model/ListSnapshotBackupsResp.js +97 -0
- package/v1/model/ListSnapshotBackupsResp.js.map +1 -0
- package/v1/model/ListSnapshotsRequest.d.ts +8 -0
- package/v1/model/ListSnapshotsRequest.d.ts.map +1 -0
- package/v1/model/ListSnapshotsRequest.js +20 -0
- package/v1/model/ListSnapshotsRequest.js.map +1 -0
- package/v1/model/ListSnapshotsResponse.d.ts +8 -0
- package/v1/model/ListSnapshotsResponse.d.ts.map +1 -0
- package/v1/model/ListSnapshotsResponse.js +15 -0
- package/v1/model/ListSnapshotsResponse.js.map +1 -0
- package/v1/model/ListTemplatesRequest.d.ts +6 -0
- package/v1/model/ListTemplatesRequest.d.ts.map +1 -0
- package/v1/model/ListTemplatesRequest.js +13 -0
- package/v1/model/ListTemplatesRequest.js.map +1 -0
- package/v1/model/ListTemplatesResponse.d.ts +11 -0
- package/v1/model/ListTemplatesResponse.d.ts.map +1 -0
- package/v1/model/ListTemplatesResponse.js +19 -0
- package/v1/model/ListTemplatesResponse.js.map +1 -0
- package/v1/model/ListYmlsJobRequest.d.ts +12 -0
- package/v1/model/ListYmlsJobRequest.d.ts.map +1 -0
- package/v1/model/ListYmlsJobRequest.js +28 -0
- package/v1/model/ListYmlsJobRequest.js.map +1 -0
- package/v1/model/ListYmlsJobResponse.d.ts +8 -0
- package/v1/model/ListYmlsJobResponse.d.ts.map +1 -0
- package/v1/model/ListYmlsJobResponse.js +15 -0
- package/v1/model/ListYmlsJobResponse.js.map +1 -0
- package/v1/model/ListYmlsRequest.d.ts +8 -0
- package/v1/model/ListYmlsRequest.d.ts.map +1 -0
- package/v1/model/ListYmlsRequest.js +20 -0
- package/v1/model/ListYmlsRequest.js.map +1 -0
- package/v1/model/ListYmlsResponse.d.ts +7 -0
- package/v1/model/ListYmlsResponse.d.ts.map +1 -0
- package/v1/model/ListYmlsResponse.js +15 -0
- package/v1/model/ListYmlsResponse.js.map +1 -0
- package/v1/model/LoadCustomThesaurusReq.d.ts +12 -0
- package/v1/model/LoadCustomThesaurusReq.d.ts.map +1 -0
- package/v1/model/LoadCustomThesaurusReq.js +26 -0
- package/v1/model/LoadCustomThesaurusReq.js.map +1 -0
- package/v1/model/LogConfiguration.d.ts +22 -0
- package/v1/model/LogConfiguration.d.ts.map +1 -0
- package/v1/model/LogConfiguration.js +45 -0
- package/v1/model/LogConfiguration.js.map +1 -0
- package/v1/model/LogList.d.ts +10 -0
- package/v1/model/LogList.d.ts.map +1 -0
- package/v1/model/LogList.js +21 -0
- package/v1/model/LogList.js.map +1 -0
- package/v1/model/PayInfoBody.d.ts +12 -0
- package/v1/model/PayInfoBody.d.ts.map +1 -0
- package/v1/model/PayInfoBody.js +27 -0
- package/v1/model/PayInfoBody.js.map +1 -0
- package/v1/model/PeriodReq.d.ts +14 -0
- package/v1/model/PeriodReq.d.ts.map +1 -0
- package/v1/model/PeriodReq.js +31 -0
- package/v1/model/PeriodReq.js.map +1 -0
- package/v1/model/Pipelines.d.ts +14 -0
- package/v1/model/Pipelines.d.ts.map +1 -0
- package/v1/model/Pipelines.js +29 -0
- package/v1/model/Pipelines.js.map +1 -0
- package/v1/model/PublicKibanaRespBody.d.ts +11 -0
- package/v1/model/PublicKibanaRespBody.d.ts.map +1 -0
- package/v1/model/PublicKibanaRespBody.js +21 -0
- package/v1/model/PublicKibanaRespBody.js.map +1 -0
- package/v1/model/ResetPasswordReq.d.ts +6 -0
- package/v1/model/ResetPasswordReq.d.ts.map +1 -0
- package/v1/model/ResetPasswordReq.js +14 -0
- package/v1/model/ResetPasswordReq.js.map +1 -0
- package/v1/model/ResetPasswordRequest.d.ts +11 -0
- package/v1/model/ResetPasswordRequest.d.ts.map +1 -0
- package/v1/model/ResetPasswordRequest.js +24 -0
- package/v1/model/ResetPasswordRequest.js.map +1 -0
- package/v1/model/ResetPasswordResponse.d.ts +5 -0
- package/v1/model/ResetPasswordResponse.d.ts.map +1 -0
- package/v1/model/ResetPasswordResponse.js +11 -0
- package/v1/model/ResetPasswordResponse.js.map +1 -0
- package/v1/model/RestartClusterRequest.d.ts +8 -0
- package/v1/model/RestartClusterRequest.d.ts.map +1 -0
- package/v1/model/RestartClusterRequest.js +20 -0
- package/v1/model/RestartClusterRequest.js.map +1 -0
- package/v1/model/RestartClusterResponse.d.ts +5 -0
- package/v1/model/RestartClusterResponse.d.ts.map +1 -0
- package/v1/model/RestartClusterResponse.js +11 -0
- package/v1/model/RestartClusterResponse.js.map +1 -0
- package/v1/model/RestoreSnapshotReq.d.ts +12 -0
- package/v1/model/RestoreSnapshotReq.d.ts.map +1 -0
- package/v1/model/RestoreSnapshotReq.js +26 -0
- package/v1/model/RestoreSnapshotReq.js.map +1 -0
- package/v1/model/RestoreSnapshotRequest.d.ts +15 -0
- package/v1/model/RestoreSnapshotRequest.d.ts.map +1 -0
- package/v1/model/RestoreSnapshotRequest.js +35 -0
- package/v1/model/RestoreSnapshotRequest.js.map +1 -0
- package/v1/model/RestoreSnapshotResponse.d.ts +5 -0
- package/v1/model/RestoreSnapshotResponse.d.ts.map +1 -0
- package/v1/model/RestoreSnapshotResponse.js +11 -0
- package/v1/model/RestoreSnapshotResponse.js.map +1 -0
- package/v1/model/Result.d.ts +10 -0
- package/v1/model/Result.d.ts.map +1 -0
- package/v1/model/Result.js +21 -0
- package/v1/model/Result.js.map +1 -0
- package/v1/model/RoleExtendGrowReq.d.ts +10 -0
- package/v1/model/RoleExtendGrowReq.d.ts.map +1 -0
- package/v1/model/RoleExtendGrowReq.js +24 -0
- package/v1/model/RoleExtendGrowReq.js.map +1 -0
- package/v1/model/RoleExtendReq.d.ts +9 -0
- package/v1/model/RoleExtendReq.d.ts.map +1 -0
- package/v1/model/RoleExtendReq.js +18 -0
- package/v1/model/RoleExtendReq.js.map +1 -0
- package/v1/model/SetRDSBackupCnfReq.d.ts +16 -0
- package/v1/model/SetRDSBackupCnfReq.d.ts.map +1 -0
- package/v1/model/SetRDSBackupCnfReq.js +34 -0
- package/v1/model/SetRDSBackupCnfReq.js.map +1 -0
- package/v1/model/Setting.d.ts +16 -0
- package/v1/model/Setting.d.ts.map +1 -0
- package/v1/model/Setting.js +34 -0
- package/v1/model/Setting.js.map +1 -0
- package/v1/model/ShowAllTagsTagsResp.d.ts +8 -0
- package/v1/model/ShowAllTagsTagsResp.d.ts.map +1 -0
- package/v1/model/ShowAllTagsTagsResp.js +17 -0
- package/v1/model/ShowAllTagsTagsResp.js.map +1 -0
- package/v1/model/ShowAutoCreatePolicyRequest.d.ts +8 -0
- package/v1/model/ShowAutoCreatePolicyRequest.d.ts.map +1 -0
- package/v1/model/ShowAutoCreatePolicyRequest.js +20 -0
- package/v1/model/ShowAutoCreatePolicyRequest.js.map +1 -0
- package/v1/model/ShowAutoCreatePolicyResponse.d.ts +19 -0
- package/v1/model/ShowAutoCreatePolicyResponse.d.ts.map +1 -0
- package/v1/model/ShowAutoCreatePolicyResponse.js +39 -0
- package/v1/model/ShowAutoCreatePolicyResponse.js.map +1 -0
- package/v1/model/ShowClusterDetailRequest.d.ts +8 -0
- package/v1/model/ShowClusterDetailRequest.d.ts.map +1 -0
- package/v1/model/ShowClusterDetailRequest.js +20 -0
- package/v1/model/ShowClusterDetailRequest.js.map +1 -0
- package/v1/model/ShowClusterDetailResponse.d.ts +63 -0
- package/v1/model/ShowClusterDetailResponse.d.ts.map +1 -0
- package/v1/model/ShowClusterDetailResponse.js +115 -0
- package/v1/model/ShowClusterDetailResponse.js.map +1 -0
- package/v1/model/ShowClusterTagRequest.d.ts +12 -0
- package/v1/model/ShowClusterTagRequest.d.ts.map +1 -0
- package/v1/model/ShowClusterTagRequest.js +31 -0
- package/v1/model/ShowClusterTagRequest.js.map +1 -0
- package/v1/model/ShowClusterTagResponse.d.ts +8 -0
- package/v1/model/ShowClusterTagResponse.d.ts.map +1 -0
- package/v1/model/ShowClusterTagResponse.js +15 -0
- package/v1/model/ShowClusterTagResponse.js.map +1 -0
- package/v1/model/ShowClusterVolumeRsp.d.ts +8 -0
- package/v1/model/ShowClusterVolumeRsp.d.ts.map +1 -0
- package/v1/model/ShowClusterVolumeRsp.js +17 -0
- package/v1/model/ShowClusterVolumeRsp.js.map +1 -0
- package/v1/model/ShowGetConfDetailRequest.d.ts +10 -0
- package/v1/model/ShowGetConfDetailRequest.d.ts.map +1 -0
- package/v1/model/ShowGetConfDetailRequest.js +25 -0
- package/v1/model/ShowGetConfDetailRequest.js.map +1 -0
- package/v1/model/ShowGetConfDetailResponse.d.ts +16 -0
- package/v1/model/ShowGetConfDetailResponse.d.ts.map +1 -0
- package/v1/model/ShowGetConfDetailResponse.js +31 -0
- package/v1/model/ShowGetConfDetailResponse.js.map +1 -0
- package/v1/model/ShowGetLogSettingRequest.d.ts +8 -0
- package/v1/model/ShowGetLogSettingRequest.d.ts.map +1 -0
- package/v1/model/ShowGetLogSettingRequest.js +20 -0
- package/v1/model/ShowGetLogSettingRequest.js.map +1 -0
- package/v1/model/ShowGetLogSettingResponse.d.ts +8 -0
- package/v1/model/ShowGetLogSettingResponse.d.ts.map +1 -0
- package/v1/model/ShowGetLogSettingResponse.js +15 -0
- package/v1/model/ShowGetLogSettingResponse.js.map +1 -0
- package/v1/model/ShowIkThesaurusRequest.d.ts +8 -0
- package/v1/model/ShowIkThesaurusRequest.d.ts.map +1 -0
- package/v1/model/ShowIkThesaurusRequest.js +20 -0
- package/v1/model/ShowIkThesaurusRequest.js.map +1 -0
- package/v1/model/ShowIkThesaurusResponse.d.ts +25 -0
- package/v1/model/ShowIkThesaurusResponse.d.ts.map +1 -0
- package/v1/model/ShowIkThesaurusResponse.js +51 -0
- package/v1/model/ShowIkThesaurusResponse.js.map +1 -0
- package/v1/model/ShowLogBackupRequest.d.ts +11 -0
- package/v1/model/ShowLogBackupRequest.d.ts.map +1 -0
- package/v1/model/ShowLogBackupRequest.js +24 -0
- package/v1/model/ShowLogBackupRequest.js.map +1 -0
- package/v1/model/ShowLogBackupResponse.d.ts +8 -0
- package/v1/model/ShowLogBackupResponse.d.ts.map +1 -0
- package/v1/model/ShowLogBackupResponse.js +15 -0
- package/v1/model/ShowLogBackupResponse.js.map +1 -0
- package/v1/model/ShowTagsTagsResp.d.ts +8 -0
- package/v1/model/ShowTagsTagsResp.d.ts.map +1 -0
- package/v1/model/ShowTagsTagsResp.js +17 -0
- package/v1/model/ShowTagsTagsResp.js.map +1 -0
- package/v1/model/ShowVpcepConnectionRequest.d.ts +12 -0
- package/v1/model/ShowVpcepConnectionRequest.d.ts.map +1 -0
- package/v1/model/ShowVpcepConnectionRequest.js +28 -0
- package/v1/model/ShowVpcepConnectionRequest.js.map +1 -0
- package/v1/model/ShowVpcepConnectionResponse.d.ts +14 -0
- package/v1/model/ShowVpcepConnectionResponse.d.ts.map +1 -0
- package/v1/model/ShowVpcepConnectionResponse.js +29 -0
- package/v1/model/ShowVpcepConnectionResponse.js.map +1 -0
- package/v1/model/ShrinkClusterReq.d.ts +7 -0
- package/v1/model/ShrinkClusterReq.d.ts.map +1 -0
- package/v1/model/ShrinkClusterReq.js +14 -0
- package/v1/model/ShrinkClusterReq.js.map +1 -0
- package/v1/model/ShrinkNodeReq.d.ts +8 -0
- package/v1/model/ShrinkNodeReq.d.ts.map +1 -0
- package/v1/model/ShrinkNodeReq.js +19 -0
- package/v1/model/ShrinkNodeReq.js.map +1 -0
- package/v1/model/ShrinkNodesReq.d.ts +6 -0
- package/v1/model/ShrinkNodesReq.d.ts.map +1 -0
- package/v1/model/ShrinkNodesReq.js +14 -0
- package/v1/model/ShrinkNodesReq.js.map +1 -0
- package/v1/model/StartAutoSettingRequest.d.ts +8 -0
- package/v1/model/StartAutoSettingRequest.d.ts.map +1 -0
- package/v1/model/StartAutoSettingRequest.js +20 -0
- package/v1/model/StartAutoSettingRequest.js.map +1 -0
- package/v1/model/StartAutoSettingResponse.d.ts +5 -0
- package/v1/model/StartAutoSettingResponse.d.ts.map +1 -0
- package/v1/model/StartAutoSettingResponse.js +11 -0
- package/v1/model/StartAutoSettingResponse.js.map +1 -0
- package/v1/model/StartConnectivityTestReq.d.ts +7 -0
- package/v1/model/StartConnectivityTestReq.d.ts.map +1 -0
- package/v1/model/StartConnectivityTestReq.js +14 -0
- package/v1/model/StartConnectivityTestReq.js.map +1 -0
- package/v1/model/StartConnectivityTestRequest.d.ts +11 -0
- package/v1/model/StartConnectivityTestRequest.d.ts.map +1 -0
- package/v1/model/StartConnectivityTestRequest.js +24 -0
- package/v1/model/StartConnectivityTestRequest.js.map +1 -0
- package/v1/model/StartConnectivityTestResponse.d.ts +8 -0
- package/v1/model/StartConnectivityTestResponse.d.ts.map +1 -0
- package/v1/model/StartConnectivityTestResponse.js +15 -0
- package/v1/model/StartConnectivityTestResponse.js.map +1 -0
- package/v1/model/StartKibanaPublicReq.d.ts +11 -0
- package/v1/model/StartKibanaPublicReq.d.ts.map +1 -0
- package/v1/model/StartKibanaPublicReq.js +23 -0
- package/v1/model/StartKibanaPublicReq.js.map +1 -0
- package/v1/model/StartKibanaPublicReqElbWhitelist.d.ts +8 -0
- package/v1/model/StartKibanaPublicReqElbWhitelist.d.ts.map +1 -0
- package/v1/model/StartKibanaPublicReqElbWhitelist.js +19 -0
- package/v1/model/StartKibanaPublicReqElbWhitelist.js.map +1 -0
- package/v1/model/StartKibanaPublicRequest.d.ts +11 -0
- package/v1/model/StartKibanaPublicRequest.d.ts.map +1 -0
- package/v1/model/StartKibanaPublicRequest.js +24 -0
- package/v1/model/StartKibanaPublicRequest.js.map +1 -0
- package/v1/model/StartKibanaPublicResponse.d.ts +5 -0
- package/v1/model/StartKibanaPublicResponse.d.ts.map +1 -0
- package/v1/model/StartKibanaPublicResponse.js +11 -0
- package/v1/model/StartKibanaPublicResponse.js.map +1 -0
- package/v1/model/StartLogAutoBackupPolicyReq.d.ts +6 -0
- package/v1/model/StartLogAutoBackupPolicyReq.d.ts.map +1 -0
- package/v1/model/StartLogAutoBackupPolicyReq.js +14 -0
- package/v1/model/StartLogAutoBackupPolicyReq.js.map +1 -0
- package/v1/model/StartLogAutoBackupPolicyRequest.d.ts +11 -0
- package/v1/model/StartLogAutoBackupPolicyRequest.d.ts.map +1 -0
- package/v1/model/StartLogAutoBackupPolicyRequest.js +24 -0
- package/v1/model/StartLogAutoBackupPolicyRequest.js.map +1 -0
- package/v1/model/StartLogAutoBackupPolicyResponse.d.ts +5 -0
- package/v1/model/StartLogAutoBackupPolicyResponse.d.ts.map +1 -0
- package/v1/model/StartLogAutoBackupPolicyResponse.js +11 -0
- package/v1/model/StartLogAutoBackupPolicyResponse.js.map +1 -0
- package/v1/model/StartLogsReq.d.ts +10 -0
- package/v1/model/StartLogsReq.d.ts.map +1 -0
- package/v1/model/StartLogsReq.js +24 -0
- package/v1/model/StartLogsReq.js.map +1 -0
- package/v1/model/StartLogsRequest.d.ts +11 -0
- package/v1/model/StartLogsRequest.d.ts.map +1 -0
- package/v1/model/StartLogsRequest.js +24 -0
- package/v1/model/StartLogsRequest.js.map +1 -0
- package/v1/model/StartLogsResponse.d.ts +5 -0
- package/v1/model/StartLogsResponse.d.ts.map +1 -0
- package/v1/model/StartLogsResponse.js +11 -0
- package/v1/model/StartLogsResponse.js.map +1 -0
- package/v1/model/StartPipelineReq.d.ts +8 -0
- package/v1/model/StartPipelineReq.d.ts.map +1 -0
- package/v1/model/StartPipelineReq.js +18 -0
- package/v1/model/StartPipelineReq.js.map +1 -0
- package/v1/model/StartPipelineRequest.d.ts +11 -0
- package/v1/model/StartPipelineRequest.d.ts.map +1 -0
- package/v1/model/StartPipelineRequest.js +24 -0
- package/v1/model/StartPipelineRequest.js.map +1 -0
- package/v1/model/StartPipelineResponse.d.ts +5 -0
- package/v1/model/StartPipelineResponse.d.ts.map +1 -0
- package/v1/model/StartPipelineResponse.js +11 -0
- package/v1/model/StartPipelineResponse.js.map +1 -0
- package/v1/model/StartPublicWhitelistReq.d.ts +6 -0
- package/v1/model/StartPublicWhitelistReq.d.ts.map +1 -0
- package/v1/model/StartPublicWhitelistReq.js +14 -0
- package/v1/model/StartPublicWhitelistReq.js.map +1 -0
- package/v1/model/StartPublicWhitelistRequest.d.ts +11 -0
- package/v1/model/StartPublicWhitelistRequest.d.ts.map +1 -0
- package/v1/model/StartPublicWhitelistRequest.js +24 -0
- package/v1/model/StartPublicWhitelistRequest.js.map +1 -0
- package/v1/model/StartPublicWhitelistResponse.d.ts +5 -0
- package/v1/model/StartPublicWhitelistResponse.d.ts.map +1 -0
- package/v1/model/StartPublicWhitelistResponse.js +11 -0
- package/v1/model/StartPublicWhitelistResponse.js.map +1 -0
- package/v1/model/StartVpecpReq.d.ts +6 -0
- package/v1/model/StartVpecpReq.d.ts.map +1 -0
- package/v1/model/StartVpecpReq.js +13 -0
- package/v1/model/StartVpecpReq.js.map +1 -0
- package/v1/model/StartVpecpRequest.d.ts +11 -0
- package/v1/model/StartVpecpRequest.d.ts.map +1 -0
- package/v1/model/StartVpecpRequest.js +24 -0
- package/v1/model/StartVpecpRequest.js.map +1 -0
- package/v1/model/StartVpecpResponse.d.ts +7 -0
- package/v1/model/StartVpecpResponse.d.ts.map +1 -0
- package/v1/model/StartVpecpResponse.js +15 -0
- package/v1/model/StartVpecpResponse.js.map +1 -0
- package/v1/model/StopLogAutoBackupPolicyRequest.d.ts +8 -0
- package/v1/model/StopLogAutoBackupPolicyRequest.d.ts.map +1 -0
- package/v1/model/StopLogAutoBackupPolicyRequest.js +20 -0
- package/v1/model/StopLogAutoBackupPolicyRequest.js.map +1 -0
- package/v1/model/StopLogAutoBackupPolicyResponse.d.ts +5 -0
- package/v1/model/StopLogAutoBackupPolicyResponse.d.ts.map +1 -0
- package/v1/model/StopLogAutoBackupPolicyResponse.js +11 -0
- package/v1/model/StopLogAutoBackupPolicyResponse.js.map +1 -0
- package/v1/model/StopLogsRequest.d.ts +8 -0
- package/v1/model/StopLogsRequest.d.ts.map +1 -0
- package/v1/model/StopLogsRequest.js +20 -0
- package/v1/model/StopLogsRequest.js.map +1 -0
- package/v1/model/StopLogsResponse.d.ts +5 -0
- package/v1/model/StopLogsResponse.d.ts.map +1 -0
- package/v1/model/StopLogsResponse.js +11 -0
- package/v1/model/StopLogsResponse.js.map +1 -0
- package/v1/model/StopPipelineRequest.d.ts +8 -0
- package/v1/model/StopPipelineRequest.d.ts.map +1 -0
- package/v1/model/StopPipelineRequest.js +20 -0
- package/v1/model/StopPipelineRequest.js.map +1 -0
- package/v1/model/StopPipelineResponse.d.ts +5 -0
- package/v1/model/StopPipelineResponse.d.ts.map +1 -0
- package/v1/model/StopPipelineResponse.js +11 -0
- package/v1/model/StopPipelineResponse.js.map +1 -0
- package/v1/model/StopPublicKibanaWhitelistRequest.d.ts +8 -0
- package/v1/model/StopPublicKibanaWhitelistRequest.d.ts.map +1 -0
- package/v1/model/StopPublicKibanaWhitelistRequest.js +20 -0
- package/v1/model/StopPublicKibanaWhitelistRequest.js.map +1 -0
- package/v1/model/StopPublicKibanaWhitelistResponse.d.ts +5 -0
- package/v1/model/StopPublicKibanaWhitelistResponse.d.ts.map +1 -0
- package/v1/model/StopPublicKibanaWhitelistResponse.js +11 -0
- package/v1/model/StopPublicKibanaWhitelistResponse.js.map +1 -0
- package/v1/model/StopPublicWhitelistRequest.d.ts +8 -0
- package/v1/model/StopPublicWhitelistRequest.d.ts.map +1 -0
- package/v1/model/StopPublicWhitelistRequest.js +20 -0
- package/v1/model/StopPublicWhitelistRequest.js.map +1 -0
- package/v1/model/StopPublicWhitelistResponse.d.ts +5 -0
- package/v1/model/StopPublicWhitelistResponse.d.ts.map +1 -0
- package/v1/model/StopPublicWhitelistResponse.js +11 -0
- package/v1/model/StopPublicWhitelistResponse.js.map +1 -0
- package/v1/model/StopSnapshotRequest.d.ts +8 -0
- package/v1/model/StopSnapshotRequest.d.ts.map +1 -0
- package/v1/model/StopSnapshotRequest.js +20 -0
- package/v1/model/StopSnapshotRequest.js.map +1 -0
- package/v1/model/StopSnapshotResponse.d.ts +5 -0
- package/v1/model/StopSnapshotResponse.d.ts.map +1 -0
- package/v1/model/StopSnapshotResponse.js +11 -0
- package/v1/model/StopSnapshotResponse.js.map +1 -0
- package/v1/model/StopVpecpRequest.d.ts +8 -0
- package/v1/model/StopVpecpRequest.d.ts.map +1 -0
- package/v1/model/StopVpecpRequest.js +20 -0
- package/v1/model/StopVpecpRequest.js.map +1 -0
- package/v1/model/StopVpecpResponse.d.ts +7 -0
- package/v1/model/StopVpecpResponse.d.ts.map +1 -0
- package/v1/model/StopVpecpResponse.js +15 -0
- package/v1/model/StopVpecpResponse.js.map +1 -0
- package/v1/model/SysTags.d.ts +8 -0
- package/v1/model/SysTags.d.ts.map +1 -0
- package/v1/model/SysTags.js +19 -0
- package/v1/model/SysTags.js.map +1 -0
- package/v1/model/SystemTemplates.d.ts +12 -0
- package/v1/model/SystemTemplates.d.ts.map +1 -0
- package/v1/model/SystemTemplates.js +25 -0
- package/v1/model/SystemTemplates.js.map +1 -0
- package/v1/model/Tag.d.ts +8 -0
- package/v1/model/Tag.d.ts.map +1 -0
- package/v1/model/Tag.js +19 -0
- package/v1/model/Tag.js.map +1 -0
- package/v1/model/TagReq.d.ts +7 -0
- package/v1/model/TagReq.d.ts.map +1 -0
- package/v1/model/TagReq.js +14 -0
- package/v1/model/TagReq.js.map +1 -0
- package/v1/model/UnBindPublicReq.d.ts +7 -0
- package/v1/model/UnBindPublicReq.d.ts.map +1 -0
- package/v1/model/UnBindPublicReq.js +13 -0
- package/v1/model/UnBindPublicReq.js.map +1 -0
- package/v1/model/UnBindPublicReqEipReq.d.ts +7 -0
- package/v1/model/UnBindPublicReqEipReq.d.ts.map +1 -0
- package/v1/model/UnBindPublicReqEipReq.js +13 -0
- package/v1/model/UnBindPublicReqEipReq.js.map +1 -0
- package/v1/model/UpdateAlterKibanaRequest.d.ts +11 -0
- package/v1/model/UpdateAlterKibanaRequest.d.ts.map +1 -0
- package/v1/model/UpdateAlterKibanaRequest.js +24 -0
- package/v1/model/UpdateAlterKibanaRequest.js.map +1 -0
- package/v1/model/UpdateAlterKibanaResponse.d.ts +5 -0
- package/v1/model/UpdateAlterKibanaResponse.d.ts.map +1 -0
- package/v1/model/UpdateAlterKibanaResponse.js +11 -0
- package/v1/model/UpdateAlterKibanaResponse.js.map +1 -0
- package/v1/model/UpdateBatchClustersTagsRequest.d.ts +15 -0
- package/v1/model/UpdateBatchClustersTagsRequest.d.ts.map +1 -0
- package/v1/model/UpdateBatchClustersTagsRequest.js +35 -0
- package/v1/model/UpdateBatchClustersTagsRequest.js.map +1 -0
- package/v1/model/UpdateBatchClustersTagsResponse.d.ts +5 -0
- package/v1/model/UpdateBatchClustersTagsResponse.d.ts.map +1 -0
- package/v1/model/UpdateBatchClustersTagsResponse.js +11 -0
- package/v1/model/UpdateBatchClustersTagsResponse.js.map +1 -0
- package/v1/model/UpdateCloseKibanaRequest.d.ts +11 -0
- package/v1/model/UpdateCloseKibanaRequest.d.ts.map +1 -0
- package/v1/model/UpdateCloseKibanaRequest.js +24 -0
- package/v1/model/UpdateCloseKibanaRequest.js.map +1 -0
- package/v1/model/UpdateCloseKibanaResponse.d.ts +5 -0
- package/v1/model/UpdateCloseKibanaResponse.d.ts.map +1 -0
- package/v1/model/UpdateCloseKibanaResponse.js +11 -0
- package/v1/model/UpdateCloseKibanaResponse.js.map +1 -0
- package/v1/model/UpdateClusterNameReq.d.ts +6 -0
- package/v1/model/UpdateClusterNameReq.d.ts.map +1 -0
- package/v1/model/UpdateClusterNameReq.js +14 -0
- package/v1/model/UpdateClusterNameReq.js.map +1 -0
- package/v1/model/UpdateClusterNameRequest.d.ts +11 -0
- package/v1/model/UpdateClusterNameRequest.d.ts.map +1 -0
- package/v1/model/UpdateClusterNameRequest.js +24 -0
- package/v1/model/UpdateClusterNameRequest.js.map +1 -0
- package/v1/model/UpdateClusterNameResponse.d.ts +5 -0
- package/v1/model/UpdateClusterNameResponse.d.ts.map +1 -0
- package/v1/model/UpdateClusterNameResponse.js +11 -0
- package/v1/model/UpdateClusterNameResponse.js.map +1 -0
- package/v1/model/UpdateCnfRequest.d.ts +11 -0
- package/v1/model/UpdateCnfRequest.d.ts.map +1 -0
- package/v1/model/UpdateCnfRequest.js +24 -0
- package/v1/model/UpdateCnfRequest.js.map +1 -0
- package/v1/model/UpdateCnfResponse.d.ts +5 -0
- package/v1/model/UpdateCnfResponse.d.ts.map +1 -0
- package/v1/model/UpdateCnfResponse.js +11 -0
- package/v1/model/UpdateCnfResponse.js.map +1 -0
- package/v1/model/UpdateExtendClusterRequest.d.ts +11 -0
- package/v1/model/UpdateExtendClusterRequest.d.ts.map +1 -0
- package/v1/model/UpdateExtendClusterRequest.js +24 -0
- package/v1/model/UpdateExtendClusterRequest.js.map +1 -0
- package/v1/model/UpdateExtendClusterResponse.d.ts +5 -0
- package/v1/model/UpdateExtendClusterResponse.d.ts.map +1 -0
- package/v1/model/UpdateExtendClusterResponse.js +11 -0
- package/v1/model/UpdateExtendClusterResponse.js.map +1 -0
- package/v1/model/UpdateExtendInstanceStorageRequest.d.ts +11 -0
- package/v1/model/UpdateExtendInstanceStorageRequest.d.ts.map +1 -0
- package/v1/model/UpdateExtendInstanceStorageRequest.js +24 -0
- package/v1/model/UpdateExtendInstanceStorageRequest.js.map +1 -0
- package/v1/model/UpdateExtendInstanceStorageResponse.d.ts +7 -0
- package/v1/model/UpdateExtendInstanceStorageResponse.d.ts.map +1 -0
- package/v1/model/UpdateExtendInstanceStorageResponse.js +15 -0
- package/v1/model/UpdateExtendInstanceStorageResponse.js.map +1 -0
- package/v1/model/UpdateFlavorByTypeReq.d.ts +10 -0
- package/v1/model/UpdateFlavorByTypeReq.d.ts.map +1 -0
- package/v1/model/UpdateFlavorByTypeReq.js +22 -0
- package/v1/model/UpdateFlavorByTypeReq.js.map +1 -0
- package/v1/model/UpdateFlavorByTypeRequest.d.ts +13 -0
- package/v1/model/UpdateFlavorByTypeRequest.d.ts.map +1 -0
- package/v1/model/UpdateFlavorByTypeRequest.js +29 -0
- package/v1/model/UpdateFlavorByTypeRequest.js.map +1 -0
- package/v1/model/UpdateFlavorByTypeResponse.d.ts +5 -0
- package/v1/model/UpdateFlavorByTypeResponse.d.ts.map +1 -0
- package/v1/model/UpdateFlavorByTypeResponse.js +11 -0
- package/v1/model/UpdateFlavorByTypeResponse.js.map +1 -0
- package/v1/model/UpdateFlavorReq.d.ts +10 -0
- package/v1/model/UpdateFlavorReq.d.ts.map +1 -0
- package/v1/model/UpdateFlavorReq.js +22 -0
- package/v1/model/UpdateFlavorReq.js.map +1 -0
- package/v1/model/UpdateFlavorRequest.d.ts +11 -0
- package/v1/model/UpdateFlavorRequest.d.ts.map +1 -0
- package/v1/model/UpdateFlavorRequest.js +24 -0
- package/v1/model/UpdateFlavorRequest.js.map +1 -0
- package/v1/model/UpdateFlavorResponse.d.ts +5 -0
- package/v1/model/UpdateFlavorResponse.d.ts.map +1 -0
- package/v1/model/UpdateFlavorResponse.js +11 -0
- package/v1/model/UpdateFlavorResponse.js.map +1 -0
- package/v1/model/UpdateInstanceRequest.d.ts +12 -0
- package/v1/model/UpdateInstanceRequest.d.ts.map +1 -0
- package/v1/model/UpdateInstanceRequest.js +31 -0
- package/v1/model/UpdateInstanceRequest.js.map +1 -0
- package/v1/model/UpdateInstanceResponse.d.ts +5 -0
- package/v1/model/UpdateInstanceResponse.d.ts.map +1 -0
- package/v1/model/UpdateInstanceResponse.js +11 -0
- package/v1/model/UpdateInstanceResponse.js.map +1 -0
- package/v1/model/UpdateLogSettingReq.d.ts +10 -0
- package/v1/model/UpdateLogSettingReq.d.ts.map +1 -0
- package/v1/model/UpdateLogSettingReq.js +24 -0
- package/v1/model/UpdateLogSettingReq.js.map +1 -0
- package/v1/model/UpdateLogSettingRequest.d.ts +11 -0
- package/v1/model/UpdateLogSettingRequest.d.ts.map +1 -0
- package/v1/model/UpdateLogSettingRequest.js +24 -0
- package/v1/model/UpdateLogSettingRequest.js.map +1 -0
- package/v1/model/UpdateLogSettingResponse.d.ts +5 -0
- package/v1/model/UpdateLogSettingResponse.d.ts.map +1 -0
- package/v1/model/UpdateLogSettingResponse.js +11 -0
- package/v1/model/UpdateLogSettingResponse.js.map +1 -0
- package/v1/model/UpdateOndemandClusterToPeriodRequest.d.ts +11 -0
- package/v1/model/UpdateOndemandClusterToPeriodRequest.d.ts.map +1 -0
- package/v1/model/UpdateOndemandClusterToPeriodRequest.js +24 -0
- package/v1/model/UpdateOndemandClusterToPeriodRequest.js.map +1 -0
- package/v1/model/UpdateOndemandClusterToPeriodResponse.d.ts +7 -0
- package/v1/model/UpdateOndemandClusterToPeriodResponse.d.ts.map +1 -0
- package/v1/model/UpdateOndemandClusterToPeriodResponse.js +15 -0
- package/v1/model/UpdateOndemandClusterToPeriodResponse.js.map +1 -0
- package/v1/model/UpdatePublicBandWidthRequest.d.ts +11 -0
- package/v1/model/UpdatePublicBandWidthRequest.d.ts.map +1 -0
- package/v1/model/UpdatePublicBandWidthRequest.js +24 -0
- package/v1/model/UpdatePublicBandWidthRequest.js.map +1 -0
- package/v1/model/UpdatePublicBandWidthResponse.d.ts +5 -0
- package/v1/model/UpdatePublicBandWidthResponse.d.ts.map +1 -0
- package/v1/model/UpdatePublicBandWidthResponse.js +11 -0
- package/v1/model/UpdatePublicBandWidthResponse.js.map +1 -0
- package/v1/model/UpdatePublicKibanaBandwidthReq.d.ts +9 -0
- package/v1/model/UpdatePublicKibanaBandwidthReq.d.ts.map +1 -0
- package/v1/model/UpdatePublicKibanaBandwidthReq.js +18 -0
- package/v1/model/UpdatePublicKibanaBandwidthReq.js.map +1 -0
- package/v1/model/UpdatePublicKibanaBandwidthReqBandWidth.d.ts +6 -0
- package/v1/model/UpdatePublicKibanaBandwidthReqBandWidth.d.ts.map +1 -0
- package/v1/model/UpdatePublicKibanaBandwidthReqBandWidth.js +14 -0
- package/v1/model/UpdatePublicKibanaBandwidthReqBandWidth.js.map +1 -0
- package/v1/model/UpdatePublicKibanaWhitelistReq.d.ts +6 -0
- package/v1/model/UpdatePublicKibanaWhitelistReq.d.ts.map +1 -0
- package/v1/model/UpdatePublicKibanaWhitelistReq.js +14 -0
- package/v1/model/UpdatePublicKibanaWhitelistReq.js.map +1 -0
- package/v1/model/UpdatePublicKibanaWhitelistRequest.d.ts +11 -0
- package/v1/model/UpdatePublicKibanaWhitelistRequest.d.ts.map +1 -0
- package/v1/model/UpdatePublicKibanaWhitelistRequest.js +24 -0
- package/v1/model/UpdatePublicKibanaWhitelistRequest.js.map +1 -0
- package/v1/model/UpdatePublicKibanaWhitelistResponse.d.ts +5 -0
- package/v1/model/UpdatePublicKibanaWhitelistResponse.d.ts.map +1 -0
- package/v1/model/UpdatePublicKibanaWhitelistResponse.js +11 -0
- package/v1/model/UpdatePublicKibanaWhitelistResponse.js.map +1 -0
- package/v1/model/UpdateShrinkClusterRequest.d.ts +11 -0
- package/v1/model/UpdateShrinkClusterRequest.d.ts.map +1 -0
- package/v1/model/UpdateShrinkClusterRequest.js +24 -0
- package/v1/model/UpdateShrinkClusterRequest.js.map +1 -0
- package/v1/model/UpdateShrinkClusterResponse.d.ts +5 -0
- package/v1/model/UpdateShrinkClusterResponse.d.ts.map +1 -0
- package/v1/model/UpdateShrinkClusterResponse.js +11 -0
- package/v1/model/UpdateShrinkClusterResponse.js.map +1 -0
- package/v1/model/UpdateShrinkNodesRequest.d.ts +11 -0
- package/v1/model/UpdateShrinkNodesRequest.d.ts.map +1 -0
- package/v1/model/UpdateShrinkNodesRequest.js +24 -0
- package/v1/model/UpdateShrinkNodesRequest.js.map +1 -0
- package/v1/model/UpdateShrinkNodesResponse.d.ts +5 -0
- package/v1/model/UpdateShrinkNodesResponse.d.ts.map +1 -0
- package/v1/model/UpdateShrinkNodesResponse.js +11 -0
- package/v1/model/UpdateShrinkNodesResponse.js.map +1 -0
- package/v1/model/UpdateSnapshotSettingReq.d.ts +10 -0
- package/v1/model/UpdateSnapshotSettingReq.d.ts.map +1 -0
- package/v1/model/UpdateSnapshotSettingReq.js +24 -0
- package/v1/model/UpdateSnapshotSettingReq.js.map +1 -0
- package/v1/model/UpdateSnapshotSettingRequest.d.ts +11 -0
- package/v1/model/UpdateSnapshotSettingRequest.d.ts.map +1 -0
- package/v1/model/UpdateSnapshotSettingRequest.js +24 -0
- package/v1/model/UpdateSnapshotSettingRequest.js.map +1 -0
- package/v1/model/UpdateSnapshotSettingResponse.d.ts +5 -0
- package/v1/model/UpdateSnapshotSettingResponse.d.ts.map +1 -0
- package/v1/model/UpdateSnapshotSettingResponse.js +11 -0
- package/v1/model/UpdateSnapshotSettingResponse.js.map +1 -0
- package/v1/model/UpdateUnbindPublicRequest.d.ts +11 -0
- package/v1/model/UpdateUnbindPublicRequest.d.ts.map +1 -0
- package/v1/model/UpdateUnbindPublicRequest.js +24 -0
- package/v1/model/UpdateUnbindPublicRequest.js.map +1 -0
- package/v1/model/UpdateUnbindPublicResponse.d.ts +7 -0
- package/v1/model/UpdateUnbindPublicResponse.d.ts.map +1 -0
- package/v1/model/UpdateUnbindPublicResponse.js +15 -0
- package/v1/model/UpdateUnbindPublicResponse.js.map +1 -0
- package/v1/model/UpdateVpcepConnectionReq.d.ts +8 -0
- package/v1/model/UpdateVpcepConnectionReq.d.ts.map +1 -0
- package/v1/model/UpdateVpcepConnectionReq.js +19 -0
- package/v1/model/UpdateVpcepConnectionReq.js.map +1 -0
- package/v1/model/UpdateVpcepConnectionRequest.d.ts +11 -0
- package/v1/model/UpdateVpcepConnectionRequest.d.ts.map +1 -0
- package/v1/model/UpdateVpcepConnectionRequest.js +24 -0
- package/v1/model/UpdateVpcepConnectionRequest.js.map +1 -0
- package/v1/model/UpdateVpcepConnectionResponse.d.ts +5 -0
- package/v1/model/UpdateVpcepConnectionResponse.d.ts.map +1 -0
- package/v1/model/UpdateVpcepConnectionResponse.js +11 -0
- package/v1/model/UpdateVpcepConnectionResponse.js.map +1 -0
- package/v1/model/UpdateVpcepWhitelistReq.d.ts +6 -0
- package/v1/model/UpdateVpcepWhitelistReq.d.ts.map +1 -0
- package/v1/model/UpdateVpcepWhitelistReq.js +14 -0
- package/v1/model/UpdateVpcepWhitelistReq.js.map +1 -0
- package/v1/model/UpdateVpcepWhitelistRequest.d.ts +11 -0
- package/v1/model/UpdateVpcepWhitelistRequest.d.ts.map +1 -0
- package/v1/model/UpdateVpcepWhitelistRequest.js +24 -0
- package/v1/model/UpdateVpcepWhitelistRequest.js.map +1 -0
- package/v1/model/UpdateVpcepWhitelistResponse.d.ts +5 -0
- package/v1/model/UpdateVpcepWhitelistResponse.d.ts.map +1 -0
- package/v1/model/UpdateVpcepWhitelistResponse.js +11 -0
- package/v1/model/UpdateVpcepWhitelistResponse.js.map +1 -0
- package/v1/model/UpdateYmlsReq.d.ts +7 -0
- package/v1/model/UpdateYmlsReq.d.ts.map +1 -0
- package/v1/model/UpdateYmlsReq.js +14 -0
- package/v1/model/UpdateYmlsReq.js.map +1 -0
- package/v1/model/UpdateYmlsReqEdit.d.ts +7 -0
- package/v1/model/UpdateYmlsReqEdit.d.ts.map +1 -0
- package/v1/model/UpdateYmlsReqEdit.js +14 -0
- package/v1/model/UpdateYmlsReqEdit.js.map +1 -0
- package/v1/model/UpdateYmlsReqEditModify.d.ts +8 -0
- package/v1/model/UpdateYmlsReqEditModify.d.ts.map +1 -0
- package/v1/model/UpdateYmlsReqEditModify.js +20 -0
- package/v1/model/UpdateYmlsReqEditModify.js.map +1 -0
- package/v1/model/UpdateYmlsRequest.d.ts +11 -0
- package/v1/model/UpdateYmlsRequest.d.ts.map +1 -0
- package/v1/model/UpdateYmlsRequest.js +24 -0
- package/v1/model/UpdateYmlsRequest.js.map +1 -0
- package/v1/model/UpdateYmlsResponse.d.ts +11 -0
- package/v1/model/UpdateYmlsResponse.d.ts.map +1 -0
- package/v1/model/UpdateYmlsResponse.js +23 -0
- package/v1/model/UpdateYmlsResponse.js.map +1 -0
- package/v1/public-api.d.ts +256 -0
- package/v1/public-api.d.ts.map +1 -0
- package/v1/public-api.js +272 -0
- package/v1/public-api.js.map +1 -0
- package/v2/CssClient.d.ts +163 -0
- package/v2/CssClient.d.ts.map +1 -0
- package/v2/CssClient.js +315 -0
- package/v2/CssClient.js.map +1 -0
- package/v2/CssRegion.d.ts +26 -0
- package/v2/CssRegion.d.ts.map +1 -0
- package/v2/CssRegion.js +60 -0
- package/v2/CssRegion.js.map +1 -0
- package/v2/model/CreateClusterBackupStrategyBody.d.ts +16 -0
- package/v2/model/CreateClusterBackupStrategyBody.d.ts.map +1 -0
- package/v2/model/CreateClusterBackupStrategyBody.js +36 -0
- package/v2/model/CreateClusterBackupStrategyBody.js.map +1 -0
- package/v2/model/CreateClusterBody.d.ts +47 -0
- package/v2/model/CreateClusterBody.d.ts.map +1 -0
- package/v2/model/CreateClusterBody.js +85 -0
- package/v2/model/CreateClusterBody.js.map +1 -0
- package/v2/model/CreateClusterDatastoreBody.d.ts +8 -0
- package/v2/model/CreateClusterDatastoreBody.d.ts.map +1 -0
- package/v2/model/CreateClusterDatastoreBody.js +19 -0
- package/v2/model/CreateClusterDatastoreBody.js.map +1 -0
- package/v2/model/CreateClusterElbWhiteList.d.ts +8 -0
- package/v2/model/CreateClusterElbWhiteList.d.ts.map +1 -0
- package/v2/model/CreateClusterElbWhiteList.js +18 -0
- package/v2/model/CreateClusterElbWhiteList.js.map +1 -0
- package/v2/model/CreateClusterInstanceNicsBody.d.ts +10 -0
- package/v2/model/CreateClusterInstanceNicsBody.d.ts.map +1 -0
- package/v2/model/CreateClusterInstanceNicsBody.js +24 -0
- package/v2/model/CreateClusterInstanceNicsBody.js.map +1 -0
- package/v2/model/CreateClusterInstanceVolumeBody.d.ts +10 -0
- package/v2/model/CreateClusterInstanceVolumeBody.d.ts.map +1 -0
- package/v2/model/CreateClusterInstanceVolumeBody.js +25 -0
- package/v2/model/CreateClusterInstanceVolumeBody.js.map +1 -0
- package/v2/model/CreateClusterLoadBalance.d.ts +8 -0
- package/v2/model/CreateClusterLoadBalance.d.ts.map +1 -0
- package/v2/model/CreateClusterLoadBalance.js +18 -0
- package/v2/model/CreateClusterLoadBalance.js.map +1 -0
- package/v2/model/CreateClusterPublicEip.d.ts +7 -0
- package/v2/model/CreateClusterPublicEip.d.ts.map +1 -0
- package/v2/model/CreateClusterPublicEip.js +14 -0
- package/v2/model/CreateClusterPublicEip.js.map +1 -0
- package/v2/model/CreateClusterPublicEipSize.d.ts +6 -0
- package/v2/model/CreateClusterPublicEipSize.d.ts.map +1 -0
- package/v2/model/CreateClusterPublicEipSize.js +14 -0
- package/v2/model/CreateClusterPublicEipSize.js.map +1 -0
- package/v2/model/CreateClusterPublicIpReq.d.ts +14 -0
- package/v2/model/CreateClusterPublicIpReq.d.ts.map +1 -0
- package/v2/model/CreateClusterPublicIpReq.js +28 -0
- package/v2/model/CreateClusterPublicIpReq.js.map +1 -0
- package/v2/model/CreateClusterPublicKibanaElbWhiteList.d.ts +8 -0
- package/v2/model/CreateClusterPublicKibanaElbWhiteList.d.ts.map +1 -0
- package/v2/model/CreateClusterPublicKibanaElbWhiteList.js +19 -0
- package/v2/model/CreateClusterPublicKibanaElbWhiteList.js.map +1 -0
- package/v2/model/CreateClusterPublicKibanaReq.d.ts +9 -0
- package/v2/model/CreateClusterPublicKibanaReq.d.ts.map +1 -0
- package/v2/model/CreateClusterPublicKibanaReq.js +19 -0
- package/v2/model/CreateClusterPublicKibanaReq.js.map +1 -0
- package/v2/model/CreateClusterReq.d.ts +7 -0
- package/v2/model/CreateClusterReq.d.ts.map +1 -0
- package/v2/model/CreateClusterReq.js +14 -0
- package/v2/model/CreateClusterReq.js.map +1 -0
- package/v2/model/CreateClusterRequest.d.ts +7 -0
- package/v2/model/CreateClusterRequest.d.ts.map +1 -0
- package/v2/model/CreateClusterRequest.js +13 -0
- package/v2/model/CreateClusterRequest.js.map +1 -0
- package/v2/model/CreateClusterResp.d.ts +8 -0
- package/v2/model/CreateClusterResp.d.ts.map +1 -0
- package/v2/model/CreateClusterResp.js +17 -0
- package/v2/model/CreateClusterResp.js.map +1 -0
- package/v2/model/CreateClusterResponse.d.ts +10 -0
- package/v2/model/CreateClusterResponse.d.ts.map +1 -0
- package/v2/model/CreateClusterResponse.js +19 -0
- package/v2/model/CreateClusterResponse.js.map +1 -0
- package/v2/model/CreateClusterRolesBody.d.ts +13 -0
- package/v2/model/CreateClusterRolesBody.d.ts.map +1 -0
- package/v2/model/CreateClusterRolesBody.js +29 -0
- package/v2/model/CreateClusterRolesBody.js.map +1 -0
- package/v2/model/CreateClusterTagsBody.d.ts +8 -0
- package/v2/model/CreateClusterTagsBody.d.ts.map +1 -0
- package/v2/model/CreateClusterTagsBody.js +19 -0
- package/v2/model/CreateClusterTagsBody.js.map +1 -0
- package/v2/model/PayInfoBody.d.ts +12 -0
- package/v2/model/PayInfoBody.d.ts.map +1 -0
- package/v2/model/PayInfoBody.js +27 -0
- package/v2/model/PayInfoBody.js.map +1 -0
- package/v2/model/RestartClusterReq.d.ts +8 -0
- package/v2/model/RestartClusterReq.d.ts.map +1 -0
- package/v2/model/RestartClusterReq.js +19 -0
- package/v2/model/RestartClusterReq.js.map +1 -0
- package/v2/model/RestartClusterRequest.d.ts +11 -0
- package/v2/model/RestartClusterRequest.d.ts.map +1 -0
- package/v2/model/RestartClusterRequest.js +24 -0
- package/v2/model/RestartClusterRequest.js.map +1 -0
- package/v2/model/RestartClusterResponse.d.ts +5 -0
- package/v2/model/RestartClusterResponse.d.ts.map +1 -0
- package/v2/model/RestartClusterResponse.js +11 -0
- package/v2/model/RestartClusterResponse.js.map +1 -0
- package/v2/model/RollingRestartReq.d.ts +8 -0
- package/v2/model/RollingRestartReq.d.ts.map +1 -0
- package/v2/model/RollingRestartReq.js +19 -0
- package/v2/model/RollingRestartReq.js.map +1 -0
- package/v2/model/RollingRestartRequest.d.ts +11 -0
- package/v2/model/RollingRestartRequest.d.ts.map +1 -0
- package/v2/model/RollingRestartRequest.js +24 -0
- package/v2/model/RollingRestartRequest.js.map +1 -0
- package/v2/model/RollingRestartResponse.d.ts +5 -0
- package/v2/model/RollingRestartResponse.d.ts.map +1 -0
- package/v2/model/RollingRestartResponse.js +11 -0
- package/v2/model/RollingRestartResponse.js.map +1 -0
- package/v2/model/StartAutoCreateSnapshotsReq.d.ts +12 -0
- package/v2/model/StartAutoCreateSnapshotsReq.d.ts.map +1 -0
- package/v2/model/StartAutoCreateSnapshotsReq.js +28 -0
- package/v2/model/StartAutoCreateSnapshotsReq.js.map +1 -0
- package/v2/model/StartAutoCreateSnapshotsRequest.d.ts +11 -0
- package/v2/model/StartAutoCreateSnapshotsRequest.d.ts.map +1 -0
- package/v2/model/StartAutoCreateSnapshotsRequest.js +24 -0
- package/v2/model/StartAutoCreateSnapshotsRequest.js.map +1 -0
- package/v2/model/StartAutoCreateSnapshotsResponse.d.ts +5 -0
- package/v2/model/StartAutoCreateSnapshotsResponse.d.ts.map +1 -0
- package/v2/model/StartAutoCreateSnapshotsResponse.js +11 -0
- package/v2/model/StartAutoCreateSnapshotsResponse.js.map +1 -0
- package/v2/model/StopAutoCreateSnapshotsRequest.d.ts +8 -0
- package/v2/model/StopAutoCreateSnapshotsRequest.d.ts.map +1 -0
- package/v2/model/StopAutoCreateSnapshotsRequest.js +20 -0
- package/v2/model/StopAutoCreateSnapshotsRequest.js.map +1 -0
- package/v2/model/StopAutoCreateSnapshotsResponse.d.ts +5 -0
- package/v2/model/StopAutoCreateSnapshotsResponse.d.ts.map +1 -0
- package/v2/model/StopAutoCreateSnapshotsResponse.js +11 -0
- package/v2/model/StopAutoCreateSnapshotsResponse.js.map +1 -0
- package/v2/public-api.d.ts +33 -0
- package/v2/public-api.d.ts.map +1 -0
- package/v2/public-api.js +49 -0
- package/v2/public-api.js.map +1 -0
package/v1/CssClient.js
ADDED
|
@@ -0,0 +1,4296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequiredError = exports.ParamCreater = exports.CssClient = void 0;
|
|
4
|
+
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
|
5
|
+
const AddFavoriteRequest_1 = require("./model/AddFavoriteRequest");
|
|
6
|
+
const AddIndependentNodeRequest_1 = require("./model/AddIndependentNodeRequest");
|
|
7
|
+
const ChangeModeRequest_1 = require("./model/ChangeModeRequest");
|
|
8
|
+
const ChangeSecurityGroupRequest_1 = require("./model/ChangeSecurityGroupRequest");
|
|
9
|
+
const CreateAutoCreatePolicyRequest_1 = require("./model/CreateAutoCreatePolicyRequest");
|
|
10
|
+
const CreateBindPublicRequest_1 = require("./model/CreateBindPublicRequest");
|
|
11
|
+
const CreateClusterRequest_1 = require("./model/CreateClusterRequest");
|
|
12
|
+
const CreateClustersTagsRequest_1 = require("./model/CreateClustersTagsRequest");
|
|
13
|
+
const CreateCnfRequest_1 = require("./model/CreateCnfRequest");
|
|
14
|
+
const CreateLoadIkThesaurusRequest_1 = require("./model/CreateLoadIkThesaurusRequest");
|
|
15
|
+
const CreateLogBackupRequest_1 = require("./model/CreateLogBackupRequest");
|
|
16
|
+
const CreateSnapshotRequest_1 = require("./model/CreateSnapshotRequest");
|
|
17
|
+
const DeleteClusterRequest_1 = require("./model/DeleteClusterRequest");
|
|
18
|
+
const DeleteClustersTagsRequest_1 = require("./model/DeleteClustersTagsRequest");
|
|
19
|
+
const DeleteConfRequest_1 = require("./model/DeleteConfRequest");
|
|
20
|
+
const DeleteIkThesaurusRequest_1 = require("./model/DeleteIkThesaurusRequest");
|
|
21
|
+
const DeleteSnapshotRequest_1 = require("./model/DeleteSnapshotRequest");
|
|
22
|
+
const DeleteTemplateRequest_1 = require("./model/DeleteTemplateRequest");
|
|
23
|
+
const ListActionsRequest_1 = require("./model/ListActionsRequest");
|
|
24
|
+
const ListClustersDetailsRequest_1 = require("./model/ListClustersDetailsRequest");
|
|
25
|
+
const ListClustersTagsRequest_1 = require("./model/ListClustersTagsRequest");
|
|
26
|
+
const ListConfsRequest_1 = require("./model/ListConfsRequest");
|
|
27
|
+
const ListLogsJobRequest_1 = require("./model/ListLogsJobRequest");
|
|
28
|
+
const ListPipelinesRequest_1 = require("./model/ListPipelinesRequest");
|
|
29
|
+
const ListSnapshotsRequest_1 = require("./model/ListSnapshotsRequest");
|
|
30
|
+
const ListTemplatesRequest_1 = require("./model/ListTemplatesRequest");
|
|
31
|
+
const ListYmlsJobRequest_1 = require("./model/ListYmlsJobRequest");
|
|
32
|
+
const ListYmlsRequest_1 = require("./model/ListYmlsRequest");
|
|
33
|
+
const ResetPasswordRequest_1 = require("./model/ResetPasswordRequest");
|
|
34
|
+
const RestartClusterRequest_1 = require("./model/RestartClusterRequest");
|
|
35
|
+
const RestoreSnapshotRequest_1 = require("./model/RestoreSnapshotRequest");
|
|
36
|
+
const ShowAutoCreatePolicyRequest_1 = require("./model/ShowAutoCreatePolicyRequest");
|
|
37
|
+
const ShowClusterDetailRequest_1 = require("./model/ShowClusterDetailRequest");
|
|
38
|
+
const ShowClusterTagRequest_1 = require("./model/ShowClusterTagRequest");
|
|
39
|
+
const ShowGetConfDetailRequest_1 = require("./model/ShowGetConfDetailRequest");
|
|
40
|
+
const ShowGetLogSettingRequest_1 = require("./model/ShowGetLogSettingRequest");
|
|
41
|
+
const ShowIkThesaurusRequest_1 = require("./model/ShowIkThesaurusRequest");
|
|
42
|
+
const ShowLogBackupRequest_1 = require("./model/ShowLogBackupRequest");
|
|
43
|
+
const ShowVpcepConnectionRequest_1 = require("./model/ShowVpcepConnectionRequest");
|
|
44
|
+
const StartAutoSettingRequest_1 = require("./model/StartAutoSettingRequest");
|
|
45
|
+
const StartConnectivityTestRequest_1 = require("./model/StartConnectivityTestRequest");
|
|
46
|
+
const StartKibanaPublicRequest_1 = require("./model/StartKibanaPublicRequest");
|
|
47
|
+
const StartLogAutoBackupPolicyRequest_1 = require("./model/StartLogAutoBackupPolicyRequest");
|
|
48
|
+
const StartLogsRequest_1 = require("./model/StartLogsRequest");
|
|
49
|
+
const StartPipelineRequest_1 = require("./model/StartPipelineRequest");
|
|
50
|
+
const StartPublicWhitelistRequest_1 = require("./model/StartPublicWhitelistRequest");
|
|
51
|
+
const StartVpecpRequest_1 = require("./model/StartVpecpRequest");
|
|
52
|
+
const StopLogAutoBackupPolicyRequest_1 = require("./model/StopLogAutoBackupPolicyRequest");
|
|
53
|
+
const StopLogsRequest_1 = require("./model/StopLogsRequest");
|
|
54
|
+
const StopPipelineRequest_1 = require("./model/StopPipelineRequest");
|
|
55
|
+
const StopPublicKibanaWhitelistRequest_1 = require("./model/StopPublicKibanaWhitelistRequest");
|
|
56
|
+
const StopPublicWhitelistRequest_1 = require("./model/StopPublicWhitelistRequest");
|
|
57
|
+
const StopSnapshotRequest_1 = require("./model/StopSnapshotRequest");
|
|
58
|
+
const StopVpecpRequest_1 = require("./model/StopVpecpRequest");
|
|
59
|
+
const UpdateAlterKibanaRequest_1 = require("./model/UpdateAlterKibanaRequest");
|
|
60
|
+
const UpdateBatchClustersTagsRequest_1 = require("./model/UpdateBatchClustersTagsRequest");
|
|
61
|
+
const UpdateCloseKibanaRequest_1 = require("./model/UpdateCloseKibanaRequest");
|
|
62
|
+
const UpdateClusterNameRequest_1 = require("./model/UpdateClusterNameRequest");
|
|
63
|
+
const UpdateCnfRequest_1 = require("./model/UpdateCnfRequest");
|
|
64
|
+
const UpdateExtendClusterRequest_1 = require("./model/UpdateExtendClusterRequest");
|
|
65
|
+
const UpdateExtendInstanceStorageRequest_1 = require("./model/UpdateExtendInstanceStorageRequest");
|
|
66
|
+
const UpdateFlavorByTypeRequest_1 = require("./model/UpdateFlavorByTypeRequest");
|
|
67
|
+
const UpdateFlavorRequest_1 = require("./model/UpdateFlavorRequest");
|
|
68
|
+
const UpdateInstanceRequest_1 = require("./model/UpdateInstanceRequest");
|
|
69
|
+
const UpdateLogSettingRequest_1 = require("./model/UpdateLogSettingRequest");
|
|
70
|
+
const UpdateOndemandClusterToPeriodRequest_1 = require("./model/UpdateOndemandClusterToPeriodRequest");
|
|
71
|
+
const UpdatePublicBandWidthRequest_1 = require("./model/UpdatePublicBandWidthRequest");
|
|
72
|
+
const UpdatePublicKibanaWhitelistRequest_1 = require("./model/UpdatePublicKibanaWhitelistRequest");
|
|
73
|
+
const UpdateShrinkClusterRequest_1 = require("./model/UpdateShrinkClusterRequest");
|
|
74
|
+
const UpdateShrinkNodesRequest_1 = require("./model/UpdateShrinkNodesRequest");
|
|
75
|
+
const UpdateSnapshotSettingRequest_1 = require("./model/UpdateSnapshotSettingRequest");
|
|
76
|
+
const UpdateUnbindPublicRequest_1 = require("./model/UpdateUnbindPublicRequest");
|
|
77
|
+
const UpdateVpcepConnectionRequest_1 = require("./model/UpdateVpcepConnectionRequest");
|
|
78
|
+
const UpdateVpcepWhitelistRequest_1 = require("./model/UpdateVpcepWhitelistRequest");
|
|
79
|
+
const UpdateYmlsRequest_1 = require("./model/UpdateYmlsRequest");
|
|
80
|
+
class CssClient {
|
|
81
|
+
static newBuilder() {
|
|
82
|
+
return new ClientBuilder_1.ClientBuilder(newClient);
|
|
83
|
+
}
|
|
84
|
+
constructor(client) {
|
|
85
|
+
this.hcClient = client;
|
|
86
|
+
}
|
|
87
|
+
getPath() {
|
|
88
|
+
return __dirname;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 由于集群数据面业务的增长或者不确定性,很难在一开始就能够把集群的规模形态想明白,该接口能够在非独立master和client的集群上面独立master、client角色。
|
|
92
|
+
*
|
|
93
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
94
|
+
*
|
|
95
|
+
* @summary 添加独立master、client
|
|
96
|
+
* @param {string} clusterId 指定需要独立master或client的集群ID。
|
|
97
|
+
* @param {string} type 指定待新增独立节点类型。 - ess-master:Master节点。 - ess-client:Client节点。
|
|
98
|
+
* @param {IndependentReq} independentReq 独立master或client请求体。
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
addIndependentNode(addIndependentNodeRequest) {
|
|
103
|
+
const options = (0, exports.ParamCreater)().addIndependentNode(addIndependentNodeRequest);
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
options['responseHeaders'] = [''];
|
|
106
|
+
return this.hcClient.sendRequest(options);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 该接口用于切换集群的安全模式。
|
|
110
|
+
*
|
|
111
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
112
|
+
*
|
|
113
|
+
* @summary 安全模式修改
|
|
114
|
+
* @param {string} clusterId 指定修改的集群ID。
|
|
115
|
+
* @param {ChangeModeReq} changeModeReq 修改安全模式请求体。
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
changeMode(changeModeRequest) {
|
|
120
|
+
const options = (0, exports.ParamCreater)().changeMode(changeModeRequest);
|
|
121
|
+
// @ts-ignore
|
|
122
|
+
options['responseHeaders'] = [''];
|
|
123
|
+
return this.hcClient.sendRequest(options);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* 该接口可以在集群创建成功后,修改安全组。
|
|
127
|
+
*
|
|
128
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
129
|
+
*
|
|
130
|
+
* @summary 切换安全组
|
|
131
|
+
* @param {string} clusterId 待修改安全组的集群ID。
|
|
132
|
+
* @param {ChangeSecurityGroupReq} changeSecurityGroupReq 更改安全组请求体。
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
changeSecurityGroup(changeSecurityGroupRequest) {
|
|
137
|
+
const options = (0, exports.ParamCreater)().changeSecurityGroup(changeSecurityGroupRequest);
|
|
138
|
+
// @ts-ignore
|
|
139
|
+
options['responseHeaders'] = [''];
|
|
140
|
+
return this.hcClient.sendRequest(options);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* 该接口用于设置自动创建快照,默认一天创建一个快照。
|
|
144
|
+
*
|
|
145
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
146
|
+
*
|
|
147
|
+
* @summary 设置自动创建快照策略
|
|
148
|
+
* @param {string} clusterId 指定要自动创建快照的集群ID。
|
|
149
|
+
* @param {SetRDSBackupCnfReq} setRDSBackupCnfReq
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
createAutoCreatePolicy(createAutoCreatePolicyRequest) {
|
|
154
|
+
const options = (0, exports.ParamCreater)().createAutoCreatePolicy(createAutoCreatePolicyRequest);
|
|
155
|
+
// @ts-ignore
|
|
156
|
+
options['responseHeaders'] = [''];
|
|
157
|
+
return this.hcClient.sendRequest(options);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* 该接口用于开启公网访问。
|
|
161
|
+
*
|
|
162
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
163
|
+
*
|
|
164
|
+
* @summary 开启公网访问
|
|
165
|
+
* @param {string} clusterId 指定开启公网访问的集群ID。
|
|
166
|
+
* @param {BindPublicReq} bindPublicReq
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
createBindPublic(createBindPublicRequest) {
|
|
171
|
+
const options = (0, exports.ParamCreater)().createBindPublic(createBindPublicRequest);
|
|
172
|
+
// @ts-ignore
|
|
173
|
+
options['responseHeaders'] = [''];
|
|
174
|
+
return this.hcClient.sendRequest(options);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 该接口用于创建集群。
|
|
178
|
+
*
|
|
179
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
180
|
+
*
|
|
181
|
+
* @summary 创建集群
|
|
182
|
+
* @param {CreateClusterReq} createClusterReq 创建集群请求体。
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
createCluster(createClusterRequest) {
|
|
187
|
+
const options = (0, exports.ParamCreater)().createCluster(createClusterRequest);
|
|
188
|
+
// @ts-ignore
|
|
189
|
+
options['responseHeaders'] = [''];
|
|
190
|
+
return this.hcClient.sendRequest(options);
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* 该接口用于给指定集群添加标签。
|
|
194
|
+
*
|
|
195
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
196
|
+
*
|
|
197
|
+
* @summary 添加指定集群标签
|
|
198
|
+
* @param {string} clusterId 指定待添加标签的集群ID。
|
|
199
|
+
* @param {string} resourceType 资源类型,当前固定值为“css-cluster”,表示是集群类型。
|
|
200
|
+
* @param {TagReq} tag
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
createClustersTags(createClustersTagsRequest) {
|
|
205
|
+
const options = (0, exports.ParamCreater)().createClustersTags(createClustersTagsRequest);
|
|
206
|
+
// @ts-ignore
|
|
207
|
+
options['responseHeaders'] = [''];
|
|
208
|
+
return this.hcClient.sendRequest(options);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* 该接口用于加载存放于OBS的自定义词库。
|
|
212
|
+
*
|
|
213
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
214
|
+
*
|
|
215
|
+
* @summary 加载自定义词库
|
|
216
|
+
* @param {string} clusterId 指定配置自定义词库的集群ID。
|
|
217
|
+
* @param {LoadCustomThesaurusReq} loadCustomThesaurusReq
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
createLoadIkThesaurus(createLoadIkThesaurusRequest) {
|
|
222
|
+
const options = (0, exports.ParamCreater)().createLoadIkThesaurus(createLoadIkThesaurusRequest);
|
|
223
|
+
// @ts-ignore
|
|
224
|
+
options['responseHeaders'] = [''];
|
|
225
|
+
return this.hcClient.sendRequest(options);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* 该接口用于备份日志。
|
|
229
|
+
*
|
|
230
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
231
|
+
*
|
|
232
|
+
* @summary 备份日志
|
|
233
|
+
* @param {string} clusterId 指定待备份日志的集群ID。
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
createLogBackup(createLogBackupRequest) {
|
|
238
|
+
const options = (0, exports.ParamCreater)().createLogBackup(createLogBackupRequest);
|
|
239
|
+
// @ts-ignore
|
|
240
|
+
options['responseHeaders'] = [''];
|
|
241
|
+
return this.hcClient.sendRequest(options);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* 该接口用于手动创建一个快照。
|
|
245
|
+
*
|
|
246
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
247
|
+
*
|
|
248
|
+
* @summary 手动创建快照
|
|
249
|
+
* @param {string} clusterId 指定要创建快照的集群ID。
|
|
250
|
+
* @param {CreateSnapshotReq} createSnapshotReq
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
createSnapshot(createSnapshotRequest) {
|
|
255
|
+
const options = (0, exports.ParamCreater)().createSnapshot(createSnapshotRequest);
|
|
256
|
+
// @ts-ignore
|
|
257
|
+
options['responseHeaders'] = [''];
|
|
258
|
+
return this.hcClient.sendRequest(options);
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* 此接口用于删除集群。集群删除将释放此集群的所有资源,包括客户数据。如果需要保留客户集群数据,建议在删除集群前先创建快照。
|
|
262
|
+
*
|
|
263
|
+
* >此接口亦可用于包年/包月集群退订。公安冻结的集群不能删除。
|
|
264
|
+
*
|
|
265
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
266
|
+
*
|
|
267
|
+
* @summary 删除集群
|
|
268
|
+
* @param {string} clusterId 指定删除集群ID。
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
deleteCluster(deleteClusterRequest) {
|
|
273
|
+
const options = (0, exports.ParamCreater)().deleteCluster(deleteClusterRequest);
|
|
274
|
+
// @ts-ignore
|
|
275
|
+
options['responseHeaders'] = [''];
|
|
276
|
+
return this.hcClient.sendRequest(options);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* 此接口用于删除集群标签。
|
|
280
|
+
*
|
|
281
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
282
|
+
*
|
|
283
|
+
* @summary 删除集群标签
|
|
284
|
+
* @param {string} clusterId 指定删除标签的集群ID。
|
|
285
|
+
* @param {string} resourceType 资源类型,当前固定值为“css-cluster”,表示是集群类型。
|
|
286
|
+
* @param {string} key 需要删除的标签名。
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
deleteClustersTags(deleteClustersTagsRequest) {
|
|
291
|
+
const options = (0, exports.ParamCreater)().deleteClustersTags(deleteClustersTagsRequest);
|
|
292
|
+
// @ts-ignore
|
|
293
|
+
options['responseHeaders'] = [''];
|
|
294
|
+
return this.hcClient.sendRequest(options);
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* 该接口用于删除自定义词库。
|
|
298
|
+
*
|
|
299
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
300
|
+
*
|
|
301
|
+
* @summary 删除自定义词库
|
|
302
|
+
* @param {string} clusterId 指定要删除自定义词库的集群ID。
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
deleteIkThesaurus(deleteIkThesaurusRequest) {
|
|
307
|
+
const options = (0, exports.ParamCreater)().deleteIkThesaurus(deleteIkThesaurusRequest);
|
|
308
|
+
// @ts-ignore
|
|
309
|
+
options['responseHeaders'] = [''];
|
|
310
|
+
return this.hcClient.sendRequest(options);
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* 该接口用于删除快照。
|
|
314
|
+
*
|
|
315
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
316
|
+
*
|
|
317
|
+
* @summary 删除快照
|
|
318
|
+
* @param {string} clusterId 删除快照所属的集群的ID。
|
|
319
|
+
* @param {string} snapshotId 要删除快照的ID。
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
deleteSnapshot(deleteSnapshotRequest) {
|
|
324
|
+
const options = (0, exports.ParamCreater)().deleteSnapshot(deleteSnapshotRequest);
|
|
325
|
+
// @ts-ignore
|
|
326
|
+
options['responseHeaders'] = [''];
|
|
327
|
+
return this.hcClient.sendRequest(options);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* 该接口用于下载安全证书。
|
|
331
|
+
*
|
|
332
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
333
|
+
*
|
|
334
|
+
* @summary 下载安全证书
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
downloadCert(downloadCertRequest) {
|
|
339
|
+
const options = (0, exports.ParamCreater)().downloadCert();
|
|
340
|
+
// @ts-ignore
|
|
341
|
+
options['responseHeaders'] = [''];
|
|
342
|
+
return this.hcClient.sendRequest(options);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* 该接口用于查询并显示集群列表以及集群的状态。
|
|
346
|
+
*
|
|
347
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
348
|
+
*
|
|
349
|
+
* @summary 查询集群列表
|
|
350
|
+
* @param {number} [start] 指定查询起始值,默认值为1,即从第1个集群开始查询。
|
|
351
|
+
* @param {number} [limit] 指定查询个数,默认值为10,即一次查询10个集群信息。
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
listClustersDetails(listClustersDetailsRequest) {
|
|
356
|
+
const options = (0, exports.ParamCreater)().listClustersDetails(listClustersDetailsRequest);
|
|
357
|
+
// @ts-ignore
|
|
358
|
+
options['responseHeaders'] = [''];
|
|
359
|
+
return this.hcClient.sendRequest(options);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* 该接口用于查询指定region下的所有标签集合。
|
|
363
|
+
*
|
|
364
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
365
|
+
*
|
|
366
|
+
* @summary 查询所有标签
|
|
367
|
+
* @param {string} resourceType 资源类型,当前固定值为“css-cluster”,表示是集群类型。
|
|
368
|
+
* @param {*} [options] Override http request option.
|
|
369
|
+
* @throws {RequiredError}
|
|
370
|
+
*/
|
|
371
|
+
listClustersTags(listClustersTagsRequest) {
|
|
372
|
+
const options = (0, exports.ParamCreater)().listClustersTags(listClustersTagsRequest);
|
|
373
|
+
// @ts-ignore
|
|
374
|
+
options['responseHeaders'] = [''];
|
|
375
|
+
return this.hcClient.sendRequest(options);
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* 该接口用于查询并显示支持的实例规格对应的ID。
|
|
379
|
+
*
|
|
380
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
381
|
+
*
|
|
382
|
+
* @summary 获取实例规格列表
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
listFlavors(listFlavorsRequest) {
|
|
387
|
+
const options = (0, exports.ParamCreater)().listFlavors();
|
|
388
|
+
// @ts-ignore
|
|
389
|
+
options['responseHeaders'] = [''];
|
|
390
|
+
return this.hcClient.sendRequest(options);
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* 该接口用于查询具体某个集群的日志任务记录列表。
|
|
394
|
+
*
|
|
395
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
396
|
+
*
|
|
397
|
+
* @summary 查询作业列表
|
|
398
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
399
|
+
* @param {number} [start] 指定查询起始值,默认值为1,即从第1个任务开始查询。
|
|
400
|
+
* @param {number} [limit] 指定查询个数,默认值为10,即一次查询10个任务信息。
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
listLogsJob(listLogsJobRequest) {
|
|
405
|
+
const options = (0, exports.ParamCreater)().listLogsJob(listLogsJobRequest);
|
|
406
|
+
// @ts-ignore
|
|
407
|
+
options['responseHeaders'] = [''];
|
|
408
|
+
return this.hcClient.sendRequest(options);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* 该接口用于查询集群的所有快照。
|
|
412
|
+
*
|
|
413
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
414
|
+
*
|
|
415
|
+
* @summary 查询快照列表
|
|
416
|
+
* @param {string} clusterId 指定需查询的快照所属的集群的ID。
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
listSnapshots(listSnapshotsRequest) {
|
|
421
|
+
const options = (0, exports.ParamCreater)().listSnapshots(listSnapshotsRequest);
|
|
422
|
+
// @ts-ignore
|
|
423
|
+
options['responseHeaders'] = [''];
|
|
424
|
+
return this.hcClient.sendRequest(options);
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* 该接口用于获取当前集群现有的参数配置列表。
|
|
428
|
+
*
|
|
429
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
430
|
+
*
|
|
431
|
+
* @summary 获取参数配置列表
|
|
432
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
listYmls(listYmlsRequest) {
|
|
437
|
+
const options = (0, exports.ParamCreater)().listYmls(listYmlsRequest);
|
|
438
|
+
// @ts-ignore
|
|
439
|
+
options['responseHeaders'] = [''];
|
|
440
|
+
return this.hcClient.sendRequest(options);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* 该接口可获取参数配置的任务操作列表。
|
|
444
|
+
*
|
|
445
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
446
|
+
*
|
|
447
|
+
* @summary 获取参数配置任务列表
|
|
448
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
449
|
+
* @param {number} [start] 指定查询起始值,默认值为1,即从第1个任务开始查询。
|
|
450
|
+
* @param {number} [limit] 指定查询个数,默认值为10,即一次查询10个任务信息。
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
listYmlsJob(listYmlsJobRequest) {
|
|
455
|
+
const options = (0, exports.ParamCreater)().listYmlsJob(listYmlsJobRequest);
|
|
456
|
+
// @ts-ignore
|
|
457
|
+
options['responseHeaders'] = [''];
|
|
458
|
+
return this.hcClient.sendRequest(options);
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* 该接口用于修改集群密码。
|
|
462
|
+
*
|
|
463
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
464
|
+
*
|
|
465
|
+
* @summary 修改密码
|
|
466
|
+
* @param {string} clusterId 指定待修改集群密码的集群ID。
|
|
467
|
+
* @param {ResetPasswordReq} resetPasswordReq
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
resetPassword(resetPasswordRequest) {
|
|
472
|
+
const options = (0, exports.ParamCreater)().resetPassword(resetPasswordRequest);
|
|
473
|
+
// @ts-ignore
|
|
474
|
+
options['responseHeaders'] = [''];
|
|
475
|
+
return this.hcClient.sendRequest(options);
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* 此接口用于重启集群,重启集群将导致业务中断。
|
|
479
|
+
*
|
|
480
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
481
|
+
*
|
|
482
|
+
* @summary 重启集群
|
|
483
|
+
* @param {string} clusterId 指定重启集群ID。
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
restartCluster(restartClusterRequest) {
|
|
488
|
+
const options = (0, exports.ParamCreater)().restartCluster(restartClusterRequest);
|
|
489
|
+
// @ts-ignore
|
|
490
|
+
options['responseHeaders'] = [''];
|
|
491
|
+
return this.hcClient.sendRequest(options);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* 该接口用于手动恢复一个快照。
|
|
495
|
+
*
|
|
496
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
497
|
+
*
|
|
498
|
+
* @summary 恢复快照
|
|
499
|
+
* @param {string} clusterId 恢复快照所属的集群ID。
|
|
500
|
+
* @param {string} snapshotId 快照ID。
|
|
501
|
+
* @param {RestoreSnapshotReq} restoreSnapshotReq
|
|
502
|
+
* @param {*} [options] Override http request option.
|
|
503
|
+
* @throws {RequiredError}
|
|
504
|
+
*/
|
|
505
|
+
restoreSnapshot(restoreSnapshotRequest) {
|
|
506
|
+
const options = (0, exports.ParamCreater)().restoreSnapshot(restoreSnapshotRequest);
|
|
507
|
+
// @ts-ignore
|
|
508
|
+
options['responseHeaders'] = [''];
|
|
509
|
+
return this.hcClient.sendRequest(options);
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* 该接口用于查询自动创建快照策略。
|
|
513
|
+
*
|
|
514
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
515
|
+
*
|
|
516
|
+
* @summary 查询自动创建快照的策略
|
|
517
|
+
* @param {string} clusterId 指定需查询自动创建快照策略的集群ID。
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
showAutoCreatePolicy(showAutoCreatePolicyRequest) {
|
|
522
|
+
const options = (0, exports.ParamCreater)().showAutoCreatePolicy(showAutoCreatePolicyRequest);
|
|
523
|
+
// @ts-ignore
|
|
524
|
+
options['responseHeaders'] = [''];
|
|
525
|
+
return this.hcClient.sendRequest(options);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* 该接口用于查询并显示单个集群详情。
|
|
529
|
+
*
|
|
530
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
531
|
+
*
|
|
532
|
+
* @summary 查询集群详情
|
|
533
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
showClusterDetail(showClusterDetailRequest) {
|
|
538
|
+
const options = (0, exports.ParamCreater)().showClusterDetail(showClusterDetailRequest);
|
|
539
|
+
// @ts-ignore
|
|
540
|
+
options['responseHeaders'] = [''];
|
|
541
|
+
return this.hcClient.sendRequest(options);
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* 该接口用于查询指定集群的标签信息。
|
|
545
|
+
*
|
|
546
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
547
|
+
*
|
|
548
|
+
* @summary 查询指定集群的标签
|
|
549
|
+
* @param {string} clusterId 指定待查询的集群ID。
|
|
550
|
+
* @param {string} resourceType 资源类型,当前固定值为“css-cluster”,表示是集群类型。
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
showClusterTag(showClusterTagRequest) {
|
|
555
|
+
const options = (0, exports.ParamCreater)().showClusterTag(showClusterTagRequest);
|
|
556
|
+
// @ts-ignore
|
|
557
|
+
options['responseHeaders'] = [''];
|
|
558
|
+
return this.hcClient.sendRequest(options);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* 该接口用于日志基础配置查询。
|
|
562
|
+
*
|
|
563
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
564
|
+
*
|
|
565
|
+
* @summary 查询日志基础配置
|
|
566
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
showGetLogSetting(showGetLogSettingRequest) {
|
|
571
|
+
const options = (0, exports.ParamCreater)().showGetLogSetting(showGetLogSettingRequest);
|
|
572
|
+
// @ts-ignore
|
|
573
|
+
options['responseHeaders'] = [''];
|
|
574
|
+
return this.hcClient.sendRequest(options);
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* 该接口用于查询自定义词库的加载状态。
|
|
578
|
+
*
|
|
579
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
580
|
+
*
|
|
581
|
+
* @summary 查询自定义词库状态
|
|
582
|
+
* @param {string} clusterId 指定需查询词库状态的集群ID。
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
*/
|
|
586
|
+
showIkThesaurus(showIkThesaurusRequest) {
|
|
587
|
+
const options = (0, exports.ParamCreater)().showIkThesaurus(showIkThesaurusRequest);
|
|
588
|
+
// @ts-ignore
|
|
589
|
+
options['responseHeaders'] = [''];
|
|
590
|
+
return this.hcClient.sendRequest(options);
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* 该接口用于查询日志信息。
|
|
594
|
+
*
|
|
595
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
596
|
+
*
|
|
597
|
+
* @summary 查询日志
|
|
598
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
599
|
+
* @param {GetLogBackupReq} getLogBackupReq
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
showLogBackup(showLogBackupRequest) {
|
|
604
|
+
const options = (0, exports.ParamCreater)().showLogBackup(showLogBackupRequest);
|
|
605
|
+
// @ts-ignore
|
|
606
|
+
options['responseHeaders'] = [''];
|
|
607
|
+
return this.hcClient.sendRequest(options);
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* 该接口用于获取终端节点连接。
|
|
611
|
+
*
|
|
612
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
613
|
+
*
|
|
614
|
+
* @summary 获取终端节点连接
|
|
615
|
+
* @param {string} clusterId 指定待查询的集群ID。
|
|
616
|
+
* @param {number} [start] 指定查询起始值,默认值为1,即从第1个任务开始查询。
|
|
617
|
+
* @param {number} [limit] 指定查询个数,默认值为10,即一次查询10个任务信息。
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
showVpcepConnection(showVpcepConnectionRequest) {
|
|
622
|
+
const options = (0, exports.ParamCreater)().showVpcepConnection(showVpcepConnectionRequest);
|
|
623
|
+
// @ts-ignore
|
|
624
|
+
options['responseHeaders'] = [''];
|
|
625
|
+
return this.hcClient.sendRequest(options);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。
|
|
629
|
+
*
|
|
630
|
+
*
|
|
631
|
+
* - “OBS桶”:快照存储的OBS桶位置。
|
|
632
|
+
*
|
|
633
|
+
* - “备份路径”:快照在OBS桶中的存放路径。
|
|
634
|
+
*
|
|
635
|
+
* - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。
|
|
636
|
+
*
|
|
637
|
+
* >自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](UpdateSnapshotSetting.xml)。
|
|
638
|
+
*
|
|
639
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
640
|
+
*
|
|
641
|
+
* @summary 自动设置集群快照的基础配置(不推荐使用)
|
|
642
|
+
* @param {string} clusterId 指定要备份的集群ID。
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
startAutoSetting(startAutoSettingRequest) {
|
|
647
|
+
const options = (0, exports.ParamCreater)().startAutoSetting(startAutoSettingRequest);
|
|
648
|
+
// @ts-ignore
|
|
649
|
+
options['responseHeaders'] = [''];
|
|
650
|
+
return this.hcClient.sendRequest(options);
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* 该接口用于日志自动备份策略开启。
|
|
654
|
+
*
|
|
655
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
656
|
+
*
|
|
657
|
+
* @summary 开启日志自动备份策略
|
|
658
|
+
* @param {string} clusterId 指定开启日志备份的集群ID。
|
|
659
|
+
* @param {StartLogAutoBackupPolicyReq} startLogAutoBackupPolicyReq
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
startLogAutoBackupPolicy(startLogAutoBackupPolicyRequest) {
|
|
664
|
+
const options = (0, exports.ParamCreater)().startLogAutoBackupPolicy(startLogAutoBackupPolicyRequest);
|
|
665
|
+
// @ts-ignore
|
|
666
|
+
options['responseHeaders'] = [''];
|
|
667
|
+
return this.hcClient.sendRequest(options);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* 该接口用于开启日志功能。
|
|
671
|
+
*
|
|
672
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
673
|
+
*
|
|
674
|
+
* @summary 开启日志功能
|
|
675
|
+
* @param {string} clusterId 指定开启日志的集群ID。
|
|
676
|
+
* @param {StartLogsReq} startLogsReq 开启日志请求体。
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
startLogs(startLogsRequest) {
|
|
681
|
+
const options = (0, exports.ParamCreater)().startLogs(startLogsRequest);
|
|
682
|
+
// @ts-ignore
|
|
683
|
+
options['responseHeaders'] = [''];
|
|
684
|
+
return this.hcClient.sendRequest(options);
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* 该接口用于开启公网访问控制白名单。
|
|
688
|
+
*
|
|
689
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
690
|
+
*
|
|
691
|
+
* @summary 开启公网访问控制白名单
|
|
692
|
+
* @param {string} clusterId 指定开启公网访问控制白名单集群ID。
|
|
693
|
+
* @param {StartPublicWhitelistReq} startPublicWhitelistReq
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
startPublicWhitelist(startPublicWhitelistRequest) {
|
|
698
|
+
const options = (0, exports.ParamCreater)().startPublicWhitelist(startPublicWhitelistRequest);
|
|
699
|
+
// @ts-ignore
|
|
700
|
+
options['responseHeaders'] = [''];
|
|
701
|
+
return this.hcClient.sendRequest(options);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* 该接口用于开启终端节点服务。
|
|
705
|
+
*
|
|
706
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
707
|
+
*
|
|
708
|
+
* @summary 开启终端节点服务
|
|
709
|
+
* @param {string} clusterId 指定开启终端节点的集群ID。
|
|
710
|
+
* @param {StartVpecpReq} startVpecpReq
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
startVpecp(startVpecpRequest) {
|
|
715
|
+
const options = (0, exports.ParamCreater)().startVpecp(startVpecpRequest);
|
|
716
|
+
// @ts-ignore
|
|
717
|
+
options['responseHeaders'] = [''];
|
|
718
|
+
return this.hcClient.sendRequest(options);
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* 该接口用于日志自动备份策略关闭。
|
|
722
|
+
*
|
|
723
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
724
|
+
*
|
|
725
|
+
* @summary 关闭日志自动备份策略
|
|
726
|
+
* @param {string} clusterId 指定关闭日志自动备份的集群ID。
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
stopLogAutoBackupPolicy(stopLogAutoBackupPolicyRequest) {
|
|
731
|
+
const options = (0, exports.ParamCreater)().stopLogAutoBackupPolicy(stopLogAutoBackupPolicyRequest);
|
|
732
|
+
// @ts-ignore
|
|
733
|
+
options['responseHeaders'] = [''];
|
|
734
|
+
return this.hcClient.sendRequest(options);
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* 该接口用于关闭日志功能。
|
|
738
|
+
*
|
|
739
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
740
|
+
*
|
|
741
|
+
* @summary 关闭日志功能
|
|
742
|
+
* @param {string} clusterId 指定关闭日志的集群ID。
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
stopLogs(stopLogsRequest) {
|
|
747
|
+
const options = (0, exports.ParamCreater)().stopLogs(stopLogsRequest);
|
|
748
|
+
// @ts-ignore
|
|
749
|
+
options['responseHeaders'] = [''];
|
|
750
|
+
return this.hcClient.sendRequest(options);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* 该接口用于关闭公网访问控制白名单。
|
|
754
|
+
*
|
|
755
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
756
|
+
*
|
|
757
|
+
* @summary 关闭公网访问控制白名单
|
|
758
|
+
* @param {string} clusterId 指定关闭公网访问控制白名单集群ID。
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
*/
|
|
762
|
+
stopPublicWhitelist(stopPublicWhitelistRequest) {
|
|
763
|
+
const options = (0, exports.ParamCreater)().stopPublicWhitelist(stopPublicWhitelistRequest);
|
|
764
|
+
// @ts-ignore
|
|
765
|
+
options['responseHeaders'] = [''];
|
|
766
|
+
return this.hcClient.sendRequest(options);
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* 该接口用于停用快照功能。
|
|
770
|
+
*
|
|
771
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
772
|
+
*
|
|
773
|
+
* @summary 停用快照功能
|
|
774
|
+
* @param {string} clusterId 停用快照所属的集群的ID。
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
stopSnapshot(stopSnapshotRequest) {
|
|
779
|
+
const options = (0, exports.ParamCreater)().stopSnapshot(stopSnapshotRequest);
|
|
780
|
+
// @ts-ignore
|
|
781
|
+
options['responseHeaders'] = [''];
|
|
782
|
+
return this.hcClient.sendRequest(options);
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* 该接口用于关闭终端节点服务。
|
|
786
|
+
*
|
|
787
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
788
|
+
*
|
|
789
|
+
* @summary 关闭终端节点服务
|
|
790
|
+
* @param {string} clusterId 指定待关闭终端节点的集群ID。
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
stopVpecp(stopVpecpRequest) {
|
|
795
|
+
const options = (0, exports.ParamCreater)().stopVpecp(stopVpecpRequest);
|
|
796
|
+
// @ts-ignore
|
|
797
|
+
options['responseHeaders'] = [''];
|
|
798
|
+
return this.hcClient.sendRequest(options);
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* 该接口用于对集群批量添加或删除标签。
|
|
802
|
+
*
|
|
803
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
804
|
+
*
|
|
805
|
+
* @summary 批量添加或删除集群标签
|
|
806
|
+
* @param {string} clusterId 指定批量添加标签的集群ID。
|
|
807
|
+
* @param {string} resourceType 资源类型,当前固定值为“css-cluster”,表示是集群类型。
|
|
808
|
+
* @param {BatchAddOrDeleteTagOnClusterReq} batchAddOrDeleteTagOnClusterReq
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
updateBatchClustersTags(updateBatchClustersTagsRequest) {
|
|
813
|
+
const options = (0, exports.ParamCreater)().updateBatchClustersTags(updateBatchClustersTagsRequest);
|
|
814
|
+
// @ts-ignore
|
|
815
|
+
options['responseHeaders'] = [''];
|
|
816
|
+
return this.hcClient.sendRequest(options);
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* 该接口用于修改集群名称。
|
|
820
|
+
*
|
|
821
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
822
|
+
*
|
|
823
|
+
* @summary 修改集群名称
|
|
824
|
+
* @param {string} clusterId 指定待更改集群名称的集群ID。
|
|
825
|
+
* @param {UpdateClusterNameReq} updateClusterNameReq
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
updateClusterName(updateClusterNameRequest) {
|
|
830
|
+
const options = (0, exports.ParamCreater)().updateClusterName(updateClusterNameRequest);
|
|
831
|
+
// @ts-ignore
|
|
832
|
+
options['responseHeaders'] = [''];
|
|
833
|
+
return this.hcClient.sendRequest(options);
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* 该接口用于集群扩容实例(仅支持扩容elasticsearch实例)。只扩容普通节点,且只针对要扩容的集群实例不存在特殊节点(Master、Client、冷数据节点)的情况。
|
|
837
|
+
*
|
|
838
|
+
* 集群扩容实例的数量和存储容量,请参考[扩容实例的数量和存储容量](UpdateExtendInstanceStorage.xml)。
|
|
839
|
+
*
|
|
840
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
841
|
+
*
|
|
842
|
+
* @summary 扩容集群
|
|
843
|
+
* @param {string} clusterId 指定待扩容的集群ID。
|
|
844
|
+
* @param {ExtendClusterReq} extendClusterReq
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
updateExtendCluster(updateExtendClusterRequest) {
|
|
849
|
+
const options = (0, exports.ParamCreater)().updateExtendCluster(updateExtendClusterRequest);
|
|
850
|
+
// @ts-ignore
|
|
851
|
+
options['responseHeaders'] = [''];
|
|
852
|
+
return this.hcClient.sendRequest(options);
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* 该接口用于集群扩容不同类型实例的个数以及存储容量。已经存在独立Master、Client、冷数据节点的集群使用该接口扩容。
|
|
856
|
+
*
|
|
857
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
858
|
+
*
|
|
859
|
+
* @summary 扩容实例的数量和存储容量
|
|
860
|
+
* @param {string} clusterId 指定待扩容的集群ID。
|
|
861
|
+
* @param {RoleExtendReq} roleExtendReq
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
*/
|
|
865
|
+
updateExtendInstanceStorage(updateExtendInstanceStorageRequest) {
|
|
866
|
+
const options = (0, exports.ParamCreater)().updateExtendInstanceStorage(updateExtendInstanceStorageRequest);
|
|
867
|
+
// @ts-ignore
|
|
868
|
+
options['responseHeaders'] = [''];
|
|
869
|
+
return this.hcClient.sendRequest(options);
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* 该接口用于变更集群规格。只支持变更ess节点类型。
|
|
873
|
+
*
|
|
874
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
875
|
+
*
|
|
876
|
+
* @summary 变更规格
|
|
877
|
+
* @param {string} clusterId 指定待更改规格的集群ID。
|
|
878
|
+
* @param {UpdateFlavorReq} updateFlavorReq
|
|
879
|
+
* @param {*} [options] Override http request option.
|
|
880
|
+
* @throws {RequiredError}
|
|
881
|
+
*/
|
|
882
|
+
updateFlavor(updateFlavorRequest) {
|
|
883
|
+
const options = (0, exports.ParamCreater)().updateFlavor(updateFlavorRequest);
|
|
884
|
+
// @ts-ignore
|
|
885
|
+
options['responseHeaders'] = [''];
|
|
886
|
+
return this.hcClient.sendRequest(options);
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* 修改集群规格。支持修改:
|
|
890
|
+
* - ess: 数据节点。
|
|
891
|
+
* - ess-cold: 冷数据节点。
|
|
892
|
+
* - ess-client: Client节点。
|
|
893
|
+
* - ess-master: Master节点。
|
|
894
|
+
*
|
|
895
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
896
|
+
*
|
|
897
|
+
* @summary 指定节点类型规格变更
|
|
898
|
+
* @param {string} clusterId 指定待更改规格的集群ID。
|
|
899
|
+
* @param {string} types 指定待更改的集群节点类型。 - ess:数据节点。 - ess-cold:冷数据节点。 - ess-client:Client节点。 - ess-master:Master节点。
|
|
900
|
+
* @param {UpdateFlavorByTypeReq} updateFlavorByTypeReq
|
|
901
|
+
* @param {*} [options] Override http request option.
|
|
902
|
+
* @throws {RequiredError}
|
|
903
|
+
*/
|
|
904
|
+
updateFlavorByType(updateFlavorByTypeRequest) {
|
|
905
|
+
const options = (0, exports.ParamCreater)().updateFlavorByType(updateFlavorByTypeRequest);
|
|
906
|
+
// @ts-ignore
|
|
907
|
+
options['responseHeaders'] = [''];
|
|
908
|
+
return this.hcClient.sendRequest(options);
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* 该接口用于替换失败节点。
|
|
912
|
+
*
|
|
913
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
914
|
+
*
|
|
915
|
+
* @summary 节点替换
|
|
916
|
+
* @param {string} clusterId 指定替换集群ID。
|
|
917
|
+
* @param {string} instanceId 指定替换节点ID。
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
updateInstance(updateInstanceRequest) {
|
|
922
|
+
const options = (0, exports.ParamCreater)().updateInstance(updateInstanceRequest);
|
|
923
|
+
// @ts-ignore
|
|
924
|
+
options['responseHeaders'] = [''];
|
|
925
|
+
return this.hcClient.sendRequest(options);
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* 该接口用于修改日志基础配置。
|
|
929
|
+
*
|
|
930
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
931
|
+
*
|
|
932
|
+
* @summary 修改日志基础配置
|
|
933
|
+
* @param {string} clusterId 指定更改日志基础配置的集群ID。
|
|
934
|
+
* @param {UpdateLogSettingReq} updateLogSettingReq 更新日志配置请求体。
|
|
935
|
+
* @param {*} [options] Override http request option.
|
|
936
|
+
* @throws {RequiredError}
|
|
937
|
+
*/
|
|
938
|
+
updateLogSetting(updateLogSettingRequest) {
|
|
939
|
+
const options = (0, exports.ParamCreater)().updateLogSetting(updateLogSettingRequest);
|
|
940
|
+
// @ts-ignore
|
|
941
|
+
options['responseHeaders'] = [''];
|
|
942
|
+
return this.hcClient.sendRequest(options);
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* 该接口用于按需集群转包周期集群。
|
|
946
|
+
*
|
|
947
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
948
|
+
*
|
|
949
|
+
* @summary 按需集群转包周期
|
|
950
|
+
* @param {string} clusterId 指定待转包周期的集群ID。
|
|
951
|
+
* @param {PeriodReq} periodReq
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
updateOndemandClusterToPeriod(updateOndemandClusterToPeriodRequest) {
|
|
956
|
+
const options = (0, exports.ParamCreater)().updateOndemandClusterToPeriod(updateOndemandClusterToPeriodRequest);
|
|
957
|
+
// @ts-ignore
|
|
958
|
+
options['responseHeaders'] = [''];
|
|
959
|
+
return this.hcClient.sendRequest(options);
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* 该接口用于修改公网访问带宽。
|
|
963
|
+
*
|
|
964
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
965
|
+
*
|
|
966
|
+
* @summary 修改公网访问带宽
|
|
967
|
+
* @param {string} clusterId 指定修改公网访问带宽集群ID。
|
|
968
|
+
* @param {BindPublicReqEipReq} bindPublicReqEip
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
updatePublicBandWidth(updatePublicBandWidthRequest) {
|
|
973
|
+
const options = (0, exports.ParamCreater)().updatePublicBandWidth(updatePublicBandWidthRequest);
|
|
974
|
+
// @ts-ignore
|
|
975
|
+
options['responseHeaders'] = [''];
|
|
976
|
+
return this.hcClient.sendRequest(options);
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* 该接口用于集群对不同类型实例的个数以及存储容量进行缩容。包周期类型的集群不支持通过api进行指定节点类型缩容操作。
|
|
980
|
+
*
|
|
981
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
982
|
+
*
|
|
983
|
+
* @summary 指定节点类型缩容
|
|
984
|
+
* @param {string} clusterId 指定待缩容的集群ID。
|
|
985
|
+
* @param {ShrinkClusterReq} shrinkClusterReq
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
updateShrinkCluster(updateShrinkClusterRequest) {
|
|
990
|
+
const options = (0, exports.ParamCreater)().updateShrinkCluster(updateShrinkClusterRequest);
|
|
991
|
+
// @ts-ignore
|
|
992
|
+
options['responseHeaders'] = [''];
|
|
993
|
+
return this.hcClient.sendRequest(options);
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* 该接口可以对集群现有节点中指定节点进行缩容。包周期类型的集群不支持通过api进行指定节点缩容操作。
|
|
997
|
+
*
|
|
998
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
999
|
+
*
|
|
1000
|
+
* @summary 指定节点缩容
|
|
1001
|
+
* @param {string} clusterId 指定待缩容的集群ID。
|
|
1002
|
+
* @param {ShrinkNodesReq} shrinkNodesReq
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
updateShrinkNodes(updateShrinkNodesRequest) {
|
|
1007
|
+
const options = (0, exports.ParamCreater)().updateShrinkNodes(updateShrinkNodesRequest);
|
|
1008
|
+
// @ts-ignore
|
|
1009
|
+
options['responseHeaders'] = [''];
|
|
1010
|
+
return this.hcClient.sendRequest(options);
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* 该接口用于修改集群快照的基础配置,可修改OBS桶和IAM委托。
|
|
1014
|
+
*
|
|
1015
|
+
* 可以使用该接口开启快照功能。
|
|
1016
|
+
*
|
|
1017
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1018
|
+
*
|
|
1019
|
+
* @summary 修改集群快照的基础配置
|
|
1020
|
+
* @param {string} clusterId 指定待操作的集群ID。
|
|
1021
|
+
* @param {UpdateSnapshotSettingReq} updateSnapshotSettingReq
|
|
1022
|
+
* @param {*} [options] Override http request option.
|
|
1023
|
+
* @throws {RequiredError}
|
|
1024
|
+
*/
|
|
1025
|
+
updateSnapshotSetting(updateSnapshotSettingRequest) {
|
|
1026
|
+
const options = (0, exports.ParamCreater)().updateSnapshotSetting(updateSnapshotSettingRequest);
|
|
1027
|
+
// @ts-ignore
|
|
1028
|
+
options['responseHeaders'] = [''];
|
|
1029
|
+
return this.hcClient.sendRequest(options);
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* 该接口用于关闭公网访问。包周期类型的集群不支持通过api进行关闭公网访问。
|
|
1033
|
+
*
|
|
1034
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1035
|
+
*
|
|
1036
|
+
* @summary 关闭公网访问
|
|
1037
|
+
* @param {string} clusterId 指定关闭公网访问集群ID。
|
|
1038
|
+
* @param {UnBindPublicReq} unBindPublicReq
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
updateUnbindPublic(updateUnbindPublicRequest) {
|
|
1043
|
+
const options = (0, exports.ParamCreater)().updateUnbindPublic(updateUnbindPublicRequest);
|
|
1044
|
+
// @ts-ignore
|
|
1045
|
+
options['responseHeaders'] = [''];
|
|
1046
|
+
return this.hcClient.sendRequest(options);
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* 该接口用于更新终端节点连接。
|
|
1050
|
+
*
|
|
1051
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1052
|
+
*
|
|
1053
|
+
* @summary 更新终端节点连接
|
|
1054
|
+
* @param {string} clusterId 指定更新终端节点的集群ID。
|
|
1055
|
+
* @param {UpdateVpcepConnectionReq} updateVpcepConnectionReq
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
updateVpcepConnection(updateVpcepConnectionRequest) {
|
|
1060
|
+
const options = (0, exports.ParamCreater)().updateVpcepConnection(updateVpcepConnectionRequest);
|
|
1061
|
+
// @ts-ignore
|
|
1062
|
+
options['responseHeaders'] = [''];
|
|
1063
|
+
return this.hcClient.sendRequest(options);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* 该接口用于修改终端节点服务白名单。
|
|
1067
|
+
*
|
|
1068
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1069
|
+
*
|
|
1070
|
+
* @summary 修改终端节点服务白名单
|
|
1071
|
+
* @param {string} clusterId 指定待更改的集群ID。
|
|
1072
|
+
* @param {UpdateVpcepWhitelistReq} updateVpcepWhitelistReq
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
*/
|
|
1076
|
+
updateVpcepWhitelist(updateVpcepWhitelistRequest) {
|
|
1077
|
+
const options = (0, exports.ParamCreater)().updateVpcepWhitelist(updateVpcepWhitelistRequest);
|
|
1078
|
+
// @ts-ignore
|
|
1079
|
+
options['responseHeaders'] = [''];
|
|
1080
|
+
return this.hcClient.sendRequest(options);
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* 该接口用于修改参数配置。
|
|
1084
|
+
*
|
|
1085
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1086
|
+
*
|
|
1087
|
+
* @summary 修改参数配置
|
|
1088
|
+
* @param {string} clusterId 指定修改参数配置的集群ID。
|
|
1089
|
+
* @param {UpdateYmlsReq} updateYmlsReq
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
*/
|
|
1093
|
+
updateYmls(updateYmlsRequest) {
|
|
1094
|
+
const options = (0, exports.ParamCreater)().updateYmls(updateYmlsRequest);
|
|
1095
|
+
// @ts-ignore
|
|
1096
|
+
options['responseHeaders'] = [''];
|
|
1097
|
+
return this.hcClient.sendRequest(options);
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* 该接口用于开启Kibana公网访问。
|
|
1101
|
+
*
|
|
1102
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1103
|
+
*
|
|
1104
|
+
* @summary 开启Kibana公网访问
|
|
1105
|
+
* @param {string} clusterId 指定待开启kibana公网访问的集群ID。
|
|
1106
|
+
* @param {StartKibanaPublicReq} startKibanaPublicReq
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
*/
|
|
1110
|
+
startKibanaPublic(startKibanaPublicRequest) {
|
|
1111
|
+
const options = (0, exports.ParamCreater)().startKibanaPublic(startKibanaPublicRequest);
|
|
1112
|
+
// @ts-ignore
|
|
1113
|
+
options['responseHeaders'] = [''];
|
|
1114
|
+
return this.hcClient.sendRequest(options);
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* 该接口用于关闭Kibana公网访问控制。
|
|
1118
|
+
*
|
|
1119
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1120
|
+
*
|
|
1121
|
+
* @summary 关闭Kibana公网访问控制
|
|
1122
|
+
* @param {string} clusterId 指定关闭Kibana公网访问控制的集群ID。
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
*/
|
|
1126
|
+
stopPublicKibanaWhitelist(stopPublicKibanaWhitelistRequest) {
|
|
1127
|
+
const options = (0, exports.ParamCreater)().stopPublicKibanaWhitelist(stopPublicKibanaWhitelistRequest);
|
|
1128
|
+
// @ts-ignore
|
|
1129
|
+
options['responseHeaders'] = [''];
|
|
1130
|
+
return this.hcClient.sendRequest(options);
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* 该接口用于修改Kibana公网带宽。
|
|
1134
|
+
*
|
|
1135
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1136
|
+
*
|
|
1137
|
+
* @summary 修改Kibana公网带宽
|
|
1138
|
+
* @param {string} clusterId 指定待修改kibana公网带宽的集群ID。
|
|
1139
|
+
* @param {UpdatePublicKibanaBandwidthReq} updatePublicKibanaBandwidthReq
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
updateAlterKibana(updateAlterKibanaRequest) {
|
|
1144
|
+
const options = (0, exports.ParamCreater)().updateAlterKibana(updateAlterKibanaRequest);
|
|
1145
|
+
// @ts-ignore
|
|
1146
|
+
options['responseHeaders'] = [''];
|
|
1147
|
+
return this.hcClient.sendRequest(options);
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* 该接口用于关闭Kibana公网访问。包周期类型集群不支持通过api进行关闭Kibana公网访问。
|
|
1151
|
+
*
|
|
1152
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1153
|
+
*
|
|
1154
|
+
* @summary 关闭Kibana公网访问
|
|
1155
|
+
* @param {string} clusterId 指定待关闭的kibana公网访问的集群ID。
|
|
1156
|
+
* @param {CloseKibanaPublicReq} closeKibanaPublicReq
|
|
1157
|
+
* @param {*} [options] Override http request option.
|
|
1158
|
+
* @throws {RequiredError}
|
|
1159
|
+
*/
|
|
1160
|
+
updateCloseKibana(updateCloseKibanaRequest) {
|
|
1161
|
+
const options = (0, exports.ParamCreater)().updateCloseKibana(updateCloseKibanaRequest);
|
|
1162
|
+
// @ts-ignore
|
|
1163
|
+
options['responseHeaders'] = [''];
|
|
1164
|
+
return this.hcClient.sendRequest(options);
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* 该接口通过修改kibana白名单,修改kibana的访问权限。
|
|
1168
|
+
*
|
|
1169
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1170
|
+
*
|
|
1171
|
+
* @summary 修改Kibana公网访问控制
|
|
1172
|
+
* @param {string} clusterId 指定修改kibana的访问权限的集群ID。
|
|
1173
|
+
* @param {UpdatePublicKibanaWhitelistReq} updatePublicKibanaWhitelistReq
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
*/
|
|
1177
|
+
updatePublicKibanaWhitelist(updatePublicKibanaWhitelistRequest) {
|
|
1178
|
+
const options = (0, exports.ParamCreater)().updatePublicKibanaWhitelist(updatePublicKibanaWhitelistRequest);
|
|
1179
|
+
// @ts-ignore
|
|
1180
|
+
options['responseHeaders'] = [''];
|
|
1181
|
+
return this.hcClient.sendRequest(options);
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* 该接口用于添加到自定义模板。
|
|
1185
|
+
*
|
|
1186
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1187
|
+
*
|
|
1188
|
+
* @summary 添加到自定义模板
|
|
1189
|
+
* @param {string} clusterId 指定添加自定义模板的集群ID。
|
|
1190
|
+
* @param {AddFavoriteReq} addFavoriteReq 添加自定义模板请求体。
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
addFavorite(addFavoriteRequest) {
|
|
1195
|
+
const options = (0, exports.ParamCreater)().addFavorite(addFavoriteRequest);
|
|
1196
|
+
// @ts-ignore
|
|
1197
|
+
options['responseHeaders'] = [''];
|
|
1198
|
+
return this.hcClient.sendRequest(options);
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* 该接口用于创建配置文件。
|
|
1202
|
+
*
|
|
1203
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1204
|
+
*
|
|
1205
|
+
* @summary 创建配置文件
|
|
1206
|
+
* @param {string} clusterId 指定创建配置文件的集群ID。
|
|
1207
|
+
* @param {CreateCnfReq} createCnfReq 创建配置文件的请求体。
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
createCnf(createCnfRequest) {
|
|
1212
|
+
const options = (0, exports.ParamCreater)().createCnf(createCnfRequest);
|
|
1213
|
+
// @ts-ignore
|
|
1214
|
+
options['responseHeaders'] = [''];
|
|
1215
|
+
return this.hcClient.sendRequest(options);
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* 删除配置文件。
|
|
1219
|
+
*
|
|
1220
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1221
|
+
*
|
|
1222
|
+
* @summary 删除配置文件
|
|
1223
|
+
* @param {string} clusterId 指定删除配置文件的集群ID。
|
|
1224
|
+
* @param {DeleteConfReq} deleteConfReq
|
|
1225
|
+
* @param {*} [options] Override http request option.
|
|
1226
|
+
* @throws {RequiredError}
|
|
1227
|
+
*/
|
|
1228
|
+
deleteConf(deleteConfRequest) {
|
|
1229
|
+
const options = (0, exports.ParamCreater)().deleteConf(deleteConfRequest);
|
|
1230
|
+
// @ts-ignore
|
|
1231
|
+
options['responseHeaders'] = [''];
|
|
1232
|
+
return this.hcClient.sendRequest(options);
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
* 该接口用于删除自定义模板。
|
|
1236
|
+
*
|
|
1237
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1238
|
+
*
|
|
1239
|
+
* @summary 删除自定义模板
|
|
1240
|
+
* @param {DeleteTemplateReq} deleteTemplateReq
|
|
1241
|
+
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @throws {RequiredError}
|
|
1243
|
+
*/
|
|
1244
|
+
deleteTemplate(deleteTemplateRequest) {
|
|
1245
|
+
const options = (0, exports.ParamCreater)().deleteTemplate(deleteTemplateRequest);
|
|
1246
|
+
// @ts-ignore
|
|
1247
|
+
options['responseHeaders'] = [''];
|
|
1248
|
+
return this.hcClient.sendRequest(options);
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* 该接口用于查询操作记录。
|
|
1252
|
+
*
|
|
1253
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1254
|
+
*
|
|
1255
|
+
* @summary 查询操作记录
|
|
1256
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
1257
|
+
* @param {*} [options] Override http request option.
|
|
1258
|
+
* @throws {RequiredError}
|
|
1259
|
+
*/
|
|
1260
|
+
listActions(listActionsRequest) {
|
|
1261
|
+
const options = (0, exports.ParamCreater)().listActions(listActionsRequest);
|
|
1262
|
+
// @ts-ignore
|
|
1263
|
+
options['responseHeaders'] = [''];
|
|
1264
|
+
return this.hcClient.sendRequest(options);
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* 该接口用于查询配置文件列表。
|
|
1268
|
+
*
|
|
1269
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1270
|
+
*
|
|
1271
|
+
* @summary 查询配置文件列表
|
|
1272
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
*/
|
|
1276
|
+
listConfs(listConfsRequest) {
|
|
1277
|
+
const options = (0, exports.ParamCreater)().listConfs(listConfsRequest);
|
|
1278
|
+
// @ts-ignore
|
|
1279
|
+
options['responseHeaders'] = [''];
|
|
1280
|
+
return this.hcClient.sendRequest(options);
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* 该接口用于查询pipeline列表。
|
|
1284
|
+
*
|
|
1285
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1286
|
+
*
|
|
1287
|
+
* @summary 查询pipeline列表
|
|
1288
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
1289
|
+
* @param {*} [options] Override http request option.
|
|
1290
|
+
* @throws {RequiredError}
|
|
1291
|
+
*/
|
|
1292
|
+
listPipelines(listPipelinesRequest) {
|
|
1293
|
+
const options = (0, exports.ParamCreater)().listPipelines(listPipelinesRequest);
|
|
1294
|
+
// @ts-ignore
|
|
1295
|
+
options['responseHeaders'] = [''];
|
|
1296
|
+
return this.hcClient.sendRequest(options);
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* 该接口用于查询模板列表。
|
|
1300
|
+
*
|
|
1301
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1302
|
+
*
|
|
1303
|
+
* @summary 查询模板列表
|
|
1304
|
+
* @param {string} [type] 模板类型。custom为自定义模板,system为系统模板。不指定查询模板类型默认查找自定义模板和系统模板。
|
|
1305
|
+
* @param {*} [options] Override http request option.
|
|
1306
|
+
* @throws {RequiredError}
|
|
1307
|
+
*/
|
|
1308
|
+
listTemplates(listTemplatesRequest) {
|
|
1309
|
+
const options = (0, exports.ParamCreater)().listTemplates(listTemplatesRequest);
|
|
1310
|
+
// @ts-ignore
|
|
1311
|
+
options['responseHeaders'] = [''];
|
|
1312
|
+
return this.hcClient.sendRequest(options);
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* 该接口用于查询配置文件内容。
|
|
1316
|
+
*
|
|
1317
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1318
|
+
*
|
|
1319
|
+
* @summary 查询配置文件内容
|
|
1320
|
+
* @param {string} clusterId 指定查询集群ID。
|
|
1321
|
+
* @param {string} name 配置文件名称。
|
|
1322
|
+
* @param {*} [options] Override http request option.
|
|
1323
|
+
* @throws {RequiredError}
|
|
1324
|
+
*/
|
|
1325
|
+
showGetConfDetail(showGetConfDetailRequest) {
|
|
1326
|
+
const options = (0, exports.ParamCreater)().showGetConfDetail(showGetConfDetailRequest);
|
|
1327
|
+
// @ts-ignore
|
|
1328
|
+
options['responseHeaders'] = [''];
|
|
1329
|
+
return this.hcClient.sendRequest(options);
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* 该接口用于连通性测试。
|
|
1333
|
+
*
|
|
1334
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1335
|
+
*
|
|
1336
|
+
* @summary 连通性测试
|
|
1337
|
+
* @param {string} clusterId 指定待测试的集群ID。
|
|
1338
|
+
* @param {StartConnectivityTestReq} startConnectivityTestReq
|
|
1339
|
+
* @param {*} [options] Override http request option.
|
|
1340
|
+
* @throws {RequiredError}
|
|
1341
|
+
*/
|
|
1342
|
+
startConnectivityTest(startConnectivityTestRequest) {
|
|
1343
|
+
const options = (0, exports.ParamCreater)().startConnectivityTest(startConnectivityTestRequest);
|
|
1344
|
+
// @ts-ignore
|
|
1345
|
+
options['responseHeaders'] = [''];
|
|
1346
|
+
return this.hcClient.sendRequest(options);
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* 该接口用于启动pipeline迁移数据。
|
|
1350
|
+
*
|
|
1351
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1352
|
+
*
|
|
1353
|
+
* @summary 启动pipeline迁移数据
|
|
1354
|
+
* @param {string} clusterId 指定开启pipeline的集群ID。
|
|
1355
|
+
* @param {StartPipelineReq} startPipelineReq 启动pipeline迁移数据的请求体。
|
|
1356
|
+
* @param {*} [options] Override http request option.
|
|
1357
|
+
* @throws {RequiredError}
|
|
1358
|
+
*/
|
|
1359
|
+
startPipeline(startPipelineRequest) {
|
|
1360
|
+
const options = (0, exports.ParamCreater)().startPipeline(startPipelineRequest);
|
|
1361
|
+
// @ts-ignore
|
|
1362
|
+
options['responseHeaders'] = [''];
|
|
1363
|
+
return this.hcClient.sendRequest(options);
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* 该接口用于停止pipeline迁移数据。
|
|
1367
|
+
*
|
|
1368
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1369
|
+
*
|
|
1370
|
+
* @summary 停止pipeline迁移数据
|
|
1371
|
+
* @param {string} clusterId 指定停止pipeline的集群ID。
|
|
1372
|
+
* @param {*} [options] Override http request option.
|
|
1373
|
+
* @throws {RequiredError}
|
|
1374
|
+
*/
|
|
1375
|
+
stopPipeline(stopPipelineRequest) {
|
|
1376
|
+
const options = (0, exports.ParamCreater)().stopPipeline(stopPipelineRequest);
|
|
1377
|
+
// @ts-ignore
|
|
1378
|
+
options['responseHeaders'] = [''];
|
|
1379
|
+
return this.hcClient.sendRequest(options);
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* 该接口用于更新配置文件。
|
|
1383
|
+
*
|
|
1384
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1385
|
+
*
|
|
1386
|
+
* @summary 更新配置文件
|
|
1387
|
+
* @param {string} clusterId 指定更新配置文件的集群ID。
|
|
1388
|
+
* @param {CreateCnfReq} updateCnfReq 更新配置文件的请求体。
|
|
1389
|
+
* @param {*} [options] Override http request option.
|
|
1390
|
+
* @throws {RequiredError}
|
|
1391
|
+
*/
|
|
1392
|
+
updateCnf(updateCnfRequest) {
|
|
1393
|
+
const options = (0, exports.ParamCreater)().updateCnf(updateCnfRequest);
|
|
1394
|
+
// @ts-ignore
|
|
1395
|
+
options['responseHeaders'] = [''];
|
|
1396
|
+
return this.hcClient.sendRequest(options);
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
exports.CssClient = CssClient;
|
|
1400
|
+
const ParamCreater = function () {
|
|
1401
|
+
return {
|
|
1402
|
+
/**
|
|
1403
|
+
* 由于集群数据面业务的增长或者不确定性,很难在一开始就能够把集群的规模形态想明白,该接口能够在非独立master和client的集群上面独立master、client角色。
|
|
1404
|
+
*
|
|
1405
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1406
|
+
*/
|
|
1407
|
+
addIndependentNode(addIndependentNodeRequest) {
|
|
1408
|
+
const options = {
|
|
1409
|
+
method: "POST",
|
|
1410
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/type/{type}/independent",
|
|
1411
|
+
contentType: "application/json",
|
|
1412
|
+
queryParams: {},
|
|
1413
|
+
pathParams: {},
|
|
1414
|
+
headers: {},
|
|
1415
|
+
data: {}
|
|
1416
|
+
};
|
|
1417
|
+
const localVarHeaderParameter = {};
|
|
1418
|
+
let body;
|
|
1419
|
+
let clusterId;
|
|
1420
|
+
let type;
|
|
1421
|
+
if (addIndependentNodeRequest !== null && addIndependentNodeRequest !== undefined) {
|
|
1422
|
+
if (addIndependentNodeRequest instanceof AddIndependentNodeRequest_1.AddIndependentNodeRequest) {
|
|
1423
|
+
clusterId = addIndependentNodeRequest.clusterId;
|
|
1424
|
+
type = addIndependentNodeRequest.type;
|
|
1425
|
+
body = addIndependentNodeRequest.body;
|
|
1426
|
+
}
|
|
1427
|
+
else {
|
|
1428
|
+
clusterId = addIndependentNodeRequest['cluster_id'];
|
|
1429
|
+
type = addIndependentNodeRequest['type'];
|
|
1430
|
+
body = addIndependentNodeRequest['body'];
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1434
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling addIndependentNode.');
|
|
1435
|
+
}
|
|
1436
|
+
if (type === null || type === undefined) {
|
|
1437
|
+
throw new RequiredError('type', 'Required parameter type was null or undefined when calling addIndependentNode.');
|
|
1438
|
+
}
|
|
1439
|
+
if (body === null || body === undefined) {
|
|
1440
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1441
|
+
}
|
|
1442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1443
|
+
options.data = body !== undefined ? body : {};
|
|
1444
|
+
options.pathParams = { 'cluster_id': clusterId, 'type': type, };
|
|
1445
|
+
options.headers = localVarHeaderParameter;
|
|
1446
|
+
return options;
|
|
1447
|
+
},
|
|
1448
|
+
/**
|
|
1449
|
+
* 该接口用于切换集群的安全模式。
|
|
1450
|
+
*
|
|
1451
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1452
|
+
*/
|
|
1453
|
+
changeMode(changeModeRequest) {
|
|
1454
|
+
const options = {
|
|
1455
|
+
method: "POST",
|
|
1456
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/mode/change",
|
|
1457
|
+
contentType: "application/json",
|
|
1458
|
+
queryParams: {},
|
|
1459
|
+
pathParams: {},
|
|
1460
|
+
headers: {},
|
|
1461
|
+
data: {}
|
|
1462
|
+
};
|
|
1463
|
+
const localVarHeaderParameter = {};
|
|
1464
|
+
let body;
|
|
1465
|
+
let clusterId;
|
|
1466
|
+
if (changeModeRequest !== null && changeModeRequest !== undefined) {
|
|
1467
|
+
if (changeModeRequest instanceof ChangeModeRequest_1.ChangeModeRequest) {
|
|
1468
|
+
clusterId = changeModeRequest.clusterId;
|
|
1469
|
+
body = changeModeRequest.body;
|
|
1470
|
+
}
|
|
1471
|
+
else {
|
|
1472
|
+
clusterId = changeModeRequest['cluster_id'];
|
|
1473
|
+
body = changeModeRequest['body'];
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1477
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling changeMode.');
|
|
1478
|
+
}
|
|
1479
|
+
if (body === null || body === undefined) {
|
|
1480
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1481
|
+
}
|
|
1482
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1483
|
+
options.data = body !== undefined ? body : {};
|
|
1484
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1485
|
+
options.headers = localVarHeaderParameter;
|
|
1486
|
+
return options;
|
|
1487
|
+
},
|
|
1488
|
+
/**
|
|
1489
|
+
* 该接口可以在集群创建成功后,修改安全组。
|
|
1490
|
+
*
|
|
1491
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1492
|
+
*/
|
|
1493
|
+
changeSecurityGroup(changeSecurityGroupRequest) {
|
|
1494
|
+
const options = {
|
|
1495
|
+
method: "POST",
|
|
1496
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/sg/change",
|
|
1497
|
+
contentType: "application/json",
|
|
1498
|
+
queryParams: {},
|
|
1499
|
+
pathParams: {},
|
|
1500
|
+
headers: {},
|
|
1501
|
+
data: {}
|
|
1502
|
+
};
|
|
1503
|
+
const localVarHeaderParameter = {};
|
|
1504
|
+
let body;
|
|
1505
|
+
let clusterId;
|
|
1506
|
+
if (changeSecurityGroupRequest !== null && changeSecurityGroupRequest !== undefined) {
|
|
1507
|
+
if (changeSecurityGroupRequest instanceof ChangeSecurityGroupRequest_1.ChangeSecurityGroupRequest) {
|
|
1508
|
+
clusterId = changeSecurityGroupRequest.clusterId;
|
|
1509
|
+
body = changeSecurityGroupRequest.body;
|
|
1510
|
+
}
|
|
1511
|
+
else {
|
|
1512
|
+
clusterId = changeSecurityGroupRequest['cluster_id'];
|
|
1513
|
+
body = changeSecurityGroupRequest['body'];
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1517
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling changeSecurityGroup.');
|
|
1518
|
+
}
|
|
1519
|
+
if (body === null || body === undefined) {
|
|
1520
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1521
|
+
}
|
|
1522
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1523
|
+
options.data = body !== undefined ? body : {};
|
|
1524
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1525
|
+
options.headers = localVarHeaderParameter;
|
|
1526
|
+
return options;
|
|
1527
|
+
},
|
|
1528
|
+
/**
|
|
1529
|
+
* 该接口用于设置自动创建快照,默认一天创建一个快照。
|
|
1530
|
+
*
|
|
1531
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1532
|
+
*/
|
|
1533
|
+
createAutoCreatePolicy(createAutoCreatePolicyRequest) {
|
|
1534
|
+
const options = {
|
|
1535
|
+
method: "POST",
|
|
1536
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy",
|
|
1537
|
+
contentType: "application/json",
|
|
1538
|
+
queryParams: {},
|
|
1539
|
+
pathParams: {},
|
|
1540
|
+
headers: {},
|
|
1541
|
+
data: {}
|
|
1542
|
+
};
|
|
1543
|
+
const localVarHeaderParameter = {};
|
|
1544
|
+
let body;
|
|
1545
|
+
let clusterId;
|
|
1546
|
+
if (createAutoCreatePolicyRequest !== null && createAutoCreatePolicyRequest !== undefined) {
|
|
1547
|
+
if (createAutoCreatePolicyRequest instanceof CreateAutoCreatePolicyRequest_1.CreateAutoCreatePolicyRequest) {
|
|
1548
|
+
clusterId = createAutoCreatePolicyRequest.clusterId;
|
|
1549
|
+
body = createAutoCreatePolicyRequest.body;
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
clusterId = createAutoCreatePolicyRequest['cluster_id'];
|
|
1553
|
+
body = createAutoCreatePolicyRequest['body'];
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1557
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createAutoCreatePolicy.');
|
|
1558
|
+
}
|
|
1559
|
+
if (body === null || body === undefined) {
|
|
1560
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1561
|
+
}
|
|
1562
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1563
|
+
options.data = body !== undefined ? body : {};
|
|
1564
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1565
|
+
options.headers = localVarHeaderParameter;
|
|
1566
|
+
return options;
|
|
1567
|
+
},
|
|
1568
|
+
/**
|
|
1569
|
+
* 该接口用于开启公网访问。
|
|
1570
|
+
*
|
|
1571
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1572
|
+
*/
|
|
1573
|
+
createBindPublic(createBindPublicRequest) {
|
|
1574
|
+
const options = {
|
|
1575
|
+
method: "POST",
|
|
1576
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/public/open",
|
|
1577
|
+
contentType: "application/json",
|
|
1578
|
+
queryParams: {},
|
|
1579
|
+
pathParams: {},
|
|
1580
|
+
headers: {},
|
|
1581
|
+
data: {}
|
|
1582
|
+
};
|
|
1583
|
+
const localVarHeaderParameter = {};
|
|
1584
|
+
let body;
|
|
1585
|
+
let clusterId;
|
|
1586
|
+
if (createBindPublicRequest !== null && createBindPublicRequest !== undefined) {
|
|
1587
|
+
if (createBindPublicRequest instanceof CreateBindPublicRequest_1.CreateBindPublicRequest) {
|
|
1588
|
+
clusterId = createBindPublicRequest.clusterId;
|
|
1589
|
+
body = createBindPublicRequest.body;
|
|
1590
|
+
}
|
|
1591
|
+
else {
|
|
1592
|
+
clusterId = createBindPublicRequest['cluster_id'];
|
|
1593
|
+
body = createBindPublicRequest['body'];
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1597
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createBindPublic.');
|
|
1598
|
+
}
|
|
1599
|
+
if (body === null || body === undefined) {
|
|
1600
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1601
|
+
}
|
|
1602
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1603
|
+
options.data = body !== undefined ? body : {};
|
|
1604
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1605
|
+
options.headers = localVarHeaderParameter;
|
|
1606
|
+
return options;
|
|
1607
|
+
},
|
|
1608
|
+
/**
|
|
1609
|
+
* 该接口用于创建集群。
|
|
1610
|
+
*
|
|
1611
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1612
|
+
*/
|
|
1613
|
+
createCluster(createClusterRequest) {
|
|
1614
|
+
const options = {
|
|
1615
|
+
method: "POST",
|
|
1616
|
+
url: "/v1.0/{project_id}/clusters",
|
|
1617
|
+
contentType: "application/json",
|
|
1618
|
+
queryParams: {},
|
|
1619
|
+
pathParams: {},
|
|
1620
|
+
headers: {},
|
|
1621
|
+
data: {}
|
|
1622
|
+
};
|
|
1623
|
+
const localVarHeaderParameter = {};
|
|
1624
|
+
let body;
|
|
1625
|
+
if (createClusterRequest !== null && createClusterRequest !== undefined) {
|
|
1626
|
+
if (createClusterRequest instanceof CreateClusterRequest_1.CreateClusterRequest) {
|
|
1627
|
+
body = createClusterRequest.body;
|
|
1628
|
+
}
|
|
1629
|
+
else {
|
|
1630
|
+
body = createClusterRequest['body'];
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
if (body === null || body === undefined) {
|
|
1634
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1635
|
+
}
|
|
1636
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1637
|
+
options.data = body !== undefined ? body : {};
|
|
1638
|
+
options.headers = localVarHeaderParameter;
|
|
1639
|
+
return options;
|
|
1640
|
+
},
|
|
1641
|
+
/**
|
|
1642
|
+
* 该接口用于给指定集群添加标签。
|
|
1643
|
+
*
|
|
1644
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1645
|
+
*/
|
|
1646
|
+
createClustersTags(createClustersTagsRequest) {
|
|
1647
|
+
const options = {
|
|
1648
|
+
method: "POST",
|
|
1649
|
+
url: "/v1.0/{project_id}/{resource_type}/{cluster_id}/tags",
|
|
1650
|
+
contentType: "application/json",
|
|
1651
|
+
queryParams: {},
|
|
1652
|
+
pathParams: {},
|
|
1653
|
+
headers: {},
|
|
1654
|
+
data: {}
|
|
1655
|
+
};
|
|
1656
|
+
const localVarHeaderParameter = {};
|
|
1657
|
+
let body;
|
|
1658
|
+
let clusterId;
|
|
1659
|
+
let resourceType;
|
|
1660
|
+
if (createClustersTagsRequest !== null && createClustersTagsRequest !== undefined) {
|
|
1661
|
+
if (createClustersTagsRequest instanceof CreateClustersTagsRequest_1.CreateClustersTagsRequest) {
|
|
1662
|
+
clusterId = createClustersTagsRequest.clusterId;
|
|
1663
|
+
resourceType = createClustersTagsRequest.resourceType;
|
|
1664
|
+
body = createClustersTagsRequest.body;
|
|
1665
|
+
}
|
|
1666
|
+
else {
|
|
1667
|
+
clusterId = createClustersTagsRequest['cluster_id'];
|
|
1668
|
+
resourceType = createClustersTagsRequest['resource_type'];
|
|
1669
|
+
body = createClustersTagsRequest['body'];
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1673
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createClustersTags.');
|
|
1674
|
+
}
|
|
1675
|
+
if (resourceType === null || resourceType === undefined) {
|
|
1676
|
+
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling createClustersTags.');
|
|
1677
|
+
}
|
|
1678
|
+
if (body === null || body === undefined) {
|
|
1679
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1680
|
+
}
|
|
1681
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1682
|
+
options.data = body !== undefined ? body : {};
|
|
1683
|
+
options.pathParams = { 'cluster_id': clusterId, 'resource_type': resourceType, };
|
|
1684
|
+
options.headers = localVarHeaderParameter;
|
|
1685
|
+
return options;
|
|
1686
|
+
},
|
|
1687
|
+
/**
|
|
1688
|
+
* 该接口用于加载存放于OBS的自定义词库。
|
|
1689
|
+
*
|
|
1690
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1691
|
+
*/
|
|
1692
|
+
createLoadIkThesaurus(createLoadIkThesaurusRequest) {
|
|
1693
|
+
const options = {
|
|
1694
|
+
method: "POST",
|
|
1695
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/thesaurus",
|
|
1696
|
+
contentType: "application/json",
|
|
1697
|
+
queryParams: {},
|
|
1698
|
+
pathParams: {},
|
|
1699
|
+
headers: {},
|
|
1700
|
+
data: {}
|
|
1701
|
+
};
|
|
1702
|
+
const localVarHeaderParameter = {};
|
|
1703
|
+
let body;
|
|
1704
|
+
let clusterId;
|
|
1705
|
+
if (createLoadIkThesaurusRequest !== null && createLoadIkThesaurusRequest !== undefined) {
|
|
1706
|
+
if (createLoadIkThesaurusRequest instanceof CreateLoadIkThesaurusRequest_1.CreateLoadIkThesaurusRequest) {
|
|
1707
|
+
clusterId = createLoadIkThesaurusRequest.clusterId;
|
|
1708
|
+
body = createLoadIkThesaurusRequest.body;
|
|
1709
|
+
}
|
|
1710
|
+
else {
|
|
1711
|
+
clusterId = createLoadIkThesaurusRequest['cluster_id'];
|
|
1712
|
+
body = createLoadIkThesaurusRequest['body'];
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1716
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createLoadIkThesaurus.');
|
|
1717
|
+
}
|
|
1718
|
+
if (body === null || body === undefined) {
|
|
1719
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1720
|
+
}
|
|
1721
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1722
|
+
options.data = body !== undefined ? body : {};
|
|
1723
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1724
|
+
options.headers = localVarHeaderParameter;
|
|
1725
|
+
return options;
|
|
1726
|
+
},
|
|
1727
|
+
/**
|
|
1728
|
+
* 该接口用于备份日志。
|
|
1729
|
+
*
|
|
1730
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1731
|
+
*/
|
|
1732
|
+
createLogBackup(createLogBackupRequest) {
|
|
1733
|
+
const options = {
|
|
1734
|
+
method: "POST",
|
|
1735
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/collect",
|
|
1736
|
+
contentType: "application/json",
|
|
1737
|
+
queryParams: {},
|
|
1738
|
+
pathParams: {},
|
|
1739
|
+
headers: {}
|
|
1740
|
+
};
|
|
1741
|
+
const localVarHeaderParameter = {};
|
|
1742
|
+
let clusterId;
|
|
1743
|
+
if (createLogBackupRequest !== null && createLogBackupRequest !== undefined) {
|
|
1744
|
+
if (createLogBackupRequest instanceof CreateLogBackupRequest_1.CreateLogBackupRequest) {
|
|
1745
|
+
clusterId = createLogBackupRequest.clusterId;
|
|
1746
|
+
}
|
|
1747
|
+
else {
|
|
1748
|
+
clusterId = createLogBackupRequest['cluster_id'];
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1752
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createLogBackup.');
|
|
1753
|
+
}
|
|
1754
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1755
|
+
options.headers = localVarHeaderParameter;
|
|
1756
|
+
return options;
|
|
1757
|
+
},
|
|
1758
|
+
/**
|
|
1759
|
+
* 该接口用于手动创建一个快照。
|
|
1760
|
+
*
|
|
1761
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1762
|
+
*/
|
|
1763
|
+
createSnapshot(createSnapshotRequest) {
|
|
1764
|
+
const options = {
|
|
1765
|
+
method: "POST",
|
|
1766
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot",
|
|
1767
|
+
contentType: "application/json",
|
|
1768
|
+
queryParams: {},
|
|
1769
|
+
pathParams: {},
|
|
1770
|
+
headers: {},
|
|
1771
|
+
data: {}
|
|
1772
|
+
};
|
|
1773
|
+
const localVarHeaderParameter = {};
|
|
1774
|
+
let body;
|
|
1775
|
+
let clusterId;
|
|
1776
|
+
if (createSnapshotRequest !== null && createSnapshotRequest !== undefined) {
|
|
1777
|
+
if (createSnapshotRequest instanceof CreateSnapshotRequest_1.CreateSnapshotRequest) {
|
|
1778
|
+
clusterId = createSnapshotRequest.clusterId;
|
|
1779
|
+
body = createSnapshotRequest.body;
|
|
1780
|
+
}
|
|
1781
|
+
else {
|
|
1782
|
+
clusterId = createSnapshotRequest['cluster_id'];
|
|
1783
|
+
body = createSnapshotRequest['body'];
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1787
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createSnapshot.');
|
|
1788
|
+
}
|
|
1789
|
+
if (body === null || body === undefined) {
|
|
1790
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1791
|
+
}
|
|
1792
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1793
|
+
options.data = body !== undefined ? body : {};
|
|
1794
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1795
|
+
options.headers = localVarHeaderParameter;
|
|
1796
|
+
return options;
|
|
1797
|
+
},
|
|
1798
|
+
/**
|
|
1799
|
+
* 此接口用于删除集群。集群删除将释放此集群的所有资源,包括客户数据。如果需要保留客户集群数据,建议在删除集群前先创建快照。
|
|
1800
|
+
*
|
|
1801
|
+
* >此接口亦可用于包年/包月集群退订。公安冻结的集群不能删除。
|
|
1802
|
+
*
|
|
1803
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1804
|
+
*/
|
|
1805
|
+
deleteCluster(deleteClusterRequest) {
|
|
1806
|
+
const options = {
|
|
1807
|
+
method: "DELETE",
|
|
1808
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}",
|
|
1809
|
+
contentType: "application/json",
|
|
1810
|
+
queryParams: {},
|
|
1811
|
+
pathParams: {},
|
|
1812
|
+
headers: {}
|
|
1813
|
+
};
|
|
1814
|
+
const localVarHeaderParameter = {};
|
|
1815
|
+
let clusterId;
|
|
1816
|
+
if (deleteClusterRequest !== null && deleteClusterRequest !== undefined) {
|
|
1817
|
+
if (deleteClusterRequest instanceof DeleteClusterRequest_1.DeleteClusterRequest) {
|
|
1818
|
+
clusterId = deleteClusterRequest.clusterId;
|
|
1819
|
+
}
|
|
1820
|
+
else {
|
|
1821
|
+
clusterId = deleteClusterRequest['cluster_id'];
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1825
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteCluster.');
|
|
1826
|
+
}
|
|
1827
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1828
|
+
options.headers = localVarHeaderParameter;
|
|
1829
|
+
return options;
|
|
1830
|
+
},
|
|
1831
|
+
/**
|
|
1832
|
+
* 此接口用于删除集群标签。
|
|
1833
|
+
*
|
|
1834
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1835
|
+
*/
|
|
1836
|
+
deleteClustersTags(deleteClustersTagsRequest) {
|
|
1837
|
+
const options = {
|
|
1838
|
+
method: "DELETE",
|
|
1839
|
+
url: "/v1.0/{project_id}/{resource_type}/{cluster_id}/tags/{key}",
|
|
1840
|
+
contentType: "application/json",
|
|
1841
|
+
queryParams: {},
|
|
1842
|
+
pathParams: {},
|
|
1843
|
+
headers: {}
|
|
1844
|
+
};
|
|
1845
|
+
const localVarHeaderParameter = {};
|
|
1846
|
+
let clusterId;
|
|
1847
|
+
let resourceType;
|
|
1848
|
+
let key;
|
|
1849
|
+
if (deleteClustersTagsRequest !== null && deleteClustersTagsRequest !== undefined) {
|
|
1850
|
+
if (deleteClustersTagsRequest instanceof DeleteClustersTagsRequest_1.DeleteClustersTagsRequest) {
|
|
1851
|
+
clusterId = deleteClustersTagsRequest.clusterId;
|
|
1852
|
+
resourceType = deleteClustersTagsRequest.resourceType;
|
|
1853
|
+
key = deleteClustersTagsRequest.key;
|
|
1854
|
+
}
|
|
1855
|
+
else {
|
|
1856
|
+
clusterId = deleteClustersTagsRequest['cluster_id'];
|
|
1857
|
+
resourceType = deleteClustersTagsRequest['resource_type'];
|
|
1858
|
+
key = deleteClustersTagsRequest['key'];
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1862
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteClustersTags.');
|
|
1863
|
+
}
|
|
1864
|
+
if (resourceType === null || resourceType === undefined) {
|
|
1865
|
+
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling deleteClustersTags.');
|
|
1866
|
+
}
|
|
1867
|
+
if (key === null || key === undefined) {
|
|
1868
|
+
throw new RequiredError('key', 'Required parameter key was null or undefined when calling deleteClustersTags.');
|
|
1869
|
+
}
|
|
1870
|
+
options.pathParams = { 'cluster_id': clusterId, 'resource_type': resourceType, 'key': key, };
|
|
1871
|
+
options.headers = localVarHeaderParameter;
|
|
1872
|
+
return options;
|
|
1873
|
+
},
|
|
1874
|
+
/**
|
|
1875
|
+
* 该接口用于删除自定义词库。
|
|
1876
|
+
*
|
|
1877
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1878
|
+
*/
|
|
1879
|
+
deleteIkThesaurus(deleteIkThesaurusRequest) {
|
|
1880
|
+
const options = {
|
|
1881
|
+
method: "DELETE",
|
|
1882
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/thesaurus",
|
|
1883
|
+
contentType: "application/json",
|
|
1884
|
+
queryParams: {},
|
|
1885
|
+
pathParams: {},
|
|
1886
|
+
headers: {}
|
|
1887
|
+
};
|
|
1888
|
+
const localVarHeaderParameter = {};
|
|
1889
|
+
let clusterId;
|
|
1890
|
+
if (deleteIkThesaurusRequest !== null && deleteIkThesaurusRequest !== undefined) {
|
|
1891
|
+
if (deleteIkThesaurusRequest instanceof DeleteIkThesaurusRequest_1.DeleteIkThesaurusRequest) {
|
|
1892
|
+
clusterId = deleteIkThesaurusRequest.clusterId;
|
|
1893
|
+
}
|
|
1894
|
+
else {
|
|
1895
|
+
clusterId = deleteIkThesaurusRequest['cluster_id'];
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1899
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteIkThesaurus.');
|
|
1900
|
+
}
|
|
1901
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
1902
|
+
options.headers = localVarHeaderParameter;
|
|
1903
|
+
return options;
|
|
1904
|
+
},
|
|
1905
|
+
/**
|
|
1906
|
+
* 该接口用于删除快照。
|
|
1907
|
+
*
|
|
1908
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1909
|
+
*/
|
|
1910
|
+
deleteSnapshot(deleteSnapshotRequest) {
|
|
1911
|
+
const options = {
|
|
1912
|
+
method: "DELETE",
|
|
1913
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}",
|
|
1914
|
+
contentType: "application/json",
|
|
1915
|
+
queryParams: {},
|
|
1916
|
+
pathParams: {},
|
|
1917
|
+
headers: {}
|
|
1918
|
+
};
|
|
1919
|
+
const localVarHeaderParameter = {};
|
|
1920
|
+
let clusterId;
|
|
1921
|
+
let snapshotId;
|
|
1922
|
+
if (deleteSnapshotRequest !== null && deleteSnapshotRequest !== undefined) {
|
|
1923
|
+
if (deleteSnapshotRequest instanceof DeleteSnapshotRequest_1.DeleteSnapshotRequest) {
|
|
1924
|
+
clusterId = deleteSnapshotRequest.clusterId;
|
|
1925
|
+
snapshotId = deleteSnapshotRequest.snapshotId;
|
|
1926
|
+
}
|
|
1927
|
+
else {
|
|
1928
|
+
clusterId = deleteSnapshotRequest['cluster_id'];
|
|
1929
|
+
snapshotId = deleteSnapshotRequest['snapshot_id'];
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
if (clusterId === null || clusterId === undefined) {
|
|
1933
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteSnapshot.');
|
|
1934
|
+
}
|
|
1935
|
+
if (snapshotId === null || snapshotId === undefined) {
|
|
1936
|
+
throw new RequiredError('snapshotId', 'Required parameter snapshotId was null or undefined when calling deleteSnapshot.');
|
|
1937
|
+
}
|
|
1938
|
+
options.pathParams = { 'cluster_id': clusterId, 'snapshot_id': snapshotId, };
|
|
1939
|
+
options.headers = localVarHeaderParameter;
|
|
1940
|
+
return options;
|
|
1941
|
+
},
|
|
1942
|
+
/**
|
|
1943
|
+
* 该接口用于下载安全证书。
|
|
1944
|
+
*
|
|
1945
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1946
|
+
*/
|
|
1947
|
+
downloadCert() {
|
|
1948
|
+
const options = {
|
|
1949
|
+
method: "GET",
|
|
1950
|
+
url: "/v1.0/{project_id}/cer/download",
|
|
1951
|
+
contentType: "application/json",
|
|
1952
|
+
queryParams: {},
|
|
1953
|
+
pathParams: {},
|
|
1954
|
+
headers: {}
|
|
1955
|
+
};
|
|
1956
|
+
const localVarHeaderParameter = {};
|
|
1957
|
+
options.headers = localVarHeaderParameter;
|
|
1958
|
+
return options;
|
|
1959
|
+
},
|
|
1960
|
+
/**
|
|
1961
|
+
* 该接口用于查询并显示集群列表以及集群的状态。
|
|
1962
|
+
*
|
|
1963
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1964
|
+
*/
|
|
1965
|
+
listClustersDetails(listClustersDetailsRequest) {
|
|
1966
|
+
const options = {
|
|
1967
|
+
method: "GET",
|
|
1968
|
+
url: "/v1.0/{project_id}/clusters",
|
|
1969
|
+
contentType: "application/json",
|
|
1970
|
+
queryParams: {},
|
|
1971
|
+
pathParams: {},
|
|
1972
|
+
headers: {}
|
|
1973
|
+
};
|
|
1974
|
+
const localVarHeaderParameter = {};
|
|
1975
|
+
const localVarQueryParameter = {};
|
|
1976
|
+
let start;
|
|
1977
|
+
let limit;
|
|
1978
|
+
if (listClustersDetailsRequest !== null && listClustersDetailsRequest !== undefined) {
|
|
1979
|
+
if (listClustersDetailsRequest instanceof ListClustersDetailsRequest_1.ListClustersDetailsRequest) {
|
|
1980
|
+
start = listClustersDetailsRequest.start;
|
|
1981
|
+
limit = listClustersDetailsRequest.limit;
|
|
1982
|
+
}
|
|
1983
|
+
else {
|
|
1984
|
+
start = listClustersDetailsRequest['start'];
|
|
1985
|
+
limit = listClustersDetailsRequest['limit'];
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
if (start !== null && start !== undefined) {
|
|
1989
|
+
localVarQueryParameter['start'] = start;
|
|
1990
|
+
}
|
|
1991
|
+
if (limit !== null && limit !== undefined) {
|
|
1992
|
+
localVarQueryParameter['limit'] = limit;
|
|
1993
|
+
}
|
|
1994
|
+
options.queryParams = localVarQueryParameter;
|
|
1995
|
+
options.headers = localVarHeaderParameter;
|
|
1996
|
+
return options;
|
|
1997
|
+
},
|
|
1998
|
+
/**
|
|
1999
|
+
* 该接口用于查询指定region下的所有标签集合。
|
|
2000
|
+
*
|
|
2001
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2002
|
+
*/
|
|
2003
|
+
listClustersTags(listClustersTagsRequest) {
|
|
2004
|
+
const options = {
|
|
2005
|
+
method: "GET",
|
|
2006
|
+
url: "/v1.0/{project_id}/{resource_type}/tags",
|
|
2007
|
+
contentType: "application/json",
|
|
2008
|
+
queryParams: {},
|
|
2009
|
+
pathParams: {},
|
|
2010
|
+
headers: {}
|
|
2011
|
+
};
|
|
2012
|
+
const localVarHeaderParameter = {};
|
|
2013
|
+
let resourceType;
|
|
2014
|
+
if (listClustersTagsRequest !== null && listClustersTagsRequest !== undefined) {
|
|
2015
|
+
if (listClustersTagsRequest instanceof ListClustersTagsRequest_1.ListClustersTagsRequest) {
|
|
2016
|
+
resourceType = listClustersTagsRequest.resourceType;
|
|
2017
|
+
}
|
|
2018
|
+
else {
|
|
2019
|
+
resourceType = listClustersTagsRequest['resource_type'];
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
if (resourceType === null || resourceType === undefined) {
|
|
2023
|
+
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling listClustersTags.');
|
|
2024
|
+
}
|
|
2025
|
+
options.pathParams = { 'resource_type': resourceType, };
|
|
2026
|
+
options.headers = localVarHeaderParameter;
|
|
2027
|
+
return options;
|
|
2028
|
+
},
|
|
2029
|
+
/**
|
|
2030
|
+
* 该接口用于查询并显示支持的实例规格对应的ID。
|
|
2031
|
+
*
|
|
2032
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2033
|
+
*/
|
|
2034
|
+
listFlavors() {
|
|
2035
|
+
const options = {
|
|
2036
|
+
method: "GET",
|
|
2037
|
+
url: "/v1.0/{project_id}/es-flavors",
|
|
2038
|
+
contentType: "application/json",
|
|
2039
|
+
queryParams: {},
|
|
2040
|
+
pathParams: {},
|
|
2041
|
+
headers: {}
|
|
2042
|
+
};
|
|
2043
|
+
const localVarHeaderParameter = {};
|
|
2044
|
+
options.headers = localVarHeaderParameter;
|
|
2045
|
+
return options;
|
|
2046
|
+
},
|
|
2047
|
+
/**
|
|
2048
|
+
* 该接口用于查询具体某个集群的日志任务记录列表。
|
|
2049
|
+
*
|
|
2050
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2051
|
+
*/
|
|
2052
|
+
listLogsJob(listLogsJobRequest) {
|
|
2053
|
+
const options = {
|
|
2054
|
+
method: "GET",
|
|
2055
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/records",
|
|
2056
|
+
contentType: "application/json",
|
|
2057
|
+
queryParams: {},
|
|
2058
|
+
pathParams: {},
|
|
2059
|
+
headers: {}
|
|
2060
|
+
};
|
|
2061
|
+
const localVarHeaderParameter = {};
|
|
2062
|
+
const localVarQueryParameter = {};
|
|
2063
|
+
let clusterId;
|
|
2064
|
+
let start;
|
|
2065
|
+
let limit;
|
|
2066
|
+
if (listLogsJobRequest !== null && listLogsJobRequest !== undefined) {
|
|
2067
|
+
if (listLogsJobRequest instanceof ListLogsJobRequest_1.ListLogsJobRequest) {
|
|
2068
|
+
clusterId = listLogsJobRequest.clusterId;
|
|
2069
|
+
start = listLogsJobRequest.start;
|
|
2070
|
+
limit = listLogsJobRequest.limit;
|
|
2071
|
+
}
|
|
2072
|
+
else {
|
|
2073
|
+
clusterId = listLogsJobRequest['cluster_id'];
|
|
2074
|
+
start = listLogsJobRequest['start'];
|
|
2075
|
+
limit = listLogsJobRequest['limit'];
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2079
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listLogsJob.');
|
|
2080
|
+
}
|
|
2081
|
+
if (start !== null && start !== undefined) {
|
|
2082
|
+
localVarQueryParameter['start'] = start;
|
|
2083
|
+
}
|
|
2084
|
+
if (limit !== null && limit !== undefined) {
|
|
2085
|
+
localVarQueryParameter['limit'] = limit;
|
|
2086
|
+
}
|
|
2087
|
+
options.queryParams = localVarQueryParameter;
|
|
2088
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2089
|
+
options.headers = localVarHeaderParameter;
|
|
2090
|
+
return options;
|
|
2091
|
+
},
|
|
2092
|
+
/**
|
|
2093
|
+
* 该接口用于查询集群的所有快照。
|
|
2094
|
+
*
|
|
2095
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2096
|
+
*/
|
|
2097
|
+
listSnapshots(listSnapshotsRequest) {
|
|
2098
|
+
const options = {
|
|
2099
|
+
method: "GET",
|
|
2100
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshots",
|
|
2101
|
+
contentType: "application/json",
|
|
2102
|
+
queryParams: {},
|
|
2103
|
+
pathParams: {},
|
|
2104
|
+
headers: {}
|
|
2105
|
+
};
|
|
2106
|
+
const localVarHeaderParameter = {};
|
|
2107
|
+
let clusterId;
|
|
2108
|
+
if (listSnapshotsRequest !== null && listSnapshotsRequest !== undefined) {
|
|
2109
|
+
if (listSnapshotsRequest instanceof ListSnapshotsRequest_1.ListSnapshotsRequest) {
|
|
2110
|
+
clusterId = listSnapshotsRequest.clusterId;
|
|
2111
|
+
}
|
|
2112
|
+
else {
|
|
2113
|
+
clusterId = listSnapshotsRequest['cluster_id'];
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2117
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listSnapshots.');
|
|
2118
|
+
}
|
|
2119
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2120
|
+
options.headers = localVarHeaderParameter;
|
|
2121
|
+
return options;
|
|
2122
|
+
},
|
|
2123
|
+
/**
|
|
2124
|
+
* 该接口用于获取当前集群现有的参数配置列表。
|
|
2125
|
+
*
|
|
2126
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2127
|
+
*/
|
|
2128
|
+
listYmls(listYmlsRequest) {
|
|
2129
|
+
const options = {
|
|
2130
|
+
method: "GET",
|
|
2131
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/ymls/template",
|
|
2132
|
+
contentType: "application/json",
|
|
2133
|
+
queryParams: {},
|
|
2134
|
+
pathParams: {},
|
|
2135
|
+
headers: {}
|
|
2136
|
+
};
|
|
2137
|
+
const localVarHeaderParameter = {};
|
|
2138
|
+
let clusterId;
|
|
2139
|
+
if (listYmlsRequest !== null && listYmlsRequest !== undefined) {
|
|
2140
|
+
if (listYmlsRequest instanceof ListYmlsRequest_1.ListYmlsRequest) {
|
|
2141
|
+
clusterId = listYmlsRequest.clusterId;
|
|
2142
|
+
}
|
|
2143
|
+
else {
|
|
2144
|
+
clusterId = listYmlsRequest['cluster_id'];
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2148
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listYmls.');
|
|
2149
|
+
}
|
|
2150
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2151
|
+
options.headers = localVarHeaderParameter;
|
|
2152
|
+
return options;
|
|
2153
|
+
},
|
|
2154
|
+
/**
|
|
2155
|
+
* 该接口可获取参数配置的任务操作列表。
|
|
2156
|
+
*
|
|
2157
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2158
|
+
*/
|
|
2159
|
+
listYmlsJob(listYmlsJobRequest) {
|
|
2160
|
+
const options = {
|
|
2161
|
+
method: "GET",
|
|
2162
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/ymls/joblists",
|
|
2163
|
+
contentType: "application/json",
|
|
2164
|
+
queryParams: {},
|
|
2165
|
+
pathParams: {},
|
|
2166
|
+
headers: {}
|
|
2167
|
+
};
|
|
2168
|
+
const localVarHeaderParameter = {};
|
|
2169
|
+
const localVarQueryParameter = {};
|
|
2170
|
+
let clusterId;
|
|
2171
|
+
let start;
|
|
2172
|
+
let limit;
|
|
2173
|
+
if (listYmlsJobRequest !== null && listYmlsJobRequest !== undefined) {
|
|
2174
|
+
if (listYmlsJobRequest instanceof ListYmlsJobRequest_1.ListYmlsJobRequest) {
|
|
2175
|
+
clusterId = listYmlsJobRequest.clusterId;
|
|
2176
|
+
start = listYmlsJobRequest.start;
|
|
2177
|
+
limit = listYmlsJobRequest.limit;
|
|
2178
|
+
}
|
|
2179
|
+
else {
|
|
2180
|
+
clusterId = listYmlsJobRequest['cluster_id'];
|
|
2181
|
+
start = listYmlsJobRequest['start'];
|
|
2182
|
+
limit = listYmlsJobRequest['limit'];
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2186
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listYmlsJob.');
|
|
2187
|
+
}
|
|
2188
|
+
if (start !== null && start !== undefined) {
|
|
2189
|
+
localVarQueryParameter['start'] = start;
|
|
2190
|
+
}
|
|
2191
|
+
if (limit !== null && limit !== undefined) {
|
|
2192
|
+
localVarQueryParameter['limit'] = limit;
|
|
2193
|
+
}
|
|
2194
|
+
options.queryParams = localVarQueryParameter;
|
|
2195
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2196
|
+
options.headers = localVarHeaderParameter;
|
|
2197
|
+
return options;
|
|
2198
|
+
},
|
|
2199
|
+
/**
|
|
2200
|
+
* 该接口用于修改集群密码。
|
|
2201
|
+
*
|
|
2202
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2203
|
+
*/
|
|
2204
|
+
resetPassword(resetPasswordRequest) {
|
|
2205
|
+
const options = {
|
|
2206
|
+
method: "POST",
|
|
2207
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/password/reset",
|
|
2208
|
+
contentType: "application/json",
|
|
2209
|
+
queryParams: {},
|
|
2210
|
+
pathParams: {},
|
|
2211
|
+
headers: {},
|
|
2212
|
+
data: {}
|
|
2213
|
+
};
|
|
2214
|
+
const localVarHeaderParameter = {};
|
|
2215
|
+
let body;
|
|
2216
|
+
let clusterId;
|
|
2217
|
+
if (resetPasswordRequest !== null && resetPasswordRequest !== undefined) {
|
|
2218
|
+
if (resetPasswordRequest instanceof ResetPasswordRequest_1.ResetPasswordRequest) {
|
|
2219
|
+
clusterId = resetPasswordRequest.clusterId;
|
|
2220
|
+
body = resetPasswordRequest.body;
|
|
2221
|
+
}
|
|
2222
|
+
else {
|
|
2223
|
+
clusterId = resetPasswordRequest['cluster_id'];
|
|
2224
|
+
body = resetPasswordRequest['body'];
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2228
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling resetPassword.');
|
|
2229
|
+
}
|
|
2230
|
+
if (body === null || body === undefined) {
|
|
2231
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2232
|
+
}
|
|
2233
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2234
|
+
options.data = body !== undefined ? body : {};
|
|
2235
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2236
|
+
options.headers = localVarHeaderParameter;
|
|
2237
|
+
return options;
|
|
2238
|
+
},
|
|
2239
|
+
/**
|
|
2240
|
+
* 此接口用于重启集群,重启集群将导致业务中断。
|
|
2241
|
+
*
|
|
2242
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2243
|
+
*/
|
|
2244
|
+
restartCluster(restartClusterRequest) {
|
|
2245
|
+
const options = {
|
|
2246
|
+
method: "POST",
|
|
2247
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/restart",
|
|
2248
|
+
contentType: "application/json",
|
|
2249
|
+
queryParams: {},
|
|
2250
|
+
pathParams: {},
|
|
2251
|
+
headers: {}
|
|
2252
|
+
};
|
|
2253
|
+
const localVarHeaderParameter = {};
|
|
2254
|
+
let clusterId;
|
|
2255
|
+
if (restartClusterRequest !== null && restartClusterRequest !== undefined) {
|
|
2256
|
+
if (restartClusterRequest instanceof RestartClusterRequest_1.RestartClusterRequest) {
|
|
2257
|
+
clusterId = restartClusterRequest.clusterId;
|
|
2258
|
+
}
|
|
2259
|
+
else {
|
|
2260
|
+
clusterId = restartClusterRequest['cluster_id'];
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2264
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling restartCluster.');
|
|
2265
|
+
}
|
|
2266
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2267
|
+
options.headers = localVarHeaderParameter;
|
|
2268
|
+
return options;
|
|
2269
|
+
},
|
|
2270
|
+
/**
|
|
2271
|
+
* 该接口用于手动恢复一个快照。
|
|
2272
|
+
*
|
|
2273
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2274
|
+
*/
|
|
2275
|
+
restoreSnapshot(restoreSnapshotRequest) {
|
|
2276
|
+
const options = {
|
|
2277
|
+
method: "POST",
|
|
2278
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/{snapshot_id}/restore",
|
|
2279
|
+
contentType: "application/json",
|
|
2280
|
+
queryParams: {},
|
|
2281
|
+
pathParams: {},
|
|
2282
|
+
headers: {},
|
|
2283
|
+
data: {}
|
|
2284
|
+
};
|
|
2285
|
+
const localVarHeaderParameter = {};
|
|
2286
|
+
let body;
|
|
2287
|
+
let clusterId;
|
|
2288
|
+
let snapshotId;
|
|
2289
|
+
if (restoreSnapshotRequest !== null && restoreSnapshotRequest !== undefined) {
|
|
2290
|
+
if (restoreSnapshotRequest instanceof RestoreSnapshotRequest_1.RestoreSnapshotRequest) {
|
|
2291
|
+
clusterId = restoreSnapshotRequest.clusterId;
|
|
2292
|
+
snapshotId = restoreSnapshotRequest.snapshotId;
|
|
2293
|
+
body = restoreSnapshotRequest.body;
|
|
2294
|
+
}
|
|
2295
|
+
else {
|
|
2296
|
+
clusterId = restoreSnapshotRequest['cluster_id'];
|
|
2297
|
+
snapshotId = restoreSnapshotRequest['snapshot_id'];
|
|
2298
|
+
body = restoreSnapshotRequest['body'];
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2302
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling restoreSnapshot.');
|
|
2303
|
+
}
|
|
2304
|
+
if (snapshotId === null || snapshotId === undefined) {
|
|
2305
|
+
throw new RequiredError('snapshotId', 'Required parameter snapshotId was null or undefined when calling restoreSnapshot.');
|
|
2306
|
+
}
|
|
2307
|
+
if (body === null || body === undefined) {
|
|
2308
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2309
|
+
}
|
|
2310
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2311
|
+
options.data = body !== undefined ? body : {};
|
|
2312
|
+
options.pathParams = { 'cluster_id': clusterId, 'snapshot_id': snapshotId, };
|
|
2313
|
+
options.headers = localVarHeaderParameter;
|
|
2314
|
+
return options;
|
|
2315
|
+
},
|
|
2316
|
+
/**
|
|
2317
|
+
* 该接口用于查询自动创建快照策略。
|
|
2318
|
+
*
|
|
2319
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2320
|
+
*/
|
|
2321
|
+
showAutoCreatePolicy(showAutoCreatePolicyRequest) {
|
|
2322
|
+
const options = {
|
|
2323
|
+
method: "GET",
|
|
2324
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/policy",
|
|
2325
|
+
contentType: "application/json",
|
|
2326
|
+
queryParams: {},
|
|
2327
|
+
pathParams: {},
|
|
2328
|
+
headers: {}
|
|
2329
|
+
};
|
|
2330
|
+
const localVarHeaderParameter = {};
|
|
2331
|
+
let clusterId;
|
|
2332
|
+
if (showAutoCreatePolicyRequest !== null && showAutoCreatePolicyRequest !== undefined) {
|
|
2333
|
+
if (showAutoCreatePolicyRequest instanceof ShowAutoCreatePolicyRequest_1.ShowAutoCreatePolicyRequest) {
|
|
2334
|
+
clusterId = showAutoCreatePolicyRequest.clusterId;
|
|
2335
|
+
}
|
|
2336
|
+
else {
|
|
2337
|
+
clusterId = showAutoCreatePolicyRequest['cluster_id'];
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2341
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showAutoCreatePolicy.');
|
|
2342
|
+
}
|
|
2343
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2344
|
+
options.headers = localVarHeaderParameter;
|
|
2345
|
+
return options;
|
|
2346
|
+
},
|
|
2347
|
+
/**
|
|
2348
|
+
* 该接口用于查询并显示单个集群详情。
|
|
2349
|
+
*
|
|
2350
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2351
|
+
*/
|
|
2352
|
+
showClusterDetail(showClusterDetailRequest) {
|
|
2353
|
+
const options = {
|
|
2354
|
+
method: "GET",
|
|
2355
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}",
|
|
2356
|
+
contentType: "application/json",
|
|
2357
|
+
queryParams: {},
|
|
2358
|
+
pathParams: {},
|
|
2359
|
+
headers: {}
|
|
2360
|
+
};
|
|
2361
|
+
const localVarHeaderParameter = {};
|
|
2362
|
+
let clusterId;
|
|
2363
|
+
if (showClusterDetailRequest !== null && showClusterDetailRequest !== undefined) {
|
|
2364
|
+
if (showClusterDetailRequest instanceof ShowClusterDetailRequest_1.ShowClusterDetailRequest) {
|
|
2365
|
+
clusterId = showClusterDetailRequest.clusterId;
|
|
2366
|
+
}
|
|
2367
|
+
else {
|
|
2368
|
+
clusterId = showClusterDetailRequest['cluster_id'];
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2372
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showClusterDetail.');
|
|
2373
|
+
}
|
|
2374
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2375
|
+
options.headers = localVarHeaderParameter;
|
|
2376
|
+
return options;
|
|
2377
|
+
},
|
|
2378
|
+
/**
|
|
2379
|
+
* 该接口用于查询指定集群的标签信息。
|
|
2380
|
+
*
|
|
2381
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2382
|
+
*/
|
|
2383
|
+
showClusterTag(showClusterTagRequest) {
|
|
2384
|
+
const options = {
|
|
2385
|
+
method: "GET",
|
|
2386
|
+
url: "/v1.0/{project_id}/{resource_type}/{cluster_id}/tags",
|
|
2387
|
+
contentType: "application/json",
|
|
2388
|
+
queryParams: {},
|
|
2389
|
+
pathParams: {},
|
|
2390
|
+
headers: {}
|
|
2391
|
+
};
|
|
2392
|
+
const localVarHeaderParameter = {};
|
|
2393
|
+
let clusterId;
|
|
2394
|
+
let resourceType;
|
|
2395
|
+
if (showClusterTagRequest !== null && showClusterTagRequest !== undefined) {
|
|
2396
|
+
if (showClusterTagRequest instanceof ShowClusterTagRequest_1.ShowClusterTagRequest) {
|
|
2397
|
+
clusterId = showClusterTagRequest.clusterId;
|
|
2398
|
+
resourceType = showClusterTagRequest.resourceType;
|
|
2399
|
+
}
|
|
2400
|
+
else {
|
|
2401
|
+
clusterId = showClusterTagRequest['cluster_id'];
|
|
2402
|
+
resourceType = showClusterTagRequest['resource_type'];
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2406
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showClusterTag.');
|
|
2407
|
+
}
|
|
2408
|
+
if (resourceType === null || resourceType === undefined) {
|
|
2409
|
+
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling showClusterTag.');
|
|
2410
|
+
}
|
|
2411
|
+
options.pathParams = { 'cluster_id': clusterId, 'resource_type': resourceType, };
|
|
2412
|
+
options.headers = localVarHeaderParameter;
|
|
2413
|
+
return options;
|
|
2414
|
+
},
|
|
2415
|
+
/**
|
|
2416
|
+
* 该接口用于日志基础配置查询。
|
|
2417
|
+
*
|
|
2418
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2419
|
+
*/
|
|
2420
|
+
showGetLogSetting(showGetLogSettingRequest) {
|
|
2421
|
+
const options = {
|
|
2422
|
+
method: "GET",
|
|
2423
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/settings",
|
|
2424
|
+
contentType: "application/json",
|
|
2425
|
+
queryParams: {},
|
|
2426
|
+
pathParams: {},
|
|
2427
|
+
headers: {}
|
|
2428
|
+
};
|
|
2429
|
+
const localVarHeaderParameter = {};
|
|
2430
|
+
let clusterId;
|
|
2431
|
+
if (showGetLogSettingRequest !== null && showGetLogSettingRequest !== undefined) {
|
|
2432
|
+
if (showGetLogSettingRequest instanceof ShowGetLogSettingRequest_1.ShowGetLogSettingRequest) {
|
|
2433
|
+
clusterId = showGetLogSettingRequest.clusterId;
|
|
2434
|
+
}
|
|
2435
|
+
else {
|
|
2436
|
+
clusterId = showGetLogSettingRequest['cluster_id'];
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2440
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showGetLogSetting.');
|
|
2441
|
+
}
|
|
2442
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2443
|
+
options.headers = localVarHeaderParameter;
|
|
2444
|
+
return options;
|
|
2445
|
+
},
|
|
2446
|
+
/**
|
|
2447
|
+
* 该接口用于查询自定义词库的加载状态。
|
|
2448
|
+
*
|
|
2449
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2450
|
+
*/
|
|
2451
|
+
showIkThesaurus(showIkThesaurusRequest) {
|
|
2452
|
+
const options = {
|
|
2453
|
+
method: "GET",
|
|
2454
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/thesaurus",
|
|
2455
|
+
contentType: "application/json",
|
|
2456
|
+
queryParams: {},
|
|
2457
|
+
pathParams: {},
|
|
2458
|
+
headers: {}
|
|
2459
|
+
};
|
|
2460
|
+
const localVarHeaderParameter = {};
|
|
2461
|
+
let clusterId;
|
|
2462
|
+
if (showIkThesaurusRequest !== null && showIkThesaurusRequest !== undefined) {
|
|
2463
|
+
if (showIkThesaurusRequest instanceof ShowIkThesaurusRequest_1.ShowIkThesaurusRequest) {
|
|
2464
|
+
clusterId = showIkThesaurusRequest.clusterId;
|
|
2465
|
+
}
|
|
2466
|
+
else {
|
|
2467
|
+
clusterId = showIkThesaurusRequest['cluster_id'];
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2471
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showIkThesaurus.');
|
|
2472
|
+
}
|
|
2473
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2474
|
+
options.headers = localVarHeaderParameter;
|
|
2475
|
+
return options;
|
|
2476
|
+
},
|
|
2477
|
+
/**
|
|
2478
|
+
* 该接口用于查询日志信息。
|
|
2479
|
+
*
|
|
2480
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2481
|
+
*/
|
|
2482
|
+
showLogBackup(showLogBackupRequest) {
|
|
2483
|
+
const options = {
|
|
2484
|
+
method: "POST",
|
|
2485
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/search",
|
|
2486
|
+
contentType: "application/json",
|
|
2487
|
+
queryParams: {},
|
|
2488
|
+
pathParams: {},
|
|
2489
|
+
headers: {},
|
|
2490
|
+
data: {}
|
|
2491
|
+
};
|
|
2492
|
+
const localVarHeaderParameter = {};
|
|
2493
|
+
let body;
|
|
2494
|
+
let clusterId;
|
|
2495
|
+
if (showLogBackupRequest !== null && showLogBackupRequest !== undefined) {
|
|
2496
|
+
if (showLogBackupRequest instanceof ShowLogBackupRequest_1.ShowLogBackupRequest) {
|
|
2497
|
+
clusterId = showLogBackupRequest.clusterId;
|
|
2498
|
+
body = showLogBackupRequest.body;
|
|
2499
|
+
}
|
|
2500
|
+
else {
|
|
2501
|
+
clusterId = showLogBackupRequest['cluster_id'];
|
|
2502
|
+
body = showLogBackupRequest['body'];
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2506
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showLogBackup.');
|
|
2507
|
+
}
|
|
2508
|
+
if (body === null || body === undefined) {
|
|
2509
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2510
|
+
}
|
|
2511
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2512
|
+
options.data = body !== undefined ? body : {};
|
|
2513
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2514
|
+
options.headers = localVarHeaderParameter;
|
|
2515
|
+
return options;
|
|
2516
|
+
},
|
|
2517
|
+
/**
|
|
2518
|
+
* 该接口用于获取终端节点连接。
|
|
2519
|
+
*
|
|
2520
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2521
|
+
*/
|
|
2522
|
+
showVpcepConnection(showVpcepConnectionRequest) {
|
|
2523
|
+
const options = {
|
|
2524
|
+
method: "GET",
|
|
2525
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections",
|
|
2526
|
+
contentType: "application/json",
|
|
2527
|
+
queryParams: {},
|
|
2528
|
+
pathParams: {},
|
|
2529
|
+
headers: {}
|
|
2530
|
+
};
|
|
2531
|
+
const localVarHeaderParameter = {};
|
|
2532
|
+
const localVarQueryParameter = {};
|
|
2533
|
+
let clusterId;
|
|
2534
|
+
let start;
|
|
2535
|
+
let limit;
|
|
2536
|
+
if (showVpcepConnectionRequest !== null && showVpcepConnectionRequest !== undefined) {
|
|
2537
|
+
if (showVpcepConnectionRequest instanceof ShowVpcepConnectionRequest_1.ShowVpcepConnectionRequest) {
|
|
2538
|
+
clusterId = showVpcepConnectionRequest.clusterId;
|
|
2539
|
+
start = showVpcepConnectionRequest.start;
|
|
2540
|
+
limit = showVpcepConnectionRequest.limit;
|
|
2541
|
+
}
|
|
2542
|
+
else {
|
|
2543
|
+
clusterId = showVpcepConnectionRequest['cluster_id'];
|
|
2544
|
+
start = showVpcepConnectionRequest['start'];
|
|
2545
|
+
limit = showVpcepConnectionRequest['limit'];
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2549
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showVpcepConnection.');
|
|
2550
|
+
}
|
|
2551
|
+
if (start !== null && start !== undefined) {
|
|
2552
|
+
localVarQueryParameter['start'] = start;
|
|
2553
|
+
}
|
|
2554
|
+
if (limit !== null && limit !== undefined) {
|
|
2555
|
+
localVarQueryParameter['limit'] = limit;
|
|
2556
|
+
}
|
|
2557
|
+
options.queryParams = localVarQueryParameter;
|
|
2558
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2559
|
+
options.headers = localVarHeaderParameter;
|
|
2560
|
+
return options;
|
|
2561
|
+
},
|
|
2562
|
+
/**
|
|
2563
|
+
* 该接口用于自动设置集群快照的基础配置,包括配置OBS桶和IAM委托。
|
|
2564
|
+
*
|
|
2565
|
+
*
|
|
2566
|
+
* - “OBS桶”:快照存储的OBS桶位置。
|
|
2567
|
+
*
|
|
2568
|
+
* - “备份路径”:快照在OBS桶中的存放路径。
|
|
2569
|
+
*
|
|
2570
|
+
* - “IAM委托”:由于需要将快照保存在OBS中,所以需要在IAM中设置对应的委托获取对OBS服务的授权。
|
|
2571
|
+
*
|
|
2572
|
+
* >自动设置集群快照接口将会自动创建快照OBS桶和委托。如果有多个集群,每个集群使用这个接口都会创建一个不一样的OBS桶,可能会导致OBS的配额不够,较多的OBS桶也难以维护。建议可以直接使用[修改集群快照的基础配置](UpdateSnapshotSetting.xml)。
|
|
2573
|
+
*
|
|
2574
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2575
|
+
*/
|
|
2576
|
+
startAutoSetting(startAutoSettingRequest) {
|
|
2577
|
+
const options = {
|
|
2578
|
+
method: "POST",
|
|
2579
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/auto_setting",
|
|
2580
|
+
contentType: "application/json",
|
|
2581
|
+
queryParams: {},
|
|
2582
|
+
pathParams: {},
|
|
2583
|
+
headers: {}
|
|
2584
|
+
};
|
|
2585
|
+
const localVarHeaderParameter = {};
|
|
2586
|
+
let clusterId;
|
|
2587
|
+
if (startAutoSettingRequest !== null && startAutoSettingRequest !== undefined) {
|
|
2588
|
+
if (startAutoSettingRequest instanceof StartAutoSettingRequest_1.StartAutoSettingRequest) {
|
|
2589
|
+
clusterId = startAutoSettingRequest.clusterId;
|
|
2590
|
+
}
|
|
2591
|
+
else {
|
|
2592
|
+
clusterId = startAutoSettingRequest['cluster_id'];
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2596
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startAutoSetting.');
|
|
2597
|
+
}
|
|
2598
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2599
|
+
options.headers = localVarHeaderParameter;
|
|
2600
|
+
return options;
|
|
2601
|
+
},
|
|
2602
|
+
/**
|
|
2603
|
+
* 该接口用于日志自动备份策略开启。
|
|
2604
|
+
*
|
|
2605
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2606
|
+
*/
|
|
2607
|
+
startLogAutoBackupPolicy(startLogAutoBackupPolicyRequest) {
|
|
2608
|
+
const options = {
|
|
2609
|
+
method: "POST",
|
|
2610
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/policy/update",
|
|
2611
|
+
contentType: "application/json",
|
|
2612
|
+
queryParams: {},
|
|
2613
|
+
pathParams: {},
|
|
2614
|
+
headers: {},
|
|
2615
|
+
data: {}
|
|
2616
|
+
};
|
|
2617
|
+
const localVarHeaderParameter = {};
|
|
2618
|
+
let body;
|
|
2619
|
+
let clusterId;
|
|
2620
|
+
if (startLogAutoBackupPolicyRequest !== null && startLogAutoBackupPolicyRequest !== undefined) {
|
|
2621
|
+
if (startLogAutoBackupPolicyRequest instanceof StartLogAutoBackupPolicyRequest_1.StartLogAutoBackupPolicyRequest) {
|
|
2622
|
+
clusterId = startLogAutoBackupPolicyRequest.clusterId;
|
|
2623
|
+
body = startLogAutoBackupPolicyRequest.body;
|
|
2624
|
+
}
|
|
2625
|
+
else {
|
|
2626
|
+
clusterId = startLogAutoBackupPolicyRequest['cluster_id'];
|
|
2627
|
+
body = startLogAutoBackupPolicyRequest['body'];
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2631
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startLogAutoBackupPolicy.');
|
|
2632
|
+
}
|
|
2633
|
+
if (body === null || body === undefined) {
|
|
2634
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2635
|
+
}
|
|
2636
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2637
|
+
options.data = body !== undefined ? body : {};
|
|
2638
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2639
|
+
options.headers = localVarHeaderParameter;
|
|
2640
|
+
return options;
|
|
2641
|
+
},
|
|
2642
|
+
/**
|
|
2643
|
+
* 该接口用于开启日志功能。
|
|
2644
|
+
*
|
|
2645
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2646
|
+
*/
|
|
2647
|
+
startLogs(startLogsRequest) {
|
|
2648
|
+
const options = {
|
|
2649
|
+
method: "POST",
|
|
2650
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/open",
|
|
2651
|
+
contentType: "application/json",
|
|
2652
|
+
queryParams: {},
|
|
2653
|
+
pathParams: {},
|
|
2654
|
+
headers: {},
|
|
2655
|
+
data: {}
|
|
2656
|
+
};
|
|
2657
|
+
const localVarHeaderParameter = {};
|
|
2658
|
+
let body;
|
|
2659
|
+
let clusterId;
|
|
2660
|
+
if (startLogsRequest !== null && startLogsRequest !== undefined) {
|
|
2661
|
+
if (startLogsRequest instanceof StartLogsRequest_1.StartLogsRequest) {
|
|
2662
|
+
clusterId = startLogsRequest.clusterId;
|
|
2663
|
+
body = startLogsRequest.body;
|
|
2664
|
+
}
|
|
2665
|
+
else {
|
|
2666
|
+
clusterId = startLogsRequest['cluster_id'];
|
|
2667
|
+
body = startLogsRequest['body'];
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2671
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startLogs.');
|
|
2672
|
+
}
|
|
2673
|
+
if (body === null || body === undefined) {
|
|
2674
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2675
|
+
}
|
|
2676
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2677
|
+
options.data = body !== undefined ? body : {};
|
|
2678
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2679
|
+
options.headers = localVarHeaderParameter;
|
|
2680
|
+
return options;
|
|
2681
|
+
},
|
|
2682
|
+
/**
|
|
2683
|
+
* 该接口用于开启公网访问控制白名单。
|
|
2684
|
+
*
|
|
2685
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2686
|
+
*/
|
|
2687
|
+
startPublicWhitelist(startPublicWhitelistRequest) {
|
|
2688
|
+
const options = {
|
|
2689
|
+
method: "POST",
|
|
2690
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/update",
|
|
2691
|
+
contentType: "application/json",
|
|
2692
|
+
queryParams: {},
|
|
2693
|
+
pathParams: {},
|
|
2694
|
+
headers: {},
|
|
2695
|
+
data: {}
|
|
2696
|
+
};
|
|
2697
|
+
const localVarHeaderParameter = {};
|
|
2698
|
+
let body;
|
|
2699
|
+
let clusterId;
|
|
2700
|
+
if (startPublicWhitelistRequest !== null && startPublicWhitelistRequest !== undefined) {
|
|
2701
|
+
if (startPublicWhitelistRequest instanceof StartPublicWhitelistRequest_1.StartPublicWhitelistRequest) {
|
|
2702
|
+
clusterId = startPublicWhitelistRequest.clusterId;
|
|
2703
|
+
body = startPublicWhitelistRequest.body;
|
|
2704
|
+
}
|
|
2705
|
+
else {
|
|
2706
|
+
clusterId = startPublicWhitelistRequest['cluster_id'];
|
|
2707
|
+
body = startPublicWhitelistRequest['body'];
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2711
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startPublicWhitelist.');
|
|
2712
|
+
}
|
|
2713
|
+
if (body === null || body === undefined) {
|
|
2714
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2715
|
+
}
|
|
2716
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2717
|
+
options.data = body !== undefined ? body : {};
|
|
2718
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2719
|
+
options.headers = localVarHeaderParameter;
|
|
2720
|
+
return options;
|
|
2721
|
+
},
|
|
2722
|
+
/**
|
|
2723
|
+
* 该接口用于开启终端节点服务。
|
|
2724
|
+
*
|
|
2725
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2726
|
+
*/
|
|
2727
|
+
startVpecp(startVpecpRequest) {
|
|
2728
|
+
const options = {
|
|
2729
|
+
method: "POST",
|
|
2730
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/open",
|
|
2731
|
+
contentType: "application/json",
|
|
2732
|
+
queryParams: {},
|
|
2733
|
+
pathParams: {},
|
|
2734
|
+
headers: {},
|
|
2735
|
+
data: {}
|
|
2736
|
+
};
|
|
2737
|
+
const localVarHeaderParameter = {};
|
|
2738
|
+
let body;
|
|
2739
|
+
let clusterId;
|
|
2740
|
+
if (startVpecpRequest !== null && startVpecpRequest !== undefined) {
|
|
2741
|
+
if (startVpecpRequest instanceof StartVpecpRequest_1.StartVpecpRequest) {
|
|
2742
|
+
clusterId = startVpecpRequest.clusterId;
|
|
2743
|
+
body = startVpecpRequest.body;
|
|
2744
|
+
}
|
|
2745
|
+
else {
|
|
2746
|
+
clusterId = startVpecpRequest['cluster_id'];
|
|
2747
|
+
body = startVpecpRequest['body'];
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2751
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startVpecp.');
|
|
2752
|
+
}
|
|
2753
|
+
if (body === null || body === undefined) {
|
|
2754
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2755
|
+
}
|
|
2756
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2757
|
+
options.data = body !== undefined ? body : {};
|
|
2758
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2759
|
+
options.headers = localVarHeaderParameter;
|
|
2760
|
+
return options;
|
|
2761
|
+
},
|
|
2762
|
+
/**
|
|
2763
|
+
* 该接口用于日志自动备份策略关闭。
|
|
2764
|
+
*
|
|
2765
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2766
|
+
*/
|
|
2767
|
+
stopLogAutoBackupPolicy(stopLogAutoBackupPolicyRequest) {
|
|
2768
|
+
const options = {
|
|
2769
|
+
method: "PUT",
|
|
2770
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/policy/close",
|
|
2771
|
+
contentType: "application/json",
|
|
2772
|
+
queryParams: {},
|
|
2773
|
+
pathParams: {},
|
|
2774
|
+
headers: {}
|
|
2775
|
+
};
|
|
2776
|
+
const localVarHeaderParameter = {};
|
|
2777
|
+
let clusterId;
|
|
2778
|
+
if (stopLogAutoBackupPolicyRequest !== null && stopLogAutoBackupPolicyRequest !== undefined) {
|
|
2779
|
+
if (stopLogAutoBackupPolicyRequest instanceof StopLogAutoBackupPolicyRequest_1.StopLogAutoBackupPolicyRequest) {
|
|
2780
|
+
clusterId = stopLogAutoBackupPolicyRequest.clusterId;
|
|
2781
|
+
}
|
|
2782
|
+
else {
|
|
2783
|
+
clusterId = stopLogAutoBackupPolicyRequest['cluster_id'];
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2787
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopLogAutoBackupPolicy.');
|
|
2788
|
+
}
|
|
2789
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2790
|
+
options.headers = localVarHeaderParameter;
|
|
2791
|
+
return options;
|
|
2792
|
+
},
|
|
2793
|
+
/**
|
|
2794
|
+
* 该接口用于关闭日志功能。
|
|
2795
|
+
*
|
|
2796
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2797
|
+
*/
|
|
2798
|
+
stopLogs(stopLogsRequest) {
|
|
2799
|
+
const options = {
|
|
2800
|
+
method: "PUT",
|
|
2801
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/close",
|
|
2802
|
+
contentType: "application/json",
|
|
2803
|
+
queryParams: {},
|
|
2804
|
+
pathParams: {},
|
|
2805
|
+
headers: {}
|
|
2806
|
+
};
|
|
2807
|
+
const localVarHeaderParameter = {};
|
|
2808
|
+
let clusterId;
|
|
2809
|
+
if (stopLogsRequest !== null && stopLogsRequest !== undefined) {
|
|
2810
|
+
if (stopLogsRequest instanceof StopLogsRequest_1.StopLogsRequest) {
|
|
2811
|
+
clusterId = stopLogsRequest.clusterId;
|
|
2812
|
+
}
|
|
2813
|
+
else {
|
|
2814
|
+
clusterId = stopLogsRequest['cluster_id'];
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2818
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopLogs.');
|
|
2819
|
+
}
|
|
2820
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2821
|
+
options.headers = localVarHeaderParameter;
|
|
2822
|
+
return options;
|
|
2823
|
+
},
|
|
2824
|
+
/**
|
|
2825
|
+
* 该接口用于关闭公网访问控制白名单。
|
|
2826
|
+
*
|
|
2827
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2828
|
+
*/
|
|
2829
|
+
stopPublicWhitelist(stopPublicWhitelistRequest) {
|
|
2830
|
+
const options = {
|
|
2831
|
+
method: "PUT",
|
|
2832
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/public/whitelist/close",
|
|
2833
|
+
contentType: "application/json",
|
|
2834
|
+
queryParams: {},
|
|
2835
|
+
pathParams: {},
|
|
2836
|
+
headers: {}
|
|
2837
|
+
};
|
|
2838
|
+
const localVarHeaderParameter = {};
|
|
2839
|
+
let clusterId;
|
|
2840
|
+
if (stopPublicWhitelistRequest !== null && stopPublicWhitelistRequest !== undefined) {
|
|
2841
|
+
if (stopPublicWhitelistRequest instanceof StopPublicWhitelistRequest_1.StopPublicWhitelistRequest) {
|
|
2842
|
+
clusterId = stopPublicWhitelistRequest.clusterId;
|
|
2843
|
+
}
|
|
2844
|
+
else {
|
|
2845
|
+
clusterId = stopPublicWhitelistRequest['cluster_id'];
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2849
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopPublicWhitelist.');
|
|
2850
|
+
}
|
|
2851
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2852
|
+
options.headers = localVarHeaderParameter;
|
|
2853
|
+
return options;
|
|
2854
|
+
},
|
|
2855
|
+
/**
|
|
2856
|
+
* 该接口用于停用快照功能。
|
|
2857
|
+
*
|
|
2858
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2859
|
+
*/
|
|
2860
|
+
stopSnapshot(stopSnapshotRequest) {
|
|
2861
|
+
const options = {
|
|
2862
|
+
method: "DELETE",
|
|
2863
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshots",
|
|
2864
|
+
contentType: "application/json",
|
|
2865
|
+
queryParams: {},
|
|
2866
|
+
pathParams: {},
|
|
2867
|
+
headers: {}
|
|
2868
|
+
};
|
|
2869
|
+
const localVarHeaderParameter = {};
|
|
2870
|
+
let clusterId;
|
|
2871
|
+
if (stopSnapshotRequest !== null && stopSnapshotRequest !== undefined) {
|
|
2872
|
+
if (stopSnapshotRequest instanceof StopSnapshotRequest_1.StopSnapshotRequest) {
|
|
2873
|
+
clusterId = stopSnapshotRequest.clusterId;
|
|
2874
|
+
}
|
|
2875
|
+
else {
|
|
2876
|
+
clusterId = stopSnapshotRequest['cluster_id'];
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2880
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopSnapshot.');
|
|
2881
|
+
}
|
|
2882
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2883
|
+
options.headers = localVarHeaderParameter;
|
|
2884
|
+
return options;
|
|
2885
|
+
},
|
|
2886
|
+
/**
|
|
2887
|
+
* 该接口用于关闭终端节点服务。
|
|
2888
|
+
*
|
|
2889
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2890
|
+
*/
|
|
2891
|
+
stopVpecp(stopVpecpRequest) {
|
|
2892
|
+
const options = {
|
|
2893
|
+
method: "PUT",
|
|
2894
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/close",
|
|
2895
|
+
contentType: "application/json",
|
|
2896
|
+
queryParams: {},
|
|
2897
|
+
pathParams: {},
|
|
2898
|
+
headers: {}
|
|
2899
|
+
};
|
|
2900
|
+
const localVarHeaderParameter = {};
|
|
2901
|
+
let clusterId;
|
|
2902
|
+
if (stopVpecpRequest !== null && stopVpecpRequest !== undefined) {
|
|
2903
|
+
if (stopVpecpRequest instanceof StopVpecpRequest_1.StopVpecpRequest) {
|
|
2904
|
+
clusterId = stopVpecpRequest.clusterId;
|
|
2905
|
+
}
|
|
2906
|
+
else {
|
|
2907
|
+
clusterId = stopVpecpRequest['cluster_id'];
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2911
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopVpecp.');
|
|
2912
|
+
}
|
|
2913
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
2914
|
+
options.headers = localVarHeaderParameter;
|
|
2915
|
+
return options;
|
|
2916
|
+
},
|
|
2917
|
+
/**
|
|
2918
|
+
* 该接口用于对集群批量添加或删除标签。
|
|
2919
|
+
*
|
|
2920
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2921
|
+
*/
|
|
2922
|
+
updateBatchClustersTags(updateBatchClustersTagsRequest) {
|
|
2923
|
+
const options = {
|
|
2924
|
+
method: "POST",
|
|
2925
|
+
url: "/v1.0/{project_id}/{resource_type}/{cluster_id}/tags/action",
|
|
2926
|
+
contentType: "application/json",
|
|
2927
|
+
queryParams: {},
|
|
2928
|
+
pathParams: {},
|
|
2929
|
+
headers: {},
|
|
2930
|
+
data: {}
|
|
2931
|
+
};
|
|
2932
|
+
const localVarHeaderParameter = {};
|
|
2933
|
+
let body;
|
|
2934
|
+
let clusterId;
|
|
2935
|
+
let resourceType;
|
|
2936
|
+
if (updateBatchClustersTagsRequest !== null && updateBatchClustersTagsRequest !== undefined) {
|
|
2937
|
+
if (updateBatchClustersTagsRequest instanceof UpdateBatchClustersTagsRequest_1.UpdateBatchClustersTagsRequest) {
|
|
2938
|
+
clusterId = updateBatchClustersTagsRequest.clusterId;
|
|
2939
|
+
resourceType = updateBatchClustersTagsRequest.resourceType;
|
|
2940
|
+
body = updateBatchClustersTagsRequest.body;
|
|
2941
|
+
}
|
|
2942
|
+
else {
|
|
2943
|
+
clusterId = updateBatchClustersTagsRequest['cluster_id'];
|
|
2944
|
+
resourceType = updateBatchClustersTagsRequest['resource_type'];
|
|
2945
|
+
body = updateBatchClustersTagsRequest['body'];
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2949
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateBatchClustersTags.');
|
|
2950
|
+
}
|
|
2951
|
+
if (resourceType === null || resourceType === undefined) {
|
|
2952
|
+
throw new RequiredError('resourceType', 'Required parameter resourceType was null or undefined when calling updateBatchClustersTags.');
|
|
2953
|
+
}
|
|
2954
|
+
if (body === null || body === undefined) {
|
|
2955
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2956
|
+
}
|
|
2957
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2958
|
+
options.data = body !== undefined ? body : {};
|
|
2959
|
+
options.pathParams = { 'cluster_id': clusterId, 'resource_type': resourceType, };
|
|
2960
|
+
options.headers = localVarHeaderParameter;
|
|
2961
|
+
return options;
|
|
2962
|
+
},
|
|
2963
|
+
/**
|
|
2964
|
+
* 该接口用于修改集群名称。
|
|
2965
|
+
*
|
|
2966
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2967
|
+
*/
|
|
2968
|
+
updateClusterName(updateClusterNameRequest) {
|
|
2969
|
+
const options = {
|
|
2970
|
+
method: "POST",
|
|
2971
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/changename",
|
|
2972
|
+
contentType: "application/json",
|
|
2973
|
+
queryParams: {},
|
|
2974
|
+
pathParams: {},
|
|
2975
|
+
headers: {},
|
|
2976
|
+
data: {}
|
|
2977
|
+
};
|
|
2978
|
+
const localVarHeaderParameter = {};
|
|
2979
|
+
let body;
|
|
2980
|
+
let clusterId;
|
|
2981
|
+
if (updateClusterNameRequest !== null && updateClusterNameRequest !== undefined) {
|
|
2982
|
+
if (updateClusterNameRequest instanceof UpdateClusterNameRequest_1.UpdateClusterNameRequest) {
|
|
2983
|
+
clusterId = updateClusterNameRequest.clusterId;
|
|
2984
|
+
body = updateClusterNameRequest.body;
|
|
2985
|
+
}
|
|
2986
|
+
else {
|
|
2987
|
+
clusterId = updateClusterNameRequest['cluster_id'];
|
|
2988
|
+
body = updateClusterNameRequest['body'];
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
if (clusterId === null || clusterId === undefined) {
|
|
2992
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateClusterName.');
|
|
2993
|
+
}
|
|
2994
|
+
if (body === null || body === undefined) {
|
|
2995
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
2996
|
+
}
|
|
2997
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2998
|
+
options.data = body !== undefined ? body : {};
|
|
2999
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3000
|
+
options.headers = localVarHeaderParameter;
|
|
3001
|
+
return options;
|
|
3002
|
+
},
|
|
3003
|
+
/**
|
|
3004
|
+
* 该接口用于集群扩容实例(仅支持扩容elasticsearch实例)。只扩容普通节点,且只针对要扩容的集群实例不存在特殊节点(Master、Client、冷数据节点)的情况。
|
|
3005
|
+
*
|
|
3006
|
+
* 集群扩容实例的数量和存储容量,请参考[扩容实例的数量和存储容量](UpdateExtendInstanceStorage.xml)。
|
|
3007
|
+
*
|
|
3008
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3009
|
+
*/
|
|
3010
|
+
updateExtendCluster(updateExtendClusterRequest) {
|
|
3011
|
+
const options = {
|
|
3012
|
+
method: "POST",
|
|
3013
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/extend",
|
|
3014
|
+
contentType: "application/json",
|
|
3015
|
+
queryParams: {},
|
|
3016
|
+
pathParams: {},
|
|
3017
|
+
headers: {},
|
|
3018
|
+
data: {}
|
|
3019
|
+
};
|
|
3020
|
+
const localVarHeaderParameter = {};
|
|
3021
|
+
let body;
|
|
3022
|
+
let clusterId;
|
|
3023
|
+
if (updateExtendClusterRequest !== null && updateExtendClusterRequest !== undefined) {
|
|
3024
|
+
if (updateExtendClusterRequest instanceof UpdateExtendClusterRequest_1.UpdateExtendClusterRequest) {
|
|
3025
|
+
clusterId = updateExtendClusterRequest.clusterId;
|
|
3026
|
+
body = updateExtendClusterRequest.body;
|
|
3027
|
+
}
|
|
3028
|
+
else {
|
|
3029
|
+
clusterId = updateExtendClusterRequest['cluster_id'];
|
|
3030
|
+
body = updateExtendClusterRequest['body'];
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3034
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateExtendCluster.');
|
|
3035
|
+
}
|
|
3036
|
+
if (body === null || body === undefined) {
|
|
3037
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3038
|
+
}
|
|
3039
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3040
|
+
options.data = body !== undefined ? body : {};
|
|
3041
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3042
|
+
options.headers = localVarHeaderParameter;
|
|
3043
|
+
return options;
|
|
3044
|
+
},
|
|
3045
|
+
/**
|
|
3046
|
+
* 该接口用于集群扩容不同类型实例的个数以及存储容量。已经存在独立Master、Client、冷数据节点的集群使用该接口扩容。
|
|
3047
|
+
*
|
|
3048
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3049
|
+
*/
|
|
3050
|
+
updateExtendInstanceStorage(updateExtendInstanceStorageRequest) {
|
|
3051
|
+
const options = {
|
|
3052
|
+
method: "POST",
|
|
3053
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/role_extend",
|
|
3054
|
+
contentType: "application/json",
|
|
3055
|
+
queryParams: {},
|
|
3056
|
+
pathParams: {},
|
|
3057
|
+
headers: {},
|
|
3058
|
+
data: {}
|
|
3059
|
+
};
|
|
3060
|
+
const localVarHeaderParameter = {};
|
|
3061
|
+
let body;
|
|
3062
|
+
let clusterId;
|
|
3063
|
+
if (updateExtendInstanceStorageRequest !== null && updateExtendInstanceStorageRequest !== undefined) {
|
|
3064
|
+
if (updateExtendInstanceStorageRequest instanceof UpdateExtendInstanceStorageRequest_1.UpdateExtendInstanceStorageRequest) {
|
|
3065
|
+
clusterId = updateExtendInstanceStorageRequest.clusterId;
|
|
3066
|
+
body = updateExtendInstanceStorageRequest.body;
|
|
3067
|
+
}
|
|
3068
|
+
else {
|
|
3069
|
+
clusterId = updateExtendInstanceStorageRequest['cluster_id'];
|
|
3070
|
+
body = updateExtendInstanceStorageRequest['body'];
|
|
3071
|
+
}
|
|
3072
|
+
}
|
|
3073
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3074
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateExtendInstanceStorage.');
|
|
3075
|
+
}
|
|
3076
|
+
if (body === null || body === undefined) {
|
|
3077
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3078
|
+
}
|
|
3079
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3080
|
+
options.data = body !== undefined ? body : {};
|
|
3081
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3082
|
+
options.headers = localVarHeaderParameter;
|
|
3083
|
+
return options;
|
|
3084
|
+
},
|
|
3085
|
+
/**
|
|
3086
|
+
* 该接口用于变更集群规格。只支持变更ess节点类型。
|
|
3087
|
+
*
|
|
3088
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3089
|
+
*/
|
|
3090
|
+
updateFlavor(updateFlavorRequest) {
|
|
3091
|
+
const options = {
|
|
3092
|
+
method: "POST",
|
|
3093
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/flavor",
|
|
3094
|
+
contentType: "application/json",
|
|
3095
|
+
queryParams: {},
|
|
3096
|
+
pathParams: {},
|
|
3097
|
+
headers: {},
|
|
3098
|
+
data: {}
|
|
3099
|
+
};
|
|
3100
|
+
const localVarHeaderParameter = {};
|
|
3101
|
+
let body;
|
|
3102
|
+
let clusterId;
|
|
3103
|
+
if (updateFlavorRequest !== null && updateFlavorRequest !== undefined) {
|
|
3104
|
+
if (updateFlavorRequest instanceof UpdateFlavorRequest_1.UpdateFlavorRequest) {
|
|
3105
|
+
clusterId = updateFlavorRequest.clusterId;
|
|
3106
|
+
body = updateFlavorRequest.body;
|
|
3107
|
+
}
|
|
3108
|
+
else {
|
|
3109
|
+
clusterId = updateFlavorRequest['cluster_id'];
|
|
3110
|
+
body = updateFlavorRequest['body'];
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3113
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3114
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateFlavor.');
|
|
3115
|
+
}
|
|
3116
|
+
if (body === null || body === undefined) {
|
|
3117
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3118
|
+
}
|
|
3119
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3120
|
+
options.data = body !== undefined ? body : {};
|
|
3121
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3122
|
+
options.headers = localVarHeaderParameter;
|
|
3123
|
+
return options;
|
|
3124
|
+
},
|
|
3125
|
+
/**
|
|
3126
|
+
* 修改集群规格。支持修改:
|
|
3127
|
+
* - ess: 数据节点。
|
|
3128
|
+
* - ess-cold: 冷数据节点。
|
|
3129
|
+
* - ess-client: Client节点。
|
|
3130
|
+
* - ess-master: Master节点。
|
|
3131
|
+
*
|
|
3132
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3133
|
+
*/
|
|
3134
|
+
updateFlavorByType(updateFlavorByTypeRequest) {
|
|
3135
|
+
const options = {
|
|
3136
|
+
method: "POST",
|
|
3137
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/{types}/flavor",
|
|
3138
|
+
contentType: "application/json",
|
|
3139
|
+
queryParams: {},
|
|
3140
|
+
pathParams: {},
|
|
3141
|
+
headers: {},
|
|
3142
|
+
data: {}
|
|
3143
|
+
};
|
|
3144
|
+
const localVarHeaderParameter = {};
|
|
3145
|
+
let body;
|
|
3146
|
+
let clusterId;
|
|
3147
|
+
let types;
|
|
3148
|
+
if (updateFlavorByTypeRequest !== null && updateFlavorByTypeRequest !== undefined) {
|
|
3149
|
+
if (updateFlavorByTypeRequest instanceof UpdateFlavorByTypeRequest_1.UpdateFlavorByTypeRequest) {
|
|
3150
|
+
clusterId = updateFlavorByTypeRequest.clusterId;
|
|
3151
|
+
types = updateFlavorByTypeRequest.types;
|
|
3152
|
+
body = updateFlavorByTypeRequest.body;
|
|
3153
|
+
}
|
|
3154
|
+
else {
|
|
3155
|
+
clusterId = updateFlavorByTypeRequest['cluster_id'];
|
|
3156
|
+
types = updateFlavorByTypeRequest['types'];
|
|
3157
|
+
body = updateFlavorByTypeRequest['body'];
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3161
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateFlavorByType.');
|
|
3162
|
+
}
|
|
3163
|
+
if (types === null || types === undefined) {
|
|
3164
|
+
throw new RequiredError('types', 'Required parameter types was null or undefined when calling updateFlavorByType.');
|
|
3165
|
+
}
|
|
3166
|
+
if (body === null || body === undefined) {
|
|
3167
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3168
|
+
}
|
|
3169
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3170
|
+
options.data = body !== undefined ? body : {};
|
|
3171
|
+
options.pathParams = { 'cluster_id': clusterId, 'types': types, };
|
|
3172
|
+
options.headers = localVarHeaderParameter;
|
|
3173
|
+
return options;
|
|
3174
|
+
},
|
|
3175
|
+
/**
|
|
3176
|
+
* 该接口用于替换失败节点。
|
|
3177
|
+
*
|
|
3178
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3179
|
+
*/
|
|
3180
|
+
updateInstance(updateInstanceRequest) {
|
|
3181
|
+
const options = {
|
|
3182
|
+
method: "PUT",
|
|
3183
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/instance/{instance_id}/replace",
|
|
3184
|
+
contentType: "application/json",
|
|
3185
|
+
queryParams: {},
|
|
3186
|
+
pathParams: {},
|
|
3187
|
+
headers: {}
|
|
3188
|
+
};
|
|
3189
|
+
const localVarHeaderParameter = {};
|
|
3190
|
+
let clusterId;
|
|
3191
|
+
let instanceId;
|
|
3192
|
+
if (updateInstanceRequest !== null && updateInstanceRequest !== undefined) {
|
|
3193
|
+
if (updateInstanceRequest instanceof UpdateInstanceRequest_1.UpdateInstanceRequest) {
|
|
3194
|
+
clusterId = updateInstanceRequest.clusterId;
|
|
3195
|
+
instanceId = updateInstanceRequest.instanceId;
|
|
3196
|
+
}
|
|
3197
|
+
else {
|
|
3198
|
+
clusterId = updateInstanceRequest['cluster_id'];
|
|
3199
|
+
instanceId = updateInstanceRequest['instance_id'];
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3203
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateInstance.');
|
|
3204
|
+
}
|
|
3205
|
+
if (instanceId === null || instanceId === undefined) {
|
|
3206
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updateInstance.');
|
|
3207
|
+
}
|
|
3208
|
+
options.pathParams = { 'cluster_id': clusterId, 'instance_id': instanceId, };
|
|
3209
|
+
options.headers = localVarHeaderParameter;
|
|
3210
|
+
return options;
|
|
3211
|
+
},
|
|
3212
|
+
/**
|
|
3213
|
+
* 该接口用于修改日志基础配置。
|
|
3214
|
+
*
|
|
3215
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3216
|
+
*/
|
|
3217
|
+
updateLogSetting(updateLogSettingRequest) {
|
|
3218
|
+
const options = {
|
|
3219
|
+
method: "POST",
|
|
3220
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/logs/settings",
|
|
3221
|
+
contentType: "application/json",
|
|
3222
|
+
queryParams: {},
|
|
3223
|
+
pathParams: {},
|
|
3224
|
+
headers: {},
|
|
3225
|
+
data: {}
|
|
3226
|
+
};
|
|
3227
|
+
const localVarHeaderParameter = {};
|
|
3228
|
+
let body;
|
|
3229
|
+
let clusterId;
|
|
3230
|
+
if (updateLogSettingRequest !== null && updateLogSettingRequest !== undefined) {
|
|
3231
|
+
if (updateLogSettingRequest instanceof UpdateLogSettingRequest_1.UpdateLogSettingRequest) {
|
|
3232
|
+
clusterId = updateLogSettingRequest.clusterId;
|
|
3233
|
+
body = updateLogSettingRequest.body;
|
|
3234
|
+
}
|
|
3235
|
+
else {
|
|
3236
|
+
clusterId = updateLogSettingRequest['cluster_id'];
|
|
3237
|
+
body = updateLogSettingRequest['body'];
|
|
3238
|
+
}
|
|
3239
|
+
}
|
|
3240
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3241
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateLogSetting.');
|
|
3242
|
+
}
|
|
3243
|
+
if (body === null || body === undefined) {
|
|
3244
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3245
|
+
}
|
|
3246
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3247
|
+
options.data = body !== undefined ? body : {};
|
|
3248
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3249
|
+
options.headers = localVarHeaderParameter;
|
|
3250
|
+
return options;
|
|
3251
|
+
},
|
|
3252
|
+
/**
|
|
3253
|
+
* 该接口用于按需集群转包周期集群。
|
|
3254
|
+
*
|
|
3255
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3256
|
+
*/
|
|
3257
|
+
updateOndemandClusterToPeriod(updateOndemandClusterToPeriodRequest) {
|
|
3258
|
+
const options = {
|
|
3259
|
+
method: "POST",
|
|
3260
|
+
url: "/v1.0/{project_id}/cluster/{cluster_id}/period",
|
|
3261
|
+
contentType: "application/json",
|
|
3262
|
+
queryParams: {},
|
|
3263
|
+
pathParams: {},
|
|
3264
|
+
headers: {},
|
|
3265
|
+
data: {}
|
|
3266
|
+
};
|
|
3267
|
+
const localVarHeaderParameter = {};
|
|
3268
|
+
let body;
|
|
3269
|
+
let clusterId;
|
|
3270
|
+
if (updateOndemandClusterToPeriodRequest !== null && updateOndemandClusterToPeriodRequest !== undefined) {
|
|
3271
|
+
if (updateOndemandClusterToPeriodRequest instanceof UpdateOndemandClusterToPeriodRequest_1.UpdateOndemandClusterToPeriodRequest) {
|
|
3272
|
+
clusterId = updateOndemandClusterToPeriodRequest.clusterId;
|
|
3273
|
+
body = updateOndemandClusterToPeriodRequest.body;
|
|
3274
|
+
}
|
|
3275
|
+
else {
|
|
3276
|
+
clusterId = updateOndemandClusterToPeriodRequest['cluster_id'];
|
|
3277
|
+
body = updateOndemandClusterToPeriodRequest['body'];
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3281
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateOndemandClusterToPeriod.');
|
|
3282
|
+
}
|
|
3283
|
+
if (body === null || body === undefined) {
|
|
3284
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3285
|
+
}
|
|
3286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3287
|
+
options.data = body !== undefined ? body : {};
|
|
3288
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3289
|
+
options.headers = localVarHeaderParameter;
|
|
3290
|
+
return options;
|
|
3291
|
+
},
|
|
3292
|
+
/**
|
|
3293
|
+
* 该接口用于修改公网访问带宽。
|
|
3294
|
+
*
|
|
3295
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3296
|
+
*/
|
|
3297
|
+
updatePublicBandWidth(updatePublicBandWidthRequest) {
|
|
3298
|
+
const options = {
|
|
3299
|
+
method: "POST",
|
|
3300
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/public/bandwidth",
|
|
3301
|
+
contentType: "application/json",
|
|
3302
|
+
queryParams: {},
|
|
3303
|
+
pathParams: {},
|
|
3304
|
+
headers: {},
|
|
3305
|
+
data: {}
|
|
3306
|
+
};
|
|
3307
|
+
const localVarHeaderParameter = {};
|
|
3308
|
+
let body;
|
|
3309
|
+
let clusterId;
|
|
3310
|
+
if (updatePublicBandWidthRequest !== null && updatePublicBandWidthRequest !== undefined) {
|
|
3311
|
+
if (updatePublicBandWidthRequest instanceof UpdatePublicBandWidthRequest_1.UpdatePublicBandWidthRequest) {
|
|
3312
|
+
clusterId = updatePublicBandWidthRequest.clusterId;
|
|
3313
|
+
body = updatePublicBandWidthRequest.body;
|
|
3314
|
+
}
|
|
3315
|
+
else {
|
|
3316
|
+
clusterId = updatePublicBandWidthRequest['cluster_id'];
|
|
3317
|
+
body = updatePublicBandWidthRequest['body'];
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3321
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updatePublicBandWidth.');
|
|
3322
|
+
}
|
|
3323
|
+
if (body === null || body === undefined) {
|
|
3324
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3325
|
+
}
|
|
3326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3327
|
+
options.data = body !== undefined ? body : {};
|
|
3328
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3329
|
+
options.headers = localVarHeaderParameter;
|
|
3330
|
+
return options;
|
|
3331
|
+
},
|
|
3332
|
+
/**
|
|
3333
|
+
* 该接口用于集群对不同类型实例的个数以及存储容量进行缩容。包周期类型的集群不支持通过api进行指定节点类型缩容操作。
|
|
3334
|
+
*
|
|
3335
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3336
|
+
*/
|
|
3337
|
+
updateShrinkCluster(updateShrinkClusterRequest) {
|
|
3338
|
+
const options = {
|
|
3339
|
+
method: "POST",
|
|
3340
|
+
url: "/v1.0/extend/{project_id}/clusters/{cluster_id}/role/shrink",
|
|
3341
|
+
contentType: "application/json",
|
|
3342
|
+
queryParams: {},
|
|
3343
|
+
pathParams: {},
|
|
3344
|
+
headers: {},
|
|
3345
|
+
data: {}
|
|
3346
|
+
};
|
|
3347
|
+
const localVarHeaderParameter = {};
|
|
3348
|
+
let body;
|
|
3349
|
+
let clusterId;
|
|
3350
|
+
if (updateShrinkClusterRequest !== null && updateShrinkClusterRequest !== undefined) {
|
|
3351
|
+
if (updateShrinkClusterRequest instanceof UpdateShrinkClusterRequest_1.UpdateShrinkClusterRequest) {
|
|
3352
|
+
clusterId = updateShrinkClusterRequest.clusterId;
|
|
3353
|
+
body = updateShrinkClusterRequest.body;
|
|
3354
|
+
}
|
|
3355
|
+
else {
|
|
3356
|
+
clusterId = updateShrinkClusterRequest['cluster_id'];
|
|
3357
|
+
body = updateShrinkClusterRequest['body'];
|
|
3358
|
+
}
|
|
3359
|
+
}
|
|
3360
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3361
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateShrinkCluster.');
|
|
3362
|
+
}
|
|
3363
|
+
if (body === null || body === undefined) {
|
|
3364
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3365
|
+
}
|
|
3366
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3367
|
+
options.data = body !== undefined ? body : {};
|
|
3368
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3369
|
+
options.headers = localVarHeaderParameter;
|
|
3370
|
+
return options;
|
|
3371
|
+
},
|
|
3372
|
+
/**
|
|
3373
|
+
* 该接口可以对集群现有节点中指定节点进行缩容。包周期类型的集群不支持通过api进行指定节点缩容操作。
|
|
3374
|
+
*
|
|
3375
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3376
|
+
*/
|
|
3377
|
+
updateShrinkNodes(updateShrinkNodesRequest) {
|
|
3378
|
+
const options = {
|
|
3379
|
+
method: "POST",
|
|
3380
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/node/offline",
|
|
3381
|
+
contentType: "application/json",
|
|
3382
|
+
queryParams: {},
|
|
3383
|
+
pathParams: {},
|
|
3384
|
+
headers: {},
|
|
3385
|
+
data: {}
|
|
3386
|
+
};
|
|
3387
|
+
const localVarHeaderParameter = {};
|
|
3388
|
+
let body;
|
|
3389
|
+
let clusterId;
|
|
3390
|
+
if (updateShrinkNodesRequest !== null && updateShrinkNodesRequest !== undefined) {
|
|
3391
|
+
if (updateShrinkNodesRequest instanceof UpdateShrinkNodesRequest_1.UpdateShrinkNodesRequest) {
|
|
3392
|
+
clusterId = updateShrinkNodesRequest.clusterId;
|
|
3393
|
+
body = updateShrinkNodesRequest.body;
|
|
3394
|
+
}
|
|
3395
|
+
else {
|
|
3396
|
+
clusterId = updateShrinkNodesRequest['cluster_id'];
|
|
3397
|
+
body = updateShrinkNodesRequest['body'];
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3401
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateShrinkNodes.');
|
|
3402
|
+
}
|
|
3403
|
+
if (body === null || body === undefined) {
|
|
3404
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3405
|
+
}
|
|
3406
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3407
|
+
options.data = body !== undefined ? body : {};
|
|
3408
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3409
|
+
options.headers = localVarHeaderParameter;
|
|
3410
|
+
return options;
|
|
3411
|
+
},
|
|
3412
|
+
/**
|
|
3413
|
+
* 该接口用于修改集群快照的基础配置,可修改OBS桶和IAM委托。
|
|
3414
|
+
*
|
|
3415
|
+
* 可以使用该接口开启快照功能。
|
|
3416
|
+
*
|
|
3417
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3418
|
+
*/
|
|
3419
|
+
updateSnapshotSetting(updateSnapshotSettingRequest) {
|
|
3420
|
+
const options = {
|
|
3421
|
+
method: "POST",
|
|
3422
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/index_snapshot/setting",
|
|
3423
|
+
contentType: "application/json",
|
|
3424
|
+
queryParams: {},
|
|
3425
|
+
pathParams: {},
|
|
3426
|
+
headers: {},
|
|
3427
|
+
data: {}
|
|
3428
|
+
};
|
|
3429
|
+
const localVarHeaderParameter = {};
|
|
3430
|
+
let body;
|
|
3431
|
+
let clusterId;
|
|
3432
|
+
if (updateSnapshotSettingRequest !== null && updateSnapshotSettingRequest !== undefined) {
|
|
3433
|
+
if (updateSnapshotSettingRequest instanceof UpdateSnapshotSettingRequest_1.UpdateSnapshotSettingRequest) {
|
|
3434
|
+
clusterId = updateSnapshotSettingRequest.clusterId;
|
|
3435
|
+
body = updateSnapshotSettingRequest.body;
|
|
3436
|
+
}
|
|
3437
|
+
else {
|
|
3438
|
+
clusterId = updateSnapshotSettingRequest['cluster_id'];
|
|
3439
|
+
body = updateSnapshotSettingRequest['body'];
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3443
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateSnapshotSetting.');
|
|
3444
|
+
}
|
|
3445
|
+
if (body === null || body === undefined) {
|
|
3446
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3447
|
+
}
|
|
3448
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3449
|
+
options.data = body !== undefined ? body : {};
|
|
3450
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3451
|
+
options.headers = localVarHeaderParameter;
|
|
3452
|
+
return options;
|
|
3453
|
+
},
|
|
3454
|
+
/**
|
|
3455
|
+
* 该接口用于关闭公网访问。包周期类型的集群不支持通过api进行关闭公网访问。
|
|
3456
|
+
*
|
|
3457
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3458
|
+
*/
|
|
3459
|
+
updateUnbindPublic(updateUnbindPublicRequest) {
|
|
3460
|
+
const options = {
|
|
3461
|
+
method: "PUT",
|
|
3462
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/public/close",
|
|
3463
|
+
contentType: "application/json",
|
|
3464
|
+
queryParams: {},
|
|
3465
|
+
pathParams: {},
|
|
3466
|
+
headers: {},
|
|
3467
|
+
data: {}
|
|
3468
|
+
};
|
|
3469
|
+
const localVarHeaderParameter = {};
|
|
3470
|
+
let body;
|
|
3471
|
+
let clusterId;
|
|
3472
|
+
if (updateUnbindPublicRequest !== null && updateUnbindPublicRequest !== undefined) {
|
|
3473
|
+
if (updateUnbindPublicRequest instanceof UpdateUnbindPublicRequest_1.UpdateUnbindPublicRequest) {
|
|
3474
|
+
clusterId = updateUnbindPublicRequest.clusterId;
|
|
3475
|
+
body = updateUnbindPublicRequest.body;
|
|
3476
|
+
}
|
|
3477
|
+
else {
|
|
3478
|
+
clusterId = updateUnbindPublicRequest['cluster_id'];
|
|
3479
|
+
body = updateUnbindPublicRequest['body'];
|
|
3480
|
+
}
|
|
3481
|
+
}
|
|
3482
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3483
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateUnbindPublic.');
|
|
3484
|
+
}
|
|
3485
|
+
if (body === null || body === undefined) {
|
|
3486
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3487
|
+
}
|
|
3488
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3489
|
+
options.data = body !== undefined ? body : {};
|
|
3490
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3491
|
+
options.headers = localVarHeaderParameter;
|
|
3492
|
+
return options;
|
|
3493
|
+
},
|
|
3494
|
+
/**
|
|
3495
|
+
* 该接口用于更新终端节点连接。
|
|
3496
|
+
*
|
|
3497
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3498
|
+
*/
|
|
3499
|
+
updateVpcepConnection(updateVpcepConnectionRequest) {
|
|
3500
|
+
const options = {
|
|
3501
|
+
method: "POST",
|
|
3502
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/connections",
|
|
3503
|
+
contentType: "application/json",
|
|
3504
|
+
queryParams: {},
|
|
3505
|
+
pathParams: {},
|
|
3506
|
+
headers: {},
|
|
3507
|
+
data: {}
|
|
3508
|
+
};
|
|
3509
|
+
const localVarHeaderParameter = {};
|
|
3510
|
+
let body;
|
|
3511
|
+
let clusterId;
|
|
3512
|
+
if (updateVpcepConnectionRequest !== null && updateVpcepConnectionRequest !== undefined) {
|
|
3513
|
+
if (updateVpcepConnectionRequest instanceof UpdateVpcepConnectionRequest_1.UpdateVpcepConnectionRequest) {
|
|
3514
|
+
clusterId = updateVpcepConnectionRequest.clusterId;
|
|
3515
|
+
body = updateVpcepConnectionRequest.body;
|
|
3516
|
+
}
|
|
3517
|
+
else {
|
|
3518
|
+
clusterId = updateVpcepConnectionRequest['cluster_id'];
|
|
3519
|
+
body = updateVpcepConnectionRequest['body'];
|
|
3520
|
+
}
|
|
3521
|
+
}
|
|
3522
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3523
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateVpcepConnection.');
|
|
3524
|
+
}
|
|
3525
|
+
if (body === null || body === undefined) {
|
|
3526
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3527
|
+
}
|
|
3528
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3529
|
+
options.data = body !== undefined ? body : {};
|
|
3530
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3531
|
+
options.headers = localVarHeaderParameter;
|
|
3532
|
+
return options;
|
|
3533
|
+
},
|
|
3534
|
+
/**
|
|
3535
|
+
* 该接口用于修改终端节点服务白名单。
|
|
3536
|
+
*
|
|
3537
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3538
|
+
*/
|
|
3539
|
+
updateVpcepWhitelist(updateVpcepWhitelistRequest) {
|
|
3540
|
+
const options = {
|
|
3541
|
+
method: "POST",
|
|
3542
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/vpcepservice/permissions",
|
|
3543
|
+
contentType: "application/json",
|
|
3544
|
+
queryParams: {},
|
|
3545
|
+
pathParams: {},
|
|
3546
|
+
headers: {},
|
|
3547
|
+
data: {}
|
|
3548
|
+
};
|
|
3549
|
+
const localVarHeaderParameter = {};
|
|
3550
|
+
let body;
|
|
3551
|
+
let clusterId;
|
|
3552
|
+
if (updateVpcepWhitelistRequest !== null && updateVpcepWhitelistRequest !== undefined) {
|
|
3553
|
+
if (updateVpcepWhitelistRequest instanceof UpdateVpcepWhitelistRequest_1.UpdateVpcepWhitelistRequest) {
|
|
3554
|
+
clusterId = updateVpcepWhitelistRequest.clusterId;
|
|
3555
|
+
body = updateVpcepWhitelistRequest.body;
|
|
3556
|
+
}
|
|
3557
|
+
else {
|
|
3558
|
+
clusterId = updateVpcepWhitelistRequest['cluster_id'];
|
|
3559
|
+
body = updateVpcepWhitelistRequest['body'];
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3563
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateVpcepWhitelist.');
|
|
3564
|
+
}
|
|
3565
|
+
if (body === null || body === undefined) {
|
|
3566
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3567
|
+
}
|
|
3568
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3569
|
+
options.data = body !== undefined ? body : {};
|
|
3570
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3571
|
+
options.headers = localVarHeaderParameter;
|
|
3572
|
+
return options;
|
|
3573
|
+
},
|
|
3574
|
+
/**
|
|
3575
|
+
* 该接口用于修改参数配置。
|
|
3576
|
+
*
|
|
3577
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3578
|
+
*/
|
|
3579
|
+
updateYmls(updateYmlsRequest) {
|
|
3580
|
+
const options = {
|
|
3581
|
+
method: "POST",
|
|
3582
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/ymls/update",
|
|
3583
|
+
contentType: "application/json",
|
|
3584
|
+
queryParams: {},
|
|
3585
|
+
pathParams: {},
|
|
3586
|
+
headers: {},
|
|
3587
|
+
data: {}
|
|
3588
|
+
};
|
|
3589
|
+
const localVarHeaderParameter = {};
|
|
3590
|
+
let body;
|
|
3591
|
+
let clusterId;
|
|
3592
|
+
if (updateYmlsRequest !== null && updateYmlsRequest !== undefined) {
|
|
3593
|
+
if (updateYmlsRequest instanceof UpdateYmlsRequest_1.UpdateYmlsRequest) {
|
|
3594
|
+
clusterId = updateYmlsRequest.clusterId;
|
|
3595
|
+
body = updateYmlsRequest.body;
|
|
3596
|
+
}
|
|
3597
|
+
else {
|
|
3598
|
+
clusterId = updateYmlsRequest['cluster_id'];
|
|
3599
|
+
body = updateYmlsRequest['body'];
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3603
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateYmls.');
|
|
3604
|
+
}
|
|
3605
|
+
if (body === null || body === undefined) {
|
|
3606
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3607
|
+
}
|
|
3608
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3609
|
+
options.data = body !== undefined ? body : {};
|
|
3610
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3611
|
+
options.headers = localVarHeaderParameter;
|
|
3612
|
+
return options;
|
|
3613
|
+
},
|
|
3614
|
+
/**
|
|
3615
|
+
* 该接口用于开启Kibana公网访问。
|
|
3616
|
+
*
|
|
3617
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3618
|
+
*/
|
|
3619
|
+
startKibanaPublic(startKibanaPublicRequest) {
|
|
3620
|
+
const options = {
|
|
3621
|
+
method: "POST",
|
|
3622
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/publickibana/open",
|
|
3623
|
+
contentType: "application/json",
|
|
3624
|
+
queryParams: {},
|
|
3625
|
+
pathParams: {},
|
|
3626
|
+
headers: {},
|
|
3627
|
+
data: {}
|
|
3628
|
+
};
|
|
3629
|
+
const localVarHeaderParameter = {};
|
|
3630
|
+
let body;
|
|
3631
|
+
let clusterId;
|
|
3632
|
+
if (startKibanaPublicRequest !== null && startKibanaPublicRequest !== undefined) {
|
|
3633
|
+
if (startKibanaPublicRequest instanceof StartKibanaPublicRequest_1.StartKibanaPublicRequest) {
|
|
3634
|
+
clusterId = startKibanaPublicRequest.clusterId;
|
|
3635
|
+
body = startKibanaPublicRequest.body;
|
|
3636
|
+
}
|
|
3637
|
+
else {
|
|
3638
|
+
clusterId = startKibanaPublicRequest['cluster_id'];
|
|
3639
|
+
body = startKibanaPublicRequest['body'];
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3643
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startKibanaPublic.');
|
|
3644
|
+
}
|
|
3645
|
+
if (body === null || body === undefined) {
|
|
3646
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3647
|
+
}
|
|
3648
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3649
|
+
options.data = body !== undefined ? body : {};
|
|
3650
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3651
|
+
options.headers = localVarHeaderParameter;
|
|
3652
|
+
return options;
|
|
3653
|
+
},
|
|
3654
|
+
/**
|
|
3655
|
+
* 该接口用于关闭Kibana公网访问控制。
|
|
3656
|
+
*
|
|
3657
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3658
|
+
*/
|
|
3659
|
+
stopPublicKibanaWhitelist(stopPublicKibanaWhitelistRequest) {
|
|
3660
|
+
const options = {
|
|
3661
|
+
method: "PUT",
|
|
3662
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/close",
|
|
3663
|
+
contentType: "application/json",
|
|
3664
|
+
queryParams: {},
|
|
3665
|
+
pathParams: {},
|
|
3666
|
+
headers: {}
|
|
3667
|
+
};
|
|
3668
|
+
const localVarHeaderParameter = {};
|
|
3669
|
+
let clusterId;
|
|
3670
|
+
if (stopPublicKibanaWhitelistRequest !== null && stopPublicKibanaWhitelistRequest !== undefined) {
|
|
3671
|
+
if (stopPublicKibanaWhitelistRequest instanceof StopPublicKibanaWhitelistRequest_1.StopPublicKibanaWhitelistRequest) {
|
|
3672
|
+
clusterId = stopPublicKibanaWhitelistRequest.clusterId;
|
|
3673
|
+
}
|
|
3674
|
+
else {
|
|
3675
|
+
clusterId = stopPublicKibanaWhitelistRequest['cluster_id'];
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3678
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3679
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopPublicKibanaWhitelist.');
|
|
3680
|
+
}
|
|
3681
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3682
|
+
options.headers = localVarHeaderParameter;
|
|
3683
|
+
return options;
|
|
3684
|
+
},
|
|
3685
|
+
/**
|
|
3686
|
+
* 该接口用于修改Kibana公网带宽。
|
|
3687
|
+
*
|
|
3688
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3689
|
+
*/
|
|
3690
|
+
updateAlterKibana(updateAlterKibanaRequest) {
|
|
3691
|
+
const options = {
|
|
3692
|
+
method: "POST",
|
|
3693
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/publickibana/bandwidth",
|
|
3694
|
+
contentType: "application/json",
|
|
3695
|
+
queryParams: {},
|
|
3696
|
+
pathParams: {},
|
|
3697
|
+
headers: {},
|
|
3698
|
+
data: {}
|
|
3699
|
+
};
|
|
3700
|
+
const localVarHeaderParameter = {};
|
|
3701
|
+
let body;
|
|
3702
|
+
let clusterId;
|
|
3703
|
+
if (updateAlterKibanaRequest !== null && updateAlterKibanaRequest !== undefined) {
|
|
3704
|
+
if (updateAlterKibanaRequest instanceof UpdateAlterKibanaRequest_1.UpdateAlterKibanaRequest) {
|
|
3705
|
+
clusterId = updateAlterKibanaRequest.clusterId;
|
|
3706
|
+
body = updateAlterKibanaRequest.body;
|
|
3707
|
+
}
|
|
3708
|
+
else {
|
|
3709
|
+
clusterId = updateAlterKibanaRequest['cluster_id'];
|
|
3710
|
+
body = updateAlterKibanaRequest['body'];
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3714
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateAlterKibana.');
|
|
3715
|
+
}
|
|
3716
|
+
if (body === null || body === undefined) {
|
|
3717
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3718
|
+
}
|
|
3719
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3720
|
+
options.data = body !== undefined ? body : {};
|
|
3721
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3722
|
+
options.headers = localVarHeaderParameter;
|
|
3723
|
+
return options;
|
|
3724
|
+
},
|
|
3725
|
+
/**
|
|
3726
|
+
* 该接口用于关闭Kibana公网访问。包周期类型集群不支持通过api进行关闭Kibana公网访问。
|
|
3727
|
+
*
|
|
3728
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3729
|
+
*/
|
|
3730
|
+
updateCloseKibana(updateCloseKibanaRequest) {
|
|
3731
|
+
const options = {
|
|
3732
|
+
method: "PUT",
|
|
3733
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/publickibana/close",
|
|
3734
|
+
contentType: "application/json",
|
|
3735
|
+
queryParams: {},
|
|
3736
|
+
pathParams: {},
|
|
3737
|
+
headers: {},
|
|
3738
|
+
data: {}
|
|
3739
|
+
};
|
|
3740
|
+
const localVarHeaderParameter = {};
|
|
3741
|
+
let body;
|
|
3742
|
+
let clusterId;
|
|
3743
|
+
if (updateCloseKibanaRequest !== null && updateCloseKibanaRequest !== undefined) {
|
|
3744
|
+
if (updateCloseKibanaRequest instanceof UpdateCloseKibanaRequest_1.UpdateCloseKibanaRequest) {
|
|
3745
|
+
clusterId = updateCloseKibanaRequest.clusterId;
|
|
3746
|
+
body = updateCloseKibanaRequest.body;
|
|
3747
|
+
}
|
|
3748
|
+
else {
|
|
3749
|
+
clusterId = updateCloseKibanaRequest['cluster_id'];
|
|
3750
|
+
body = updateCloseKibanaRequest['body'];
|
|
3751
|
+
}
|
|
3752
|
+
}
|
|
3753
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3754
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateCloseKibana.');
|
|
3755
|
+
}
|
|
3756
|
+
if (body === null || body === undefined) {
|
|
3757
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3758
|
+
}
|
|
3759
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3760
|
+
options.data = body !== undefined ? body : {};
|
|
3761
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3762
|
+
options.headers = localVarHeaderParameter;
|
|
3763
|
+
return options;
|
|
3764
|
+
},
|
|
3765
|
+
/**
|
|
3766
|
+
* 该接口通过修改kibana白名单,修改kibana的访问权限。
|
|
3767
|
+
*
|
|
3768
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3769
|
+
*/
|
|
3770
|
+
updatePublicKibanaWhitelist(updatePublicKibanaWhitelistRequest) {
|
|
3771
|
+
const options = {
|
|
3772
|
+
method: "POST",
|
|
3773
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/publickibana/whitelist/update",
|
|
3774
|
+
contentType: "application/json",
|
|
3775
|
+
queryParams: {},
|
|
3776
|
+
pathParams: {},
|
|
3777
|
+
headers: {},
|
|
3778
|
+
data: {}
|
|
3779
|
+
};
|
|
3780
|
+
const localVarHeaderParameter = {};
|
|
3781
|
+
let body;
|
|
3782
|
+
let clusterId;
|
|
3783
|
+
if (updatePublicKibanaWhitelistRequest !== null && updatePublicKibanaWhitelistRequest !== undefined) {
|
|
3784
|
+
if (updatePublicKibanaWhitelistRequest instanceof UpdatePublicKibanaWhitelistRequest_1.UpdatePublicKibanaWhitelistRequest) {
|
|
3785
|
+
clusterId = updatePublicKibanaWhitelistRequest.clusterId;
|
|
3786
|
+
body = updatePublicKibanaWhitelistRequest.body;
|
|
3787
|
+
}
|
|
3788
|
+
else {
|
|
3789
|
+
clusterId = updatePublicKibanaWhitelistRequest['cluster_id'];
|
|
3790
|
+
body = updatePublicKibanaWhitelistRequest['body'];
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3794
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updatePublicKibanaWhitelist.');
|
|
3795
|
+
}
|
|
3796
|
+
if (body === null || body === undefined) {
|
|
3797
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3798
|
+
}
|
|
3799
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3800
|
+
options.data = body !== undefined ? body : {};
|
|
3801
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3802
|
+
options.headers = localVarHeaderParameter;
|
|
3803
|
+
return options;
|
|
3804
|
+
},
|
|
3805
|
+
/**
|
|
3806
|
+
* 该接口用于添加到自定义模板。
|
|
3807
|
+
*
|
|
3808
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3809
|
+
*/
|
|
3810
|
+
addFavorite(addFavoriteRequest) {
|
|
3811
|
+
const options = {
|
|
3812
|
+
method: "POST",
|
|
3813
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/favorite",
|
|
3814
|
+
contentType: "application/json",
|
|
3815
|
+
queryParams: {},
|
|
3816
|
+
pathParams: {},
|
|
3817
|
+
headers: {},
|
|
3818
|
+
data: {}
|
|
3819
|
+
};
|
|
3820
|
+
const localVarHeaderParameter = {};
|
|
3821
|
+
let body;
|
|
3822
|
+
let clusterId;
|
|
3823
|
+
if (addFavoriteRequest !== null && addFavoriteRequest !== undefined) {
|
|
3824
|
+
if (addFavoriteRequest instanceof AddFavoriteRequest_1.AddFavoriteRequest) {
|
|
3825
|
+
clusterId = addFavoriteRequest.clusterId;
|
|
3826
|
+
body = addFavoriteRequest.body;
|
|
3827
|
+
}
|
|
3828
|
+
else {
|
|
3829
|
+
clusterId = addFavoriteRequest['cluster_id'];
|
|
3830
|
+
body = addFavoriteRequest['body'];
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3834
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling addFavorite.');
|
|
3835
|
+
}
|
|
3836
|
+
if (body === null || body === undefined) {
|
|
3837
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3838
|
+
}
|
|
3839
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3840
|
+
options.data = body !== undefined ? body : {};
|
|
3841
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3842
|
+
options.headers = localVarHeaderParameter;
|
|
3843
|
+
return options;
|
|
3844
|
+
},
|
|
3845
|
+
/**
|
|
3846
|
+
* 该接口用于创建配置文件。
|
|
3847
|
+
*
|
|
3848
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3849
|
+
*/
|
|
3850
|
+
createCnf(createCnfRequest) {
|
|
3851
|
+
const options = {
|
|
3852
|
+
method: "POST",
|
|
3853
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/submit",
|
|
3854
|
+
contentType: "application/json",
|
|
3855
|
+
queryParams: {},
|
|
3856
|
+
pathParams: {},
|
|
3857
|
+
headers: {},
|
|
3858
|
+
data: {}
|
|
3859
|
+
};
|
|
3860
|
+
const localVarHeaderParameter = {};
|
|
3861
|
+
let body;
|
|
3862
|
+
let clusterId;
|
|
3863
|
+
if (createCnfRequest !== null && createCnfRequest !== undefined) {
|
|
3864
|
+
if (createCnfRequest instanceof CreateCnfRequest_1.CreateCnfRequest) {
|
|
3865
|
+
clusterId = createCnfRequest.clusterId;
|
|
3866
|
+
body = createCnfRequest.body;
|
|
3867
|
+
}
|
|
3868
|
+
else {
|
|
3869
|
+
clusterId = createCnfRequest['cluster_id'];
|
|
3870
|
+
body = createCnfRequest['body'];
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3874
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling createCnf.');
|
|
3875
|
+
}
|
|
3876
|
+
if (body === null || body === undefined) {
|
|
3877
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3878
|
+
}
|
|
3879
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3880
|
+
options.data = body !== undefined ? body : {};
|
|
3881
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3882
|
+
options.headers = localVarHeaderParameter;
|
|
3883
|
+
return options;
|
|
3884
|
+
},
|
|
3885
|
+
/**
|
|
3886
|
+
* 删除配置文件。
|
|
3887
|
+
*
|
|
3888
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3889
|
+
*/
|
|
3890
|
+
deleteConf(deleteConfRequest) {
|
|
3891
|
+
const options = {
|
|
3892
|
+
method: "DELETE",
|
|
3893
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/delete",
|
|
3894
|
+
contentType: "application/json",
|
|
3895
|
+
queryParams: {},
|
|
3896
|
+
pathParams: {},
|
|
3897
|
+
headers: {},
|
|
3898
|
+
data: {}
|
|
3899
|
+
};
|
|
3900
|
+
const localVarHeaderParameter = {};
|
|
3901
|
+
let body;
|
|
3902
|
+
let clusterId;
|
|
3903
|
+
if (deleteConfRequest !== null && deleteConfRequest !== undefined) {
|
|
3904
|
+
if (deleteConfRequest instanceof DeleteConfRequest_1.DeleteConfRequest) {
|
|
3905
|
+
clusterId = deleteConfRequest.clusterId;
|
|
3906
|
+
body = deleteConfRequest.body;
|
|
3907
|
+
}
|
|
3908
|
+
else {
|
|
3909
|
+
clusterId = deleteConfRequest['cluster_id'];
|
|
3910
|
+
body = deleteConfRequest['body'];
|
|
3911
|
+
}
|
|
3912
|
+
}
|
|
3913
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3914
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling deleteConf.');
|
|
3915
|
+
}
|
|
3916
|
+
if (body === null || body === undefined) {
|
|
3917
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3918
|
+
}
|
|
3919
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3920
|
+
options.data = body !== undefined ? body : {};
|
|
3921
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3922
|
+
options.headers = localVarHeaderParameter;
|
|
3923
|
+
return options;
|
|
3924
|
+
},
|
|
3925
|
+
/**
|
|
3926
|
+
* 该接口用于删除自定义模板。
|
|
3927
|
+
*
|
|
3928
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3929
|
+
*/
|
|
3930
|
+
deleteTemplate(deleteTemplateRequest) {
|
|
3931
|
+
const options = {
|
|
3932
|
+
method: "DELETE",
|
|
3933
|
+
url: "/v1.0/{project_id}/lgsconf/deletetemplate",
|
|
3934
|
+
contentType: "application/json",
|
|
3935
|
+
queryParams: {},
|
|
3936
|
+
pathParams: {},
|
|
3937
|
+
headers: {},
|
|
3938
|
+
data: {}
|
|
3939
|
+
};
|
|
3940
|
+
const localVarHeaderParameter = {};
|
|
3941
|
+
let body;
|
|
3942
|
+
if (deleteTemplateRequest !== null && deleteTemplateRequest !== undefined) {
|
|
3943
|
+
if (deleteTemplateRequest instanceof DeleteTemplateRequest_1.DeleteTemplateRequest) {
|
|
3944
|
+
body = deleteTemplateRequest.body;
|
|
3945
|
+
}
|
|
3946
|
+
else {
|
|
3947
|
+
body = deleteTemplateRequest['body'];
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
if (body === null || body === undefined) {
|
|
3951
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
3952
|
+
}
|
|
3953
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3954
|
+
options.data = body !== undefined ? body : {};
|
|
3955
|
+
options.headers = localVarHeaderParameter;
|
|
3956
|
+
return options;
|
|
3957
|
+
},
|
|
3958
|
+
/**
|
|
3959
|
+
* 该接口用于查询操作记录。
|
|
3960
|
+
*
|
|
3961
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3962
|
+
*/
|
|
3963
|
+
listActions(listActionsRequest) {
|
|
3964
|
+
const options = {
|
|
3965
|
+
method: "GET",
|
|
3966
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listactions",
|
|
3967
|
+
contentType: "application/json",
|
|
3968
|
+
queryParams: {},
|
|
3969
|
+
pathParams: {},
|
|
3970
|
+
headers: {}
|
|
3971
|
+
};
|
|
3972
|
+
const localVarHeaderParameter = {};
|
|
3973
|
+
let clusterId;
|
|
3974
|
+
if (listActionsRequest !== null && listActionsRequest !== undefined) {
|
|
3975
|
+
if (listActionsRequest instanceof ListActionsRequest_1.ListActionsRequest) {
|
|
3976
|
+
clusterId = listActionsRequest.clusterId;
|
|
3977
|
+
}
|
|
3978
|
+
else {
|
|
3979
|
+
clusterId = listActionsRequest['cluster_id'];
|
|
3980
|
+
}
|
|
3981
|
+
}
|
|
3982
|
+
if (clusterId === null || clusterId === undefined) {
|
|
3983
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listActions.');
|
|
3984
|
+
}
|
|
3985
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
3986
|
+
options.headers = localVarHeaderParameter;
|
|
3987
|
+
return options;
|
|
3988
|
+
},
|
|
3989
|
+
/**
|
|
3990
|
+
* 该接口用于查询配置文件列表。
|
|
3991
|
+
*
|
|
3992
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3993
|
+
*/
|
|
3994
|
+
listConfs(listConfsRequest) {
|
|
3995
|
+
const options = {
|
|
3996
|
+
method: "GET",
|
|
3997
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listconfs",
|
|
3998
|
+
contentType: "application/json",
|
|
3999
|
+
queryParams: {},
|
|
4000
|
+
pathParams: {},
|
|
4001
|
+
headers: {}
|
|
4002
|
+
};
|
|
4003
|
+
const localVarHeaderParameter = {};
|
|
4004
|
+
let clusterId;
|
|
4005
|
+
if (listConfsRequest !== null && listConfsRequest !== undefined) {
|
|
4006
|
+
if (listConfsRequest instanceof ListConfsRequest_1.ListConfsRequest) {
|
|
4007
|
+
clusterId = listConfsRequest.clusterId;
|
|
4008
|
+
}
|
|
4009
|
+
else {
|
|
4010
|
+
clusterId = listConfsRequest['cluster_id'];
|
|
4011
|
+
}
|
|
4012
|
+
}
|
|
4013
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4014
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listConfs.');
|
|
4015
|
+
}
|
|
4016
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4017
|
+
options.headers = localVarHeaderParameter;
|
|
4018
|
+
return options;
|
|
4019
|
+
},
|
|
4020
|
+
/**
|
|
4021
|
+
* 该接口用于查询pipeline列表。
|
|
4022
|
+
*
|
|
4023
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4024
|
+
*/
|
|
4025
|
+
listPipelines(listPipelinesRequest) {
|
|
4026
|
+
const options = {
|
|
4027
|
+
method: "GET",
|
|
4028
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/listpipelines",
|
|
4029
|
+
contentType: "application/json",
|
|
4030
|
+
queryParams: {},
|
|
4031
|
+
pathParams: {},
|
|
4032
|
+
headers: {}
|
|
4033
|
+
};
|
|
4034
|
+
const localVarHeaderParameter = {};
|
|
4035
|
+
let clusterId;
|
|
4036
|
+
if (listPipelinesRequest !== null && listPipelinesRequest !== undefined) {
|
|
4037
|
+
if (listPipelinesRequest instanceof ListPipelinesRequest_1.ListPipelinesRequest) {
|
|
4038
|
+
clusterId = listPipelinesRequest.clusterId;
|
|
4039
|
+
}
|
|
4040
|
+
else {
|
|
4041
|
+
clusterId = listPipelinesRequest['cluster_id'];
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4045
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling listPipelines.');
|
|
4046
|
+
}
|
|
4047
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4048
|
+
options.headers = localVarHeaderParameter;
|
|
4049
|
+
return options;
|
|
4050
|
+
},
|
|
4051
|
+
/**
|
|
4052
|
+
* 该接口用于查询模板列表。
|
|
4053
|
+
*
|
|
4054
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4055
|
+
*/
|
|
4056
|
+
listTemplates(listTemplatesRequest) {
|
|
4057
|
+
const options = {
|
|
4058
|
+
method: "GET",
|
|
4059
|
+
url: "/v1.0/{project_id}/lgsconf/template",
|
|
4060
|
+
contentType: "application/json",
|
|
4061
|
+
queryParams: {},
|
|
4062
|
+
pathParams: {},
|
|
4063
|
+
headers: {}
|
|
4064
|
+
};
|
|
4065
|
+
const localVarHeaderParameter = {};
|
|
4066
|
+
const localVarQueryParameter = {};
|
|
4067
|
+
let type;
|
|
4068
|
+
if (listTemplatesRequest !== null && listTemplatesRequest !== undefined) {
|
|
4069
|
+
if (listTemplatesRequest instanceof ListTemplatesRequest_1.ListTemplatesRequest) {
|
|
4070
|
+
type = listTemplatesRequest.type;
|
|
4071
|
+
}
|
|
4072
|
+
else {
|
|
4073
|
+
type = listTemplatesRequest['type'];
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
if (type !== null && type !== undefined) {
|
|
4077
|
+
localVarQueryParameter['type'] = type;
|
|
4078
|
+
}
|
|
4079
|
+
options.queryParams = localVarQueryParameter;
|
|
4080
|
+
options.headers = localVarHeaderParameter;
|
|
4081
|
+
return options;
|
|
4082
|
+
},
|
|
4083
|
+
/**
|
|
4084
|
+
* 该接口用于查询配置文件内容。
|
|
4085
|
+
*
|
|
4086
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4087
|
+
*/
|
|
4088
|
+
showGetConfDetail(showGetConfDetailRequest) {
|
|
4089
|
+
const options = {
|
|
4090
|
+
method: "GET",
|
|
4091
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/confdetail",
|
|
4092
|
+
contentType: "application/json",
|
|
4093
|
+
queryParams: {},
|
|
4094
|
+
pathParams: {},
|
|
4095
|
+
headers: {}
|
|
4096
|
+
};
|
|
4097
|
+
const localVarHeaderParameter = {};
|
|
4098
|
+
const localVarQueryParameter = {};
|
|
4099
|
+
let clusterId;
|
|
4100
|
+
let name;
|
|
4101
|
+
if (showGetConfDetailRequest !== null && showGetConfDetailRequest !== undefined) {
|
|
4102
|
+
if (showGetConfDetailRequest instanceof ShowGetConfDetailRequest_1.ShowGetConfDetailRequest) {
|
|
4103
|
+
clusterId = showGetConfDetailRequest.clusterId;
|
|
4104
|
+
name = showGetConfDetailRequest.name;
|
|
4105
|
+
}
|
|
4106
|
+
else {
|
|
4107
|
+
clusterId = showGetConfDetailRequest['cluster_id'];
|
|
4108
|
+
name = showGetConfDetailRequest['name'];
|
|
4109
|
+
}
|
|
4110
|
+
}
|
|
4111
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4112
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling showGetConfDetail.');
|
|
4113
|
+
}
|
|
4114
|
+
if (name === null || name === undefined) {
|
|
4115
|
+
throw new RequiredError('name', 'Required parameter name was null or undefined when calling showGetConfDetail.');
|
|
4116
|
+
}
|
|
4117
|
+
if (name !== null && name !== undefined) {
|
|
4118
|
+
localVarQueryParameter['name'] = name;
|
|
4119
|
+
}
|
|
4120
|
+
options.queryParams = localVarQueryParameter;
|
|
4121
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4122
|
+
options.headers = localVarHeaderParameter;
|
|
4123
|
+
return options;
|
|
4124
|
+
},
|
|
4125
|
+
/**
|
|
4126
|
+
* 该接口用于连通性测试。
|
|
4127
|
+
*
|
|
4128
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4129
|
+
*/
|
|
4130
|
+
startConnectivityTest(startConnectivityTestRequest) {
|
|
4131
|
+
const options = {
|
|
4132
|
+
method: "POST",
|
|
4133
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/checkconnection",
|
|
4134
|
+
contentType: "application/json",
|
|
4135
|
+
queryParams: {},
|
|
4136
|
+
pathParams: {},
|
|
4137
|
+
headers: {},
|
|
4138
|
+
data: {}
|
|
4139
|
+
};
|
|
4140
|
+
const localVarHeaderParameter = {};
|
|
4141
|
+
let body;
|
|
4142
|
+
let clusterId;
|
|
4143
|
+
if (startConnectivityTestRequest !== null && startConnectivityTestRequest !== undefined) {
|
|
4144
|
+
if (startConnectivityTestRequest instanceof StartConnectivityTestRequest_1.StartConnectivityTestRequest) {
|
|
4145
|
+
clusterId = startConnectivityTestRequest.clusterId;
|
|
4146
|
+
body = startConnectivityTestRequest.body;
|
|
4147
|
+
}
|
|
4148
|
+
else {
|
|
4149
|
+
clusterId = startConnectivityTestRequest['cluster_id'];
|
|
4150
|
+
body = startConnectivityTestRequest['body'];
|
|
4151
|
+
}
|
|
4152
|
+
}
|
|
4153
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4154
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startConnectivityTest.');
|
|
4155
|
+
}
|
|
4156
|
+
if (body === null || body === undefined) {
|
|
4157
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4158
|
+
}
|
|
4159
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4160
|
+
options.data = body !== undefined ? body : {};
|
|
4161
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4162
|
+
options.headers = localVarHeaderParameter;
|
|
4163
|
+
return options;
|
|
4164
|
+
},
|
|
4165
|
+
/**
|
|
4166
|
+
* 该接口用于启动pipeline迁移数据。
|
|
4167
|
+
*
|
|
4168
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4169
|
+
*/
|
|
4170
|
+
startPipeline(startPipelineRequest) {
|
|
4171
|
+
const options = {
|
|
4172
|
+
method: "POST",
|
|
4173
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/start",
|
|
4174
|
+
contentType: "application/json",
|
|
4175
|
+
queryParams: {},
|
|
4176
|
+
pathParams: {},
|
|
4177
|
+
headers: {},
|
|
4178
|
+
data: {}
|
|
4179
|
+
};
|
|
4180
|
+
const localVarHeaderParameter = {};
|
|
4181
|
+
let body;
|
|
4182
|
+
let clusterId;
|
|
4183
|
+
if (startPipelineRequest !== null && startPipelineRequest !== undefined) {
|
|
4184
|
+
if (startPipelineRequest instanceof StartPipelineRequest_1.StartPipelineRequest) {
|
|
4185
|
+
clusterId = startPipelineRequest.clusterId;
|
|
4186
|
+
body = startPipelineRequest.body;
|
|
4187
|
+
}
|
|
4188
|
+
else {
|
|
4189
|
+
clusterId = startPipelineRequest['cluster_id'];
|
|
4190
|
+
body = startPipelineRequest['body'];
|
|
4191
|
+
}
|
|
4192
|
+
}
|
|
4193
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4194
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling startPipeline.');
|
|
4195
|
+
}
|
|
4196
|
+
if (body === null || body === undefined) {
|
|
4197
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4198
|
+
}
|
|
4199
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4200
|
+
options.data = body !== undefined ? body : {};
|
|
4201
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4202
|
+
options.headers = localVarHeaderParameter;
|
|
4203
|
+
return options;
|
|
4204
|
+
},
|
|
4205
|
+
/**
|
|
4206
|
+
* 该接口用于停止pipeline迁移数据。
|
|
4207
|
+
*
|
|
4208
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4209
|
+
*/
|
|
4210
|
+
stopPipeline(stopPipelineRequest) {
|
|
4211
|
+
const options = {
|
|
4212
|
+
method: "POST",
|
|
4213
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/stop",
|
|
4214
|
+
contentType: "application/json",
|
|
4215
|
+
queryParams: {},
|
|
4216
|
+
pathParams: {},
|
|
4217
|
+
headers: {}
|
|
4218
|
+
};
|
|
4219
|
+
const localVarHeaderParameter = {};
|
|
4220
|
+
let clusterId;
|
|
4221
|
+
if (stopPipelineRequest !== null && stopPipelineRequest !== undefined) {
|
|
4222
|
+
if (stopPipelineRequest instanceof StopPipelineRequest_1.StopPipelineRequest) {
|
|
4223
|
+
clusterId = stopPipelineRequest.clusterId;
|
|
4224
|
+
}
|
|
4225
|
+
else {
|
|
4226
|
+
clusterId = stopPipelineRequest['cluster_id'];
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4230
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling stopPipeline.');
|
|
4231
|
+
}
|
|
4232
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4233
|
+
options.headers = localVarHeaderParameter;
|
|
4234
|
+
return options;
|
|
4235
|
+
},
|
|
4236
|
+
/**
|
|
4237
|
+
* 该接口用于更新配置文件。
|
|
4238
|
+
*
|
|
4239
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4240
|
+
*/
|
|
4241
|
+
updateCnf(updateCnfRequest) {
|
|
4242
|
+
const options = {
|
|
4243
|
+
method: "POST",
|
|
4244
|
+
url: "/v1.0/{project_id}/clusters/{cluster_id}/lgsconf/update",
|
|
4245
|
+
contentType: "application/json",
|
|
4246
|
+
queryParams: {},
|
|
4247
|
+
pathParams: {},
|
|
4248
|
+
headers: {},
|
|
4249
|
+
data: {}
|
|
4250
|
+
};
|
|
4251
|
+
const localVarHeaderParameter = {};
|
|
4252
|
+
let body;
|
|
4253
|
+
let clusterId;
|
|
4254
|
+
if (updateCnfRequest !== null && updateCnfRequest !== undefined) {
|
|
4255
|
+
if (updateCnfRequest instanceof UpdateCnfRequest_1.UpdateCnfRequest) {
|
|
4256
|
+
clusterId = updateCnfRequest.clusterId;
|
|
4257
|
+
body = updateCnfRequest.body;
|
|
4258
|
+
}
|
|
4259
|
+
else {
|
|
4260
|
+
clusterId = updateCnfRequest['cluster_id'];
|
|
4261
|
+
body = updateCnfRequest['body'];
|
|
4262
|
+
}
|
|
4263
|
+
}
|
|
4264
|
+
if (clusterId === null || clusterId === undefined) {
|
|
4265
|
+
throw new RequiredError('clusterId', 'Required parameter clusterId was null or undefined when calling updateCnf.');
|
|
4266
|
+
}
|
|
4267
|
+
if (body === null || body === undefined) {
|
|
4268
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4269
|
+
}
|
|
4270
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4271
|
+
options.data = body !== undefined ? body : {};
|
|
4272
|
+
options.pathParams = { 'cluster_id': clusterId, };
|
|
4273
|
+
options.headers = localVarHeaderParameter;
|
|
4274
|
+
return options;
|
|
4275
|
+
},
|
|
4276
|
+
};
|
|
4277
|
+
};
|
|
4278
|
+
exports.ParamCreater = ParamCreater;
|
|
4279
|
+
function newClient(client) {
|
|
4280
|
+
return new CssClient(client);
|
|
4281
|
+
}
|
|
4282
|
+
/**
|
|
4283
|
+
*
|
|
4284
|
+
* @export
|
|
4285
|
+
* @class RequiredError
|
|
4286
|
+
* @extends {Error}
|
|
4287
|
+
*/
|
|
4288
|
+
class RequiredError extends Error {
|
|
4289
|
+
constructor(field, msg) {
|
|
4290
|
+
super(msg);
|
|
4291
|
+
this.field = field;
|
|
4292
|
+
this.name = "RequiredError";
|
|
4293
|
+
}
|
|
4294
|
+
}
|
|
4295
|
+
exports.RequiredError = RequiredError;
|
|
4296
|
+
//# sourceMappingURL=CssClient.js.map
|