@huaweicloud/huaweicloud-sdk-cbr 3.1.46 → 3.1.48
Sign up to get free protection for your applications and to get access to all the features.
- package/huaweicloud-sdk-cbr.d.ts +3 -0
- package/huaweicloud-sdk-cbr.d.ts.map +1 -0
- package/huaweicloud-sdk-cbr.js +32 -0
- package/huaweicloud-sdk-cbr.js.map +1 -0
- package/package.json +8 -4
- package/v1/CbrClient.d.ts +1805 -0
- package/v1/CbrClient.d.ts.map +1 -0
- package/v1/CbrClient.js +3784 -0
- package/v1/CbrClient.js.map +1 -0
- package/v1/CbrRegion.d.ts +27 -0
- package/v1/CbrRegion.d.ts.map +1 -0
- package/v1/CbrRegion.js +62 -0
- package/v1/CbrRegion.js.map +1 -0
- package/v1/model/AddAgentPathRequest.d.ts +11 -0
- package/v1/model/AddAgentPathRequest.d.ts.map +1 -0
- package/v1/model/AddAgentPathRequest.js +24 -0
- package/v1/model/AddAgentPathRequest.js.map +1 -0
- package/v1/model/AddAgentPathResponse.d.ts +9 -0
- package/v1/model/AddAgentPathResponse.d.ts.map +1 -0
- package/v1/model/AddAgentPathResponse.js +19 -0
- package/v1/model/AddAgentPathResponse.js.map +1 -0
- package/v1/model/AddMemberRequest.d.ts +11 -0
- package/v1/model/AddMemberRequest.d.ts.map +1 -0
- package/v1/model/AddMemberRequest.js +24 -0
- package/v1/model/AddMemberRequest.js.map +1 -0
- package/v1/model/AddMemberResponse.d.ts +10 -0
- package/v1/model/AddMemberResponse.d.ts.map +1 -0
- package/v1/model/AddMemberResponse.js +19 -0
- package/v1/model/AddMemberResponse.js.map +1 -0
- package/v1/model/AddMembersReq.d.ts +6 -0
- package/v1/model/AddMembersReq.d.ts.map +1 -0
- package/v1/model/AddMembersReq.js +14 -0
- package/v1/model/AddMembersReq.js.map +1 -0
- package/v1/model/AddVaultResourceRequest.d.ts +11 -0
- package/v1/model/AddVaultResourceRequest.d.ts.map +1 -0
- package/v1/model/AddVaultResourceRequest.js +24 -0
- package/v1/model/AddVaultResourceRequest.js.map +1 -0
- package/v1/model/AddVaultResourceResponse.d.ts +9 -0
- package/v1/model/AddVaultResourceResponse.d.ts.map +1 -0
- package/v1/model/AddVaultResourceResponse.js +21 -0
- package/v1/model/AddVaultResourceResponse.js.map +1 -0
- package/v1/model/Agent.d.ts +49 -0
- package/v1/model/Agent.d.ts.map +1 -0
- package/v1/model/Agent.js +118 -0
- package/v1/model/Agent.js.map +1 -0
- package/v1/model/AgentAddPathReq.d.ts +8 -0
- package/v1/model/AgentAddPathReq.d.ts.map +1 -0
- package/v1/model/AgentAddPathReq.js +20 -0
- package/v1/model/AgentAddPathReq.js.map +1 -0
- package/v1/model/AgentRegister.d.ts +32 -0
- package/v1/model/AgentRegister.d.ts.map +1 -0
- package/v1/model/AgentRegister.js +83 -0
- package/v1/model/AgentRegister.js.map +1 -0
- package/v1/model/AgentRegisterReq.d.ts +7 -0
- package/v1/model/AgentRegisterReq.d.ts.map +1 -0
- package/v1/model/AgentRegisterReq.js +14 -0
- package/v1/model/AgentRegisterReq.js.map +1 -0
- package/v1/model/AgentRemovePathReq.d.ts +8 -0
- package/v1/model/AgentRemovePathReq.d.ts.map +1 -0
- package/v1/model/AgentRemovePathReq.js +20 -0
- package/v1/model/AgentRemovePathReq.js.map +1 -0
- package/v1/model/AgentUpdate.d.ts +13 -0
- package/v1/model/AgentUpdate.d.ts.map +1 -0
- package/v1/model/AgentUpdate.js +22 -0
- package/v1/model/AgentUpdate.js.map +1 -0
- package/v1/model/AgentUpdateReq.d.ts +7 -0
- package/v1/model/AgentUpdateReq.d.ts.map +1 -0
- package/v1/model/AgentUpdateReq.js +14 -0
- package/v1/model/AgentUpdateReq.js.map +1 -0
- package/v1/model/AssociateVaultPolicyRequest.d.ts +11 -0
- package/v1/model/AssociateVaultPolicyRequest.d.ts.map +1 -0
- package/v1/model/AssociateVaultPolicyRequest.js +24 -0
- package/v1/model/AssociateVaultPolicyRequest.js.map +1 -0
- package/v1/model/AssociateVaultPolicyResponse.d.ts +10 -0
- package/v1/model/AssociateVaultPolicyResponse.d.ts.map +1 -0
- package/v1/model/AssociateVaultPolicyResponse.js +21 -0
- package/v1/model/AssociateVaultPolicyResponse.js.map +1 -0
- package/v1/model/BackupExtendInfo.d.ts +52 -0
- package/v1/model/BackupExtendInfo.d.ts.map +1 -0
- package/v1/model/BackupExtendInfo.js +111 -0
- package/v1/model/BackupExtendInfo.js.map +1 -0
- package/v1/model/BackupReplicateReq.d.ts +7 -0
- package/v1/model/BackupReplicateReq.d.ts.map +1 -0
- package/v1/model/BackupReplicateReq.js +14 -0
- package/v1/model/BackupReplicateReq.js.map +1 -0
- package/v1/model/BackupReplicateReqBody.d.ts +24 -0
- package/v1/model/BackupReplicateReqBody.d.ts.map +1 -0
- package/v1/model/BackupReplicateReqBody.js +60 -0
- package/v1/model/BackupReplicateReqBody.js.map +1 -0
- package/v1/model/BackupReplicateRespBody.d.ts +36 -0
- package/v1/model/BackupReplicateRespBody.d.ts.map +1 -0
- package/v1/model/BackupReplicateRespBody.js +89 -0
- package/v1/model/BackupReplicateRespBody.js.map +1 -0
- package/v1/model/BackupResp.d.ts +119 -0
- package/v1/model/BackupResp.d.ts.map +1 -0
- package/v1/model/BackupResp.js +263 -0
- package/v1/model/BackupResp.js.map +1 -0
- package/v1/model/BackupRestore.d.ts +23 -0
- package/v1/model/BackupRestore.d.ts.map +1 -0
- package/v1/model/BackupRestore.js +53 -0
- package/v1/model/BackupRestore.js.map +1 -0
- package/v1/model/BackupRestoreReq.d.ts +7 -0
- package/v1/model/BackupRestoreReq.d.ts.map +1 -0
- package/v1/model/BackupRestoreReq.js +14 -0
- package/v1/model/BackupRestoreReq.js.map +1 -0
- package/v1/model/BackupRestoreServerMapping.d.ts +12 -0
- package/v1/model/BackupRestoreServerMapping.d.ts.map +1 -0
- package/v1/model/BackupRestoreServerMapping.js +31 -0
- package/v1/model/BackupRestoreServerMapping.js.map +1 -0
- package/v1/model/BackupSync.d.ts +36 -0
- package/v1/model/BackupSync.d.ts.map +1 -0
- package/v1/model/BackupSync.js +97 -0
- package/v1/model/BackupSync.js.map +1 -0
- package/v1/model/BackupSyncReq.d.ts +7 -0
- package/v1/model/BackupSyncReq.d.ts.map +1 -0
- package/v1/model/BackupSyncReq.js +14 -0
- package/v1/model/BackupSyncReq.js.map +1 -0
- package/v1/model/BackupSyncRespBody.d.ts +12 -0
- package/v1/model/BackupSyncRespBody.d.ts.map +1 -0
- package/v1/model/BackupSyncRespBody.js +31 -0
- package/v1/model/BackupSyncRespBody.js.map +1 -0
- package/v1/model/BackupUpdate.d.ts +6 -0
- package/v1/model/BackupUpdate.d.ts.map +1 -0
- package/v1/model/BackupUpdate.js +13 -0
- package/v1/model/BackupUpdate.js.map +1 -0
- package/v1/model/BackupUpdateReq.d.ts +7 -0
- package/v1/model/BackupUpdateReq.d.ts.map +1 -0
- package/v1/model/BackupUpdateReq.js +13 -0
- package/v1/model/BackupUpdateReq.js.map +1 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.d.ts +11 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.d.ts.map +1 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.js +24 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.js.map +1 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.d.ts +5 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.d.ts.map +1 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.js +11 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.js.map +1 -0
- package/v1/model/BatchUpdateVaultRequest.d.ts +7 -0
- package/v1/model/BatchUpdateVaultRequest.d.ts.map +1 -0
- package/v1/model/BatchUpdateVaultRequest.js +13 -0
- package/v1/model/BatchUpdateVaultRequest.js.map +1 -0
- package/v1/model/BatchUpdateVaultRequestBody.d.ts +7 -0
- package/v1/model/BatchUpdateVaultRequestBody.d.ts.map +1 -0
- package/v1/model/BatchUpdateVaultRequestBody.js +14 -0
- package/v1/model/BatchUpdateVaultRequestBody.js.map +1 -0
- package/v1/model/BatchUpdateVaultResponse.d.ts +9 -0
- package/v1/model/BatchUpdateVaultResponse.d.ts.map +1 -0
- package/v1/model/BatchUpdateVaultResponse.js +21 -0
- package/v1/model/BatchUpdateVaultResponse.js.map +1 -0
- package/v1/model/Billing.d.ts +120 -0
- package/v1/model/Billing.d.ts.map +1 -0
- package/v1/model/Billing.js +214 -0
- package/v1/model/Billing.js.map +1 -0
- package/v1/model/BillingCreate.d.ts +115 -0
- package/v1/model/BillingCreate.d.ts.map +1 -0
- package/v1/model/BillingCreate.js +216 -0
- package/v1/model/BillingCreate.js.map +1 -0
- package/v1/model/BillingUpdate.d.ts +18 -0
- package/v1/model/BillingUpdate.d.ts.map +1 -0
- package/v1/model/BillingUpdate.js +32 -0
- package/v1/model/BillingUpdate.js.map +1 -0
- package/v1/model/BindRulesTags.d.ts +8 -0
- package/v1/model/BindRulesTags.d.ts.map +1 -0
- package/v1/model/BindRulesTags.js +19 -0
- package/v1/model/BindRulesTags.js.map +1 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.d.ts +22 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.d.ts.map +1 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.js +37 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.js.map +1 -0
- package/v1/model/CbcOrderResult.d.ts +12 -0
- package/v1/model/CbcOrderResult.d.ts.map +1 -0
- package/v1/model/CbcOrderResult.js +27 -0
- package/v1/model/CbcOrderResult.js.map +1 -0
- package/v1/model/CbcProductInfoUpdate.d.ts +12 -0
- package/v1/model/CbcProductInfoUpdate.d.ts.map +1 -0
- package/v1/model/CbcProductInfoUpdate.js +28 -0
- package/v1/model/CbcProductInfoUpdate.js.map +1 -0
- package/v1/model/CbcUpdate.d.ts +15 -0
- package/v1/model/CbcUpdate.d.ts.map +1 -0
- package/v1/model/CbcUpdate.js +33 -0
- package/v1/model/CbcUpdate.js.map +1 -0
- package/v1/model/CheckAgentRequest.d.ts +7 -0
- package/v1/model/CheckAgentRequest.d.ts.map +1 -0
- package/v1/model/CheckAgentRequest.js +13 -0
- package/v1/model/CheckAgentRequest.js.map +1 -0
- package/v1/model/CheckAgentResponse.d.ts +10 -0
- package/v1/model/CheckAgentResponse.d.ts.map +1 -0
- package/v1/model/CheckAgentResponse.js +21 -0
- package/v1/model/CheckAgentResponse.js.map +1 -0
- package/v1/model/CheckpointCreate.d.ts +36 -0
- package/v1/model/CheckpointCreate.d.ts.map +1 -0
- package/v1/model/CheckpointCreate.js +68 -0
- package/v1/model/CheckpointCreate.js.map +1 -0
- package/v1/model/CheckpointCreateSkippedResource.d.ts +14 -0
- package/v1/model/CheckpointCreateSkippedResource.d.ts.map +1 -0
- package/v1/model/CheckpointCreateSkippedResource.js +29 -0
- package/v1/model/CheckpointCreateSkippedResource.js.map +1 -0
- package/v1/model/CheckpointExtraInfoResp.d.ts +12 -0
- package/v1/model/CheckpointExtraInfoResp.d.ts.map +1 -0
- package/v1/model/CheckpointExtraInfoResp.js +27 -0
- package/v1/model/CheckpointExtraInfoResp.js.map +1 -0
- package/v1/model/CheckpointParam.d.ts +25 -0
- package/v1/model/CheckpointParam.d.ts.map +1 -0
- package/v1/model/CheckpointParam.js +55 -0
- package/v1/model/CheckpointParam.js.map +1 -0
- package/v1/model/CheckpointPlanCreate.d.ts +16 -0
- package/v1/model/CheckpointPlanCreate.d.ts.map +1 -0
- package/v1/model/CheckpointPlanCreate.js +33 -0
- package/v1/model/CheckpointPlanCreate.js.map +1 -0
- package/v1/model/CheckpointReplicateParam.d.ts +28 -0
- package/v1/model/CheckpointReplicateParam.d.ts.map +1 -0
- package/v1/model/CheckpointReplicateParam.js +73 -0
- package/v1/model/CheckpointReplicateParam.js.map +1 -0
- package/v1/model/CheckpointReplicateReq.d.ts +7 -0
- package/v1/model/CheckpointReplicateReq.d.ts.map +1 -0
- package/v1/model/CheckpointReplicateReq.js +14 -0
- package/v1/model/CheckpointReplicateReq.js.map +1 -0
- package/v1/model/CheckpointReplicateRespBody.d.ts +35 -0
- package/v1/model/CheckpointReplicateRespBody.d.ts.map +1 -0
- package/v1/model/CheckpointReplicateRespBody.js +91 -0
- package/v1/model/CheckpointReplicateRespBody.js.map +1 -0
- package/v1/model/CheckpointReplicateRespbackups.d.ts +12 -0
- package/v1/model/CheckpointReplicateRespbackups.d.ts.map +1 -0
- package/v1/model/CheckpointReplicateRespbackups.js +31 -0
- package/v1/model/CheckpointReplicateRespbackups.js.map +1 -0
- package/v1/model/CheckpointResourceResp.d.ts +41 -0
- package/v1/model/CheckpointResourceResp.d.ts.map +1 -0
- package/v1/model/CheckpointResourceResp.js +86 -0
- package/v1/model/CheckpointResourceResp.js.map +1 -0
- package/v1/model/CombinedOrder.d.ts +16 -0
- package/v1/model/CombinedOrder.d.ts.map +1 -0
- package/v1/model/CombinedOrder.js +39 -0
- package/v1/model/CombinedOrder.js.map +1 -0
- package/v1/model/CopyBackupRequest.d.ts +11 -0
- package/v1/model/CopyBackupRequest.d.ts.map +1 -0
- package/v1/model/CopyBackupRequest.js +24 -0
- package/v1/model/CopyBackupRequest.js.map +1 -0
- package/v1/model/CopyBackupResponse.d.ts +8 -0
- package/v1/model/CopyBackupResponse.d.ts.map +1 -0
- package/v1/model/CopyBackupResponse.js +15 -0
- package/v1/model/CopyBackupResponse.js.map +1 -0
- package/v1/model/CopyCheckpointRequest.d.ts +7 -0
- package/v1/model/CopyCheckpointRequest.d.ts.map +1 -0
- package/v1/model/CopyCheckpointRequest.js +13 -0
- package/v1/model/CopyCheckpointRequest.js.map +1 -0
- package/v1/model/CopyCheckpointResponse.d.ts +8 -0
- package/v1/model/CopyCheckpointResponse.d.ts.map +1 -0
- package/v1/model/CopyCheckpointResponse.js +15 -0
- package/v1/model/CopyCheckpointResponse.js.map +1 -0
- package/v1/model/CreateCheckpointRequest.d.ts +7 -0
- package/v1/model/CreateCheckpointRequest.d.ts.map +1 -0
- package/v1/model/CreateCheckpointRequest.js +13 -0
- package/v1/model/CreateCheckpointRequest.js.map +1 -0
- package/v1/model/CreateCheckpointResponse.d.ts +8 -0
- package/v1/model/CreateCheckpointResponse.d.ts.map +1 -0
- package/v1/model/CreateCheckpointResponse.js +15 -0
- package/v1/model/CreateCheckpointResponse.js.map +1 -0
- package/v1/model/CreatePolicyRequest.d.ts +7 -0
- package/v1/model/CreatePolicyRequest.d.ts.map +1 -0
- package/v1/model/CreatePolicyRequest.js +13 -0
- package/v1/model/CreatePolicyRequest.js.map +1 -0
- package/v1/model/CreatePolicyResponse.d.ts +8 -0
- package/v1/model/CreatePolicyResponse.d.ts.map +1 -0
- package/v1/model/CreatePolicyResponse.js +15 -0
- package/v1/model/CreatePolicyResponse.js.map +1 -0
- package/v1/model/CreatePostPaidVaultRequest.d.ts +7 -0
- package/v1/model/CreatePostPaidVaultRequest.d.ts.map +1 -0
- package/v1/model/CreatePostPaidVaultRequest.js +13 -0
- package/v1/model/CreatePostPaidVaultRequest.js.map +1 -0
- package/v1/model/CreatePostPaidVaultResponse.d.ts +16 -0
- package/v1/model/CreatePostPaidVaultResponse.d.ts.map +1 -0
- package/v1/model/CreatePostPaidVaultResponse.js +33 -0
- package/v1/model/CreatePostPaidVaultResponse.js.map +1 -0
- package/v1/model/CreateVaultRequest.d.ts +7 -0
- package/v1/model/CreateVaultRequest.d.ts.map +1 -0
- package/v1/model/CreateVaultRequest.js +13 -0
- package/v1/model/CreateVaultRequest.js.map +1 -0
- package/v1/model/CreateVaultResponse.d.ts +8 -0
- package/v1/model/CreateVaultResponse.d.ts.map +1 -0
- package/v1/model/CreateVaultResponse.js +15 -0
- package/v1/model/CreateVaultResponse.js.map +1 -0
- package/v1/model/CreateVaultTagsRequest.d.ts +11 -0
- package/v1/model/CreateVaultTagsRequest.d.ts.map +1 -0
- package/v1/model/CreateVaultTagsRequest.js +24 -0
- package/v1/model/CreateVaultTagsRequest.js.map +1 -0
- package/v1/model/CreateVaultTagsResponse.d.ts +5 -0
- package/v1/model/CreateVaultTagsResponse.d.ts.map +1 -0
- package/v1/model/CreateVaultTagsResponse.js +11 -0
- package/v1/model/CreateVaultTagsResponse.js.map +1 -0
- package/v1/model/DeleteBackupRequest.d.ts +8 -0
- package/v1/model/DeleteBackupRequest.d.ts.map +1 -0
- package/v1/model/DeleteBackupRequest.js +20 -0
- package/v1/model/DeleteBackupRequest.js.map +1 -0
- package/v1/model/DeleteBackupResponse.d.ts +5 -0
- package/v1/model/DeleteBackupResponse.d.ts.map +1 -0
- package/v1/model/DeleteBackupResponse.js +11 -0
- package/v1/model/DeleteBackupResponse.js.map +1 -0
- package/v1/model/DeleteMemberRequest.d.ts +12 -0
- package/v1/model/DeleteMemberRequest.d.ts.map +1 -0
- package/v1/model/DeleteMemberRequest.js +31 -0
- package/v1/model/DeleteMemberRequest.js.map +1 -0
- package/v1/model/DeleteMemberResponse.d.ts +5 -0
- package/v1/model/DeleteMemberResponse.d.ts.map +1 -0
- package/v1/model/DeleteMemberResponse.js +11 -0
- package/v1/model/DeleteMemberResponse.js.map +1 -0
- package/v1/model/DeletePolicyRequest.d.ts +8 -0
- package/v1/model/DeletePolicyRequest.d.ts.map +1 -0
- package/v1/model/DeletePolicyRequest.js +20 -0
- package/v1/model/DeletePolicyRequest.js.map +1 -0
- package/v1/model/DeletePolicyResponse.d.ts +5 -0
- package/v1/model/DeletePolicyResponse.d.ts.map +1 -0
- package/v1/model/DeletePolicyResponse.js +11 -0
- package/v1/model/DeletePolicyResponse.js.map +1 -0
- package/v1/model/DeleteVaultRequest.d.ts +8 -0
- package/v1/model/DeleteVaultRequest.d.ts.map +1 -0
- package/v1/model/DeleteVaultRequest.js +20 -0
- package/v1/model/DeleteVaultRequest.js.map +1 -0
- package/v1/model/DeleteVaultResponse.d.ts +5 -0
- package/v1/model/DeleteVaultResponse.d.ts.map +1 -0
- package/v1/model/DeleteVaultResponse.js +11 -0
- package/v1/model/DeleteVaultResponse.js.map +1 -0
- package/v1/model/DeleteVaultTagRequest.d.ts +10 -0
- package/v1/model/DeleteVaultTagRequest.d.ts.map +1 -0
- package/v1/model/DeleteVaultTagRequest.js +25 -0
- package/v1/model/DeleteVaultTagRequest.js.map +1 -0
- package/v1/model/DeleteVaultTagResponse.d.ts +5 -0
- package/v1/model/DeleteVaultTagResponse.d.ts.map +1 -0
- package/v1/model/DeleteVaultTagResponse.js +11 -0
- package/v1/model/DeleteVaultTagResponse.js.map +1 -0
- package/v1/model/DisassociateVaultPolicyRequest.d.ts +11 -0
- package/v1/model/DisassociateVaultPolicyRequest.d.ts.map +1 -0
- package/v1/model/DisassociateVaultPolicyRequest.js +24 -0
- package/v1/model/DisassociateVaultPolicyRequest.js.map +1 -0
- package/v1/model/DisassociateVaultPolicyResponse.d.ts +10 -0
- package/v1/model/DisassociateVaultPolicyResponse.d.ts.map +1 -0
- package/v1/model/DisassociateVaultPolicyResponse.js +21 -0
- package/v1/model/DisassociateVaultPolicyResponse.js.map +1 -0
- package/v1/model/DomainMigrate.d.ts +10 -0
- package/v1/model/DomainMigrate.d.ts.map +1 -0
- package/v1/model/DomainMigrate.js +25 -0
- package/v1/model/DomainMigrate.js.map +1 -0
- package/v1/model/DomainMigrateProjectStatus.d.ts +37 -0
- package/v1/model/DomainMigrateProjectStatus.d.ts.map +1 -0
- package/v1/model/DomainMigrateProjectStatus.js +80 -0
- package/v1/model/DomainMigrateProjectStatus.js.map +1 -0
- package/v1/model/DomainProjectsInfo.d.ts +12 -0
- package/v1/model/DomainProjectsInfo.d.ts.map +1 -0
- package/v1/model/DomainProjectsInfo.js +31 -0
- package/v1/model/DomainProjectsInfo.js.map +1 -0
- package/v1/model/ImageData.d.ts +8 -0
- package/v1/model/ImageData.d.ts.map +1 -0
- package/v1/model/ImageData.js +19 -0
- package/v1/model/ImageData.js.map +1 -0
- package/v1/model/ImportBackupRequest.d.ts +7 -0
- package/v1/model/ImportBackupRequest.d.ts.map +1 -0
- package/v1/model/ImportBackupRequest.js +13 -0
- package/v1/model/ImportBackupRequest.js.map +1 -0
- package/v1/model/ImportBackupResponse.d.ts +8 -0
- package/v1/model/ImportBackupResponse.d.ts.map +1 -0
- package/v1/model/ImportBackupResponse.js +15 -0
- package/v1/model/ImportBackupResponse.js.map +1 -0
- package/v1/model/ImportCheckpointRequest.d.ts +7 -0
- package/v1/model/ImportCheckpointRequest.d.ts.map +1 -0
- package/v1/model/ImportCheckpointRequest.js +13 -0
- package/v1/model/ImportCheckpointRequest.js.map +1 -0
- package/v1/model/ImportCheckpointResponse.d.ts +8 -0
- package/v1/model/ImportCheckpointResponse.d.ts.map +1 -0
- package/v1/model/ImportCheckpointResponse.js +15 -0
- package/v1/model/ImportCheckpointResponse.js.map +1 -0
- package/v1/model/InstancesResourceDetail.d.ts +7 -0
- package/v1/model/InstancesResourceDetail.d.ts.map +1 -0
- package/v1/model/InstancesResourceDetail.js +13 -0
- package/v1/model/InstancesResourceDetail.js.map +1 -0
- package/v1/model/ListAgentRequest.d.ts +14 -0
- package/v1/model/ListAgentRequest.d.ts.map +1 -0
- package/v1/model/ListAgentRequest.js +31 -0
- package/v1/model/ListAgentRequest.js.map +1 -0
- package/v1/model/ListAgentResponse.d.ts +14 -0
- package/v1/model/ListAgentResponse.d.ts.map +1 -0
- package/v1/model/ListAgentResponse.js +27 -0
- package/v1/model/ListAgentResponse.js.map +1 -0
- package/v1/model/ListBackupsRequest.d.ts +129 -0
- package/v1/model/ListBackupsRequest.d.ts.map +1 -0
- package/v1/model/ListBackupsRequest.js +245 -0
- package/v1/model/ListBackupsRequest.js.map +1 -0
- package/v1/model/ListBackupsResponse.d.ts +14 -0
- package/v1/model/ListBackupsResponse.d.ts.map +1 -0
- package/v1/model/ListBackupsResponse.js +27 -0
- package/v1/model/ListBackupsResponse.js.map +1 -0
- package/v1/model/ListDomainProjectsRequest.d.ts +8 -0
- package/v1/model/ListDomainProjectsRequest.d.ts.map +1 -0
- package/v1/model/ListDomainProjectsRequest.js +20 -0
- package/v1/model/ListDomainProjectsRequest.js.map +1 -0
- package/v1/model/ListDomainProjectsResponse.d.ts +8 -0
- package/v1/model/ListDomainProjectsResponse.d.ts.map +1 -0
- package/v1/model/ListDomainProjectsResponse.js +15 -0
- package/v1/model/ListDomainProjectsResponse.js.map +1 -0
- package/v1/model/ListExternalVaultRequest.d.ts +39 -0
- package/v1/model/ListExternalVaultRequest.d.ts.map +1 -0
- package/v1/model/ListExternalVaultRequest.js +87 -0
- package/v1/model/ListExternalVaultRequest.js.map +1 -0
- package/v1/model/ListExternalVaultResponse.d.ts +14 -0
- package/v1/model/ListExternalVaultResponse.d.ts.map +1 -0
- package/v1/model/ListExternalVaultResponse.js +27 -0
- package/v1/model/ListExternalVaultResponse.js.map +1 -0
- package/v1/model/ListOpLogsRequest.d.ts +72 -0
- package/v1/model/ListOpLogsRequest.d.ts.map +1 -0
- package/v1/model/ListOpLogsRequest.js +139 -0
- package/v1/model/ListOpLogsRequest.js.map +1 -0
- package/v1/model/ListOpLogsResponse.d.ts +16 -0
- package/v1/model/ListOpLogsResponse.d.ts.map +1 -0
- package/v1/model/ListOpLogsResponse.js +33 -0
- package/v1/model/ListOpLogsResponse.js.map +1 -0
- package/v1/model/ListPoliciesRequest.d.ts +20 -0
- package/v1/model/ListPoliciesRequest.d.ts.map +1 -0
- package/v1/model/ListPoliciesRequest.js +38 -0
- package/v1/model/ListPoliciesRequest.js.map +1 -0
- package/v1/model/ListPoliciesResponse.d.ts +10 -0
- package/v1/model/ListPoliciesResponse.d.ts.map +1 -0
- package/v1/model/ListPoliciesResponse.js +19 -0
- package/v1/model/ListPoliciesResponse.js.map +1 -0
- package/v1/model/ListProjectsRequest.d.ts +4 -0
- package/v1/model/ListProjectsRequest.d.ts.map +1 -0
- package/v1/model/ListProjectsRequest.js +9 -0
- package/v1/model/ListProjectsRequest.js.map +1 -0
- package/v1/model/ListProjectsResponse.d.ts +11 -0
- package/v1/model/ListProjectsResponse.d.ts.map +1 -0
- package/v1/model/ListProjectsResponse.js +19 -0
- package/v1/model/ListProjectsResponse.js.map +1 -0
- package/v1/model/ListProtectableRequest.d.ts +32 -0
- package/v1/model/ListProtectableRequest.d.ts.map +1 -0
- package/v1/model/ListProtectableRequest.js +63 -0
- package/v1/model/ListProtectableRequest.js.map +1 -0
- package/v1/model/ListProtectableResponse.d.ts +8 -0
- package/v1/model/ListProtectableResponse.d.ts.map +1 -0
- package/v1/model/ListProtectableResponse.js +15 -0
- package/v1/model/ListProtectableResponse.js.map +1 -0
- package/v1/model/ListVaultRequest.d.ts +54 -0
- package/v1/model/ListVaultRequest.d.ts.map +1 -0
- package/v1/model/ListVaultRequest.js +107 -0
- package/v1/model/ListVaultRequest.js.map +1 -0
- package/v1/model/ListVaultResponse.d.ts +14 -0
- package/v1/model/ListVaultResponse.d.ts.map +1 -0
- package/v1/model/ListVaultResponse.js +27 -0
- package/v1/model/ListVaultResponse.js.map +1 -0
- package/v1/model/Match.d.ts +8 -0
- package/v1/model/Match.d.ts.map +1 -0
- package/v1/model/Match.js +19 -0
- package/v1/model/Match.js.map +1 -0
- package/v1/model/Member.d.ts +41 -0
- package/v1/model/Member.d.ts.map +1 -0
- package/v1/model/Member.js +88 -0
- package/v1/model/Member.js.map +1 -0
- package/v1/model/MigrateDomainRequest.d.ts +7 -0
- package/v1/model/MigrateDomainRequest.d.ts.map +1 -0
- package/v1/model/MigrateDomainRequest.js +13 -0
- package/v1/model/MigrateDomainRequest.js.map +1 -0
- package/v1/model/MigrateDomainResponse.d.ts +11 -0
- package/v1/model/MigrateDomainResponse.d.ts.map +1 -0
- package/v1/model/MigrateDomainResponse.js +15 -0
- package/v1/model/MigrateDomainResponse.js.map +1 -0
- package/v1/model/MigrateVaultResourceRequest.d.ts +11 -0
- package/v1/model/MigrateVaultResourceRequest.d.ts.map +1 -0
- package/v1/model/MigrateVaultResourceRequest.js +24 -0
- package/v1/model/MigrateVaultResourceRequest.js.map +1 -0
- package/v1/model/MigrateVaultResourceResponse.d.ts +9 -0
- package/v1/model/MigrateVaultResourceResponse.d.ts.map +1 -0
- package/v1/model/MigrateVaultResourceResponse.js +21 -0
- package/v1/model/MigrateVaultResourceResponse.js.map +1 -0
- package/v1/model/OpErrorInfo.d.ts +8 -0
- package/v1/model/OpErrorInfo.d.ts.map +1 -0
- package/v1/model/OpErrorInfo.js +17 -0
- package/v1/model/OpErrorInfo.js.map +1 -0
- package/v1/model/OpExtendInfoBckup.d.ts +42 -0
- package/v1/model/OpExtendInfoBckup.d.ts.map +1 -0
- package/v1/model/OpExtendInfoBckup.js +82 -0
- package/v1/model/OpExtendInfoBckup.js.map +1 -0
- package/v1/model/OpExtendInfoCommon.d.ts +14 -0
- package/v1/model/OpExtendInfoCommon.d.ts.map +1 -0
- package/v1/model/OpExtendInfoCommon.js +35 -0
- package/v1/model/OpExtendInfoCommon.js.map +1 -0
- package/v1/model/OpExtendInfoDelete.d.ts +12 -0
- package/v1/model/OpExtendInfoDelete.d.ts.map +1 -0
- package/v1/model/OpExtendInfoDelete.js +31 -0
- package/v1/model/OpExtendInfoDelete.js.map +1 -0
- package/v1/model/OpExtendInfoRemoveResources.d.ts +15 -0
- package/v1/model/OpExtendInfoRemoveResources.d.ts.map +1 -0
- package/v1/model/OpExtendInfoRemoveResources.js +33 -0
- package/v1/model/OpExtendInfoRemoveResources.js.map +1 -0
- package/v1/model/OpExtendInfoReplication.d.ts +44 -0
- package/v1/model/OpExtendInfoReplication.d.ts.map +1 -0
- package/v1/model/OpExtendInfoReplication.js +114 -0
- package/v1/model/OpExtendInfoReplication.js.map +1 -0
- package/v1/model/OpExtendInfoRestore.d.ts +20 -0
- package/v1/model/OpExtendInfoRestore.d.ts.map +1 -0
- package/v1/model/OpExtendInfoRestore.js +49 -0
- package/v1/model/OpExtendInfoRestore.js.map +1 -0
- package/v1/model/OpExtendInfoSync.d.ts +16 -0
- package/v1/model/OpExtendInfoSync.d.ts.map +1 -0
- package/v1/model/OpExtendInfoSync.js +39 -0
- package/v1/model/OpExtendInfoSync.js.map +1 -0
- package/v1/model/OpExtendInfoVaultDelete.d.ts +12 -0
- package/v1/model/OpExtendInfoVaultDelete.d.ts.map +1 -0
- package/v1/model/OpExtendInfoVaultDelete.js +29 -0
- package/v1/model/OpExtendInfoVaultDelete.js.map +1 -0
- package/v1/model/OpExtraInfo.d.ts +37 -0
- package/v1/model/OpExtraInfo.d.ts.map +1 -0
- package/v1/model/OpExtraInfo.js +65 -0
- package/v1/model/OpExtraInfo.js.map +1 -0
- package/v1/model/OperationLog.d.ts +88 -0
- package/v1/model/OperationLog.d.ts.map +1 -0
- package/v1/model/OperationLog.js +182 -0
- package/v1/model/OperationLog.js.map +1 -0
- package/v1/model/Path.d.ts +16 -0
- package/v1/model/Path.d.ts.map +1 -0
- package/v1/model/Path.js +37 -0
- package/v1/model/Path.js.map +1 -0
- package/v1/model/Policy.d.ts +35 -0
- package/v1/model/Policy.d.ts.map +1 -0
- package/v1/model/Policy.js +70 -0
- package/v1/model/Policy.js.map +1 -0
- package/v1/model/PolicyAssociateVault.d.ts +12 -0
- package/v1/model/PolicyAssociateVault.d.ts.map +1 -0
- package/v1/model/PolicyAssociateVault.js +30 -0
- package/v1/model/PolicyAssociateVault.js.map +1 -0
- package/v1/model/PolicyCreate.d.ts +28 -0
- package/v1/model/PolicyCreate.d.ts.map +1 -0
- package/v1/model/PolicyCreate.js +54 -0
- package/v1/model/PolicyCreate.js.map +1 -0
- package/v1/model/PolicyCreateReq.d.ts +7 -0
- package/v1/model/PolicyCreateReq.d.ts.map +1 -0
- package/v1/model/PolicyCreateReq.js +14 -0
- package/v1/model/PolicyCreateReq.js.map +1 -0
- package/v1/model/PolicyTriggerPropertiesReq.d.ts +6 -0
- package/v1/model/PolicyTriggerPropertiesReq.d.ts.map +1 -0
- package/v1/model/PolicyTriggerPropertiesReq.js +14 -0
- package/v1/model/PolicyTriggerPropertiesReq.js.map +1 -0
- package/v1/model/PolicyTriggerPropertiesResp.d.ts +10 -0
- package/v1/model/PolicyTriggerPropertiesResp.d.ts.map +1 -0
- package/v1/model/PolicyTriggerPropertiesResp.js +24 -0
- package/v1/model/PolicyTriggerPropertiesResp.js.map +1 -0
- package/v1/model/PolicyTriggerReq.d.ts +7 -0
- package/v1/model/PolicyTriggerReq.d.ts.map +1 -0
- package/v1/model/PolicyTriggerReq.js +14 -0
- package/v1/model/PolicyTriggerReq.js.map +1 -0
- package/v1/model/PolicyTriggerResp.d.ts +20 -0
- package/v1/model/PolicyTriggerResp.d.ts.map +1 -0
- package/v1/model/PolicyTriggerResp.js +35 -0
- package/v1/model/PolicyTriggerResp.js.map +1 -0
- package/v1/model/PolicyUpdate.d.ts +16 -0
- package/v1/model/PolicyUpdate.d.ts.map +1 -0
- package/v1/model/PolicyUpdate.js +31 -0
- package/v1/model/PolicyUpdate.js.map +1 -0
- package/v1/model/PolicyUpdateReq.d.ts +7 -0
- package/v1/model/PolicyUpdateReq.d.ts.map +1 -0
- package/v1/model/PolicyUpdateReq.js +14 -0
- package/v1/model/PolicyUpdateReq.js.map +1 -0
- package/v1/model/PolicyoODCreate.d.ts +46 -0
- package/v1/model/PolicyoODCreate.d.ts.map +1 -0
- package/v1/model/PolicyoODCreate.js +113 -0
- package/v1/model/PolicyoODCreate.js.map +1 -0
- package/v1/model/ProjectsListInfo.d.ts +27 -0
- package/v1/model/ProjectsListInfo.d.ts.map +1 -0
- package/v1/model/ProjectsListInfo.js +59 -0
- package/v1/model/ProjectsListInfo.js.map +1 -0
- package/v1/model/ProtectableAgentReq.d.ts +9 -0
- package/v1/model/ProtectableAgentReq.d.ts.map +1 -0
- package/v1/model/ProtectableAgentReq.js +20 -0
- package/v1/model/ProtectableAgentReq.js.map +1 -0
- package/v1/model/ProtectableAgentStatus.d.ts +20 -0
- package/v1/model/ProtectableAgentStatus.d.ts.map +1 -0
- package/v1/model/ProtectableAgentStatus.js +45 -0
- package/v1/model/ProtectableAgentStatus.js.map +1 -0
- package/v1/model/ProtectableAgentStatusResource.d.ts +16 -0
- package/v1/model/ProtectableAgentStatusResource.d.ts.map +1 -0
- package/v1/model/ProtectableAgentStatusResource.js +41 -0
- package/v1/model/ProtectableAgentStatusResource.js.map +1 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.d.ts +10 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.d.ts.map +1 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.js +25 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.js.map +1 -0
- package/v1/model/ProtectableResult.d.ts +15 -0
- package/v1/model/ProtectableResult.d.ts.map +1 -0
- package/v1/model/ProtectableResult.js +30 -0
- package/v1/model/ProtectableResult.js.map +1 -0
- package/v1/model/ProtectablesResp.d.ts +30 -0
- package/v1/model/ProtectablesResp.d.ts.map +1 -0
- package/v1/model/ProtectablesResp.js +56 -0
- package/v1/model/ProtectablesResp.js.map +1 -0
- package/v1/model/RegisterAgentRequest.d.ts +7 -0
- package/v1/model/RegisterAgentRequest.d.ts.map +1 -0
- package/v1/model/RegisterAgentRequest.js +13 -0
- package/v1/model/RegisterAgentRequest.js.map +1 -0
- package/v1/model/RegisterAgentResponse.d.ts +8 -0
- package/v1/model/RegisterAgentResponse.d.ts.map +1 -0
- package/v1/model/RegisterAgentResponse.js +15 -0
- package/v1/model/RegisterAgentResponse.js.map +1 -0
- package/v1/model/RemoveAgentPathRequest.d.ts +11 -0
- package/v1/model/RemoveAgentPathRequest.d.ts.map +1 -0
- package/v1/model/RemoveAgentPathRequest.js +24 -0
- package/v1/model/RemoveAgentPathRequest.js.map +1 -0
- package/v1/model/RemoveAgentPathResponse.d.ts +11 -0
- package/v1/model/RemoveAgentPathResponse.d.ts.map +1 -0
- package/v1/model/RemoveAgentPathResponse.js +25 -0
- package/v1/model/RemoveAgentPathResponse.js.map +1 -0
- package/v1/model/RemoveVaultResourceRequest.d.ts +11 -0
- package/v1/model/RemoveVaultResourceRequest.d.ts.map +1 -0
- package/v1/model/RemoveVaultResourceRequest.js +24 -0
- package/v1/model/RemoveVaultResourceRequest.js.map +1 -0
- package/v1/model/RemoveVaultResourceResponse.d.ts +9 -0
- package/v1/model/RemoveVaultResourceResponse.d.ts.map +1 -0
- package/v1/model/RemoveVaultResourceResponse.js +21 -0
- package/v1/model/RemoveVaultResourceResponse.js.map +1 -0
- package/v1/model/ReplicationRecordGet.d.ts +68 -0
- package/v1/model/ReplicationRecordGet.d.ts.map +1 -0
- package/v1/model/ReplicationRecordGet.js +150 -0
- package/v1/model/ReplicationRecordGet.js.map +1 -0
- package/v1/model/ReplicationRecordsExtraInfo.d.ts +22 -0
- package/v1/model/ReplicationRecordsExtraInfo.d.ts.map +1 -0
- package/v1/model/ReplicationRecordsExtraInfo.js +53 -0
- package/v1/model/ReplicationRecordsExtraInfo.js.map +1 -0
- package/v1/model/Resource.d.ts +15 -0
- package/v1/model/Resource.d.ts.map +1 -0
- package/v1/model/Resource.js +33 -0
- package/v1/model/Resource.js.map +1 -0
- package/v1/model/ResourceCreate.d.ts +15 -0
- package/v1/model/ResourceCreate.d.ts.map +1 -0
- package/v1/model/ResourceCreate.js +33 -0
- package/v1/model/ResourceCreate.js.map +1 -0
- package/v1/model/ResourceExtraInfo.d.ts +13 -0
- package/v1/model/ResourceExtraInfo.d.ts.map +1 -0
- package/v1/model/ResourceExtraInfo.js +29 -0
- package/v1/model/ResourceExtraInfo.js.map +1 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.d.ts +10 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.d.ts.map +1 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.js +24 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.js.map +1 -0
- package/v1/model/ResourceResp.d.ts +44 -0
- package/v1/model/ResourceResp.d.ts.map +1 -0
- package/v1/model/ResourceResp.js +90 -0
- package/v1/model/ResourceResp.js.map +1 -0
- package/v1/model/RestoreBackupRequest.d.ts +11 -0
- package/v1/model/RestoreBackupRequest.d.ts.map +1 -0
- package/v1/model/RestoreBackupRequest.js +24 -0
- package/v1/model/RestoreBackupRequest.js.map +1 -0
- package/v1/model/RestoreBackupResponse.d.ts +5 -0
- package/v1/model/RestoreBackupResponse.d.ts.map +1 -0
- package/v1/model/RestoreBackupResponse.js +11 -0
- package/v1/model/RestoreBackupResponse.js.map +1 -0
- package/v1/model/SelfLinksInfo.d.ts +6 -0
- package/v1/model/SelfLinksInfo.d.ts.map +1 -0
- package/v1/model/SelfLinksInfo.js +13 -0
- package/v1/model/SelfLinksInfo.js.map +1 -0
- package/v1/model/SetVaultResourceRequest.d.ts +11 -0
- package/v1/model/SetVaultResourceRequest.d.ts.map +1 -0
- package/v1/model/SetVaultResourceRequest.js +24 -0
- package/v1/model/SetVaultResourceRequest.js.map +1 -0
- package/v1/model/SetVaultResourceResponse.d.ts +9 -0
- package/v1/model/SetVaultResourceResponse.d.ts.map +1 -0
- package/v1/model/SetVaultResourceResponse.js +21 -0
- package/v1/model/SetVaultResourceResponse.js.map +1 -0
- package/v1/model/ShowAgentRequest.d.ts +8 -0
- package/v1/model/ShowAgentRequest.d.ts.map +1 -0
- package/v1/model/ShowAgentRequest.js +20 -0
- package/v1/model/ShowAgentRequest.js.map +1 -0
- package/v1/model/ShowAgentResponse.d.ts +8 -0
- package/v1/model/ShowAgentResponse.d.ts.map +1 -0
- package/v1/model/ShowAgentResponse.js +15 -0
- package/v1/model/ShowAgentResponse.js.map +1 -0
- package/v1/model/ShowBackupRequest.d.ts +8 -0
- package/v1/model/ShowBackupRequest.d.ts.map +1 -0
- package/v1/model/ShowBackupRequest.js +20 -0
- package/v1/model/ShowBackupRequest.js.map +1 -0
- package/v1/model/ShowBackupResponse.d.ts +8 -0
- package/v1/model/ShowBackupResponse.d.ts.map +1 -0
- package/v1/model/ShowBackupResponse.js +15 -0
- package/v1/model/ShowBackupResponse.js.map +1 -0
- package/v1/model/ShowCheckpointRequest.d.ts +8 -0
- package/v1/model/ShowCheckpointRequest.d.ts.map +1 -0
- package/v1/model/ShowCheckpointRequest.js +20 -0
- package/v1/model/ShowCheckpointRequest.js.map +1 -0
- package/v1/model/ShowCheckpointResponse.d.ts +8 -0
- package/v1/model/ShowCheckpointResponse.d.ts.map +1 -0
- package/v1/model/ShowCheckpointResponse.js +15 -0
- package/v1/model/ShowCheckpointResponse.js.map +1 -0
- package/v1/model/ShowDomainRequest.d.ts +8 -0
- package/v1/model/ShowDomainRequest.d.ts.map +1 -0
- package/v1/model/ShowDomainRequest.js +20 -0
- package/v1/model/ShowDomainRequest.js.map +1 -0
- package/v1/model/ShowDomainResponse.d.ts +21 -0
- package/v1/model/ShowDomainResponse.d.ts.map +1 -0
- package/v1/model/ShowDomainResponse.js +51 -0
- package/v1/model/ShowDomainResponse.js.map +1 -0
- package/v1/model/ShowMemberDetailRequest.d.ts +12 -0
- package/v1/model/ShowMemberDetailRequest.d.ts.map +1 -0
- package/v1/model/ShowMemberDetailRequest.js +31 -0
- package/v1/model/ShowMemberDetailRequest.js.map +1 -0
- package/v1/model/ShowMemberDetailResponse.d.ts +8 -0
- package/v1/model/ShowMemberDetailResponse.d.ts.map +1 -0
- package/v1/model/ShowMemberDetailResponse.js +15 -0
- package/v1/model/ShowMemberDetailResponse.js.map +1 -0
- package/v1/model/ShowMembersDetailRequest.d.ts +30 -0
- package/v1/model/ShowMembersDetailRequest.d.ts.map +1 -0
- package/v1/model/ShowMembersDetailRequest.js +70 -0
- package/v1/model/ShowMembersDetailRequest.js.map +1 -0
- package/v1/model/ShowMembersDetailResponse.d.ts +10 -0
- package/v1/model/ShowMembersDetailResponse.d.ts.map +1 -0
- package/v1/model/ShowMembersDetailResponse.js +19 -0
- package/v1/model/ShowMembersDetailResponse.js.map +1 -0
- package/v1/model/ShowMetadataRequest.d.ts +8 -0
- package/v1/model/ShowMetadataRequest.d.ts.map +1 -0
- package/v1/model/ShowMetadataRequest.js +20 -0
- package/v1/model/ShowMetadataRequest.js.map +1 -0
- package/v1/model/ShowMetadataResponse.d.ts +25 -0
- package/v1/model/ShowMetadataResponse.d.ts.map +1 -0
- package/v1/model/ShowMetadataResponse.js +55 -0
- package/v1/model/ShowMetadataResponse.js.map +1 -0
- package/v1/model/ShowMigrateStatusRequest.d.ts +8 -0
- package/v1/model/ShowMigrateStatusRequest.d.ts.map +1 -0
- package/v1/model/ShowMigrateStatusRequest.js +19 -0
- package/v1/model/ShowMigrateStatusRequest.js.map +1 -0
- package/v1/model/ShowMigrateStatusResponse.d.ts +21 -0
- package/v1/model/ShowMigrateStatusResponse.d.ts.map +1 -0
- package/v1/model/ShowMigrateStatusResponse.js +35 -0
- package/v1/model/ShowMigrateStatusResponse.js.map +1 -0
- package/v1/model/ShowOpLogRequest.d.ts +8 -0
- package/v1/model/ShowOpLogRequest.d.ts.map +1 -0
- package/v1/model/ShowOpLogRequest.js +20 -0
- package/v1/model/ShowOpLogRequest.js.map +1 -0
- package/v1/model/ShowOpLogResponse.d.ts +10 -0
- package/v1/model/ShowOpLogResponse.d.ts.map +1 -0
- package/v1/model/ShowOpLogResponse.js +21 -0
- package/v1/model/ShowOpLogResponse.js.map +1 -0
- package/v1/model/ShowPolicyRequest.d.ts +8 -0
- package/v1/model/ShowPolicyRequest.d.ts.map +1 -0
- package/v1/model/ShowPolicyRequest.js +20 -0
- package/v1/model/ShowPolicyRequest.js.map +1 -0
- package/v1/model/ShowPolicyResponse.d.ts +8 -0
- package/v1/model/ShowPolicyResponse.d.ts.map +1 -0
- package/v1/model/ShowPolicyResponse.js +15 -0
- package/v1/model/ShowPolicyResponse.js.map +1 -0
- package/v1/model/ShowProtectableRequest.d.ts +20 -0
- package/v1/model/ShowProtectableRequest.d.ts.map +1 -0
- package/v1/model/ShowProtectableRequest.js +40 -0
- package/v1/model/ShowProtectableRequest.js.map +1 -0
- package/v1/model/ShowProtectableResponse.d.ts +8 -0
- package/v1/model/ShowProtectableResponse.d.ts.map +1 -0
- package/v1/model/ShowProtectableResponse.js +15 -0
- package/v1/model/ShowProtectableResponse.js.map +1 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.d.ts +4 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.d.ts.map +1 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.js +9 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.js.map +1 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.d.ts +8 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.d.ts.map +1 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.js +15 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.js.map +1 -0
- package/v1/model/ShowStorageUsageRequest.d.ts +24 -0
- package/v1/model/ShowStorageUsageRequest.d.ts.map +1 -0
- package/v1/model/ShowStorageUsageRequest.js +46 -0
- package/v1/model/ShowStorageUsageRequest.js.map +1 -0
- package/v1/model/ShowStorageUsageResponse.d.ts +14 -0
- package/v1/model/ShowStorageUsageResponse.d.ts.map +1 -0
- package/v1/model/ShowStorageUsageResponse.js +31 -0
- package/v1/model/ShowStorageUsageResponse.js.map +1 -0
- package/v1/model/ShowSummaryRequest.d.ts +4 -0
- package/v1/model/ShowSummaryRequest.d.ts.map +1 -0
- package/v1/model/ShowSummaryRequest.js +9 -0
- package/v1/model/ShowSummaryRequest.js.map +1 -0
- package/v1/model/ShowSummaryResponse.d.ts +11 -0
- package/v1/model/ShowSummaryResponse.d.ts.map +1 -0
- package/v1/model/ShowSummaryResponse.js +25 -0
- package/v1/model/ShowSummaryResponse.js.map +1 -0
- package/v1/model/ShowVaultProjectTagRequest.d.ts +4 -0
- package/v1/model/ShowVaultProjectTagRequest.d.ts.map +1 -0
- package/v1/model/ShowVaultProjectTagRequest.js +9 -0
- package/v1/model/ShowVaultProjectTagRequest.js.map +1 -0
- package/v1/model/ShowVaultProjectTagResponse.d.ts +8 -0
- package/v1/model/ShowVaultProjectTagResponse.d.ts.map +1 -0
- package/v1/model/ShowVaultProjectTagResponse.js +15 -0
- package/v1/model/ShowVaultProjectTagResponse.js.map +1 -0
- package/v1/model/ShowVaultRequest.d.ts +8 -0
- package/v1/model/ShowVaultRequest.d.ts.map +1 -0
- package/v1/model/ShowVaultRequest.js +20 -0
- package/v1/model/ShowVaultRequest.js.map +1 -0
- package/v1/model/ShowVaultResourceInstancesRequest.d.ts +7 -0
- package/v1/model/ShowVaultResourceInstancesRequest.d.ts.map +1 -0
- package/v1/model/ShowVaultResourceInstancesRequest.js +13 -0
- package/v1/model/ShowVaultResourceInstancesRequest.js.map +1 -0
- package/v1/model/ShowVaultResourceInstancesResponse.d.ts +12 -0
- package/v1/model/ShowVaultResourceInstancesResponse.d.ts.map +1 -0
- package/v1/model/ShowVaultResourceInstancesResponse.js +25 -0
- package/v1/model/ShowVaultResourceInstancesResponse.js.map +1 -0
- package/v1/model/ShowVaultResponse.d.ts +8 -0
- package/v1/model/ShowVaultResponse.d.ts.map +1 -0
- package/v1/model/ShowVaultResponse.js +15 -0
- package/v1/model/ShowVaultResponse.js.map +1 -0
- package/v1/model/ShowVaultTagRequest.d.ts +8 -0
- package/v1/model/ShowVaultTagRequest.d.ts.map +1 -0
- package/v1/model/ShowVaultTagRequest.js +20 -0
- package/v1/model/ShowVaultTagRequest.js.map +1 -0
- package/v1/model/ShowVaultTagResponse.d.ts +13 -0
- package/v1/model/ShowVaultTagResponse.d.ts.map +1 -0
- package/v1/model/ShowVaultTagResponse.js +25 -0
- package/v1/model/ShowVaultTagResponse.js.map +1 -0
- package/v1/model/StorageUsage.d.ts +28 -0
- package/v1/model/StorageUsage.d.ts.map +1 -0
- package/v1/model/StorageUsage.js +72 -0
- package/v1/model/StorageUsage.js.map +1 -0
- package/v1/model/SyncParam.d.ts +12 -0
- package/v1/model/SyncParam.d.ts.map +1 -0
- package/v1/model/SyncParam.js +31 -0
- package/v1/model/SyncParam.js.map +1 -0
- package/v1/model/SyncReq.d.ts +7 -0
- package/v1/model/SyncReq.d.ts.map +1 -0
- package/v1/model/SyncReq.js +14 -0
- package/v1/model/SyncReq.js.map +1 -0
- package/v1/model/SyncRespBody.d.ts +12 -0
- package/v1/model/SyncRespBody.d.ts.map +1 -0
- package/v1/model/SyncRespBody.js +31 -0
- package/v1/model/SyncRespBody.js.map +1 -0
- package/v1/model/SysTag.d.ts +8 -0
- package/v1/model/SysTag.d.ts.map +1 -0
- package/v1/model/SysTag.js +19 -0
- package/v1/model/SysTag.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/Tag.d.ts +8 -0
- package/v1/model/Tag.d.ts.map +1 -0
- package/v1/model/Tag.js +18 -0
- package/v1/model/Tag.js.map +1 -0
- package/v1/model/TagResource.d.ts +25 -0
- package/v1/model/TagResource.d.ts.map +1 -0
- package/v1/model/TagResource.js +58 -0
- package/v1/model/TagResource.js.map +1 -0
- package/v1/model/TagsReq.d.ts +8 -0
- package/v1/model/TagsReq.d.ts.map +1 -0
- package/v1/model/TagsReq.js +19 -0
- package/v1/model/TagsReq.js.map +1 -0
- package/v1/model/TagsResp.d.ts +8 -0
- package/v1/model/TagsResp.d.ts.map +1 -0
- package/v1/model/TagsResp.js +17 -0
- package/v1/model/TagsResp.js.map +1 -0
- package/v1/model/UnregisterAgentRequest.d.ts +8 -0
- package/v1/model/UnregisterAgentRequest.d.ts.map +1 -0
- package/v1/model/UnregisterAgentRequest.js +20 -0
- package/v1/model/UnregisterAgentRequest.js.map +1 -0
- package/v1/model/UnregisterAgentResponse.d.ts +5 -0
- package/v1/model/UnregisterAgentResponse.d.ts.map +1 -0
- package/v1/model/UnregisterAgentResponse.js +11 -0
- package/v1/model/UnregisterAgentResponse.js.map +1 -0
- package/v1/model/UpdateAgentRequest.d.ts +11 -0
- package/v1/model/UpdateAgentRequest.d.ts.map +1 -0
- package/v1/model/UpdateAgentRequest.js +24 -0
- package/v1/model/UpdateAgentRequest.js.map +1 -0
- package/v1/model/UpdateAgentResponse.d.ts +8 -0
- package/v1/model/UpdateAgentResponse.d.ts.map +1 -0
- package/v1/model/UpdateAgentResponse.js +15 -0
- package/v1/model/UpdateAgentResponse.js.map +1 -0
- package/v1/model/UpdateBackupRequest.d.ts +11 -0
- package/v1/model/UpdateBackupRequest.d.ts.map +1 -0
- package/v1/model/UpdateBackupRequest.js +24 -0
- package/v1/model/UpdateBackupRequest.js.map +1 -0
- package/v1/model/UpdateBackupResponse.d.ts +8 -0
- package/v1/model/UpdateBackupResponse.d.ts.map +1 -0
- package/v1/model/UpdateBackupResponse.js +15 -0
- package/v1/model/UpdateBackupResponse.js.map +1 -0
- package/v1/model/UpdateMember.d.ts +19 -0
- package/v1/model/UpdateMember.d.ts.map +1 -0
- package/v1/model/UpdateMember.js +34 -0
- package/v1/model/UpdateMember.js.map +1 -0
- package/v1/model/UpdateMemberStatusRequest.d.ts +15 -0
- package/v1/model/UpdateMemberStatusRequest.d.ts.map +1 -0
- package/v1/model/UpdateMemberStatusRequest.js +35 -0
- package/v1/model/UpdateMemberStatusRequest.js.map +1 -0
- package/v1/model/UpdateMemberStatusResponse.d.ts +8 -0
- package/v1/model/UpdateMemberStatusResponse.d.ts.map +1 -0
- package/v1/model/UpdateMemberStatusResponse.js +15 -0
- package/v1/model/UpdateMemberStatusResponse.js.map +1 -0
- package/v1/model/UpdateOrderRequest.d.ts +11 -0
- package/v1/model/UpdateOrderRequest.d.ts.map +1 -0
- package/v1/model/UpdateOrderRequest.js +24 -0
- package/v1/model/UpdateOrderRequest.js.map +1 -0
- package/v1/model/UpdateOrderResponse.d.ts +11 -0
- package/v1/model/UpdateOrderResponse.d.ts.map +1 -0
- package/v1/model/UpdateOrderResponse.js +23 -0
- package/v1/model/UpdateOrderResponse.js.map +1 -0
- package/v1/model/UpdatePolicyRequest.d.ts +11 -0
- package/v1/model/UpdatePolicyRequest.d.ts.map +1 -0
- package/v1/model/UpdatePolicyRequest.js +24 -0
- package/v1/model/UpdatePolicyRequest.js.map +1 -0
- package/v1/model/UpdatePolicyResponse.d.ts +8 -0
- package/v1/model/UpdatePolicyResponse.d.ts.map +1 -0
- package/v1/model/UpdatePolicyResponse.js +15 -0
- package/v1/model/UpdatePolicyResponse.js.map +1 -0
- package/v1/model/UpdateVaultRequest.d.ts +11 -0
- package/v1/model/UpdateVaultRequest.d.ts.map +1 -0
- package/v1/model/UpdateVaultRequest.js +24 -0
- package/v1/model/UpdateVaultRequest.js.map +1 -0
- package/v1/model/UpdateVaultResponse.d.ts +8 -0
- package/v1/model/UpdateVaultResponse.d.ts.map +1 -0
- package/v1/model/UpdateVaultResponse.js +15 -0
- package/v1/model/UpdateVaultResponse.js.map +1 -0
- package/v1/model/Vault.d.ts +58 -0
- package/v1/model/Vault.d.ts.map +1 -0
- package/v1/model/Vault.js +133 -0
- package/v1/model/Vault.js.map +1 -0
- package/v1/model/VaultAddResourceReq.d.ts +7 -0
- package/v1/model/VaultAddResourceReq.d.ts.map +1 -0
- package/v1/model/VaultAddResourceReq.js +14 -0
- package/v1/model/VaultAddResourceReq.js.map +1 -0
- package/v1/model/VaultAssociate.d.ts +16 -0
- package/v1/model/VaultAssociate.d.ts.map +1 -0
- package/v1/model/VaultAssociate.js +39 -0
- package/v1/model/VaultAssociate.js.map +1 -0
- package/v1/model/VaultBackup.d.ts +11 -0
- package/v1/model/VaultBackup.d.ts.map +1 -0
- package/v1/model/VaultBackup.js +24 -0
- package/v1/model/VaultBackup.js.map +1 -0
- package/v1/model/VaultBackupReq.d.ts +7 -0
- package/v1/model/VaultBackupReq.d.ts.map +1 -0
- package/v1/model/VaultBackupReq.js +14 -0
- package/v1/model/VaultBackupReq.js.map +1 -0
- package/v1/model/VaultBatchUpdate.d.ts +10 -0
- package/v1/model/VaultBatchUpdate.d.ts.map +1 -0
- package/v1/model/VaultBatchUpdate.js +23 -0
- package/v1/model/VaultBatchUpdate.js.map +1 -0
- package/v1/model/VaultBindRules.d.ts +7 -0
- package/v1/model/VaultBindRules.d.ts.map +1 -0
- package/v1/model/VaultBindRules.js +13 -0
- package/v1/model/VaultBindRules.js.map +1 -0
- package/v1/model/VaultCreate.d.ts +52 -0
- package/v1/model/VaultCreate.d.ts.map +1 -0
- package/v1/model/VaultCreate.js +116 -0
- package/v1/model/VaultCreate.js.map +1 -0
- package/v1/model/VaultCreateParameters.d.ts +9 -0
- package/v1/model/VaultCreateParameters.d.ts.map +1 -0
- package/v1/model/VaultCreateParameters.js +19 -0
- package/v1/model/VaultCreateParameters.js.map +1 -0
- package/v1/model/VaultCreateReq.d.ts +7 -0
- package/v1/model/VaultCreateReq.d.ts.map +1 -0
- package/v1/model/VaultCreateReq.js +14 -0
- package/v1/model/VaultCreateReq.js.map +1 -0
- package/v1/model/VaultCreateResource.d.ts +79 -0
- package/v1/model/VaultCreateResource.d.ts.map +1 -0
- package/v1/model/VaultCreateResource.js +179 -0
- package/v1/model/VaultCreateResource.js.map +1 -0
- package/v1/model/VaultDissociate.d.ts +8 -0
- package/v1/model/VaultDissociate.d.ts.map +1 -0
- package/v1/model/VaultDissociate.js +20 -0
- package/v1/model/VaultDissociate.js.map +1 -0
- package/v1/model/VaultGet.d.ts +64 -0
- package/v1/model/VaultGet.d.ts.map +1 -0
- package/v1/model/VaultGet.js +148 -0
- package/v1/model/VaultGet.js.map +1 -0
- package/v1/model/VaultMigrateResourceReq.d.ts +12 -0
- package/v1/model/VaultMigrateResourceReq.d.ts.map +1 -0
- package/v1/model/VaultMigrateResourceReq.js +31 -0
- package/v1/model/VaultMigrateResourceReq.js.map +1 -0
- package/v1/model/VaultOrder.d.ts +47 -0
- package/v1/model/VaultOrder.d.ts.map +1 -0
- package/v1/model/VaultOrder.js +99 -0
- package/v1/model/VaultOrder.js.map +1 -0
- package/v1/model/VaultOrderCreateReqs.d.ts +7 -0
- package/v1/model/VaultOrderCreateReqs.d.ts.map +1 -0
- package/v1/model/VaultOrderCreateReqs.js +14 -0
- package/v1/model/VaultOrderCreateReqs.js.map +1 -0
- package/v1/model/VaultPolicyResp.d.ts +16 -0
- package/v1/model/VaultPolicyResp.d.ts.map +1 -0
- package/v1/model/VaultPolicyResp.js +41 -0
- package/v1/model/VaultPolicyResp.js.map +1 -0
- package/v1/model/VaultRemoveResourceReq.d.ts +8 -0
- package/v1/model/VaultRemoveResourceReq.d.ts.map +1 -0
- package/v1/model/VaultRemoveResourceReq.js +20 -0
- package/v1/model/VaultRemoveResourceReq.js.map +1 -0
- package/v1/model/VaultResourceInstancesReq.d.ts +61 -0
- package/v1/model/VaultResourceInstancesReq.d.ts.map +1 -0
- package/v1/model/VaultResourceInstancesReq.js +118 -0
- package/v1/model/VaultResourceInstancesReq.js.map +1 -0
- package/v1/model/VaultSetResourceReq.d.ts +18 -0
- package/v1/model/VaultSetResourceReq.d.ts.map +1 -0
- package/v1/model/VaultSetResourceReq.js +34 -0
- package/v1/model/VaultSetResourceReq.js.map +1 -0
- package/v1/model/VaultTagsCreateReq.d.ts +7 -0
- package/v1/model/VaultTagsCreateReq.d.ts.map +1 -0
- package/v1/model/VaultTagsCreateReq.js +13 -0
- package/v1/model/VaultTagsCreateReq.js.map +1 -0
- package/v1/model/VaultUpdate.d.ts +28 -0
- package/v1/model/VaultUpdate.d.ts.map +1 -0
- package/v1/model/VaultUpdate.js +61 -0
- package/v1/model/VaultUpdate.js.map +1 -0
- package/v1/model/VaultUpdateReq.d.ts +7 -0
- package/v1/model/VaultUpdateReq.d.ts.map +1 -0
- package/v1/model/VaultUpdateReq.js +14 -0
- package/v1/model/VaultUpdateReq.js.map +1 -0
- package/v1/public-api.d.ts +249 -0
- package/v1/public-api.d.ts.map +1 -0
- package/v1/public-api.js +265 -0
- package/v1/public-api.js.map +1 -0
- package/huaweicloud-sdk-cbr.ts +0 -4
- package/v1/CbrClient.ts +0 -4585
- package/v1/CbrRegion.ts +0 -64
- package/v1/model/AddAgentPathRequest.ts +0 -24
- package/v1/model/AddAgentPathResponse.ts +0 -18
- package/v1/model/AddMemberRequest.ts +0 -24
- package/v1/model/AddMemberResponse.ts +0 -19
- package/v1/model/AddMembersReq.ts +0 -12
- package/v1/model/AddVaultResourceRequest.ts +0 -24
- package/v1/model/AddVaultResourceResponse.ts +0 -19
- package/v1/model/Agent.ts +0 -128
- package/v1/model/AgentAddPathReq.ts +0 -18
- package/v1/model/AgentRegister.ts +0 -87
- package/v1/model/AgentRegisterReq.ts +0 -13
- package/v1/model/AgentRemovePathReq.ts +0 -18
- package/v1/model/AgentUpdate.ts +0 -20
- package/v1/model/AgentUpdateReq.ts +0 -13
- package/v1/model/AssociateVaultPolicyRequest.ts +0 -24
- package/v1/model/AssociateVaultPolicyResponse.ts +0 -20
- package/v1/model/BackupExtendInfo.ts +0 -120
- package/v1/model/BackupReplicateReq.ts +0 -13
- package/v1/model/BackupReplicateReqBody.ts +0 -63
- package/v1/model/BackupReplicateRespBody.ts +0 -94
- package/v1/model/BackupResp.ts +0 -283
- package/v1/model/BackupRestore.ts +0 -56
- package/v1/model/BackupRestoreReq.ts +0 -13
- package/v1/model/BackupRestoreServerMapping.ts +0 -30
- package/v1/model/BackupSync.ts +0 -102
- package/v1/model/BackupSyncReq.ts +0 -13
- package/v1/model/BackupSyncRespBody.ts +0 -30
- package/v1/model/BackupUpdate.ts +0 -11
- package/v1/model/BackupUpdateReq.ts +0 -12
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.ts +0 -24
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.ts +0 -8
- package/v1/model/BatchUpdateVaultRequest.ts +0 -12
- package/v1/model/BatchUpdateVaultRequestBody.ts +0 -13
- package/v1/model/BatchUpdateVaultResponse.ts +0 -19
- package/v1/model/Billing.ts +0 -220
- package/v1/model/BillingCreate.ts +0 -223
- package/v1/model/BillingUpdate.ts +0 -31
- package/v1/model/BindRulesTags.ts +0 -18
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.ts +0 -39
- package/v1/model/CbcOrderResult.ts +0 -28
- package/v1/model/CbcProductInfoUpdate.ts +0 -29
- package/v1/model/CbcUpdate.ts +0 -35
- package/v1/model/CheckAgentRequest.ts +0 -12
- package/v1/model/CheckAgentResponse.ts +0 -20
- package/v1/model/CheckpointCreate.ts +0 -73
- package/v1/model/CheckpointCreateSkippedResource.ts +0 -31
- package/v1/model/CheckpointExtraInfoResp.ts +0 -27
- package/v1/model/CheckpointParam.ts +0 -60
- package/v1/model/CheckpointPlanCreate.ts +0 -36
- package/v1/model/CheckpointReplicateParam.ts +0 -76
- package/v1/model/CheckpointReplicateReq.ts +0 -13
- package/v1/model/CheckpointReplicateRespBody.ts +0 -97
- package/v1/model/CheckpointReplicateRespbackups.ts +0 -30
- package/v1/model/CheckpointResourceResp.ts +0 -91
- package/v1/model/CombinedOrder.ts +0 -39
- package/v1/model/CopyBackupRequest.ts +0 -24
- package/v1/model/CopyBackupResponse.ts +0 -14
- package/v1/model/CopyCheckpointRequest.ts +0 -12
- package/v1/model/CopyCheckpointResponse.ts +0 -14
- package/v1/model/CreateCheckpointRequest.ts +0 -12
- package/v1/model/CreateCheckpointResponse.ts +0 -14
- package/v1/model/CreatePolicyRequest.ts +0 -12
- package/v1/model/CreatePolicyResponse.ts +0 -14
- package/v1/model/CreatePostPaidVaultRequest.ts +0 -12
- package/v1/model/CreatePostPaidVaultResponse.ts +0 -35
- package/v1/model/CreateVaultRequest.ts +0 -12
- package/v1/model/CreateVaultResponse.ts +0 -14
- package/v1/model/CreateVaultTagsRequest.ts +0 -24
- package/v1/model/CreateVaultTagsResponse.ts +0 -8
- package/v1/model/DeleteBackupRequest.ts +0 -18
- package/v1/model/DeleteBackupResponse.ts +0 -8
- package/v1/model/DeleteMemberRequest.ts +0 -30
- package/v1/model/DeleteMemberResponse.ts +0 -8
- package/v1/model/DeletePolicyRequest.ts +0 -18
- package/v1/model/DeletePolicyResponse.ts +0 -8
- package/v1/model/DeleteVaultRequest.ts +0 -18
- package/v1/model/DeleteVaultResponse.ts +0 -8
- package/v1/model/DeleteVaultTagRequest.ts +0 -24
- package/v1/model/DeleteVaultTagResponse.ts +0 -8
- package/v1/model/DisassociateVaultPolicyRequest.ts +0 -24
- package/v1/model/DisassociateVaultPolicyResponse.ts +0 -20
- package/v1/model/DomainMigrate.ts +0 -24
- package/v1/model/DomainMigrateProjectStatus.ts +0 -84
- package/v1/model/DomainProjectsInfo.ts +0 -30
- package/v1/model/ImageData.ts +0 -17
- package/v1/model/ImportBackupRequest.ts +0 -12
- package/v1/model/ImportBackupResponse.ts +0 -14
- package/v1/model/ImportCheckpointRequest.ts +0 -12
- package/v1/model/ImportCheckpointResponse.ts +0 -14
- package/v1/model/InstancesResourceDetail.ts +0 -12
- package/v1/model/ListAgentRequest.ts +0 -32
- package/v1/model/ListAgentResponse.ts +0 -29
- package/v1/model/ListBackupsRequest.ts +0 -261
- package/v1/model/ListBackupsResponse.ts +0 -29
- package/v1/model/ListDomainProjectsRequest.ts +0 -18
- package/v1/model/ListDomainProjectsResponse.ts +0 -14
- package/v1/model/ListExternalVaultRequest.ts +0 -92
- package/v1/model/ListExternalVaultResponse.ts +0 -29
- package/v1/model/ListOpLogsRequest.ts +0 -147
- package/v1/model/ListOpLogsResponse.ts +0 -35
- package/v1/model/ListPoliciesRequest.ts +0 -37
- package/v1/model/ListPoliciesResponse.ts +0 -19
- package/v1/model/ListProjectsRequest.ts +0 -6
- package/v1/model/ListProjectsResponse.ts +0 -20
- package/v1/model/ListProtectableRequest.ts +0 -68
- package/v1/model/ListProtectableResponse.ts +0 -14
- package/v1/model/ListVaultRequest.ts +0 -114
- package/v1/model/ListVaultResponse.ts +0 -29
- package/v1/model/Match.ts +0 -18
- package/v1/model/Member.ts +0 -93
- package/v1/model/MigrateDomainRequest.ts +0 -12
- package/v1/model/MigrateDomainResponse.ts +0 -13
- package/v1/model/MigrateVaultResourceRequest.ts +0 -24
- package/v1/model/MigrateVaultResourceResponse.ts +0 -19
- package/v1/model/OpErrorInfo.ts +0 -16
- package/v1/model/OpExtendInfoBckup.ts +0 -84
- package/v1/model/OpExtendInfoCommon.ts +0 -35
- package/v1/model/OpExtendInfoDelete.ts +0 -30
- package/v1/model/OpExtendInfoRemoveResources.ts +0 -34
- package/v1/model/OpExtendInfoReplication.ts +0 -121
- package/v1/model/OpExtendInfoRestore.ts +0 -50
- package/v1/model/OpExtendInfoSync.ts +0 -39
- package/v1/model/OpExtendInfoVaultDelete.ts +0 -28
- package/v1/model/OpExtraInfo.ts +0 -80
- package/v1/model/OperationLog.ts +0 -195
- package/v1/model/Path.ts +0 -38
- package/v1/model/Policy.ts +0 -77
- package/v1/model/PolicyAssociateVault.ts +0 -29
- package/v1/model/PolicyCreate.ts +0 -58
- package/v1/model/PolicyCreateReq.ts +0 -13
- package/v1/model/PolicyTriggerPropertiesReq.ts +0 -12
- package/v1/model/PolicyTriggerPropertiesResp.ts +0 -23
- package/v1/model/PolicyTriggerReq.ts +0 -13
- package/v1/model/PolicyTriggerResp.ts +0 -37
- package/v1/model/PolicyUpdate.ts +0 -34
- package/v1/model/PolicyUpdateReq.ts +0 -13
- package/v1/model/PolicyoODCreate.ts +0 -121
- package/v1/model/ProjectsListInfo.ts +0 -65
- package/v1/model/ProtectableAgentReq.ts +0 -19
- package/v1/model/ProtectableAgentStatus.ts +0 -48
- package/v1/model/ProtectableAgentStatusResource.ts +0 -41
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.ts +0 -24
- package/v1/model/ProtectableResult.ts +0 -33
- package/v1/model/ProtectablesResp.ts +0 -62
- package/v1/model/RegisterAgentRequest.ts +0 -12
- package/v1/model/RegisterAgentResponse.ts +0 -14
- package/v1/model/RemoveAgentPathRequest.ts +0 -24
- package/v1/model/RemoveAgentPathResponse.ts +0 -24
- package/v1/model/RemoveVaultResourceRequest.ts +0 -24
- package/v1/model/RemoveVaultResourceResponse.ts +0 -19
- package/v1/model/ReplicationRecordGet.ts +0 -162
- package/v1/model/ReplicationRecordsExtraInfo.ts +0 -55
- package/v1/model/Resource.ts +0 -35
- package/v1/model/ResourceCreate.ts +0 -35
- package/v1/model/ResourceExtraInfo.ts +0 -29
- package/v1/model/ResourceExtraInfoIncludeVolumes.ts +0 -23
- package/v1/model/ResourceResp.ts +0 -97
- package/v1/model/RestoreBackupRequest.ts +0 -24
- package/v1/model/RestoreBackupResponse.ts +0 -8
- package/v1/model/SelfLinksInfo.ts +0 -11
- package/v1/model/SetVaultResourceRequest.ts +0 -24
- package/v1/model/SetVaultResourceResponse.ts +0 -19
- package/v1/model/ShowAgentRequest.ts +0 -18
- package/v1/model/ShowAgentResponse.ts +0 -14
- package/v1/model/ShowBackupRequest.ts +0 -18
- package/v1/model/ShowBackupResponse.ts +0 -14
- package/v1/model/ShowCheckpointRequest.ts +0 -18
- package/v1/model/ShowCheckpointResponse.ts +0 -14
- package/v1/model/ShowDomainRequest.ts +0 -18
- package/v1/model/ShowDomainResponse.ts +0 -52
- package/v1/model/ShowMemberDetailRequest.ts +0 -30
- package/v1/model/ShowMemberDetailResponse.ts +0 -14
- package/v1/model/ShowMembersDetailRequest.ts +0 -76
- package/v1/model/ShowMembersDetailResponse.ts +0 -19
- package/v1/model/ShowMetadataRequest.ts +0 -18
- package/v1/model/ShowMetadataResponse.ts +0 -60
- package/v1/model/ShowMigrateStatusRequest.ts +0 -17
- package/v1/model/ShowMigrateStatusResponse.ts +0 -35
- package/v1/model/ShowOpLogRequest.ts +0 -18
- package/v1/model/ShowOpLogResponse.ts +0 -20
- package/v1/model/ShowPolicyRequest.ts +0 -18
- package/v1/model/ShowPolicyResponse.ts +0 -14
- package/v1/model/ShowProtectableRequest.ts +0 -39
- package/v1/model/ShowProtectableResponse.ts +0 -14
- package/v1/model/ShowReplicationCapabilitiesRequest.ts +0 -6
- package/v1/model/ShowReplicationCapabilitiesResponse.ts +0 -14
- package/v1/model/ShowStorageUsageRequest.ts +0 -47
- package/v1/model/ShowStorageUsageResponse.ts +0 -31
- package/v1/model/ShowSummaryRequest.ts +0 -6
- package/v1/model/ShowSummaryResponse.ts +0 -24
- package/v1/model/ShowVaultProjectTagRequest.ts +0 -6
- package/v1/model/ShowVaultProjectTagResponse.ts +0 -14
- package/v1/model/ShowVaultRequest.ts +0 -18
- package/v1/model/ShowVaultResourceInstancesRequest.ts +0 -12
- package/v1/model/ShowVaultResourceInstancesResponse.ts +0 -25
- package/v1/model/ShowVaultResponse.ts +0 -14
- package/v1/model/ShowVaultTagRequest.ts +0 -18
- package/v1/model/ShowVaultTagResponse.ts +0 -26
- package/v1/model/StorageUsage.ts +0 -75
- package/v1/model/SyncParam.ts +0 -30
- package/v1/model/SyncReq.ts +0 -13
- package/v1/model/SyncRespBody.ts +0 -30
- package/v1/model/SysTag.ts +0 -18
- package/v1/model/SysTags.ts +0 -18
- package/v1/model/Tag.ts +0 -17
- package/v1/model/TagResource.ts +0 -63
- package/v1/model/TagsReq.ts +0 -18
- package/v1/model/TagsResp.ts +0 -16
- package/v1/model/UnregisterAgentRequest.ts +0 -18
- package/v1/model/UnregisterAgentResponse.ts +0 -8
- package/v1/model/UpdateAgentRequest.ts +0 -24
- package/v1/model/UpdateAgentResponse.ts +0 -14
- package/v1/model/UpdateBackupRequest.ts +0 -24
- package/v1/model/UpdateBackupResponse.ts +0 -14
- package/v1/model/UpdateMember.ts +0 -33
- package/v1/model/UpdateMemberStatusRequest.ts +0 -36
- package/v1/model/UpdateMemberStatusResponse.ts +0 -14
- package/v1/model/UpdateOrderRequest.ts +0 -24
- package/v1/model/UpdateOrderResponse.ts +0 -23
- package/v1/model/UpdatePolicyRequest.ts +0 -24
- package/v1/model/UpdatePolicyResponse.ts +0 -14
- package/v1/model/UpdateVaultRequest.ts +0 -24
- package/v1/model/UpdateVaultResponse.ts +0 -14
- package/v1/model/Vault.ts +0 -150
- package/v1/model/VaultAddResourceReq.ts +0 -13
- package/v1/model/VaultAssociate.ts +0 -39
- package/v1/model/VaultBackup.ts +0 -24
- package/v1/model/VaultBackupReq.ts +0 -13
- package/v1/model/VaultBatchUpdate.ts +0 -22
- package/v1/model/VaultBindRules.ts +0 -12
- package/v1/model/VaultCreate.ts +0 -131
- package/v1/model/VaultCreateParameters.ts +0 -18
- package/v1/model/VaultCreateReq.ts +0 -13
- package/v1/model/VaultCreateResource.ts +0 -204
- package/v1/model/VaultDissociate.ts +0 -18
- package/v1/model/VaultGet.ts +0 -168
- package/v1/model/VaultMigrateResourceReq.ts +0 -30
- package/v1/model/VaultOrder.ts +0 -114
- package/v1/model/VaultOrderCreateReqs.ts +0 -13
- package/v1/model/VaultPolicyResp.ts +0 -41
- package/v1/model/VaultRemoveResourceReq.ts +0 -18
- package/v1/model/VaultResourceInstancesReq.ts +0 -129
- package/v1/model/VaultSetResourceReq.ts +0 -33
- package/v1/model/VaultTagsCreateReq.ts +0 -12
- package/v1/model/VaultUpdate.ts +0 -67
- package/v1/model/VaultUpdateReq.ts +0 -13
- package/v1/public-api.ts +0 -249
package/v1/CbrClient.js
ADDED
@@ -0,0 +1,3784 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RequiredError = exports.ParamCreater = exports.CbrClient = void 0;
|
4
|
+
const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
|
5
|
+
const AddAgentPathRequest_1 = require("./model/AddAgentPathRequest");
|
6
|
+
const AddMemberRequest_1 = require("./model/AddMemberRequest");
|
7
|
+
const AddVaultResourceRequest_1 = require("./model/AddVaultResourceRequest");
|
8
|
+
const AssociateVaultPolicyRequest_1 = require("./model/AssociateVaultPolicyRequest");
|
9
|
+
const BatchCreateAndDeleteVaultTagsRequest_1 = require("./model/BatchCreateAndDeleteVaultTagsRequest");
|
10
|
+
const BatchUpdateVaultRequest_1 = require("./model/BatchUpdateVaultRequest");
|
11
|
+
const CheckAgentRequest_1 = require("./model/CheckAgentRequest");
|
12
|
+
const CopyBackupRequest_1 = require("./model/CopyBackupRequest");
|
13
|
+
const CopyCheckpointRequest_1 = require("./model/CopyCheckpointRequest");
|
14
|
+
const CreateCheckpointRequest_1 = require("./model/CreateCheckpointRequest");
|
15
|
+
const CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
|
16
|
+
const CreatePostPaidVaultRequest_1 = require("./model/CreatePostPaidVaultRequest");
|
17
|
+
const CreateVaultRequest_1 = require("./model/CreateVaultRequest");
|
18
|
+
const CreateVaultTagsRequest_1 = require("./model/CreateVaultTagsRequest");
|
19
|
+
const DeleteBackupRequest_1 = require("./model/DeleteBackupRequest");
|
20
|
+
const DeleteMemberRequest_1 = require("./model/DeleteMemberRequest");
|
21
|
+
const DeletePolicyRequest_1 = require("./model/DeletePolicyRequest");
|
22
|
+
const DeleteVaultRequest_1 = require("./model/DeleteVaultRequest");
|
23
|
+
const DeleteVaultTagRequest_1 = require("./model/DeleteVaultTagRequest");
|
24
|
+
const DisassociateVaultPolicyRequest_1 = require("./model/DisassociateVaultPolicyRequest");
|
25
|
+
const ImportBackupRequest_1 = require("./model/ImportBackupRequest");
|
26
|
+
const ImportCheckpointRequest_1 = require("./model/ImportCheckpointRequest");
|
27
|
+
const ListAgentRequest_1 = require("./model/ListAgentRequest");
|
28
|
+
const ListBackupsRequest_1 = require("./model/ListBackupsRequest");
|
29
|
+
const ListDomainProjectsRequest_1 = require("./model/ListDomainProjectsRequest");
|
30
|
+
const ListExternalVaultRequest_1 = require("./model/ListExternalVaultRequest");
|
31
|
+
const ListOpLogsRequest_1 = require("./model/ListOpLogsRequest");
|
32
|
+
const ListPoliciesRequest_1 = require("./model/ListPoliciesRequest");
|
33
|
+
const ListProtectableRequest_1 = require("./model/ListProtectableRequest");
|
34
|
+
const ListVaultRequest_1 = require("./model/ListVaultRequest");
|
35
|
+
const MigrateDomainRequest_1 = require("./model/MigrateDomainRequest");
|
36
|
+
const MigrateVaultResourceRequest_1 = require("./model/MigrateVaultResourceRequest");
|
37
|
+
const RegisterAgentRequest_1 = require("./model/RegisterAgentRequest");
|
38
|
+
const RemoveAgentPathRequest_1 = require("./model/RemoveAgentPathRequest");
|
39
|
+
const RemoveVaultResourceRequest_1 = require("./model/RemoveVaultResourceRequest");
|
40
|
+
const RestoreBackupRequest_1 = require("./model/RestoreBackupRequest");
|
41
|
+
const SetVaultResourceRequest_1 = require("./model/SetVaultResourceRequest");
|
42
|
+
const ShowAgentRequest_1 = require("./model/ShowAgentRequest");
|
43
|
+
const ShowBackupRequest_1 = require("./model/ShowBackupRequest");
|
44
|
+
const ShowCheckpointRequest_1 = require("./model/ShowCheckpointRequest");
|
45
|
+
const ShowDomainRequest_1 = require("./model/ShowDomainRequest");
|
46
|
+
const ShowMemberDetailRequest_1 = require("./model/ShowMemberDetailRequest");
|
47
|
+
const ShowMembersDetailRequest_1 = require("./model/ShowMembersDetailRequest");
|
48
|
+
const ShowMetadataRequest_1 = require("./model/ShowMetadataRequest");
|
49
|
+
const ShowMigrateStatusRequest_1 = require("./model/ShowMigrateStatusRequest");
|
50
|
+
const ShowOpLogRequest_1 = require("./model/ShowOpLogRequest");
|
51
|
+
const ShowPolicyRequest_1 = require("./model/ShowPolicyRequest");
|
52
|
+
const ShowProtectableRequest_1 = require("./model/ShowProtectableRequest");
|
53
|
+
const ShowStorageUsageRequest_1 = require("./model/ShowStorageUsageRequest");
|
54
|
+
const ShowVaultRequest_1 = require("./model/ShowVaultRequest");
|
55
|
+
const ShowVaultResourceInstancesRequest_1 = require("./model/ShowVaultResourceInstancesRequest");
|
56
|
+
const ShowVaultTagRequest_1 = require("./model/ShowVaultTagRequest");
|
57
|
+
const UnregisterAgentRequest_1 = require("./model/UnregisterAgentRequest");
|
58
|
+
const UpdateAgentRequest_1 = require("./model/UpdateAgentRequest");
|
59
|
+
const UpdateBackupRequest_1 = require("./model/UpdateBackupRequest");
|
60
|
+
const UpdateMemberStatusRequest_1 = require("./model/UpdateMemberStatusRequest");
|
61
|
+
const UpdateOrderRequest_1 = require("./model/UpdateOrderRequest");
|
62
|
+
const UpdatePolicyRequest_1 = require("./model/UpdatePolicyRequest");
|
63
|
+
const UpdateVaultRequest_1 = require("./model/UpdateVaultRequest");
|
64
|
+
class CbrClient {
|
65
|
+
static newBuilder() {
|
66
|
+
return new ClientBuilder_1.ClientBuilder(newClient);
|
67
|
+
}
|
68
|
+
constructor(client) {
|
69
|
+
this.hcClient = client;
|
70
|
+
}
|
71
|
+
getPath() {
|
72
|
+
return __dirname;
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* 对客户端新增备份路径,新增的路径不会校验是否存在。
|
76
|
+
*
|
77
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
78
|
+
*
|
79
|
+
* @summary 新增备份路径
|
80
|
+
* @param {string} agentId 客户端ID
|
81
|
+
* @param {AgentAddPathReq} addAgentPathRequestBody 新增文件备份路径参数
|
82
|
+
* @param {*} [options] Override http request option.
|
83
|
+
* @throws {RequiredError}
|
84
|
+
*/
|
85
|
+
addAgentPath(addAgentPathRequest) {
|
86
|
+
const options = (0, exports.ParamCreater)().addAgentPath(addAgentPathRequest);
|
87
|
+
// @ts-ignore
|
88
|
+
options['responseHeaders'] = [''];
|
89
|
+
return this.hcClient.sendRequest(options);
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
|
93
|
+
*
|
94
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
95
|
+
*
|
96
|
+
* @summary 添加备份成员
|
97
|
+
* @param {string} backupId 备份副本id
|
98
|
+
* @param {AddMembersReq} addMemberRequestBody 添加备份共享成员请求body
|
99
|
+
* @param {*} [options] Override http request option.
|
100
|
+
* @throws {RequiredError}
|
101
|
+
*/
|
102
|
+
addMember(addMemberRequest) {
|
103
|
+
const options = (0, exports.ParamCreater)().addMember(addMemberRequest);
|
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} vaultId 存储库ID
|
115
|
+
* @param {VaultAddResourceReq} addVaultResourceRequestBody 存储库添加资源参数
|
116
|
+
* @param {*} [options] Override http request option.
|
117
|
+
* @throws {RequiredError}
|
118
|
+
*/
|
119
|
+
addVaultResource(addVaultResourceRequest) {
|
120
|
+
const options = (0, exports.ParamCreater)().addVaultResource(addVaultResourceRequest);
|
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} vaultId 存储库ID
|
132
|
+
* @param {VaultAssociate} associateVaultPolicyRequestBody 关联策略ID
|
133
|
+
* @param {*} [options] Override http request option.
|
134
|
+
* @throws {RequiredError}
|
135
|
+
*/
|
136
|
+
associateVaultPolicy(associateVaultPolicyRequest) {
|
137
|
+
const options = (0, exports.ParamCreater)().associateVaultPolicy(associateVaultPolicyRequest);
|
138
|
+
// @ts-ignore
|
139
|
+
options['responseHeaders'] = [''];
|
140
|
+
return this.hcClient.sendRequest(options);
|
141
|
+
}
|
142
|
+
/**
|
143
|
+
* 为指定实例批量添加或删除标签
|
144
|
+
* 标签管理服务需要使用该接口批量管理实例的标签。
|
145
|
+
* 一个资源上最多有10个标签。
|
146
|
+
* 此接口为幂等接口:
|
147
|
+
* 创建时如果请求体中存在重复key则报错。
|
148
|
+
* 创建时,不允许重复key,如果数据库存在就覆盖。
|
149
|
+
* 删除时,允许重复key。
|
150
|
+
* 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
151
|
+
*
|
152
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
153
|
+
*
|
154
|
+
* @summary 批量添加删除存储库资源标签
|
155
|
+
* @param {string} vaultId 资源id
|
156
|
+
* @param {BulkCreateAndDeleteVaultTagsReq} [batchCreateAndDeleteVaultTagsRequestBody] 批量添加删除存储库资源标签请求body
|
157
|
+
* @param {*} [options] Override http request option.
|
158
|
+
* @throws {RequiredError}
|
159
|
+
*/
|
160
|
+
batchCreateAndDeleteVaultTags(batchCreateAndDeleteVaultTagsRequest) {
|
161
|
+
const options = (0, exports.ParamCreater)().batchCreateAndDeleteVaultTags(batchCreateAndDeleteVaultTagsRequest);
|
162
|
+
// @ts-ignore
|
163
|
+
options['responseHeaders'] = [''];
|
164
|
+
return this.hcClient.sendRequest(options);
|
165
|
+
}
|
166
|
+
/**
|
167
|
+
* 批量修改项目下所有存储库
|
168
|
+
*
|
169
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
170
|
+
*
|
171
|
+
* @summary 批量修改存储库
|
172
|
+
* @param {BatchUpdateVaultRequestBody} updateVaultRequestBody 存储批量修改参数
|
173
|
+
* @param {*} [options] Override http request option.
|
174
|
+
* @throws {RequiredError}
|
175
|
+
*/
|
176
|
+
batchUpdateVault(batchUpdateVaultRequest) {
|
177
|
+
const options = (0, exports.ParamCreater)().batchUpdateVault(batchUpdateVaultRequest);
|
178
|
+
// @ts-ignore
|
179
|
+
options['responseHeaders'] = [''];
|
180
|
+
return this.hcClient.sendRequest(options);
|
181
|
+
}
|
182
|
+
/**
|
183
|
+
* 检查应用一致性Agent状态
|
184
|
+
*
|
185
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
186
|
+
*
|
187
|
+
* @summary 查询agent状态
|
188
|
+
* @param {ProtectableAgentReq} checkAgentRequestBody Agent状态检查参数
|
189
|
+
* @param {*} [options] Override http request option.
|
190
|
+
* @throws {RequiredError}
|
191
|
+
*/
|
192
|
+
checkAgent(checkAgentRequest) {
|
193
|
+
const options = (0, exports.ParamCreater)().checkAgent(checkAgentRequest);
|
194
|
+
// @ts-ignore
|
195
|
+
options['responseHeaders'] = [''];
|
196
|
+
return this.hcClient.sendRequest(options);
|
197
|
+
}
|
198
|
+
/**
|
199
|
+
* 跨区域复制备份。
|
200
|
+
*
|
201
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
202
|
+
*
|
203
|
+
* @summary 复制备份
|
204
|
+
* @param {string} backupId 复制的备份ID
|
205
|
+
* @param {BackupReplicateReq} copyBackupRequestBody 复制备份请求body
|
206
|
+
* @param {*} [options] Override http request option.
|
207
|
+
* @throws {RequiredError}
|
208
|
+
*/
|
209
|
+
copyBackup(copyBackupRequest) {
|
210
|
+
const options = (0, exports.ParamCreater)().copyBackup(copyBackupRequest);
|
211
|
+
// @ts-ignore
|
212
|
+
options['responseHeaders'] = [''];
|
213
|
+
return this.hcClient.sendRequest(options);
|
214
|
+
}
|
215
|
+
/**
|
216
|
+
* 执行复制
|
217
|
+
*
|
218
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
219
|
+
*
|
220
|
+
* @summary 复制备份还原点
|
221
|
+
* @param {CheckpointReplicateReq} copyCheckpointRequestBody 创建复制
|
222
|
+
* @param {*} [options] Override http request option.
|
223
|
+
* @throws {RequiredError}
|
224
|
+
*/
|
225
|
+
copyCheckpoint(copyCheckpointRequest) {
|
226
|
+
const options = (0, exports.ParamCreater)().copyCheckpoint(copyCheckpointRequest);
|
227
|
+
// @ts-ignore
|
228
|
+
options['responseHeaders'] = [''];
|
229
|
+
return this.hcClient.sendRequest(options);
|
230
|
+
}
|
231
|
+
/**
|
232
|
+
* 对存储库执行备份,生成备份还原点
|
233
|
+
*
|
234
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
235
|
+
*
|
236
|
+
* @summary 创建备份还原点
|
237
|
+
* @param {VaultBackupReq} createCheckpointRequestBody vault维度执行备份
|
238
|
+
* @param {*} [options] Override http request option.
|
239
|
+
* @throws {RequiredError}
|
240
|
+
*/
|
241
|
+
createCheckpoint(createCheckpointRequest) {
|
242
|
+
const options = (0, exports.ParamCreater)().createCheckpoint(createCheckpointRequest);
|
243
|
+
// @ts-ignore
|
244
|
+
options['responseHeaders'] = [''];
|
245
|
+
return this.hcClient.sendRequest(options);
|
246
|
+
}
|
247
|
+
/**
|
248
|
+
* 创建策略,策略分为备份策略和复制策略。
|
249
|
+
*
|
250
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
251
|
+
*
|
252
|
+
* @summary 创建策略
|
253
|
+
* @param {PolicyCreateReq} createPolicyRequestBody 创建策略body
|
254
|
+
* @param {*} [options] Override http request option.
|
255
|
+
* @throws {RequiredError}
|
256
|
+
*/
|
257
|
+
createPolicy(createPolicyRequest) {
|
258
|
+
const options = (0, exports.ParamCreater)().createPolicy(createPolicyRequest);
|
259
|
+
// @ts-ignore
|
260
|
+
options['responseHeaders'] = [''];
|
261
|
+
return this.hcClient.sendRequest(options);
|
262
|
+
}
|
263
|
+
/**
|
264
|
+
* 创建包周期存储库
|
265
|
+
*
|
266
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
267
|
+
*
|
268
|
+
* @summary 创建包周期存储库
|
269
|
+
* @param {VaultOrderCreateReqs} createPostPaidVaultRequestBody 请求体
|
270
|
+
* @param {*} [options] Override http request option.
|
271
|
+
* @throws {RequiredError}
|
272
|
+
*/
|
273
|
+
createPostPaidVault(createPostPaidVaultRequest) {
|
274
|
+
const options = (0, exports.ParamCreater)().createPostPaidVault(createPostPaidVaultRequest);
|
275
|
+
// @ts-ignore
|
276
|
+
options['responseHeaders'] = [''];
|
277
|
+
return this.hcClient.sendRequest(options);
|
278
|
+
}
|
279
|
+
/**
|
280
|
+
* 创建存储库
|
281
|
+
*
|
282
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
283
|
+
*
|
284
|
+
* @summary 创建存储库
|
285
|
+
* @param {VaultCreateReq} createVaultRequestBody 存储库创建参数
|
286
|
+
* @param {*} [options] Override http request option.
|
287
|
+
* @throws {RequiredError}
|
288
|
+
*/
|
289
|
+
createVault(createVaultRequest) {
|
290
|
+
const options = (0, exports.ParamCreater)().createVault(createVaultRequest);
|
291
|
+
// @ts-ignore
|
292
|
+
options['responseHeaders'] = [''];
|
293
|
+
return this.hcClient.sendRequest(options);
|
294
|
+
}
|
295
|
+
/**
|
296
|
+
* 一个资源上最多有10个标签。
|
297
|
+
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
298
|
+
*
|
299
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
300
|
+
*
|
301
|
+
* @summary 添加存储库资源标签
|
302
|
+
* @param {string} vaultId 资源id
|
303
|
+
* @param {VaultTagsCreateReq} [createVaultTagsRequestBody] 添加存储库资源标签参数
|
304
|
+
* @param {*} [options] Override http request option.
|
305
|
+
* @throws {RequiredError}
|
306
|
+
*/
|
307
|
+
createVaultTags(createVaultTagsRequest) {
|
308
|
+
const options = (0, exports.ParamCreater)().createVaultTags(createVaultTagsRequest);
|
309
|
+
// @ts-ignore
|
310
|
+
options['responseHeaders'] = [''];
|
311
|
+
return this.hcClient.sendRequest(options);
|
312
|
+
}
|
313
|
+
/**
|
314
|
+
* 删除单个备份。
|
315
|
+
*
|
316
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
317
|
+
*
|
318
|
+
* @summary 删除备份
|
319
|
+
* @param {string} backupId 指定删除的备份ID
|
320
|
+
* @param {*} [options] Override http request option.
|
321
|
+
* @throws {RequiredError}
|
322
|
+
*/
|
323
|
+
deleteBackup(deleteBackupRequest) {
|
324
|
+
const options = (0, exports.ParamCreater)().deleteBackup(deleteBackupRequest);
|
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 {string} backupId 备份副本id
|
336
|
+
* @param {string} memberId 成员id
|
337
|
+
* @param {*} [options] Override http request option.
|
338
|
+
* @throws {RequiredError}
|
339
|
+
*/
|
340
|
+
deleteMember(deleteMemberRequest) {
|
341
|
+
const options = (0, exports.ParamCreater)().deleteMember(deleteMemberRequest);
|
342
|
+
// @ts-ignore
|
343
|
+
options['responseHeaders'] = [''];
|
344
|
+
return this.hcClient.sendRequest(options);
|
345
|
+
}
|
346
|
+
/**
|
347
|
+
* 删除策略
|
348
|
+
*
|
349
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
350
|
+
*
|
351
|
+
* @summary 删除策略
|
352
|
+
* @param {string} policyId 策略ID
|
353
|
+
* @param {*} [options] Override http request option.
|
354
|
+
* @throws {RequiredError}
|
355
|
+
*/
|
356
|
+
deletePolicy(deletePolicyRequest) {
|
357
|
+
const options = (0, exports.ParamCreater)().deletePolicy(deletePolicyRequest);
|
358
|
+
// @ts-ignore
|
359
|
+
options['responseHeaders'] = [''];
|
360
|
+
return this.hcClient.sendRequest(options);
|
361
|
+
}
|
362
|
+
/**
|
363
|
+
* 删除存储库。若删除储存库,将一并删除存储库中的所有备份。
|
364
|
+
*
|
365
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
366
|
+
*
|
367
|
+
* @summary 删除存储库
|
368
|
+
* @param {string} vaultId 存储库ID
|
369
|
+
* @param {*} [options] Override http request option.
|
370
|
+
* @throws {RequiredError}
|
371
|
+
*/
|
372
|
+
deleteVault(deleteVaultRequest) {
|
373
|
+
const options = (0, exports.ParamCreater)().deleteVault(deleteVaultRequest);
|
374
|
+
// @ts-ignore
|
375
|
+
options['responseHeaders'] = [''];
|
376
|
+
return this.hcClient.sendRequest(options);
|
377
|
+
}
|
378
|
+
/**
|
379
|
+
* 幂等接口:删除时,如果删除的标签不存在,返回404。Key不能为空或者空字符串。
|
380
|
+
*
|
381
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
382
|
+
*
|
383
|
+
* @summary 删除存储库资源标签
|
384
|
+
* @param {string} key 不能为空或空字符串,不检查长度和字符集,去掉key前后的空格后检查,去掉key前后的空格后使用。 即使底层存在非法的tag也要能删。
|
385
|
+
* @param {string} vaultId 资源id
|
386
|
+
* @param {*} [options] Override http request option.
|
387
|
+
* @throws {RequiredError}
|
388
|
+
*/
|
389
|
+
deleteVaultTag(deleteVaultTagRequest) {
|
390
|
+
const options = (0, exports.ParamCreater)().deleteVaultTag(deleteVaultTagRequest);
|
391
|
+
// @ts-ignore
|
392
|
+
options['responseHeaders'] = [''];
|
393
|
+
return this.hcClient.sendRequest(options);
|
394
|
+
}
|
395
|
+
/**
|
396
|
+
* 存储库解除策略
|
397
|
+
*
|
398
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
399
|
+
*
|
400
|
+
* @summary 解除存储库策略
|
401
|
+
* @param {string} vaultId 存储库ID
|
402
|
+
* @param {VaultDissociate} disassociateVaultPolicyRequestBody 解除策略参数
|
403
|
+
* @param {*} [options] Override http request option.
|
404
|
+
* @throws {RequiredError}
|
405
|
+
*/
|
406
|
+
disassociateVaultPolicy(disassociateVaultPolicyRequest) {
|
407
|
+
const options = (0, exports.ParamCreater)().disassociateVaultPolicy(disassociateVaultPolicyRequest);
|
408
|
+
// @ts-ignore
|
409
|
+
options['responseHeaders'] = [''];
|
410
|
+
return this.hcClient.sendRequest(options);
|
411
|
+
}
|
412
|
+
/**
|
413
|
+
* 同步线下混合云VMware备份副本
|
414
|
+
*
|
415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
416
|
+
*
|
417
|
+
* @summary 同步备份
|
418
|
+
* @param {BackupSyncReq} importBackupRequestBody 同步备份请求体
|
419
|
+
* @param {*} [options] Override http request option.
|
420
|
+
* @throws {RequiredError}
|
421
|
+
*/
|
422
|
+
importBackup(importBackupRequest) {
|
423
|
+
const options = (0, exports.ParamCreater)().importBackup(importBackupRequest);
|
424
|
+
// @ts-ignore
|
425
|
+
options['responseHeaders'] = [''];
|
426
|
+
return this.hcClient.sendRequest(options);
|
427
|
+
}
|
428
|
+
/**
|
429
|
+
* 针对vault同步备份副本
|
430
|
+
*
|
431
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
432
|
+
*
|
433
|
+
* @summary 同步备份还原点
|
434
|
+
* @param {SyncReq} importCheckpointRequestBody This is a auto create Body Object
|
435
|
+
* @param {*} [options] Override http request option.
|
436
|
+
* @throws {RequiredError}
|
437
|
+
*/
|
438
|
+
importCheckpoint(importCheckpointRequest) {
|
439
|
+
const options = (0, exports.ParamCreater)().importCheckpoint(importCheckpointRequest);
|
440
|
+
// @ts-ignore
|
441
|
+
options['responseHeaders'] = [''];
|
442
|
+
return this.hcClient.sendRequest(options);
|
443
|
+
}
|
444
|
+
/**
|
445
|
+
* 查询客户端列表
|
446
|
+
*
|
447
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
448
|
+
*
|
449
|
+
* @summary 查询客户端列表
|
450
|
+
* @param {string} [limit] 每页显示条目数,正整数
|
451
|
+
* @param {number} [offset] 偏移值,正整数
|
452
|
+
* @param {string} [status] 状态
|
453
|
+
* @param {string} [agentId] 客户端ID
|
454
|
+
* @param {*} [options] Override http request option.
|
455
|
+
* @throws {RequiredError}
|
456
|
+
*/
|
457
|
+
listAgent(listAgentRequest) {
|
458
|
+
const options = (0, exports.ParamCreater)().listAgent(listAgentRequest);
|
459
|
+
// @ts-ignore
|
460
|
+
options['responseHeaders'] = [''];
|
461
|
+
return this.hcClient.sendRequest(options);
|
462
|
+
}
|
463
|
+
/**
|
464
|
+
* 查询所有副本
|
465
|
+
*
|
466
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
467
|
+
*
|
468
|
+
* @summary 查询所有备份
|
469
|
+
* @param {string} [checkpointId] 还原点ID
|
470
|
+
* @param {boolean} [dec] 专属云 (专属云场景使用,非专属云场景不生效)
|
471
|
+
* @param {string} [endTime] 备份产生时间范围的结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
|
472
|
+
* @param {'backup' | 'replication'} [imageType] 备份类型
|
473
|
+
* @param {number} [limit] 每页显示的条目数量,正整数
|
474
|
+
* @param {string} [marker] 上一次查询最后一条的id
|
475
|
+
* @param {string} [name] 名称
|
476
|
+
* @param {number} [offset] 偏移值,正整数
|
477
|
+
* @param {string} [resourceAz] 支持按az来过滤
|
478
|
+
* @param {string} [resourceId] 资源ID
|
479
|
+
* @param {string} [resourceName] 资源名称
|
480
|
+
* @param {'OS::Cinder::Volume' | 'OS::Nova::Server' | 'OS::Workspace::DesktopV2'} [resourceType] 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
|
481
|
+
* @param {string} [sort] sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如<key1>[:<direction>],<key2>[:<direction>],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。key取值范围:[created_at,updated_at,name,status,protected_at,id]
|
482
|
+
* @param {string} [startTime] 备份产生时间范围的开始时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
|
483
|
+
* @param {'available' | 'protecting' | 'deleting' | 'restoring' | 'error' | 'waiting_protect' | 'waiting_delete' | 'waiting_restore'} [status] 状态。 调用API时,支持通过传多个status值进行过滤。例如:status=available&status=error
|
484
|
+
* @param {string} [vaultId] 存储库ID
|
485
|
+
* @param {string} [enterpriseProjectId] 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
|
486
|
+
* @param {'all_granted' | 'private' | 'shared'} [ownType] 持有类型,私有的private/共享的shared/全部all_granted,默认只查询private。
|
487
|
+
* @param {'pending' | 'accepted' | 'rejected'} [memberStatus] 共享状态
|
488
|
+
* @param {string} [parentId] 父备份ID
|
489
|
+
* @param {string} [usedPercent] 根据存储库使用率过滤备份,取值范围 [1, 100],含1和100。例如,used_percent=80,表示筛选所属存储库使用率大于等于80%的所有备份。
|
490
|
+
* @param {boolean} [showReplication] 是否返回复制记录
|
491
|
+
* @param {boolean} [incremental] 是否是增备
|
492
|
+
* @param {*} [options] Override http request option.
|
493
|
+
* @throws {RequiredError}
|
494
|
+
*/
|
495
|
+
listBackups(listBackupsRequest) {
|
496
|
+
const options = (0, exports.ParamCreater)().listBackups(listBackupsRequest);
|
497
|
+
// @ts-ignore
|
498
|
+
options['responseHeaders'] = [''];
|
499
|
+
return this.hcClient.sendRequest(options);
|
500
|
+
}
|
501
|
+
/**
|
502
|
+
* 根据指定租户名称查询项目列表。
|
503
|
+
*
|
504
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
505
|
+
*
|
506
|
+
* @summary 查询租户项目列表
|
507
|
+
* @param {string} domainName 租户名称
|
508
|
+
* @param {*} [options] Override http request option.
|
509
|
+
* @throws {RequiredError}
|
510
|
+
*/
|
511
|
+
listDomainProjects(listDomainProjectsRequest) {
|
512
|
+
const options = (0, exports.ParamCreater)().listDomainProjects(listDomainProjectsRequest);
|
513
|
+
// @ts-ignore
|
514
|
+
options['responseHeaders'] = [''];
|
515
|
+
return this.hcClient.sendRequest(options);
|
516
|
+
}
|
517
|
+
/**
|
518
|
+
* 查询其他区域的存储库列表
|
519
|
+
*
|
520
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
521
|
+
*
|
522
|
+
* @summary 查询其他区域存储库列表
|
523
|
+
* @param {string} externalProjectId 其他区域的项目ID
|
524
|
+
* @param {string} regionId 区域ID
|
525
|
+
* @param {number} [limit] 每页显示条目数
|
526
|
+
* @param {number} [offset] 偏移值
|
527
|
+
* @param {'backup;replication;hybrid'} [protectType] [保护类型。取值为backup,replication和hybrid。](tag:hws,hws_hk) [保护类型。取值为backup和replication。](tag:ocb) [保护类型。取值为backup。](tag:g42,hk-g42,sbc,dt,fcs_vm,ctc,tm,tlf,cmcc,hcso_dt)
|
528
|
+
* @param {string} [objcetType] 资源类型
|
529
|
+
* @param {string} [cloudType] [云类型。取值为public和hybrid。](tag:hws,hws_hk) [云类型。取值为public。](tag:g42,hk-g42,sbc,dt,fcs_vm,ctc,ocb,tm,tlf,cmcc,hcso_dt)
|
530
|
+
* @param {string} [vaultId] 存储库ID,指定存储ID时其他过滤条件不生效。
|
531
|
+
* @param {*} [options] Override http request option.
|
532
|
+
* @throws {RequiredError}
|
533
|
+
*/
|
534
|
+
listExternalVault(listExternalVaultRequest) {
|
535
|
+
const options = (0, exports.ParamCreater)().listExternalVault(listExternalVaultRequest);
|
536
|
+
// @ts-ignore
|
537
|
+
options['responseHeaders'] = [''];
|
538
|
+
return this.hcClient.sendRequest(options);
|
539
|
+
}
|
540
|
+
/**
|
541
|
+
* 查询任务列表
|
542
|
+
*
|
543
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
544
|
+
*
|
545
|
+
* @summary 查询任务列表
|
546
|
+
* @param {string} [endTime] 任务结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
|
547
|
+
* @param {number} [limit] 每页显示的条目数量,正整数
|
548
|
+
* @param {number} [offset] 偏移值,正整数
|
549
|
+
* @param {'backup' | 'copy' | 'replication' | 'delete' | 'restore' | 'vault_delete' | 'remove_resource' | 'sync'} [operationType] 任务类型
|
550
|
+
* @param {string} [providerId] 备份提供商ID
|
551
|
+
* @param {string} [resourceId] 该任务操作的资源ID
|
552
|
+
* @param {string} [resourceName] 该任务操作的资源名称
|
553
|
+
* @param {string} [startTime] 任务开始时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-01-01T12:00:00Z
|
554
|
+
* @param {'success' | 'skipped' | 'failed' | 'running' | 'timeout' | 'waiting'} [status] 任务状态
|
555
|
+
* @param {string} [vaultId] 存储库ID,该任务操作的资源所属绑定的存储库。
|
556
|
+
* @param {string} [vaultName] 存储库名称,该任务操作资源所绑定的存储库名称。
|
557
|
+
* @param {string} [enterpriseProjectId] 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
|
558
|
+
* @param {*} [options] Override http request option.
|
559
|
+
* @throws {RequiredError}
|
560
|
+
*/
|
561
|
+
listOpLogs(listOpLogsRequest) {
|
562
|
+
const options = (0, exports.ParamCreater)().listOpLogs(listOpLogsRequest);
|
563
|
+
// @ts-ignore
|
564
|
+
options['responseHeaders'] = [''];
|
565
|
+
return this.hcClient.sendRequest(options);
|
566
|
+
}
|
567
|
+
/**
|
568
|
+
* 查询策略列表
|
569
|
+
*
|
570
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
571
|
+
*
|
572
|
+
* @summary 查询策略列表
|
573
|
+
* @param {'backup' | 'replication'} [operationType] 策略类型:备份(backup)、复制(replication)
|
574
|
+
* @param {string} [vaultId] 存储库ID
|
575
|
+
* @param {*} [options] Override http request option.
|
576
|
+
* @throws {RequiredError}
|
577
|
+
*/
|
578
|
+
listPolicies(listPoliciesRequest) {
|
579
|
+
const options = (0, exports.ParamCreater)().listPolicies(listPoliciesRequest);
|
580
|
+
// @ts-ignore
|
581
|
+
options['responseHeaders'] = [''];
|
582
|
+
return this.hcClient.sendRequest(options);
|
583
|
+
}
|
584
|
+
/**
|
585
|
+
* 查询租户的企业项目信息
|
586
|
+
*
|
587
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
588
|
+
*
|
589
|
+
* @summary 查询租户的项目信息
|
590
|
+
* @param {*} [options] Override http request option.
|
591
|
+
* @throws {RequiredError}
|
592
|
+
*/
|
593
|
+
listProjects(listProjectsRequest) {
|
594
|
+
const options = (0, exports.ParamCreater)().listProjects();
|
595
|
+
// @ts-ignore
|
596
|
+
options['responseHeaders'] = [''];
|
597
|
+
return this.hcClient.sendRequest(options);
|
598
|
+
}
|
599
|
+
/**
|
600
|
+
* 查询可保护性资源列表
|
601
|
+
*
|
602
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
603
|
+
*
|
604
|
+
* @summary 查询可保护资源
|
605
|
+
* @param {'server' | 'disk'} protectableType 对象类型
|
606
|
+
* @param {number} [limit] 每页显示的条目数量,每页最多支持50条
|
607
|
+
* @param {string} [marker] 上一次查询最后一条的ID
|
608
|
+
* @param {string} [name] 按名称过滤
|
609
|
+
* @param {number} [offset] 偏移值
|
610
|
+
* @param {string} [status] 资源的状态,如available,error 等
|
611
|
+
* @param {string} [id] 根据资源id过滤
|
612
|
+
* @param {string} [serverId] 根据该id过滤属于该服务器的所有磁盘,支持企业多项目的用户才能传入此参数
|
613
|
+
* @param {*} [options] Override http request option.
|
614
|
+
* @throws {RequiredError}
|
615
|
+
*/
|
616
|
+
listProtectable(listProtectableRequest) {
|
617
|
+
const options = (0, exports.ParamCreater)().listProtectable(listProtectableRequest);
|
618
|
+
// @ts-ignore
|
619
|
+
options['responseHeaders'] = [''];
|
620
|
+
return this.hcClient.sendRequest(options);
|
621
|
+
}
|
622
|
+
/**
|
623
|
+
* 查询存储库列表
|
624
|
+
*
|
625
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
626
|
+
*
|
627
|
+
* @summary 查询存储库列表
|
628
|
+
* @param {number} [limit] 每页显示条目数,正整数
|
629
|
+
* @param {string} [name] 存储库名称
|
630
|
+
* @param {number} [offset] 偏移值,正整数
|
631
|
+
* @param {'public' | 'hybrid'} [cloudType] 云类型
|
632
|
+
* @param {'backup' | 'replication'} [protectType] 保护类型
|
633
|
+
* @param {string} [objectType] 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。
|
634
|
+
* @param {string} [enterpriseProjectId] 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
|
635
|
+
* @param {string} [id] 存储库ID
|
636
|
+
* @param {string} [policyId] 策略ID
|
637
|
+
* @param {string} [status] 状态
|
638
|
+
* @param {string} [resourceIds] 资源id
|
639
|
+
* @param {*} [options] Override http request option.
|
640
|
+
* @throws {RequiredError}
|
641
|
+
*/
|
642
|
+
listVault(listVaultRequest) {
|
643
|
+
const options = (0, exports.ParamCreater)().listVault(listVaultRequest);
|
644
|
+
// @ts-ignore
|
645
|
+
options['responseHeaders'] = [''];
|
646
|
+
return this.hcClient.sendRequest(options);
|
647
|
+
}
|
648
|
+
/**
|
649
|
+
* 将CSBS/VBS资源迁移到CBR。
|
650
|
+
*
|
651
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
652
|
+
*
|
653
|
+
* @summary 租户迁移
|
654
|
+
* @param {DomainMigrate} migrateDomainRequestBody 迁移参数
|
655
|
+
* @param {*} [options] Override http request option.
|
656
|
+
* @throws {RequiredError}
|
657
|
+
*/
|
658
|
+
migrateDomain(migrateDomainRequest) {
|
659
|
+
const options = (0, exports.ParamCreater)().migrateDomain(migrateDomainRequest);
|
660
|
+
// @ts-ignore
|
661
|
+
options['responseHeaders'] = [''];
|
662
|
+
return this.hcClient.sendRequest(options);
|
663
|
+
}
|
664
|
+
/**
|
665
|
+
* 支持资源迁移到另一个存储库,不删除备份。
|
666
|
+
*
|
667
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
668
|
+
*
|
669
|
+
* @summary 迁移资源
|
670
|
+
* @param {string} vaultId
|
671
|
+
* @param {VaultMigrateResourceReq} migrateVaultResourceRequestBody 迁移资源请求体
|
672
|
+
* @param {*} [options] Override http request option.
|
673
|
+
* @throws {RequiredError}
|
674
|
+
*/
|
675
|
+
migrateVaultResource(migrateVaultResourceRequest) {
|
676
|
+
const options = (0, exports.ParamCreater)().migrateVaultResource(migrateVaultResourceRequest);
|
677
|
+
// @ts-ignore
|
678
|
+
options['responseHeaders'] = [''];
|
679
|
+
return this.hcClient.sendRequest(options);
|
680
|
+
}
|
681
|
+
/**
|
682
|
+
* 注册客户端,安装时候由Agent调用,无需手动注册。
|
683
|
+
*
|
684
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
685
|
+
*
|
686
|
+
* @summary 注册客户端
|
687
|
+
* @param {AgentRegisterReq} registerAgentRequestBody 注册客户端参数明细
|
688
|
+
* @param {*} [options] Override http request option.
|
689
|
+
* @throws {RequiredError}
|
690
|
+
*/
|
691
|
+
registerAgent(registerAgentRequest) {
|
692
|
+
const options = (0, exports.ParamCreater)().registerAgent(registerAgentRequest);
|
693
|
+
// @ts-ignore
|
694
|
+
options['responseHeaders'] = [''];
|
695
|
+
return this.hcClient.sendRequest(options);
|
696
|
+
}
|
697
|
+
/**
|
698
|
+
* 移除已添加的文件备份路径。
|
699
|
+
*
|
700
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
701
|
+
*
|
702
|
+
* @summary 移除备份路径
|
703
|
+
* @param {string} agentId 客户端ID
|
704
|
+
* @param {AgentRemovePathReq} removeAgentPathRequestBody 移除文件备份路径参数
|
705
|
+
* @param {*} [options] Override http request option.
|
706
|
+
* @throws {RequiredError}
|
707
|
+
*/
|
708
|
+
removeAgentPath(removeAgentPathRequest) {
|
709
|
+
const options = (0, exports.ParamCreater)().removeAgentPath(removeAgentPathRequest);
|
710
|
+
// @ts-ignore
|
711
|
+
options['responseHeaders'] = [''];
|
712
|
+
return this.hcClient.sendRequest(options);
|
713
|
+
}
|
714
|
+
/**
|
715
|
+
* 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
|
716
|
+
*
|
717
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
718
|
+
*
|
719
|
+
* @summary 移除资源
|
720
|
+
* @param {string} vaultId 存储库ID
|
721
|
+
* @param {VaultRemoveResourceReq} removeVaultResourceRequestBody 存储库移除资源参数
|
722
|
+
* @param {*} [options] Override http request option.
|
723
|
+
* @throws {RequiredError}
|
724
|
+
*/
|
725
|
+
removeVaultResource(removeVaultResourceRequest) {
|
726
|
+
const options = (0, exports.ParamCreater)().removeVaultResource(removeVaultResourceRequest);
|
727
|
+
// @ts-ignore
|
728
|
+
options['responseHeaders'] = [''];
|
729
|
+
return this.hcClient.sendRequest(options);
|
730
|
+
}
|
731
|
+
/**
|
732
|
+
* 恢复备份数据
|
733
|
+
*
|
734
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
735
|
+
*
|
736
|
+
* @summary 备份恢复
|
737
|
+
* @param {string} backupId 备份id
|
738
|
+
* @param {BackupRestoreReq} restoreBackupRequestBody 恢复请求body
|
739
|
+
* @param {*} [options] Override http request option.
|
740
|
+
* @throws {RequiredError}
|
741
|
+
*/
|
742
|
+
restoreBackup(restoreBackupRequest) {
|
743
|
+
const options = (0, exports.ParamCreater)().restoreBackup(restoreBackupRequest);
|
744
|
+
// @ts-ignore
|
745
|
+
options['responseHeaders'] = [''];
|
746
|
+
return this.hcClient.sendRequest(options);
|
747
|
+
}
|
748
|
+
/**
|
749
|
+
* 设置存储库资源是否自动备份
|
750
|
+
*
|
751
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
752
|
+
*
|
753
|
+
* @summary 设置存储库资源
|
754
|
+
* @param {string} vaultId 存储库id
|
755
|
+
* @param {VaultSetResourceReq} vaultSetResourceBody 存储库设置资源请求body
|
756
|
+
* @param {*} [options] Override http request option.
|
757
|
+
* @throws {RequiredError}
|
758
|
+
*/
|
759
|
+
setVaultResource(setVaultResourceRequest) {
|
760
|
+
const options = (0, exports.ParamCreater)().setVaultResource(setVaultResourceRequest);
|
761
|
+
// @ts-ignore
|
762
|
+
options['responseHeaders'] = [''];
|
763
|
+
return this.hcClient.sendRequest(options);
|
764
|
+
}
|
765
|
+
/**
|
766
|
+
* 查询指定客户端
|
767
|
+
*
|
768
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
769
|
+
*
|
770
|
+
* @summary 查询指定客户端
|
771
|
+
* @param {string} agentId 客户端ID
|
772
|
+
* @param {*} [options] Override http request option.
|
773
|
+
* @throws {RequiredError}
|
774
|
+
*/
|
775
|
+
showAgent(showAgentRequest) {
|
776
|
+
const options = (0, exports.ParamCreater)().showAgent(showAgentRequest);
|
777
|
+
// @ts-ignore
|
778
|
+
options['responseHeaders'] = [''];
|
779
|
+
return this.hcClient.sendRequest(options);
|
780
|
+
}
|
781
|
+
/**
|
782
|
+
* 根据指定id查询单个副本。
|
783
|
+
*
|
784
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
785
|
+
*
|
786
|
+
* @summary 查询指定备份
|
787
|
+
* @param {string} backupId 备份ID
|
788
|
+
* @param {*} [options] Override http request option.
|
789
|
+
* @throws {RequiredError}
|
790
|
+
*/
|
791
|
+
showBackup(showBackupRequest) {
|
792
|
+
const options = (0, exports.ParamCreater)().showBackup(showBackupRequest);
|
793
|
+
// @ts-ignore
|
794
|
+
options['responseHeaders'] = [''];
|
795
|
+
return this.hcClient.sendRequest(options);
|
796
|
+
}
|
797
|
+
/**
|
798
|
+
* 根据还原点ID查询指定还原点
|
799
|
+
*
|
800
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
801
|
+
*
|
802
|
+
* @summary 查询备份还原点
|
803
|
+
* @param {string} checkpointId 还原点ID
|
804
|
+
* @param {*} [options] Override http request option.
|
805
|
+
* @throws {RequiredError}
|
806
|
+
*/
|
807
|
+
showCheckpoint(showCheckpointRequest) {
|
808
|
+
const options = (0, exports.ParamCreater)().showCheckpoint(showCheckpointRequest);
|
809
|
+
// @ts-ignore
|
810
|
+
options['responseHeaders'] = [''];
|
811
|
+
return this.hcClient.sendRequest(options);
|
812
|
+
}
|
813
|
+
/**
|
814
|
+
* 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
|
815
|
+
*
|
816
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
817
|
+
*
|
818
|
+
* @summary 查询租户信息
|
819
|
+
* @param {string} sourceProjectId 源项目ID
|
820
|
+
* @param {*} [options] Override http request option.
|
821
|
+
* @throws {RequiredError}
|
822
|
+
*/
|
823
|
+
showDomain(showDomainRequest) {
|
824
|
+
const options = (0, exports.ParamCreater)().showDomain(showDomainRequest);
|
825
|
+
// @ts-ignore
|
826
|
+
options['responseHeaders'] = [''];
|
827
|
+
return this.hcClient.sendRequest(options);
|
828
|
+
}
|
829
|
+
/**
|
830
|
+
* 获取备份成员的详情
|
831
|
+
*
|
832
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
833
|
+
*
|
834
|
+
* @summary 获取备份成员详情
|
835
|
+
* @param {string} backupId 备份副本id
|
836
|
+
* @param {string} memberId 成员id,为接收方的project_id
|
837
|
+
* @param {*} [options] Override http request option.
|
838
|
+
* @throws {RequiredError}
|
839
|
+
*/
|
840
|
+
showMemberDetail(showMemberDetailRequest) {
|
841
|
+
const options = (0, exports.ParamCreater)().showMemberDetail(showMemberDetailRequest);
|
842
|
+
// @ts-ignore
|
843
|
+
options['responseHeaders'] = [''];
|
844
|
+
return this.hcClient.sendRequest(options);
|
845
|
+
}
|
846
|
+
/**
|
847
|
+
* 获取备份共享成员的列表信息
|
848
|
+
*
|
849
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
850
|
+
*
|
851
|
+
* @summary 获取备份成员列表
|
852
|
+
* @param {string} backupId 备份id
|
853
|
+
* @param {string} [destProjectId] 接受备份共享的项目id
|
854
|
+
* @param {string} [imageId] 接受的共享备份副本注册的镜像id
|
855
|
+
* @param {string} [status] 备份共享状态
|
856
|
+
* @param {string} [vaultId] 目标端接受共享备份的存储库id,仅支持uuid
|
857
|
+
* @param {number} [limit] 每页显示的条目数量,正整数
|
858
|
+
* @param {string} [marker] 上一次查询最后一条的id,仅支持uuid
|
859
|
+
* @param {number} [offset] 偏移值,正整数
|
860
|
+
* @param {string} [sort] sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如<key1>[:<direction>],<key2>[:<direction>],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。
|
861
|
+
* @param {*} [options] Override http request option.
|
862
|
+
* @throws {RequiredError}
|
863
|
+
*/
|
864
|
+
showMembersDetail(showMembersDetailRequest) {
|
865
|
+
const options = (0, exports.ParamCreater)().showMembersDetail(showMembersDetailRequest);
|
866
|
+
// @ts-ignore
|
867
|
+
options['responseHeaders'] = [''];
|
868
|
+
return this.hcClient.sendRequest(options);
|
869
|
+
}
|
870
|
+
/**
|
871
|
+
* 查询备份时资源的元数据
|
872
|
+
*
|
873
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
874
|
+
*
|
875
|
+
* @summary 查询备份元数据
|
876
|
+
* @param {string} backupId 备份ID
|
877
|
+
* @param {*} [options] Override http request option.
|
878
|
+
* @throws {RequiredError}
|
879
|
+
*/
|
880
|
+
showMetadata(showMetadataRequest) {
|
881
|
+
const options = (0, exports.ParamCreater)().showMetadata(showMetadataRequest);
|
882
|
+
// @ts-ignore
|
883
|
+
options['responseHeaders'] = [''];
|
884
|
+
return this.hcClient.sendRequest(options);
|
885
|
+
}
|
886
|
+
/**
|
887
|
+
* 查询迁移结果
|
888
|
+
*
|
889
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
890
|
+
*
|
891
|
+
* @summary 查询迁移
|
892
|
+
* @param {boolean} [allRegions] 是否查询其他区域结果
|
893
|
+
* @param {*} [options] Override http request option.
|
894
|
+
* @throws {RequiredError}
|
895
|
+
*/
|
896
|
+
showMigrateStatus(showMigrateStatusRequest) {
|
897
|
+
const options = (0, exports.ParamCreater)().showMigrateStatus(showMigrateStatusRequest);
|
898
|
+
// @ts-ignore
|
899
|
+
options['responseHeaders'] = [''];
|
900
|
+
return this.hcClient.sendRequest(options);
|
901
|
+
}
|
902
|
+
/**
|
903
|
+
* 根据指定任务ID查询任务
|
904
|
+
*
|
905
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
906
|
+
*
|
907
|
+
* @summary 查询单个任务
|
908
|
+
* @param {string} operationLogId 任务ID
|
909
|
+
* @param {*} [options] Override http request option.
|
910
|
+
* @throws {RequiredError}
|
911
|
+
*/
|
912
|
+
showOpLog(showOpLogRequest) {
|
913
|
+
const options = (0, exports.ParamCreater)().showOpLog(showOpLogRequest);
|
914
|
+
// @ts-ignore
|
915
|
+
options['responseHeaders'] = [''];
|
916
|
+
return this.hcClient.sendRequest(options);
|
917
|
+
}
|
918
|
+
/**
|
919
|
+
* 查询单个策略
|
920
|
+
*
|
921
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
922
|
+
*
|
923
|
+
* @summary 查询单个策略
|
924
|
+
* @param {string} policyId 策略ID
|
925
|
+
* @param {*} [options] Override http request option.
|
926
|
+
* @throws {RequiredError}
|
927
|
+
*/
|
928
|
+
showPolicy(showPolicyRequest) {
|
929
|
+
const options = (0, exports.ParamCreater)().showPolicy(showPolicyRequest);
|
930
|
+
// @ts-ignore
|
931
|
+
options['responseHeaders'] = [''];
|
932
|
+
return this.hcClient.sendRequest(options);
|
933
|
+
}
|
934
|
+
/**
|
935
|
+
* 根据ID查询可保护性资源
|
936
|
+
*
|
937
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
938
|
+
*
|
939
|
+
* @summary 查询指定可保护资源
|
940
|
+
* @param {string} instanceId 资源ID
|
941
|
+
* @param {'server' | 'disk'} protectableType 可保护性类型
|
942
|
+
* @param {*} [options] Override http request option.
|
943
|
+
* @throws {RequiredError}
|
944
|
+
*/
|
945
|
+
showProtectable(showProtectableRequest) {
|
946
|
+
const options = (0, exports.ParamCreater)().showProtectable(showProtectableRequest);
|
947
|
+
// @ts-ignore
|
948
|
+
options['responseHeaders'] = [''];
|
949
|
+
return this.hcClient.sendRequest(options);
|
950
|
+
}
|
951
|
+
/**
|
952
|
+
* 查询本区域的复制能力
|
953
|
+
*
|
954
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
955
|
+
*
|
956
|
+
* @summary 查询复制能力
|
957
|
+
* @param {*} [options] Override http request option.
|
958
|
+
* @throws {RequiredError}
|
959
|
+
*/
|
960
|
+
showReplicationCapabilities(showReplicationCapabilitiesRequest) {
|
961
|
+
const options = (0, exports.ParamCreater)().showReplicationCapabilities();
|
962
|
+
// @ts-ignore
|
963
|
+
options['responseHeaders'] = [''];
|
964
|
+
return this.hcClient.sendRequest(options);
|
965
|
+
}
|
966
|
+
/**
|
967
|
+
* 查询容量统计
|
968
|
+
*
|
969
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
970
|
+
*
|
971
|
+
* @summary 查询容量统计
|
972
|
+
* @param {number} [limit] 查询条数
|
973
|
+
* @param {number} [offset] 偏移值
|
974
|
+
* @param {string} [resourceId] 支持按照备份对象ID过滤
|
975
|
+
* @param {'OS::Nova::Server' | 'OS::Ironic::BareMetalServer'} [resourceType] 支持按照备份对象类型过滤
|
976
|
+
* @param {*} [options] Override http request option.
|
977
|
+
* @throws {RequiredError}
|
978
|
+
*/
|
979
|
+
showStorageUsage(showStorageUsageRequest) {
|
980
|
+
const options = (0, exports.ParamCreater)().showStorageUsage(showStorageUsageRequest);
|
981
|
+
// @ts-ignore
|
982
|
+
options['responseHeaders'] = [''];
|
983
|
+
return this.hcClient.sendRequest(options);
|
984
|
+
}
|
985
|
+
/**
|
986
|
+
* 查询项目下所有存储库的总容量和总使用量
|
987
|
+
*
|
988
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
989
|
+
*
|
990
|
+
* @summary 存储库容量总览
|
991
|
+
* @param {*} [options] Override http request option.
|
992
|
+
* @throws {RequiredError}
|
993
|
+
*/
|
994
|
+
showSummary(showSummaryRequest) {
|
995
|
+
const options = (0, exports.ParamCreater)().showSummary();
|
996
|
+
// @ts-ignore
|
997
|
+
options['responseHeaders'] = [''];
|
998
|
+
return this.hcClient.sendRequest(options);
|
999
|
+
}
|
1000
|
+
/**
|
1001
|
+
* 根据ID查询指定存储库
|
1002
|
+
*
|
1003
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1004
|
+
*
|
1005
|
+
* @summary 查询指定存储库
|
1006
|
+
* @param {string} vaultId 存储库ID
|
1007
|
+
* @param {*} [options] Override http request option.
|
1008
|
+
* @throws {RequiredError}
|
1009
|
+
*/
|
1010
|
+
showVault(showVaultRequest) {
|
1011
|
+
const options = (0, exports.ParamCreater)().showVault(showVaultRequest);
|
1012
|
+
// @ts-ignore
|
1013
|
+
options['responseHeaders'] = [''];
|
1014
|
+
return this.hcClient.sendRequest(options);
|
1015
|
+
}
|
1016
|
+
/**
|
1017
|
+
* 查询租户在指定Region和实例类型的所有标签集合
|
1018
|
+
* 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能
|
1019
|
+
*
|
1020
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1021
|
+
*
|
1022
|
+
* @summary 查询存储库项目标签
|
1023
|
+
* @param {*} [options] Override http request option.
|
1024
|
+
* @throws {RequiredError}
|
1025
|
+
*/
|
1026
|
+
showVaultProjectTag(showVaultProjectTagRequest) {
|
1027
|
+
const options = (0, exports.ParamCreater)().showVaultProjectTag();
|
1028
|
+
// @ts-ignore
|
1029
|
+
options['responseHeaders'] = [''];
|
1030
|
+
return this.hcClient.sendRequest(options);
|
1031
|
+
}
|
1032
|
+
/**
|
1033
|
+
* 使用标签过滤实例
|
1034
|
+
* 标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力
|
1035
|
+
*
|
1036
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1037
|
+
*
|
1038
|
+
* @summary 查询存储库资源实例
|
1039
|
+
* @param {VaultResourceInstancesReq} showVaultResourceInstancesRequestBody 查询存储库资源实例参数
|
1040
|
+
* @param {*} [options] Override http request option.
|
1041
|
+
* @throws {RequiredError}
|
1042
|
+
*/
|
1043
|
+
showVaultResourceInstances(showVaultResourceInstancesRequest) {
|
1044
|
+
const options = (0, exports.ParamCreater)().showVaultResourceInstances(showVaultResourceInstancesRequest);
|
1045
|
+
// @ts-ignore
|
1046
|
+
options['responseHeaders'] = [''];
|
1047
|
+
return this.hcClient.sendRequest(options);
|
1048
|
+
}
|
1049
|
+
/**
|
1050
|
+
* 查询指定实例的标签信息
|
1051
|
+
* 标签管理服务需要使用该接口查询指定实例的全部标签数据
|
1052
|
+
*
|
1053
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1054
|
+
*
|
1055
|
+
* @summary 查询存储库资源标签
|
1056
|
+
* @param {string} vaultId 资源id
|
1057
|
+
* @param {*} [options] Override http request option.
|
1058
|
+
* @throws {RequiredError}
|
1059
|
+
*/
|
1060
|
+
showVaultTag(showVaultTagRequest) {
|
1061
|
+
const options = (0, exports.ParamCreater)().showVaultTag(showVaultTagRequest);
|
1062
|
+
// @ts-ignore
|
1063
|
+
options['responseHeaders'] = [''];
|
1064
|
+
return this.hcClient.sendRequest(options);
|
1065
|
+
}
|
1066
|
+
/**
|
1067
|
+
* 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
|
1068
|
+
*
|
1069
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1070
|
+
*
|
1071
|
+
* @summary 移除客户端
|
1072
|
+
* @param {string} agentId 客户端ID
|
1073
|
+
* @param {*} [options] Override http request option.
|
1074
|
+
* @throws {RequiredError}
|
1075
|
+
*/
|
1076
|
+
unregisterAgent(unregisterAgentRequest) {
|
1077
|
+
const options = (0, exports.ParamCreater)().unregisterAgent(unregisterAgentRequest);
|
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} agentId
|
1089
|
+
* @param {AgentUpdateReq} updateAgentRequestBody
|
1090
|
+
* @param {*} [options] Override http request option.
|
1091
|
+
* @throws {RequiredError}
|
1092
|
+
*/
|
1093
|
+
updateAgent(updateAgentRequest) {
|
1094
|
+
const options = (0, exports.ParamCreater)().updateAgent(updateAgentRequest);
|
1095
|
+
// @ts-ignore
|
1096
|
+
options['responseHeaders'] = [''];
|
1097
|
+
return this.hcClient.sendRequest(options);
|
1098
|
+
}
|
1099
|
+
/**
|
1100
|
+
* 根据备份id更改备份
|
1101
|
+
*
|
1102
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1103
|
+
*
|
1104
|
+
* @summary 更新备份
|
1105
|
+
* @param {string} backupId 备份ID
|
1106
|
+
* @param {BackupUpdateReq} [backupUpdateRequestBody] 备份修改参数
|
1107
|
+
* @param {*} [options] Override http request option.
|
1108
|
+
* @throws {RequiredError}
|
1109
|
+
*/
|
1110
|
+
updateBackup(updateBackupRequest) {
|
1111
|
+
const options = (0, exports.ParamCreater)().updateBackup(updateBackupRequest);
|
1112
|
+
// @ts-ignore
|
1113
|
+
options['responseHeaders'] = [''];
|
1114
|
+
return this.hcClient.sendRequest(options);
|
1115
|
+
}
|
1116
|
+
/**
|
1117
|
+
* 更新备份共享成员的状态,需要接收方执行此API。
|
1118
|
+
*
|
1119
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1120
|
+
*
|
1121
|
+
* @summary 更新备份成员状态
|
1122
|
+
* @param {string} memberId 成员id,成员id与项目id为同一个。
|
1123
|
+
* @param {string} backupId 备份副本id
|
1124
|
+
* @param {UpdateMember} [updateMemberStatusRequestBody] 备份共享更新请求体
|
1125
|
+
* @param {*} [options] Override http request option.
|
1126
|
+
* @throws {RequiredError}
|
1127
|
+
*/
|
1128
|
+
updateMemberStatus(updateMemberStatusRequest) {
|
1129
|
+
const options = (0, exports.ParamCreater)().updateMemberStatus(updateMemberStatusRequest);
|
1130
|
+
// @ts-ignore
|
1131
|
+
options['responseHeaders'] = [''];
|
1132
|
+
return this.hcClient.sendRequest(options);
|
1133
|
+
}
|
1134
|
+
/**
|
1135
|
+
* 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
|
1136
|
+
*
|
1137
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1138
|
+
*
|
1139
|
+
* @summary 变更
|
1140
|
+
* @param {string} orderId 订单ID
|
1141
|
+
* @param {CbcUpdate} updateOrderRequestBody 变更请求body
|
1142
|
+
* @param {*} [options] Override http request option.
|
1143
|
+
* @throws {RequiredError}
|
1144
|
+
*/
|
1145
|
+
updateOrder(updateOrderRequest) {
|
1146
|
+
const options = (0, exports.ParamCreater)().updateOrder(updateOrderRequest);
|
1147
|
+
// @ts-ignore
|
1148
|
+
options['responseHeaders'] = [''];
|
1149
|
+
return this.hcClient.sendRequest(options);
|
1150
|
+
}
|
1151
|
+
/**
|
1152
|
+
* 修改策略
|
1153
|
+
*
|
1154
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1155
|
+
*
|
1156
|
+
* @summary 修改策略
|
1157
|
+
* @param {string} policyId 策略ID
|
1158
|
+
* @param {PolicyUpdateReq} updatePolicyRequestBody 修改策略body
|
1159
|
+
* @param {*} [options] Override http request option.
|
1160
|
+
* @throws {RequiredError}
|
1161
|
+
*/
|
1162
|
+
updatePolicy(updatePolicyRequest) {
|
1163
|
+
const options = (0, exports.ParamCreater)().updatePolicy(updatePolicyRequest);
|
1164
|
+
// @ts-ignore
|
1165
|
+
options['responseHeaders'] = [''];
|
1166
|
+
return this.hcClient.sendRequest(options);
|
1167
|
+
}
|
1168
|
+
/**
|
1169
|
+
* 根据存储库ID修改存储库
|
1170
|
+
*
|
1171
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1172
|
+
*
|
1173
|
+
* @summary 修改存储库
|
1174
|
+
* @param {string} vaultId 存储库ID
|
1175
|
+
* @param {VaultUpdateReq} updateVaultRequestBody 存储修改参数
|
1176
|
+
* @param {*} [options] Override http request option.
|
1177
|
+
* @throws {RequiredError}
|
1178
|
+
*/
|
1179
|
+
updateVault(updateVaultRequest) {
|
1180
|
+
const options = (0, exports.ParamCreater)().updateVault(updateVaultRequest);
|
1181
|
+
// @ts-ignore
|
1182
|
+
options['responseHeaders'] = [''];
|
1183
|
+
return this.hcClient.sendRequest(options);
|
1184
|
+
}
|
1185
|
+
}
|
1186
|
+
exports.CbrClient = CbrClient;
|
1187
|
+
const ParamCreater = function () {
|
1188
|
+
return {
|
1189
|
+
/**
|
1190
|
+
* 对客户端新增备份路径,新增的路径不会校验是否存在。
|
1191
|
+
*
|
1192
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1193
|
+
*/
|
1194
|
+
addAgentPath(addAgentPathRequest) {
|
1195
|
+
const options = {
|
1196
|
+
method: "POST",
|
1197
|
+
url: "/v3/{project_id}/agents/{agent_id}/add-path",
|
1198
|
+
contentType: "application/json;charset=UTF-8",
|
1199
|
+
queryParams: {},
|
1200
|
+
pathParams: {},
|
1201
|
+
headers: {},
|
1202
|
+
data: {}
|
1203
|
+
};
|
1204
|
+
const localVarHeaderParameter = {};
|
1205
|
+
let body;
|
1206
|
+
let agentId;
|
1207
|
+
if (addAgentPathRequest !== null && addAgentPathRequest !== undefined) {
|
1208
|
+
if (addAgentPathRequest instanceof AddAgentPathRequest_1.AddAgentPathRequest) {
|
1209
|
+
agentId = addAgentPathRequest.agentId;
|
1210
|
+
body = addAgentPathRequest.body;
|
1211
|
+
}
|
1212
|
+
else {
|
1213
|
+
agentId = addAgentPathRequest['agent_id'];
|
1214
|
+
body = addAgentPathRequest['body'];
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
if (agentId === null || agentId === undefined) {
|
1218
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling addAgentPath.');
|
1219
|
+
}
|
1220
|
+
if (body === null || body === undefined) {
|
1221
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1222
|
+
}
|
1223
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1224
|
+
options.data = body !== undefined ? body : {};
|
1225
|
+
options.pathParams = { 'agent_id': agentId, };
|
1226
|
+
options.headers = localVarHeaderParameter;
|
1227
|
+
return options;
|
1228
|
+
},
|
1229
|
+
/**
|
1230
|
+
* 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
|
1231
|
+
*
|
1232
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1233
|
+
*/
|
1234
|
+
addMember(addMemberRequest) {
|
1235
|
+
const options = {
|
1236
|
+
method: "POST",
|
1237
|
+
url: "/v3/{project_id}/backups/{backup_id}/members",
|
1238
|
+
contentType: "application/json;charset=UTF-8",
|
1239
|
+
queryParams: {},
|
1240
|
+
pathParams: {},
|
1241
|
+
headers: {},
|
1242
|
+
data: {}
|
1243
|
+
};
|
1244
|
+
const localVarHeaderParameter = {};
|
1245
|
+
let body;
|
1246
|
+
let backupId;
|
1247
|
+
if (addMemberRequest !== null && addMemberRequest !== undefined) {
|
1248
|
+
if (addMemberRequest instanceof AddMemberRequest_1.AddMemberRequest) {
|
1249
|
+
backupId = addMemberRequest.backupId;
|
1250
|
+
body = addMemberRequest.body;
|
1251
|
+
}
|
1252
|
+
else {
|
1253
|
+
backupId = addMemberRequest['backup_id'];
|
1254
|
+
body = addMemberRequest['body'];
|
1255
|
+
}
|
1256
|
+
}
|
1257
|
+
if (backupId === null || backupId === undefined) {
|
1258
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling addMember.');
|
1259
|
+
}
|
1260
|
+
if (body === null || body === undefined) {
|
1261
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1262
|
+
}
|
1263
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1264
|
+
options.data = body !== undefined ? body : {};
|
1265
|
+
options.pathParams = { 'backup_id': backupId, };
|
1266
|
+
options.headers = localVarHeaderParameter;
|
1267
|
+
return options;
|
1268
|
+
},
|
1269
|
+
/**
|
1270
|
+
* 存储库添加资源
|
1271
|
+
*
|
1272
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1273
|
+
*/
|
1274
|
+
addVaultResource(addVaultResourceRequest) {
|
1275
|
+
const options = {
|
1276
|
+
method: "POST",
|
1277
|
+
url: "/v3/{project_id}/vaults/{vault_id}/addresources",
|
1278
|
+
contentType: "application/json;charset=UTF-8",
|
1279
|
+
queryParams: {},
|
1280
|
+
pathParams: {},
|
1281
|
+
headers: {},
|
1282
|
+
data: {}
|
1283
|
+
};
|
1284
|
+
const localVarHeaderParameter = {};
|
1285
|
+
let body;
|
1286
|
+
let vaultId;
|
1287
|
+
if (addVaultResourceRequest !== null && addVaultResourceRequest !== undefined) {
|
1288
|
+
if (addVaultResourceRequest instanceof AddVaultResourceRequest_1.AddVaultResourceRequest) {
|
1289
|
+
vaultId = addVaultResourceRequest.vaultId;
|
1290
|
+
body = addVaultResourceRequest.body;
|
1291
|
+
}
|
1292
|
+
else {
|
1293
|
+
vaultId = addVaultResourceRequest['vault_id'];
|
1294
|
+
body = addVaultResourceRequest['body'];
|
1295
|
+
}
|
1296
|
+
}
|
1297
|
+
if (vaultId === null || vaultId === undefined) {
|
1298
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling addVaultResource.');
|
1299
|
+
}
|
1300
|
+
if (body === null || body === undefined) {
|
1301
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1302
|
+
}
|
1303
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1304
|
+
options.data = body !== undefined ? body : {};
|
1305
|
+
options.pathParams = { 'vault_id': vaultId, };
|
1306
|
+
options.headers = localVarHeaderParameter;
|
1307
|
+
return options;
|
1308
|
+
},
|
1309
|
+
/**
|
1310
|
+
* 存储库设置策略
|
1311
|
+
*
|
1312
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1313
|
+
*/
|
1314
|
+
associateVaultPolicy(associateVaultPolicyRequest) {
|
1315
|
+
const options = {
|
1316
|
+
method: "POST",
|
1317
|
+
url: "/v3/{project_id}/vaults/{vault_id}/associatepolicy",
|
1318
|
+
contentType: "application/json;charset=UTF-8",
|
1319
|
+
queryParams: {},
|
1320
|
+
pathParams: {},
|
1321
|
+
headers: {},
|
1322
|
+
data: {}
|
1323
|
+
};
|
1324
|
+
const localVarHeaderParameter = {};
|
1325
|
+
let body;
|
1326
|
+
let vaultId;
|
1327
|
+
if (associateVaultPolicyRequest !== null && associateVaultPolicyRequest !== undefined) {
|
1328
|
+
if (associateVaultPolicyRequest instanceof AssociateVaultPolicyRequest_1.AssociateVaultPolicyRequest) {
|
1329
|
+
vaultId = associateVaultPolicyRequest.vaultId;
|
1330
|
+
body = associateVaultPolicyRequest.body;
|
1331
|
+
}
|
1332
|
+
else {
|
1333
|
+
vaultId = associateVaultPolicyRequest['vault_id'];
|
1334
|
+
body = associateVaultPolicyRequest['body'];
|
1335
|
+
}
|
1336
|
+
}
|
1337
|
+
if (vaultId === null || vaultId === undefined) {
|
1338
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling associateVaultPolicy.');
|
1339
|
+
}
|
1340
|
+
if (body === null || body === undefined) {
|
1341
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1342
|
+
}
|
1343
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1344
|
+
options.data = body !== undefined ? body : {};
|
1345
|
+
options.pathParams = { 'vault_id': vaultId, };
|
1346
|
+
options.headers = localVarHeaderParameter;
|
1347
|
+
return options;
|
1348
|
+
},
|
1349
|
+
/**
|
1350
|
+
* 为指定实例批量添加或删除标签
|
1351
|
+
* 标签管理服务需要使用该接口批量管理实例的标签。
|
1352
|
+
* 一个资源上最多有10个标签。
|
1353
|
+
* 此接口为幂等接口:
|
1354
|
+
* 创建时如果请求体中存在重复key则报错。
|
1355
|
+
* 创建时,不允许重复key,如果数据库存在就覆盖。
|
1356
|
+
* 删除时,允许重复key。
|
1357
|
+
* 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。
|
1358
|
+
*
|
1359
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1360
|
+
*/
|
1361
|
+
batchCreateAndDeleteVaultTags(batchCreateAndDeleteVaultTagsRequest) {
|
1362
|
+
const options = {
|
1363
|
+
method: "POST",
|
1364
|
+
url: "/v3/{project_id}/vault/{vault_id}/tags/action",
|
1365
|
+
contentType: "application/json;charset=UTF-8",
|
1366
|
+
queryParams: {},
|
1367
|
+
pathParams: {},
|
1368
|
+
headers: {},
|
1369
|
+
data: {}
|
1370
|
+
};
|
1371
|
+
const localVarHeaderParameter = {};
|
1372
|
+
let body;
|
1373
|
+
let vaultId;
|
1374
|
+
if (batchCreateAndDeleteVaultTagsRequest !== null && batchCreateAndDeleteVaultTagsRequest !== undefined) {
|
1375
|
+
if (batchCreateAndDeleteVaultTagsRequest instanceof BatchCreateAndDeleteVaultTagsRequest_1.BatchCreateAndDeleteVaultTagsRequest) {
|
1376
|
+
vaultId = batchCreateAndDeleteVaultTagsRequest.vaultId;
|
1377
|
+
body = batchCreateAndDeleteVaultTagsRequest.body;
|
1378
|
+
}
|
1379
|
+
else {
|
1380
|
+
vaultId = batchCreateAndDeleteVaultTagsRequest['vault_id'];
|
1381
|
+
body = batchCreateAndDeleteVaultTagsRequest['body'];
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
if (vaultId === null || vaultId === undefined) {
|
1385
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling batchCreateAndDeleteVaultTags.');
|
1386
|
+
}
|
1387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1388
|
+
options.data = body !== undefined ? body : {};
|
1389
|
+
options.pathParams = { 'vault_id': vaultId, };
|
1390
|
+
options.headers = localVarHeaderParameter;
|
1391
|
+
return options;
|
1392
|
+
},
|
1393
|
+
/**
|
1394
|
+
* 批量修改项目下所有存储库
|
1395
|
+
*
|
1396
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1397
|
+
*/
|
1398
|
+
batchUpdateVault(batchUpdateVaultRequest) {
|
1399
|
+
const options = {
|
1400
|
+
method: "PUT",
|
1401
|
+
url: "/v3/{project_id}/vaults/batch-update",
|
1402
|
+
contentType: "application/json;charset=UTF-8",
|
1403
|
+
queryParams: {},
|
1404
|
+
pathParams: {},
|
1405
|
+
headers: {},
|
1406
|
+
data: {}
|
1407
|
+
};
|
1408
|
+
const localVarHeaderParameter = {};
|
1409
|
+
let body;
|
1410
|
+
if (batchUpdateVaultRequest !== null && batchUpdateVaultRequest !== undefined) {
|
1411
|
+
if (batchUpdateVaultRequest instanceof BatchUpdateVaultRequest_1.BatchUpdateVaultRequest) {
|
1412
|
+
body = batchUpdateVaultRequest.body;
|
1413
|
+
}
|
1414
|
+
else {
|
1415
|
+
body = batchUpdateVaultRequest['body'];
|
1416
|
+
}
|
1417
|
+
}
|
1418
|
+
if (body === null || body === undefined) {
|
1419
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1420
|
+
}
|
1421
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1422
|
+
options.data = body !== undefined ? body : {};
|
1423
|
+
options.headers = localVarHeaderParameter;
|
1424
|
+
return options;
|
1425
|
+
},
|
1426
|
+
/**
|
1427
|
+
* 检查应用一致性Agent状态
|
1428
|
+
*
|
1429
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1430
|
+
*/
|
1431
|
+
checkAgent(checkAgentRequest) {
|
1432
|
+
const options = {
|
1433
|
+
method: "POST",
|
1434
|
+
url: "/v3/{project_id}/agent/check",
|
1435
|
+
contentType: "application/json;charset=UTF-8",
|
1436
|
+
queryParams: {},
|
1437
|
+
pathParams: {},
|
1438
|
+
headers: {},
|
1439
|
+
data: {}
|
1440
|
+
};
|
1441
|
+
const localVarHeaderParameter = {};
|
1442
|
+
let body;
|
1443
|
+
if (checkAgentRequest !== null && checkAgentRequest !== undefined) {
|
1444
|
+
if (checkAgentRequest instanceof CheckAgentRequest_1.CheckAgentRequest) {
|
1445
|
+
body = checkAgentRequest.body;
|
1446
|
+
}
|
1447
|
+
else {
|
1448
|
+
body = checkAgentRequest['body'];
|
1449
|
+
}
|
1450
|
+
}
|
1451
|
+
if (body === null || body === undefined) {
|
1452
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1453
|
+
}
|
1454
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1455
|
+
options.data = body !== undefined ? body : {};
|
1456
|
+
options.headers = localVarHeaderParameter;
|
1457
|
+
return options;
|
1458
|
+
},
|
1459
|
+
/**
|
1460
|
+
* 跨区域复制备份。
|
1461
|
+
*
|
1462
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1463
|
+
*/
|
1464
|
+
copyBackup(copyBackupRequest) {
|
1465
|
+
const options = {
|
1466
|
+
method: "POST",
|
1467
|
+
url: "/v3/{project_id}/backups/{backup_id}/replicate",
|
1468
|
+
contentType: "application/json;charset=UTF-8",
|
1469
|
+
queryParams: {},
|
1470
|
+
pathParams: {},
|
1471
|
+
headers: {},
|
1472
|
+
data: {}
|
1473
|
+
};
|
1474
|
+
const localVarHeaderParameter = {};
|
1475
|
+
let body;
|
1476
|
+
let backupId;
|
1477
|
+
if (copyBackupRequest !== null && copyBackupRequest !== undefined) {
|
1478
|
+
if (copyBackupRequest instanceof CopyBackupRequest_1.CopyBackupRequest) {
|
1479
|
+
backupId = copyBackupRequest.backupId;
|
1480
|
+
body = copyBackupRequest.body;
|
1481
|
+
}
|
1482
|
+
else {
|
1483
|
+
backupId = copyBackupRequest['backup_id'];
|
1484
|
+
body = copyBackupRequest['body'];
|
1485
|
+
}
|
1486
|
+
}
|
1487
|
+
if (backupId === null || backupId === undefined) {
|
1488
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling copyBackup.');
|
1489
|
+
}
|
1490
|
+
if (body === null || body === undefined) {
|
1491
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1492
|
+
}
|
1493
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1494
|
+
options.data = body !== undefined ? body : {};
|
1495
|
+
options.pathParams = { 'backup_id': backupId, };
|
1496
|
+
options.headers = localVarHeaderParameter;
|
1497
|
+
return options;
|
1498
|
+
},
|
1499
|
+
/**
|
1500
|
+
* 执行复制
|
1501
|
+
*
|
1502
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1503
|
+
*/
|
1504
|
+
copyCheckpoint(copyCheckpointRequest) {
|
1505
|
+
const options = {
|
1506
|
+
method: "POST",
|
1507
|
+
url: "/v3/{project_id}/checkpoints/replicate",
|
1508
|
+
contentType: "application/json;charset=UTF-8",
|
1509
|
+
queryParams: {},
|
1510
|
+
pathParams: {},
|
1511
|
+
headers: {},
|
1512
|
+
data: {}
|
1513
|
+
};
|
1514
|
+
const localVarHeaderParameter = {};
|
1515
|
+
let body;
|
1516
|
+
if (copyCheckpointRequest !== null && copyCheckpointRequest !== undefined) {
|
1517
|
+
if (copyCheckpointRequest instanceof CopyCheckpointRequest_1.CopyCheckpointRequest) {
|
1518
|
+
body = copyCheckpointRequest.body;
|
1519
|
+
}
|
1520
|
+
else {
|
1521
|
+
body = copyCheckpointRequest['body'];
|
1522
|
+
}
|
1523
|
+
}
|
1524
|
+
if (body === null || body === undefined) {
|
1525
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1526
|
+
}
|
1527
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1528
|
+
options.data = body !== undefined ? body : {};
|
1529
|
+
options.headers = localVarHeaderParameter;
|
1530
|
+
return options;
|
1531
|
+
},
|
1532
|
+
/**
|
1533
|
+
* 对存储库执行备份,生成备份还原点
|
1534
|
+
*
|
1535
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1536
|
+
*/
|
1537
|
+
createCheckpoint(createCheckpointRequest) {
|
1538
|
+
const options = {
|
1539
|
+
method: "POST",
|
1540
|
+
url: "/v3/{project_id}/checkpoints",
|
1541
|
+
contentType: "application/json;charset=UTF-8",
|
1542
|
+
queryParams: {},
|
1543
|
+
pathParams: {},
|
1544
|
+
headers: {},
|
1545
|
+
data: {}
|
1546
|
+
};
|
1547
|
+
const localVarHeaderParameter = {};
|
1548
|
+
let body;
|
1549
|
+
if (createCheckpointRequest !== null && createCheckpointRequest !== undefined) {
|
1550
|
+
if (createCheckpointRequest instanceof CreateCheckpointRequest_1.CreateCheckpointRequest) {
|
1551
|
+
body = createCheckpointRequest.body;
|
1552
|
+
}
|
1553
|
+
else {
|
1554
|
+
body = createCheckpointRequest['body'];
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
if (body === null || body === undefined) {
|
1558
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1559
|
+
}
|
1560
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1561
|
+
options.data = body !== undefined ? body : {};
|
1562
|
+
options.headers = localVarHeaderParameter;
|
1563
|
+
return options;
|
1564
|
+
},
|
1565
|
+
/**
|
1566
|
+
* 创建策略,策略分为备份策略和复制策略。
|
1567
|
+
*
|
1568
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1569
|
+
*/
|
1570
|
+
createPolicy(createPolicyRequest) {
|
1571
|
+
const options = {
|
1572
|
+
method: "POST",
|
1573
|
+
url: "/v3/{project_id}/policies",
|
1574
|
+
contentType: "application/json;charset=UTF-8",
|
1575
|
+
queryParams: {},
|
1576
|
+
pathParams: {},
|
1577
|
+
headers: {},
|
1578
|
+
data: {}
|
1579
|
+
};
|
1580
|
+
const localVarHeaderParameter = {};
|
1581
|
+
let body;
|
1582
|
+
if (createPolicyRequest !== null && createPolicyRequest !== undefined) {
|
1583
|
+
if (createPolicyRequest instanceof CreatePolicyRequest_1.CreatePolicyRequest) {
|
1584
|
+
body = createPolicyRequest.body;
|
1585
|
+
}
|
1586
|
+
else {
|
1587
|
+
body = createPolicyRequest['body'];
|
1588
|
+
}
|
1589
|
+
}
|
1590
|
+
if (body === null || body === undefined) {
|
1591
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1592
|
+
}
|
1593
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1594
|
+
options.data = body !== undefined ? body : {};
|
1595
|
+
options.headers = localVarHeaderParameter;
|
1596
|
+
return options;
|
1597
|
+
},
|
1598
|
+
/**
|
1599
|
+
* 创建包周期存储库
|
1600
|
+
*
|
1601
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1602
|
+
*/
|
1603
|
+
createPostPaidVault(createPostPaidVaultRequest) {
|
1604
|
+
const options = {
|
1605
|
+
method: "POST",
|
1606
|
+
url: "/v3/{project_id}/vaults/order",
|
1607
|
+
contentType: "application/json;charset=UTF-8",
|
1608
|
+
queryParams: {},
|
1609
|
+
pathParams: {},
|
1610
|
+
headers: {},
|
1611
|
+
data: {}
|
1612
|
+
};
|
1613
|
+
const localVarHeaderParameter = {};
|
1614
|
+
let body;
|
1615
|
+
if (createPostPaidVaultRequest !== null && createPostPaidVaultRequest !== undefined) {
|
1616
|
+
if (createPostPaidVaultRequest instanceof CreatePostPaidVaultRequest_1.CreatePostPaidVaultRequest) {
|
1617
|
+
body = createPostPaidVaultRequest.body;
|
1618
|
+
}
|
1619
|
+
else {
|
1620
|
+
body = createPostPaidVaultRequest['body'];
|
1621
|
+
}
|
1622
|
+
}
|
1623
|
+
if (body === null || body === undefined) {
|
1624
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1625
|
+
}
|
1626
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1627
|
+
options.data = body !== undefined ? body : {};
|
1628
|
+
options.headers = localVarHeaderParameter;
|
1629
|
+
return options;
|
1630
|
+
},
|
1631
|
+
/**
|
1632
|
+
* 创建存储库
|
1633
|
+
*
|
1634
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1635
|
+
*/
|
1636
|
+
createVault(createVaultRequest) {
|
1637
|
+
const options = {
|
1638
|
+
method: "POST",
|
1639
|
+
url: "/v3/{project_id}/vaults",
|
1640
|
+
contentType: "application/json;charset=UTF-8",
|
1641
|
+
queryParams: {},
|
1642
|
+
pathParams: {},
|
1643
|
+
headers: {},
|
1644
|
+
data: {}
|
1645
|
+
};
|
1646
|
+
const localVarHeaderParameter = {};
|
1647
|
+
let body;
|
1648
|
+
if (createVaultRequest !== null && createVaultRequest !== undefined) {
|
1649
|
+
if (createVaultRequest instanceof CreateVaultRequest_1.CreateVaultRequest) {
|
1650
|
+
body = createVaultRequest.body;
|
1651
|
+
}
|
1652
|
+
else {
|
1653
|
+
body = createVaultRequest['body'];
|
1654
|
+
}
|
1655
|
+
}
|
1656
|
+
if (body === null || body === undefined) {
|
1657
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1658
|
+
}
|
1659
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1660
|
+
options.data = body !== undefined ? body : {};
|
1661
|
+
options.headers = localVarHeaderParameter;
|
1662
|
+
return options;
|
1663
|
+
},
|
1664
|
+
/**
|
1665
|
+
* 一个资源上最多有10个标签。
|
1666
|
+
* 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
|
1667
|
+
*
|
1668
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1669
|
+
*/
|
1670
|
+
createVaultTags(createVaultTagsRequest) {
|
1671
|
+
const options = {
|
1672
|
+
method: "POST",
|
1673
|
+
url: "/v3/{project_id}/vault/{vault_id}/tags",
|
1674
|
+
contentType: "application/json;charset=UTF-8",
|
1675
|
+
queryParams: {},
|
1676
|
+
pathParams: {},
|
1677
|
+
headers: {},
|
1678
|
+
data: {}
|
1679
|
+
};
|
1680
|
+
const localVarHeaderParameter = {};
|
1681
|
+
let body;
|
1682
|
+
let vaultId;
|
1683
|
+
if (createVaultTagsRequest !== null && createVaultTagsRequest !== undefined) {
|
1684
|
+
if (createVaultTagsRequest instanceof CreateVaultTagsRequest_1.CreateVaultTagsRequest) {
|
1685
|
+
vaultId = createVaultTagsRequest.vaultId;
|
1686
|
+
body = createVaultTagsRequest.body;
|
1687
|
+
}
|
1688
|
+
else {
|
1689
|
+
vaultId = createVaultTagsRequest['vault_id'];
|
1690
|
+
body = createVaultTagsRequest['body'];
|
1691
|
+
}
|
1692
|
+
}
|
1693
|
+
if (vaultId === null || vaultId === undefined) {
|
1694
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling createVaultTags.');
|
1695
|
+
}
|
1696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1697
|
+
options.data = body !== undefined ? body : {};
|
1698
|
+
options.pathParams = { 'vault_id': vaultId, };
|
1699
|
+
options.headers = localVarHeaderParameter;
|
1700
|
+
return options;
|
1701
|
+
},
|
1702
|
+
/**
|
1703
|
+
* 删除单个备份。
|
1704
|
+
*
|
1705
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1706
|
+
*/
|
1707
|
+
deleteBackup(deleteBackupRequest) {
|
1708
|
+
const options = {
|
1709
|
+
method: "DELETE",
|
1710
|
+
url: "/v3/{project_id}/backups/{backup_id}",
|
1711
|
+
contentType: "application/json",
|
1712
|
+
queryParams: {},
|
1713
|
+
pathParams: {},
|
1714
|
+
headers: {}
|
1715
|
+
};
|
1716
|
+
const localVarHeaderParameter = {};
|
1717
|
+
let backupId;
|
1718
|
+
if (deleteBackupRequest !== null && deleteBackupRequest !== undefined) {
|
1719
|
+
if (deleteBackupRequest instanceof DeleteBackupRequest_1.DeleteBackupRequest) {
|
1720
|
+
backupId = deleteBackupRequest.backupId;
|
1721
|
+
}
|
1722
|
+
else {
|
1723
|
+
backupId = deleteBackupRequest['backup_id'];
|
1724
|
+
}
|
1725
|
+
}
|
1726
|
+
if (backupId === null || backupId === undefined) {
|
1727
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling deleteBackup.');
|
1728
|
+
}
|
1729
|
+
options.pathParams = { 'backup_id': backupId, };
|
1730
|
+
options.headers = localVarHeaderParameter;
|
1731
|
+
return options;
|
1732
|
+
},
|
1733
|
+
/**
|
1734
|
+
* 删除指定的备份共享成员
|
1735
|
+
*
|
1736
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1737
|
+
*/
|
1738
|
+
deleteMember(deleteMemberRequest) {
|
1739
|
+
const options = {
|
1740
|
+
method: "DELETE",
|
1741
|
+
url: "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
|
1742
|
+
contentType: "application/json",
|
1743
|
+
queryParams: {},
|
1744
|
+
pathParams: {},
|
1745
|
+
headers: {}
|
1746
|
+
};
|
1747
|
+
const localVarHeaderParameter = {};
|
1748
|
+
let backupId;
|
1749
|
+
let memberId;
|
1750
|
+
if (deleteMemberRequest !== null && deleteMemberRequest !== undefined) {
|
1751
|
+
if (deleteMemberRequest instanceof DeleteMemberRequest_1.DeleteMemberRequest) {
|
1752
|
+
backupId = deleteMemberRequest.backupId;
|
1753
|
+
memberId = deleteMemberRequest.memberId;
|
1754
|
+
}
|
1755
|
+
else {
|
1756
|
+
backupId = deleteMemberRequest['backup_id'];
|
1757
|
+
memberId = deleteMemberRequest['member_id'];
|
1758
|
+
}
|
1759
|
+
}
|
1760
|
+
if (backupId === null || backupId === undefined) {
|
1761
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling deleteMember.');
|
1762
|
+
}
|
1763
|
+
if (memberId === null || memberId === undefined) {
|
1764
|
+
throw new RequiredError('memberId', 'Required parameter memberId was null or undefined when calling deleteMember.');
|
1765
|
+
}
|
1766
|
+
options.pathParams = { 'backup_id': backupId, 'member_id': memberId, };
|
1767
|
+
options.headers = localVarHeaderParameter;
|
1768
|
+
return options;
|
1769
|
+
},
|
1770
|
+
/**
|
1771
|
+
* 删除策略
|
1772
|
+
*
|
1773
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1774
|
+
*/
|
1775
|
+
deletePolicy(deletePolicyRequest) {
|
1776
|
+
const options = {
|
1777
|
+
method: "DELETE",
|
1778
|
+
url: "/v3/{project_id}/policies/{policy_id}",
|
1779
|
+
contentType: "application/json",
|
1780
|
+
queryParams: {},
|
1781
|
+
pathParams: {},
|
1782
|
+
headers: {}
|
1783
|
+
};
|
1784
|
+
const localVarHeaderParameter = {};
|
1785
|
+
let policyId;
|
1786
|
+
if (deletePolicyRequest !== null && deletePolicyRequest !== undefined) {
|
1787
|
+
if (deletePolicyRequest instanceof DeletePolicyRequest_1.DeletePolicyRequest) {
|
1788
|
+
policyId = deletePolicyRequest.policyId;
|
1789
|
+
}
|
1790
|
+
else {
|
1791
|
+
policyId = deletePolicyRequest['policy_id'];
|
1792
|
+
}
|
1793
|
+
}
|
1794
|
+
if (policyId === null || policyId === undefined) {
|
1795
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling deletePolicy.');
|
1796
|
+
}
|
1797
|
+
options.pathParams = { 'policy_id': policyId, };
|
1798
|
+
options.headers = localVarHeaderParameter;
|
1799
|
+
return options;
|
1800
|
+
},
|
1801
|
+
/**
|
1802
|
+
* 删除存储库。若删除储存库,将一并删除存储库中的所有备份。
|
1803
|
+
*
|
1804
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1805
|
+
*/
|
1806
|
+
deleteVault(deleteVaultRequest) {
|
1807
|
+
const options = {
|
1808
|
+
method: "DELETE",
|
1809
|
+
url: "/v3/{project_id}/vaults/{vault_id}",
|
1810
|
+
contentType: "application/json",
|
1811
|
+
queryParams: {},
|
1812
|
+
pathParams: {},
|
1813
|
+
headers: {}
|
1814
|
+
};
|
1815
|
+
const localVarHeaderParameter = {};
|
1816
|
+
let vaultId;
|
1817
|
+
if (deleteVaultRequest !== null && deleteVaultRequest !== undefined) {
|
1818
|
+
if (deleteVaultRequest instanceof DeleteVaultRequest_1.DeleteVaultRequest) {
|
1819
|
+
vaultId = deleteVaultRequest.vaultId;
|
1820
|
+
}
|
1821
|
+
else {
|
1822
|
+
vaultId = deleteVaultRequest['vault_id'];
|
1823
|
+
}
|
1824
|
+
}
|
1825
|
+
if (vaultId === null || vaultId === undefined) {
|
1826
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling deleteVault.');
|
1827
|
+
}
|
1828
|
+
options.pathParams = { 'vault_id': vaultId, };
|
1829
|
+
options.headers = localVarHeaderParameter;
|
1830
|
+
return options;
|
1831
|
+
},
|
1832
|
+
/**
|
1833
|
+
* 幂等接口:删除时,如果删除的标签不存在,返回404。Key不能为空或者空字符串。
|
1834
|
+
*
|
1835
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1836
|
+
*/
|
1837
|
+
deleteVaultTag(deleteVaultTagRequest) {
|
1838
|
+
const options = {
|
1839
|
+
method: "DELETE",
|
1840
|
+
url: "/v3/{project_id}/vault/{vault_id}/tags/{key}",
|
1841
|
+
contentType: "application/json",
|
1842
|
+
queryParams: {},
|
1843
|
+
pathParams: {},
|
1844
|
+
headers: {}
|
1845
|
+
};
|
1846
|
+
const localVarHeaderParameter = {};
|
1847
|
+
let key;
|
1848
|
+
let vaultId;
|
1849
|
+
if (deleteVaultTagRequest !== null && deleteVaultTagRequest !== undefined) {
|
1850
|
+
if (deleteVaultTagRequest instanceof DeleteVaultTagRequest_1.DeleteVaultTagRequest) {
|
1851
|
+
key = deleteVaultTagRequest.key;
|
1852
|
+
vaultId = deleteVaultTagRequest.vaultId;
|
1853
|
+
}
|
1854
|
+
else {
|
1855
|
+
key = deleteVaultTagRequest['key'];
|
1856
|
+
vaultId = deleteVaultTagRequest['vault_id'];
|
1857
|
+
}
|
1858
|
+
}
|
1859
|
+
if (key === null || key === undefined) {
|
1860
|
+
throw new RequiredError('key', 'Required parameter key was null or undefined when calling deleteVaultTag.');
|
1861
|
+
}
|
1862
|
+
if (vaultId === null || vaultId === undefined) {
|
1863
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling deleteVaultTag.');
|
1864
|
+
}
|
1865
|
+
options.pathParams = { 'key': key, 'vault_id': vaultId, };
|
1866
|
+
options.headers = localVarHeaderParameter;
|
1867
|
+
return options;
|
1868
|
+
},
|
1869
|
+
/**
|
1870
|
+
* 存储库解除策略
|
1871
|
+
*
|
1872
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1873
|
+
*/
|
1874
|
+
disassociateVaultPolicy(disassociateVaultPolicyRequest) {
|
1875
|
+
const options = {
|
1876
|
+
method: "POST",
|
1877
|
+
url: "/v3/{project_id}/vaults/{vault_id}/dissociatepolicy",
|
1878
|
+
contentType: "application/json;charset=UTF-8",
|
1879
|
+
queryParams: {},
|
1880
|
+
pathParams: {},
|
1881
|
+
headers: {},
|
1882
|
+
data: {}
|
1883
|
+
};
|
1884
|
+
const localVarHeaderParameter = {};
|
1885
|
+
let body;
|
1886
|
+
let vaultId;
|
1887
|
+
if (disassociateVaultPolicyRequest !== null && disassociateVaultPolicyRequest !== undefined) {
|
1888
|
+
if (disassociateVaultPolicyRequest instanceof DisassociateVaultPolicyRequest_1.DisassociateVaultPolicyRequest) {
|
1889
|
+
vaultId = disassociateVaultPolicyRequest.vaultId;
|
1890
|
+
body = disassociateVaultPolicyRequest.body;
|
1891
|
+
}
|
1892
|
+
else {
|
1893
|
+
vaultId = disassociateVaultPolicyRequest['vault_id'];
|
1894
|
+
body = disassociateVaultPolicyRequest['body'];
|
1895
|
+
}
|
1896
|
+
}
|
1897
|
+
if (vaultId === null || vaultId === undefined) {
|
1898
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling disassociateVaultPolicy.');
|
1899
|
+
}
|
1900
|
+
if (body === null || body === undefined) {
|
1901
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1902
|
+
}
|
1903
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1904
|
+
options.data = body !== undefined ? body : {};
|
1905
|
+
options.pathParams = { 'vault_id': vaultId, };
|
1906
|
+
options.headers = localVarHeaderParameter;
|
1907
|
+
return options;
|
1908
|
+
},
|
1909
|
+
/**
|
1910
|
+
* 同步线下混合云VMware备份副本
|
1911
|
+
*
|
1912
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1913
|
+
*/
|
1914
|
+
importBackup(importBackupRequest) {
|
1915
|
+
const options = {
|
1916
|
+
method: "POST",
|
1917
|
+
url: "/v3/{project_id}/backups/sync",
|
1918
|
+
contentType: "application/json;charset=UTF-8",
|
1919
|
+
queryParams: {},
|
1920
|
+
pathParams: {},
|
1921
|
+
headers: {},
|
1922
|
+
data: {}
|
1923
|
+
};
|
1924
|
+
const localVarHeaderParameter = {};
|
1925
|
+
let body;
|
1926
|
+
if (importBackupRequest !== null && importBackupRequest !== undefined) {
|
1927
|
+
if (importBackupRequest instanceof ImportBackupRequest_1.ImportBackupRequest) {
|
1928
|
+
body = importBackupRequest.body;
|
1929
|
+
}
|
1930
|
+
else {
|
1931
|
+
body = importBackupRequest['body'];
|
1932
|
+
}
|
1933
|
+
}
|
1934
|
+
if (body === null || body === undefined) {
|
1935
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1936
|
+
}
|
1937
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1938
|
+
options.data = body !== undefined ? body : {};
|
1939
|
+
options.headers = localVarHeaderParameter;
|
1940
|
+
return options;
|
1941
|
+
},
|
1942
|
+
/**
|
1943
|
+
* 针对vault同步备份副本
|
1944
|
+
*
|
1945
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1946
|
+
*/
|
1947
|
+
importCheckpoint(importCheckpointRequest) {
|
1948
|
+
const options = {
|
1949
|
+
method: "POST",
|
1950
|
+
url: "/v3/{project_id}/checkpoints/sync",
|
1951
|
+
contentType: "application/json;charset=UTF-8",
|
1952
|
+
queryParams: {},
|
1953
|
+
pathParams: {},
|
1954
|
+
headers: {},
|
1955
|
+
data: {}
|
1956
|
+
};
|
1957
|
+
const localVarHeaderParameter = {};
|
1958
|
+
let body;
|
1959
|
+
if (importCheckpointRequest !== null && importCheckpointRequest !== undefined) {
|
1960
|
+
if (importCheckpointRequest instanceof ImportCheckpointRequest_1.ImportCheckpointRequest) {
|
1961
|
+
body = importCheckpointRequest.body;
|
1962
|
+
}
|
1963
|
+
else {
|
1964
|
+
body = importCheckpointRequest['body'];
|
1965
|
+
}
|
1966
|
+
}
|
1967
|
+
if (body === null || body === undefined) {
|
1968
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
1969
|
+
}
|
1970
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
1971
|
+
options.data = body !== undefined ? body : {};
|
1972
|
+
options.headers = localVarHeaderParameter;
|
1973
|
+
return options;
|
1974
|
+
},
|
1975
|
+
/**
|
1976
|
+
* 查询客户端列表
|
1977
|
+
*
|
1978
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1979
|
+
*/
|
1980
|
+
listAgent(listAgentRequest) {
|
1981
|
+
const options = {
|
1982
|
+
method: "GET",
|
1983
|
+
url: "/v3/{project_id}/agents",
|
1984
|
+
contentType: "application/json",
|
1985
|
+
queryParams: {},
|
1986
|
+
pathParams: {},
|
1987
|
+
headers: {}
|
1988
|
+
};
|
1989
|
+
const localVarHeaderParameter = {};
|
1990
|
+
const localVarQueryParameter = {};
|
1991
|
+
let limit;
|
1992
|
+
let offset;
|
1993
|
+
let status;
|
1994
|
+
let agentId;
|
1995
|
+
if (listAgentRequest !== null && listAgentRequest !== undefined) {
|
1996
|
+
if (listAgentRequest instanceof ListAgentRequest_1.ListAgentRequest) {
|
1997
|
+
limit = listAgentRequest.limit;
|
1998
|
+
offset = listAgentRequest.offset;
|
1999
|
+
status = listAgentRequest.status;
|
2000
|
+
agentId = listAgentRequest.agentId;
|
2001
|
+
}
|
2002
|
+
else {
|
2003
|
+
limit = listAgentRequest['limit'];
|
2004
|
+
offset = listAgentRequest['offset'];
|
2005
|
+
status = listAgentRequest['status'];
|
2006
|
+
agentId = listAgentRequest['agent_id'];
|
2007
|
+
}
|
2008
|
+
}
|
2009
|
+
if (limit !== null && limit !== undefined) {
|
2010
|
+
localVarQueryParameter['limit'] = limit;
|
2011
|
+
}
|
2012
|
+
if (offset !== null && offset !== undefined) {
|
2013
|
+
localVarQueryParameter['offset'] = offset;
|
2014
|
+
}
|
2015
|
+
if (status !== null && status !== undefined) {
|
2016
|
+
localVarQueryParameter['status'] = status;
|
2017
|
+
}
|
2018
|
+
if (agentId !== null && agentId !== undefined) {
|
2019
|
+
localVarQueryParameter['agent_id'] = agentId;
|
2020
|
+
}
|
2021
|
+
options.queryParams = localVarQueryParameter;
|
2022
|
+
options.headers = localVarHeaderParameter;
|
2023
|
+
return options;
|
2024
|
+
},
|
2025
|
+
/**
|
2026
|
+
* 查询所有副本
|
2027
|
+
*
|
2028
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2029
|
+
*/
|
2030
|
+
listBackups(listBackupsRequest) {
|
2031
|
+
const options = {
|
2032
|
+
method: "GET",
|
2033
|
+
url: "/v3/{project_id}/backups",
|
2034
|
+
contentType: "application/json",
|
2035
|
+
queryParams: {},
|
2036
|
+
pathParams: {},
|
2037
|
+
headers: {}
|
2038
|
+
};
|
2039
|
+
const localVarHeaderParameter = {};
|
2040
|
+
const localVarQueryParameter = {};
|
2041
|
+
let checkpointId;
|
2042
|
+
let dec;
|
2043
|
+
let endTime;
|
2044
|
+
let imageType;
|
2045
|
+
let limit;
|
2046
|
+
let marker;
|
2047
|
+
let name;
|
2048
|
+
let offset;
|
2049
|
+
let resourceAz;
|
2050
|
+
let resourceId;
|
2051
|
+
let resourceName;
|
2052
|
+
let resourceType;
|
2053
|
+
let sort;
|
2054
|
+
let startTime;
|
2055
|
+
let status;
|
2056
|
+
let vaultId;
|
2057
|
+
let enterpriseProjectId;
|
2058
|
+
let ownType;
|
2059
|
+
let memberStatus;
|
2060
|
+
let parentId;
|
2061
|
+
let usedPercent;
|
2062
|
+
let showReplication;
|
2063
|
+
let incremental;
|
2064
|
+
if (listBackupsRequest !== null && listBackupsRequest !== undefined) {
|
2065
|
+
if (listBackupsRequest instanceof ListBackupsRequest_1.ListBackupsRequest) {
|
2066
|
+
checkpointId = listBackupsRequest.checkpointId;
|
2067
|
+
dec = listBackupsRequest.dec;
|
2068
|
+
endTime = listBackupsRequest.endTime;
|
2069
|
+
imageType = listBackupsRequest.imageType;
|
2070
|
+
limit = listBackupsRequest.limit;
|
2071
|
+
marker = listBackupsRequest.marker;
|
2072
|
+
name = listBackupsRequest.name;
|
2073
|
+
offset = listBackupsRequest.offset;
|
2074
|
+
resourceAz = listBackupsRequest.resourceAz;
|
2075
|
+
resourceId = listBackupsRequest.resourceId;
|
2076
|
+
resourceName = listBackupsRequest.resourceName;
|
2077
|
+
resourceType = listBackupsRequest.resourceType;
|
2078
|
+
sort = listBackupsRequest.sort;
|
2079
|
+
startTime = listBackupsRequest.startTime;
|
2080
|
+
status = listBackupsRequest.status;
|
2081
|
+
vaultId = listBackupsRequest.vaultId;
|
2082
|
+
enterpriseProjectId = listBackupsRequest.enterpriseProjectId;
|
2083
|
+
ownType = listBackupsRequest.ownType;
|
2084
|
+
memberStatus = listBackupsRequest.memberStatus;
|
2085
|
+
parentId = listBackupsRequest.parentId;
|
2086
|
+
usedPercent = listBackupsRequest.usedPercent;
|
2087
|
+
showReplication = listBackupsRequest.showReplication;
|
2088
|
+
incremental = listBackupsRequest.incremental;
|
2089
|
+
}
|
2090
|
+
else {
|
2091
|
+
checkpointId = listBackupsRequest['checkpoint_id'];
|
2092
|
+
dec = listBackupsRequest['dec'];
|
2093
|
+
endTime = listBackupsRequest['end_time'];
|
2094
|
+
imageType = listBackupsRequest['image_type'];
|
2095
|
+
limit = listBackupsRequest['limit'];
|
2096
|
+
marker = listBackupsRequest['marker'];
|
2097
|
+
name = listBackupsRequest['name'];
|
2098
|
+
offset = listBackupsRequest['offset'];
|
2099
|
+
resourceAz = listBackupsRequest['resource_az'];
|
2100
|
+
resourceId = listBackupsRequest['resource_id'];
|
2101
|
+
resourceName = listBackupsRequest['resource_name'];
|
2102
|
+
resourceType = listBackupsRequest['resource_type'];
|
2103
|
+
sort = listBackupsRequest['sort'];
|
2104
|
+
startTime = listBackupsRequest['start_time'];
|
2105
|
+
status = listBackupsRequest['status'];
|
2106
|
+
vaultId = listBackupsRequest['vault_id'];
|
2107
|
+
enterpriseProjectId = listBackupsRequest['enterprise_project_id'];
|
2108
|
+
ownType = listBackupsRequest['own_type'];
|
2109
|
+
memberStatus = listBackupsRequest['member_status'];
|
2110
|
+
parentId = listBackupsRequest['parent_id'];
|
2111
|
+
usedPercent = listBackupsRequest['used_percent'];
|
2112
|
+
showReplication = listBackupsRequest['show_replication'];
|
2113
|
+
incremental = listBackupsRequest['incremental'];
|
2114
|
+
}
|
2115
|
+
}
|
2116
|
+
if (checkpointId !== null && checkpointId !== undefined) {
|
2117
|
+
localVarQueryParameter['checkpoint_id'] = checkpointId;
|
2118
|
+
}
|
2119
|
+
if (dec !== null && dec !== undefined) {
|
2120
|
+
localVarQueryParameter['dec'] = dec;
|
2121
|
+
}
|
2122
|
+
if (endTime !== null && endTime !== undefined) {
|
2123
|
+
localVarQueryParameter['end_time'] = endTime;
|
2124
|
+
}
|
2125
|
+
if (imageType !== null && imageType !== undefined) {
|
2126
|
+
localVarQueryParameter['image_type'] = imageType;
|
2127
|
+
}
|
2128
|
+
if (limit !== null && limit !== undefined) {
|
2129
|
+
localVarQueryParameter['limit'] = limit;
|
2130
|
+
}
|
2131
|
+
if (marker !== null && marker !== undefined) {
|
2132
|
+
localVarQueryParameter['marker'] = marker;
|
2133
|
+
}
|
2134
|
+
if (name !== null && name !== undefined) {
|
2135
|
+
localVarQueryParameter['name'] = name;
|
2136
|
+
}
|
2137
|
+
if (offset !== null && offset !== undefined) {
|
2138
|
+
localVarQueryParameter['offset'] = offset;
|
2139
|
+
}
|
2140
|
+
if (resourceAz !== null && resourceAz !== undefined) {
|
2141
|
+
localVarQueryParameter['resource_az'] = resourceAz;
|
2142
|
+
}
|
2143
|
+
if (resourceId !== null && resourceId !== undefined) {
|
2144
|
+
localVarQueryParameter['resource_id'] = resourceId;
|
2145
|
+
}
|
2146
|
+
if (resourceName !== null && resourceName !== undefined) {
|
2147
|
+
localVarQueryParameter['resource_name'] = resourceName;
|
2148
|
+
}
|
2149
|
+
if (resourceType !== null && resourceType !== undefined) {
|
2150
|
+
localVarQueryParameter['resource_type'] = resourceType;
|
2151
|
+
}
|
2152
|
+
if (sort !== null && sort !== undefined) {
|
2153
|
+
localVarQueryParameter['sort'] = sort;
|
2154
|
+
}
|
2155
|
+
if (startTime !== null && startTime !== undefined) {
|
2156
|
+
localVarQueryParameter['start_time'] = startTime;
|
2157
|
+
}
|
2158
|
+
if (status !== null && status !== undefined) {
|
2159
|
+
localVarQueryParameter['status'] = status;
|
2160
|
+
}
|
2161
|
+
if (vaultId !== null && vaultId !== undefined) {
|
2162
|
+
localVarQueryParameter['vault_id'] = vaultId;
|
2163
|
+
}
|
2164
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2165
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2166
|
+
}
|
2167
|
+
if (ownType !== null && ownType !== undefined) {
|
2168
|
+
localVarQueryParameter['own_type'] = ownType;
|
2169
|
+
}
|
2170
|
+
if (memberStatus !== null && memberStatus !== undefined) {
|
2171
|
+
localVarQueryParameter['member_status'] = memberStatus;
|
2172
|
+
}
|
2173
|
+
if (parentId !== null && parentId !== undefined) {
|
2174
|
+
localVarQueryParameter['parent_id'] = parentId;
|
2175
|
+
}
|
2176
|
+
if (usedPercent !== null && usedPercent !== undefined) {
|
2177
|
+
localVarQueryParameter['used_percent'] = usedPercent;
|
2178
|
+
}
|
2179
|
+
if (showReplication !== null && showReplication !== undefined) {
|
2180
|
+
localVarQueryParameter['show_replication'] = showReplication;
|
2181
|
+
}
|
2182
|
+
if (incremental !== null && incremental !== undefined) {
|
2183
|
+
localVarQueryParameter['incremental'] = incremental;
|
2184
|
+
}
|
2185
|
+
options.queryParams = localVarQueryParameter;
|
2186
|
+
options.headers = localVarHeaderParameter;
|
2187
|
+
return options;
|
2188
|
+
},
|
2189
|
+
/**
|
2190
|
+
* 根据指定租户名称查询项目列表。
|
2191
|
+
*
|
2192
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2193
|
+
*/
|
2194
|
+
listDomainProjects(listDomainProjectsRequest) {
|
2195
|
+
const options = {
|
2196
|
+
method: "GET",
|
2197
|
+
url: "/v3/domain/{domain_name}/projects",
|
2198
|
+
contentType: "application/json",
|
2199
|
+
queryParams: {},
|
2200
|
+
pathParams: {},
|
2201
|
+
headers: {}
|
2202
|
+
};
|
2203
|
+
const localVarHeaderParameter = {};
|
2204
|
+
let domainName;
|
2205
|
+
if (listDomainProjectsRequest !== null && listDomainProjectsRequest !== undefined) {
|
2206
|
+
if (listDomainProjectsRequest instanceof ListDomainProjectsRequest_1.ListDomainProjectsRequest) {
|
2207
|
+
domainName = listDomainProjectsRequest.domainName;
|
2208
|
+
}
|
2209
|
+
else {
|
2210
|
+
domainName = listDomainProjectsRequest['domain_name'];
|
2211
|
+
}
|
2212
|
+
}
|
2213
|
+
if (domainName === null || domainName === undefined) {
|
2214
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling listDomainProjects.');
|
2215
|
+
}
|
2216
|
+
options.pathParams = { 'domain_name': domainName, };
|
2217
|
+
options.headers = localVarHeaderParameter;
|
2218
|
+
return options;
|
2219
|
+
},
|
2220
|
+
/**
|
2221
|
+
* 查询其他区域的存储库列表
|
2222
|
+
*
|
2223
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2224
|
+
*/
|
2225
|
+
listExternalVault(listExternalVaultRequest) {
|
2226
|
+
const options = {
|
2227
|
+
method: "GET",
|
2228
|
+
url: "/v3/{project_id}/vaults/external",
|
2229
|
+
contentType: "application/json",
|
2230
|
+
queryParams: {},
|
2231
|
+
pathParams: {},
|
2232
|
+
headers: {}
|
2233
|
+
};
|
2234
|
+
const localVarHeaderParameter = {};
|
2235
|
+
const localVarQueryParameter = {};
|
2236
|
+
let externalProjectId;
|
2237
|
+
let regionId;
|
2238
|
+
let limit;
|
2239
|
+
let offset;
|
2240
|
+
let protectType;
|
2241
|
+
let objcetType;
|
2242
|
+
let cloudType;
|
2243
|
+
let vaultId;
|
2244
|
+
if (listExternalVaultRequest !== null && listExternalVaultRequest !== undefined) {
|
2245
|
+
if (listExternalVaultRequest instanceof ListExternalVaultRequest_1.ListExternalVaultRequest) {
|
2246
|
+
externalProjectId = listExternalVaultRequest.externalProjectId;
|
2247
|
+
regionId = listExternalVaultRequest.regionId;
|
2248
|
+
limit = listExternalVaultRequest.limit;
|
2249
|
+
offset = listExternalVaultRequest.offset;
|
2250
|
+
protectType = listExternalVaultRequest.protectType;
|
2251
|
+
objcetType = listExternalVaultRequest.objcetType;
|
2252
|
+
cloudType = listExternalVaultRequest.cloudType;
|
2253
|
+
vaultId = listExternalVaultRequest.vaultId;
|
2254
|
+
}
|
2255
|
+
else {
|
2256
|
+
externalProjectId = listExternalVaultRequest['external_project_id'];
|
2257
|
+
regionId = listExternalVaultRequest['region_id'];
|
2258
|
+
limit = listExternalVaultRequest['limit'];
|
2259
|
+
offset = listExternalVaultRequest['offset'];
|
2260
|
+
protectType = listExternalVaultRequest['protect_type'];
|
2261
|
+
objcetType = listExternalVaultRequest['objcet_type'];
|
2262
|
+
cloudType = listExternalVaultRequest['cloud_type'];
|
2263
|
+
vaultId = listExternalVaultRequest['vault_id'];
|
2264
|
+
}
|
2265
|
+
}
|
2266
|
+
if (externalProjectId === null || externalProjectId === undefined) {
|
2267
|
+
throw new RequiredError('externalProjectId', 'Required parameter externalProjectId was null or undefined when calling listExternalVault.');
|
2268
|
+
}
|
2269
|
+
if (externalProjectId !== null && externalProjectId !== undefined) {
|
2270
|
+
localVarQueryParameter['external_project_id'] = externalProjectId;
|
2271
|
+
}
|
2272
|
+
if (regionId === null || regionId === undefined) {
|
2273
|
+
throw new RequiredError('regionId', 'Required parameter regionId was null or undefined when calling listExternalVault.');
|
2274
|
+
}
|
2275
|
+
if (regionId !== null && regionId !== undefined) {
|
2276
|
+
localVarQueryParameter['region_id'] = regionId;
|
2277
|
+
}
|
2278
|
+
if (limit !== null && limit !== undefined) {
|
2279
|
+
localVarQueryParameter['limit'] = limit;
|
2280
|
+
}
|
2281
|
+
if (offset !== null && offset !== undefined) {
|
2282
|
+
localVarQueryParameter['offset'] = offset;
|
2283
|
+
}
|
2284
|
+
if (protectType !== null && protectType !== undefined) {
|
2285
|
+
localVarQueryParameter['protect_type'] = protectType;
|
2286
|
+
}
|
2287
|
+
if (objcetType !== null && objcetType !== undefined) {
|
2288
|
+
localVarQueryParameter['objcet_type'] = objcetType;
|
2289
|
+
}
|
2290
|
+
if (cloudType !== null && cloudType !== undefined) {
|
2291
|
+
localVarQueryParameter['cloud_type'] = cloudType;
|
2292
|
+
}
|
2293
|
+
if (vaultId !== null && vaultId !== undefined) {
|
2294
|
+
localVarQueryParameter['vault_id'] = vaultId;
|
2295
|
+
}
|
2296
|
+
options.queryParams = localVarQueryParameter;
|
2297
|
+
options.headers = localVarHeaderParameter;
|
2298
|
+
return options;
|
2299
|
+
},
|
2300
|
+
/**
|
2301
|
+
* 查询任务列表
|
2302
|
+
*
|
2303
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2304
|
+
*/
|
2305
|
+
listOpLogs(listOpLogsRequest) {
|
2306
|
+
const options = {
|
2307
|
+
method: "GET",
|
2308
|
+
url: "/v3/{project_id}/operation-logs",
|
2309
|
+
contentType: "application/json",
|
2310
|
+
queryParams: {},
|
2311
|
+
pathParams: {},
|
2312
|
+
headers: {}
|
2313
|
+
};
|
2314
|
+
const localVarHeaderParameter = {};
|
2315
|
+
const localVarQueryParameter = {};
|
2316
|
+
let endTime;
|
2317
|
+
let limit;
|
2318
|
+
let offset;
|
2319
|
+
let operationType;
|
2320
|
+
let providerId;
|
2321
|
+
let resourceId;
|
2322
|
+
let resourceName;
|
2323
|
+
let startTime;
|
2324
|
+
let status;
|
2325
|
+
let vaultId;
|
2326
|
+
let vaultName;
|
2327
|
+
let enterpriseProjectId;
|
2328
|
+
if (listOpLogsRequest !== null && listOpLogsRequest !== undefined) {
|
2329
|
+
if (listOpLogsRequest instanceof ListOpLogsRequest_1.ListOpLogsRequest) {
|
2330
|
+
endTime = listOpLogsRequest.endTime;
|
2331
|
+
limit = listOpLogsRequest.limit;
|
2332
|
+
offset = listOpLogsRequest.offset;
|
2333
|
+
operationType = listOpLogsRequest.operationType;
|
2334
|
+
providerId = listOpLogsRequest.providerId;
|
2335
|
+
resourceId = listOpLogsRequest.resourceId;
|
2336
|
+
resourceName = listOpLogsRequest.resourceName;
|
2337
|
+
startTime = listOpLogsRequest.startTime;
|
2338
|
+
status = listOpLogsRequest.status;
|
2339
|
+
vaultId = listOpLogsRequest.vaultId;
|
2340
|
+
vaultName = listOpLogsRequest.vaultName;
|
2341
|
+
enterpriseProjectId = listOpLogsRequest.enterpriseProjectId;
|
2342
|
+
}
|
2343
|
+
else {
|
2344
|
+
endTime = listOpLogsRequest['end_time'];
|
2345
|
+
limit = listOpLogsRequest['limit'];
|
2346
|
+
offset = listOpLogsRequest['offset'];
|
2347
|
+
operationType = listOpLogsRequest['operation_type'];
|
2348
|
+
providerId = listOpLogsRequest['provider_id'];
|
2349
|
+
resourceId = listOpLogsRequest['resource_id'];
|
2350
|
+
resourceName = listOpLogsRequest['resource_name'];
|
2351
|
+
startTime = listOpLogsRequest['start_time'];
|
2352
|
+
status = listOpLogsRequest['status'];
|
2353
|
+
vaultId = listOpLogsRequest['vault_id'];
|
2354
|
+
vaultName = listOpLogsRequest['vault_name'];
|
2355
|
+
enterpriseProjectId = listOpLogsRequest['enterprise_project_id'];
|
2356
|
+
}
|
2357
|
+
}
|
2358
|
+
if (endTime !== null && endTime !== undefined) {
|
2359
|
+
localVarQueryParameter['end_time'] = endTime;
|
2360
|
+
}
|
2361
|
+
if (limit !== null && limit !== undefined) {
|
2362
|
+
localVarQueryParameter['limit'] = limit;
|
2363
|
+
}
|
2364
|
+
if (offset !== null && offset !== undefined) {
|
2365
|
+
localVarQueryParameter['offset'] = offset;
|
2366
|
+
}
|
2367
|
+
if (operationType !== null && operationType !== undefined) {
|
2368
|
+
localVarQueryParameter['operation_type'] = operationType;
|
2369
|
+
}
|
2370
|
+
if (providerId !== null && providerId !== undefined) {
|
2371
|
+
localVarQueryParameter['provider_id'] = providerId;
|
2372
|
+
}
|
2373
|
+
if (resourceId !== null && resourceId !== undefined) {
|
2374
|
+
localVarQueryParameter['resource_id'] = resourceId;
|
2375
|
+
}
|
2376
|
+
if (resourceName !== null && resourceName !== undefined) {
|
2377
|
+
localVarQueryParameter['resource_name'] = resourceName;
|
2378
|
+
}
|
2379
|
+
if (startTime !== null && startTime !== undefined) {
|
2380
|
+
localVarQueryParameter['start_time'] = startTime;
|
2381
|
+
}
|
2382
|
+
if (status !== null && status !== undefined) {
|
2383
|
+
localVarQueryParameter['status'] = status;
|
2384
|
+
}
|
2385
|
+
if (vaultId !== null && vaultId !== undefined) {
|
2386
|
+
localVarQueryParameter['vault_id'] = vaultId;
|
2387
|
+
}
|
2388
|
+
if (vaultName !== null && vaultName !== undefined) {
|
2389
|
+
localVarQueryParameter['vault_name'] = vaultName;
|
2390
|
+
}
|
2391
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2392
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2393
|
+
}
|
2394
|
+
options.queryParams = localVarQueryParameter;
|
2395
|
+
options.headers = localVarHeaderParameter;
|
2396
|
+
return options;
|
2397
|
+
},
|
2398
|
+
/**
|
2399
|
+
* 查询策略列表
|
2400
|
+
*
|
2401
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2402
|
+
*/
|
2403
|
+
listPolicies(listPoliciesRequest) {
|
2404
|
+
const options = {
|
2405
|
+
method: "GET",
|
2406
|
+
url: "/v3/{project_id}/policies",
|
2407
|
+
contentType: "application/json",
|
2408
|
+
queryParams: {},
|
2409
|
+
pathParams: {},
|
2410
|
+
headers: {}
|
2411
|
+
};
|
2412
|
+
const localVarHeaderParameter = {};
|
2413
|
+
const localVarQueryParameter = {};
|
2414
|
+
let operationType;
|
2415
|
+
let vaultId;
|
2416
|
+
if (listPoliciesRequest !== null && listPoliciesRequest !== undefined) {
|
2417
|
+
if (listPoliciesRequest instanceof ListPoliciesRequest_1.ListPoliciesRequest) {
|
2418
|
+
operationType = listPoliciesRequest.operationType;
|
2419
|
+
vaultId = listPoliciesRequest.vaultId;
|
2420
|
+
}
|
2421
|
+
else {
|
2422
|
+
operationType = listPoliciesRequest['operation_type'];
|
2423
|
+
vaultId = listPoliciesRequest['vault_id'];
|
2424
|
+
}
|
2425
|
+
}
|
2426
|
+
if (operationType !== null && operationType !== undefined) {
|
2427
|
+
localVarQueryParameter['operation_type'] = operationType;
|
2428
|
+
}
|
2429
|
+
if (vaultId !== null && vaultId !== undefined) {
|
2430
|
+
localVarQueryParameter['vault_id'] = vaultId;
|
2431
|
+
}
|
2432
|
+
options.queryParams = localVarQueryParameter;
|
2433
|
+
options.headers = localVarHeaderParameter;
|
2434
|
+
return options;
|
2435
|
+
},
|
2436
|
+
/**
|
2437
|
+
* 查询租户的企业项目信息
|
2438
|
+
*
|
2439
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2440
|
+
*/
|
2441
|
+
listProjects() {
|
2442
|
+
const options = {
|
2443
|
+
method: "GET",
|
2444
|
+
url: "/v3/region-projects",
|
2445
|
+
contentType: "application/json",
|
2446
|
+
queryParams: {},
|
2447
|
+
pathParams: {},
|
2448
|
+
headers: {}
|
2449
|
+
};
|
2450
|
+
const localVarHeaderParameter = {};
|
2451
|
+
options.headers = localVarHeaderParameter;
|
2452
|
+
return options;
|
2453
|
+
},
|
2454
|
+
/**
|
2455
|
+
* 查询可保护性资源列表
|
2456
|
+
*
|
2457
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2458
|
+
*/
|
2459
|
+
listProtectable(listProtectableRequest) {
|
2460
|
+
const options = {
|
2461
|
+
method: "GET",
|
2462
|
+
url: "/v3/{project_id}/protectables/{protectable_type}/instances",
|
2463
|
+
contentType: "application/json",
|
2464
|
+
queryParams: {},
|
2465
|
+
pathParams: {},
|
2466
|
+
headers: {}
|
2467
|
+
};
|
2468
|
+
const localVarHeaderParameter = {};
|
2469
|
+
const localVarQueryParameter = {};
|
2470
|
+
let protectableType;
|
2471
|
+
let limit;
|
2472
|
+
let marker;
|
2473
|
+
let name;
|
2474
|
+
let offset;
|
2475
|
+
let status;
|
2476
|
+
let id;
|
2477
|
+
let serverId;
|
2478
|
+
if (listProtectableRequest !== null && listProtectableRequest !== undefined) {
|
2479
|
+
if (listProtectableRequest instanceof ListProtectableRequest_1.ListProtectableRequest) {
|
2480
|
+
protectableType = listProtectableRequest.protectableType;
|
2481
|
+
limit = listProtectableRequest.limit;
|
2482
|
+
marker = listProtectableRequest.marker;
|
2483
|
+
name = listProtectableRequest.name;
|
2484
|
+
offset = listProtectableRequest.offset;
|
2485
|
+
status = listProtectableRequest.status;
|
2486
|
+
id = listProtectableRequest.id;
|
2487
|
+
serverId = listProtectableRequest.serverId;
|
2488
|
+
}
|
2489
|
+
else {
|
2490
|
+
protectableType = listProtectableRequest['protectable_type'];
|
2491
|
+
limit = listProtectableRequest['limit'];
|
2492
|
+
marker = listProtectableRequest['marker'];
|
2493
|
+
name = listProtectableRequest['name'];
|
2494
|
+
offset = listProtectableRequest['offset'];
|
2495
|
+
status = listProtectableRequest['status'];
|
2496
|
+
id = listProtectableRequest['id'];
|
2497
|
+
serverId = listProtectableRequest['server_id'];
|
2498
|
+
}
|
2499
|
+
}
|
2500
|
+
if (protectableType === null || protectableType === undefined) {
|
2501
|
+
throw new RequiredError('protectableType', 'Required parameter protectableType was null or undefined when calling listProtectable.');
|
2502
|
+
}
|
2503
|
+
if (limit !== null && limit !== undefined) {
|
2504
|
+
localVarQueryParameter['limit'] = limit;
|
2505
|
+
}
|
2506
|
+
if (marker !== null && marker !== undefined) {
|
2507
|
+
localVarQueryParameter['marker'] = marker;
|
2508
|
+
}
|
2509
|
+
if (name !== null && name !== undefined) {
|
2510
|
+
localVarQueryParameter['name'] = name;
|
2511
|
+
}
|
2512
|
+
if (offset !== null && offset !== undefined) {
|
2513
|
+
localVarQueryParameter['offset'] = offset;
|
2514
|
+
}
|
2515
|
+
if (status !== null && status !== undefined) {
|
2516
|
+
localVarQueryParameter['status'] = status;
|
2517
|
+
}
|
2518
|
+
if (id !== null && id !== undefined) {
|
2519
|
+
localVarQueryParameter['id'] = id;
|
2520
|
+
}
|
2521
|
+
if (serverId !== null && serverId !== undefined) {
|
2522
|
+
localVarQueryParameter['server_id'] = serverId;
|
2523
|
+
}
|
2524
|
+
options.queryParams = localVarQueryParameter;
|
2525
|
+
options.pathParams = { 'protectable_type': protectableType, };
|
2526
|
+
options.headers = localVarHeaderParameter;
|
2527
|
+
return options;
|
2528
|
+
},
|
2529
|
+
/**
|
2530
|
+
* 查询存储库列表
|
2531
|
+
*
|
2532
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2533
|
+
*/
|
2534
|
+
listVault(listVaultRequest) {
|
2535
|
+
const options = {
|
2536
|
+
method: "GET",
|
2537
|
+
url: "/v3/{project_id}/vaults",
|
2538
|
+
contentType: "application/json",
|
2539
|
+
queryParams: {},
|
2540
|
+
pathParams: {},
|
2541
|
+
headers: {}
|
2542
|
+
};
|
2543
|
+
const localVarHeaderParameter = {};
|
2544
|
+
const localVarQueryParameter = {};
|
2545
|
+
let limit;
|
2546
|
+
let name;
|
2547
|
+
let offset;
|
2548
|
+
let cloudType;
|
2549
|
+
let protectType;
|
2550
|
+
let objectType;
|
2551
|
+
let enterpriseProjectId;
|
2552
|
+
let id;
|
2553
|
+
let policyId;
|
2554
|
+
let status;
|
2555
|
+
let resourceIds;
|
2556
|
+
if (listVaultRequest !== null && listVaultRequest !== undefined) {
|
2557
|
+
if (listVaultRequest instanceof ListVaultRequest_1.ListVaultRequest) {
|
2558
|
+
limit = listVaultRequest.limit;
|
2559
|
+
name = listVaultRequest.name;
|
2560
|
+
offset = listVaultRequest.offset;
|
2561
|
+
cloudType = listVaultRequest.cloudType;
|
2562
|
+
protectType = listVaultRequest.protectType;
|
2563
|
+
objectType = listVaultRequest.objectType;
|
2564
|
+
enterpriseProjectId = listVaultRequest.enterpriseProjectId;
|
2565
|
+
id = listVaultRequest.id;
|
2566
|
+
policyId = listVaultRequest.policyId;
|
2567
|
+
status = listVaultRequest.status;
|
2568
|
+
resourceIds = listVaultRequest.resourceIds;
|
2569
|
+
}
|
2570
|
+
else {
|
2571
|
+
limit = listVaultRequest['limit'];
|
2572
|
+
name = listVaultRequest['name'];
|
2573
|
+
offset = listVaultRequest['offset'];
|
2574
|
+
cloudType = listVaultRequest['cloud_type'];
|
2575
|
+
protectType = listVaultRequest['protect_type'];
|
2576
|
+
objectType = listVaultRequest['object_type'];
|
2577
|
+
enterpriseProjectId = listVaultRequest['enterprise_project_id'];
|
2578
|
+
id = listVaultRequest['id'];
|
2579
|
+
policyId = listVaultRequest['policy_id'];
|
2580
|
+
status = listVaultRequest['status'];
|
2581
|
+
resourceIds = listVaultRequest['resource_ids'];
|
2582
|
+
}
|
2583
|
+
}
|
2584
|
+
if (limit !== null && limit !== undefined) {
|
2585
|
+
localVarQueryParameter['limit'] = limit;
|
2586
|
+
}
|
2587
|
+
if (name !== null && name !== undefined) {
|
2588
|
+
localVarQueryParameter['name'] = name;
|
2589
|
+
}
|
2590
|
+
if (offset !== null && offset !== undefined) {
|
2591
|
+
localVarQueryParameter['offset'] = offset;
|
2592
|
+
}
|
2593
|
+
if (cloudType !== null && cloudType !== undefined) {
|
2594
|
+
localVarQueryParameter['cloud_type'] = cloudType;
|
2595
|
+
}
|
2596
|
+
if (protectType !== null && protectType !== undefined) {
|
2597
|
+
localVarQueryParameter['protect_type'] = protectType;
|
2598
|
+
}
|
2599
|
+
if (objectType !== null && objectType !== undefined) {
|
2600
|
+
localVarQueryParameter['object_type'] = objectType;
|
2601
|
+
}
|
2602
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
2603
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
2604
|
+
}
|
2605
|
+
if (id !== null && id !== undefined) {
|
2606
|
+
localVarQueryParameter['id'] = id;
|
2607
|
+
}
|
2608
|
+
if (policyId !== null && policyId !== undefined) {
|
2609
|
+
localVarQueryParameter['policy_id'] = policyId;
|
2610
|
+
}
|
2611
|
+
if (status !== null && status !== undefined) {
|
2612
|
+
localVarQueryParameter['status'] = status;
|
2613
|
+
}
|
2614
|
+
if (resourceIds !== null && resourceIds !== undefined) {
|
2615
|
+
localVarQueryParameter['resource_ids'] = resourceIds;
|
2616
|
+
}
|
2617
|
+
options.queryParams = localVarQueryParameter;
|
2618
|
+
options.headers = localVarHeaderParameter;
|
2619
|
+
return options;
|
2620
|
+
},
|
2621
|
+
/**
|
2622
|
+
* 将CSBS/VBS资源迁移到CBR。
|
2623
|
+
*
|
2624
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2625
|
+
*/
|
2626
|
+
migrateDomain(migrateDomainRequest) {
|
2627
|
+
const options = {
|
2628
|
+
method: "POST",
|
2629
|
+
url: "/v3/migrates",
|
2630
|
+
contentType: "application/json",
|
2631
|
+
queryParams: {},
|
2632
|
+
pathParams: {},
|
2633
|
+
headers: {},
|
2634
|
+
data: {}
|
2635
|
+
};
|
2636
|
+
const localVarHeaderParameter = {};
|
2637
|
+
let body;
|
2638
|
+
if (migrateDomainRequest !== null && migrateDomainRequest !== undefined) {
|
2639
|
+
if (migrateDomainRequest instanceof MigrateDomainRequest_1.MigrateDomainRequest) {
|
2640
|
+
body = migrateDomainRequest.body;
|
2641
|
+
}
|
2642
|
+
else {
|
2643
|
+
body = migrateDomainRequest['body'];
|
2644
|
+
}
|
2645
|
+
}
|
2646
|
+
if (body === null || body === undefined) {
|
2647
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2648
|
+
}
|
2649
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2650
|
+
options.data = body !== undefined ? body : {};
|
2651
|
+
options.headers = localVarHeaderParameter;
|
2652
|
+
return options;
|
2653
|
+
},
|
2654
|
+
/**
|
2655
|
+
* 支持资源迁移到另一个存储库,不删除备份。
|
2656
|
+
*
|
2657
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2658
|
+
*/
|
2659
|
+
migrateVaultResource(migrateVaultResourceRequest) {
|
2660
|
+
const options = {
|
2661
|
+
method: "POST",
|
2662
|
+
url: "/v3/{project_id}/vaults/{vault_id}/migrateresources",
|
2663
|
+
contentType: "application/json;charset=UTF-8",
|
2664
|
+
queryParams: {},
|
2665
|
+
pathParams: {},
|
2666
|
+
headers: {},
|
2667
|
+
data: {}
|
2668
|
+
};
|
2669
|
+
const localVarHeaderParameter = {};
|
2670
|
+
let body;
|
2671
|
+
let vaultId;
|
2672
|
+
if (migrateVaultResourceRequest !== null && migrateVaultResourceRequest !== undefined) {
|
2673
|
+
if (migrateVaultResourceRequest instanceof MigrateVaultResourceRequest_1.MigrateVaultResourceRequest) {
|
2674
|
+
vaultId = migrateVaultResourceRequest.vaultId;
|
2675
|
+
body = migrateVaultResourceRequest.body;
|
2676
|
+
}
|
2677
|
+
else {
|
2678
|
+
vaultId = migrateVaultResourceRequest['vault_id'];
|
2679
|
+
body = migrateVaultResourceRequest['body'];
|
2680
|
+
}
|
2681
|
+
}
|
2682
|
+
if (vaultId === null || vaultId === undefined) {
|
2683
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling migrateVaultResource.');
|
2684
|
+
}
|
2685
|
+
if (body === null || body === undefined) {
|
2686
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2687
|
+
}
|
2688
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2689
|
+
options.data = body !== undefined ? body : {};
|
2690
|
+
options.pathParams = { 'vault_id': vaultId, };
|
2691
|
+
options.headers = localVarHeaderParameter;
|
2692
|
+
return options;
|
2693
|
+
},
|
2694
|
+
/**
|
2695
|
+
* 注册客户端,安装时候由Agent调用,无需手动注册。
|
2696
|
+
*
|
2697
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2698
|
+
*/
|
2699
|
+
registerAgent(registerAgentRequest) {
|
2700
|
+
const options = {
|
2701
|
+
method: "POST",
|
2702
|
+
url: "/v3/{project_id}/agents",
|
2703
|
+
contentType: "application/json;charset=UTF-8",
|
2704
|
+
queryParams: {},
|
2705
|
+
pathParams: {},
|
2706
|
+
headers: {},
|
2707
|
+
data: {}
|
2708
|
+
};
|
2709
|
+
const localVarHeaderParameter = {};
|
2710
|
+
let body;
|
2711
|
+
if (registerAgentRequest !== null && registerAgentRequest !== undefined) {
|
2712
|
+
if (registerAgentRequest instanceof RegisterAgentRequest_1.RegisterAgentRequest) {
|
2713
|
+
body = registerAgentRequest.body;
|
2714
|
+
}
|
2715
|
+
else {
|
2716
|
+
body = registerAgentRequest['body'];
|
2717
|
+
}
|
2718
|
+
}
|
2719
|
+
if (body === null || body === undefined) {
|
2720
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2721
|
+
}
|
2722
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2723
|
+
options.data = body !== undefined ? body : {};
|
2724
|
+
options.headers = localVarHeaderParameter;
|
2725
|
+
return options;
|
2726
|
+
},
|
2727
|
+
/**
|
2728
|
+
* 移除已添加的文件备份路径。
|
2729
|
+
*
|
2730
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2731
|
+
*/
|
2732
|
+
removeAgentPath(removeAgentPathRequest) {
|
2733
|
+
const options = {
|
2734
|
+
method: "POST",
|
2735
|
+
url: "/v3/{project_id}/agents/{agent_id}/remove-path",
|
2736
|
+
contentType: "application/json;charset=UTF-8",
|
2737
|
+
queryParams: {},
|
2738
|
+
pathParams: {},
|
2739
|
+
headers: {},
|
2740
|
+
data: {}
|
2741
|
+
};
|
2742
|
+
const localVarHeaderParameter = {};
|
2743
|
+
let body;
|
2744
|
+
let agentId;
|
2745
|
+
if (removeAgentPathRequest !== null && removeAgentPathRequest !== undefined) {
|
2746
|
+
if (removeAgentPathRequest instanceof RemoveAgentPathRequest_1.RemoveAgentPathRequest) {
|
2747
|
+
agentId = removeAgentPathRequest.agentId;
|
2748
|
+
body = removeAgentPathRequest.body;
|
2749
|
+
}
|
2750
|
+
else {
|
2751
|
+
agentId = removeAgentPathRequest['agent_id'];
|
2752
|
+
body = removeAgentPathRequest['body'];
|
2753
|
+
}
|
2754
|
+
}
|
2755
|
+
if (agentId === null || agentId === undefined) {
|
2756
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling removeAgentPath.');
|
2757
|
+
}
|
2758
|
+
if (body === null || body === undefined) {
|
2759
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2760
|
+
}
|
2761
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2762
|
+
options.data = body !== undefined ? body : {};
|
2763
|
+
options.pathParams = { 'agent_id': agentId, };
|
2764
|
+
options.headers = localVarHeaderParameter;
|
2765
|
+
return options;
|
2766
|
+
},
|
2767
|
+
/**
|
2768
|
+
* 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
|
2769
|
+
*
|
2770
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2771
|
+
*/
|
2772
|
+
removeVaultResource(removeVaultResourceRequest) {
|
2773
|
+
const options = {
|
2774
|
+
method: "POST",
|
2775
|
+
url: "/v3/{project_id}/vaults/{vault_id}/removeresources",
|
2776
|
+
contentType: "application/json;charset=UTF-8",
|
2777
|
+
queryParams: {},
|
2778
|
+
pathParams: {},
|
2779
|
+
headers: {},
|
2780
|
+
data: {}
|
2781
|
+
};
|
2782
|
+
const localVarHeaderParameter = {};
|
2783
|
+
let body;
|
2784
|
+
let vaultId;
|
2785
|
+
if (removeVaultResourceRequest !== null && removeVaultResourceRequest !== undefined) {
|
2786
|
+
if (removeVaultResourceRequest instanceof RemoveVaultResourceRequest_1.RemoveVaultResourceRequest) {
|
2787
|
+
vaultId = removeVaultResourceRequest.vaultId;
|
2788
|
+
body = removeVaultResourceRequest.body;
|
2789
|
+
}
|
2790
|
+
else {
|
2791
|
+
vaultId = removeVaultResourceRequest['vault_id'];
|
2792
|
+
body = removeVaultResourceRequest['body'];
|
2793
|
+
}
|
2794
|
+
}
|
2795
|
+
if (vaultId === null || vaultId === undefined) {
|
2796
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling removeVaultResource.');
|
2797
|
+
}
|
2798
|
+
if (body === null || body === undefined) {
|
2799
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2800
|
+
}
|
2801
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2802
|
+
options.data = body !== undefined ? body : {};
|
2803
|
+
options.pathParams = { 'vault_id': vaultId, };
|
2804
|
+
options.headers = localVarHeaderParameter;
|
2805
|
+
return options;
|
2806
|
+
},
|
2807
|
+
/**
|
2808
|
+
* 恢复备份数据
|
2809
|
+
*
|
2810
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2811
|
+
*/
|
2812
|
+
restoreBackup(restoreBackupRequest) {
|
2813
|
+
const options = {
|
2814
|
+
method: "POST",
|
2815
|
+
url: "/v3/{project_id}/backups/{backup_id}/restore",
|
2816
|
+
contentType: "application/json;charset=UTF-8",
|
2817
|
+
queryParams: {},
|
2818
|
+
pathParams: {},
|
2819
|
+
headers: {},
|
2820
|
+
data: {}
|
2821
|
+
};
|
2822
|
+
const localVarHeaderParameter = {};
|
2823
|
+
let body;
|
2824
|
+
let backupId;
|
2825
|
+
if (restoreBackupRequest !== null && restoreBackupRequest !== undefined) {
|
2826
|
+
if (restoreBackupRequest instanceof RestoreBackupRequest_1.RestoreBackupRequest) {
|
2827
|
+
backupId = restoreBackupRequest.backupId;
|
2828
|
+
body = restoreBackupRequest.body;
|
2829
|
+
}
|
2830
|
+
else {
|
2831
|
+
backupId = restoreBackupRequest['backup_id'];
|
2832
|
+
body = restoreBackupRequest['body'];
|
2833
|
+
}
|
2834
|
+
}
|
2835
|
+
if (backupId === null || backupId === undefined) {
|
2836
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling restoreBackup.');
|
2837
|
+
}
|
2838
|
+
if (body === null || body === undefined) {
|
2839
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2840
|
+
}
|
2841
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2842
|
+
options.data = body !== undefined ? body : {};
|
2843
|
+
options.pathParams = { 'backup_id': backupId, };
|
2844
|
+
options.headers = localVarHeaderParameter;
|
2845
|
+
return options;
|
2846
|
+
},
|
2847
|
+
/**
|
2848
|
+
* 设置存储库资源是否自动备份
|
2849
|
+
*
|
2850
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2851
|
+
*/
|
2852
|
+
setVaultResource(setVaultResourceRequest) {
|
2853
|
+
const options = {
|
2854
|
+
method: "PUT",
|
2855
|
+
url: "/v3/{project_id}/vaults/{vault_id}/set-resources",
|
2856
|
+
contentType: "application/json;charset=UTF-8",
|
2857
|
+
queryParams: {},
|
2858
|
+
pathParams: {},
|
2859
|
+
headers: {},
|
2860
|
+
data: {}
|
2861
|
+
};
|
2862
|
+
const localVarHeaderParameter = {};
|
2863
|
+
let body;
|
2864
|
+
let vaultId;
|
2865
|
+
if (setVaultResourceRequest !== null && setVaultResourceRequest !== undefined) {
|
2866
|
+
if (setVaultResourceRequest instanceof SetVaultResourceRequest_1.SetVaultResourceRequest) {
|
2867
|
+
vaultId = setVaultResourceRequest.vaultId;
|
2868
|
+
body = setVaultResourceRequest.body;
|
2869
|
+
}
|
2870
|
+
else {
|
2871
|
+
vaultId = setVaultResourceRequest['vault_id'];
|
2872
|
+
body = setVaultResourceRequest['body'];
|
2873
|
+
}
|
2874
|
+
}
|
2875
|
+
if (vaultId === null || vaultId === undefined) {
|
2876
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling setVaultResource.');
|
2877
|
+
}
|
2878
|
+
if (body === null || body === undefined) {
|
2879
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
2880
|
+
}
|
2881
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
2882
|
+
options.data = body !== undefined ? body : {};
|
2883
|
+
options.pathParams = { 'vault_id': vaultId, };
|
2884
|
+
options.headers = localVarHeaderParameter;
|
2885
|
+
return options;
|
2886
|
+
},
|
2887
|
+
/**
|
2888
|
+
* 查询指定客户端
|
2889
|
+
*
|
2890
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2891
|
+
*/
|
2892
|
+
showAgent(showAgentRequest) {
|
2893
|
+
const options = {
|
2894
|
+
method: "GET",
|
2895
|
+
url: "/v3/{project_id}/agents/{agent_id}",
|
2896
|
+
contentType: "application/json",
|
2897
|
+
queryParams: {},
|
2898
|
+
pathParams: {},
|
2899
|
+
headers: {}
|
2900
|
+
};
|
2901
|
+
const localVarHeaderParameter = {};
|
2902
|
+
let agentId;
|
2903
|
+
if (showAgentRequest !== null && showAgentRequest !== undefined) {
|
2904
|
+
if (showAgentRequest instanceof ShowAgentRequest_1.ShowAgentRequest) {
|
2905
|
+
agentId = showAgentRequest.agentId;
|
2906
|
+
}
|
2907
|
+
else {
|
2908
|
+
agentId = showAgentRequest['agent_id'];
|
2909
|
+
}
|
2910
|
+
}
|
2911
|
+
if (agentId === null || agentId === undefined) {
|
2912
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling showAgent.');
|
2913
|
+
}
|
2914
|
+
options.pathParams = { 'agent_id': agentId, };
|
2915
|
+
options.headers = localVarHeaderParameter;
|
2916
|
+
return options;
|
2917
|
+
},
|
2918
|
+
/**
|
2919
|
+
* 根据指定id查询单个副本。
|
2920
|
+
*
|
2921
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2922
|
+
*/
|
2923
|
+
showBackup(showBackupRequest) {
|
2924
|
+
const options = {
|
2925
|
+
method: "GET",
|
2926
|
+
url: "/v3/{project_id}/backups/{backup_id}",
|
2927
|
+
contentType: "application/json",
|
2928
|
+
queryParams: {},
|
2929
|
+
pathParams: {},
|
2930
|
+
headers: {}
|
2931
|
+
};
|
2932
|
+
const localVarHeaderParameter = {};
|
2933
|
+
let backupId;
|
2934
|
+
if (showBackupRequest !== null && showBackupRequest !== undefined) {
|
2935
|
+
if (showBackupRequest instanceof ShowBackupRequest_1.ShowBackupRequest) {
|
2936
|
+
backupId = showBackupRequest.backupId;
|
2937
|
+
}
|
2938
|
+
else {
|
2939
|
+
backupId = showBackupRequest['backup_id'];
|
2940
|
+
}
|
2941
|
+
}
|
2942
|
+
if (backupId === null || backupId === undefined) {
|
2943
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling showBackup.');
|
2944
|
+
}
|
2945
|
+
options.pathParams = { 'backup_id': backupId, };
|
2946
|
+
options.headers = localVarHeaderParameter;
|
2947
|
+
return options;
|
2948
|
+
},
|
2949
|
+
/**
|
2950
|
+
* 根据还原点ID查询指定还原点
|
2951
|
+
*
|
2952
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2953
|
+
*/
|
2954
|
+
showCheckpoint(showCheckpointRequest) {
|
2955
|
+
const options = {
|
2956
|
+
method: "GET",
|
2957
|
+
url: "/v3/{project_id}/checkpoints/{checkpoint_id}",
|
2958
|
+
contentType: "application/json",
|
2959
|
+
queryParams: {},
|
2960
|
+
pathParams: {},
|
2961
|
+
headers: {}
|
2962
|
+
};
|
2963
|
+
const localVarHeaderParameter = {};
|
2964
|
+
let checkpointId;
|
2965
|
+
if (showCheckpointRequest !== null && showCheckpointRequest !== undefined) {
|
2966
|
+
if (showCheckpointRequest instanceof ShowCheckpointRequest_1.ShowCheckpointRequest) {
|
2967
|
+
checkpointId = showCheckpointRequest.checkpointId;
|
2968
|
+
}
|
2969
|
+
else {
|
2970
|
+
checkpointId = showCheckpointRequest['checkpoint_id'];
|
2971
|
+
}
|
2972
|
+
}
|
2973
|
+
if (checkpointId === null || checkpointId === undefined) {
|
2974
|
+
throw new RequiredError('checkpointId', 'Required parameter checkpointId was null or undefined when calling showCheckpoint.');
|
2975
|
+
}
|
2976
|
+
options.pathParams = { 'checkpoint_id': checkpointId, };
|
2977
|
+
options.headers = localVarHeaderParameter;
|
2978
|
+
return options;
|
2979
|
+
},
|
2980
|
+
/**
|
2981
|
+
* 由控制台调用的内部接口,用于仅在查询共享备份时获取源project_id的域名信息。
|
2982
|
+
*
|
2983
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
2984
|
+
*/
|
2985
|
+
showDomain(showDomainRequest) {
|
2986
|
+
const options = {
|
2987
|
+
method: "GET",
|
2988
|
+
url: "/v3/domain/{source_project_id}",
|
2989
|
+
contentType: "application/json",
|
2990
|
+
queryParams: {},
|
2991
|
+
pathParams: {},
|
2992
|
+
headers: {}
|
2993
|
+
};
|
2994
|
+
const localVarHeaderParameter = {};
|
2995
|
+
let sourceProjectId;
|
2996
|
+
if (showDomainRequest !== null && showDomainRequest !== undefined) {
|
2997
|
+
if (showDomainRequest instanceof ShowDomainRequest_1.ShowDomainRequest) {
|
2998
|
+
sourceProjectId = showDomainRequest.sourceProjectId;
|
2999
|
+
}
|
3000
|
+
else {
|
3001
|
+
sourceProjectId = showDomainRequest['source_project_id'];
|
3002
|
+
}
|
3003
|
+
}
|
3004
|
+
if (sourceProjectId === null || sourceProjectId === undefined) {
|
3005
|
+
throw new RequiredError('sourceProjectId', 'Required parameter sourceProjectId was null or undefined when calling showDomain.');
|
3006
|
+
}
|
3007
|
+
options.pathParams = { 'source_project_id': sourceProjectId, };
|
3008
|
+
options.headers = localVarHeaderParameter;
|
3009
|
+
return options;
|
3010
|
+
},
|
3011
|
+
/**
|
3012
|
+
* 获取备份成员的详情
|
3013
|
+
*
|
3014
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3015
|
+
*/
|
3016
|
+
showMemberDetail(showMemberDetailRequest) {
|
3017
|
+
const options = {
|
3018
|
+
method: "GET",
|
3019
|
+
url: "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
|
3020
|
+
contentType: "application/json",
|
3021
|
+
queryParams: {},
|
3022
|
+
pathParams: {},
|
3023
|
+
headers: {}
|
3024
|
+
};
|
3025
|
+
const localVarHeaderParameter = {};
|
3026
|
+
let backupId;
|
3027
|
+
let memberId;
|
3028
|
+
if (showMemberDetailRequest !== null && showMemberDetailRequest !== undefined) {
|
3029
|
+
if (showMemberDetailRequest instanceof ShowMemberDetailRequest_1.ShowMemberDetailRequest) {
|
3030
|
+
backupId = showMemberDetailRequest.backupId;
|
3031
|
+
memberId = showMemberDetailRequest.memberId;
|
3032
|
+
}
|
3033
|
+
else {
|
3034
|
+
backupId = showMemberDetailRequest['backup_id'];
|
3035
|
+
memberId = showMemberDetailRequest['member_id'];
|
3036
|
+
}
|
3037
|
+
}
|
3038
|
+
if (backupId === null || backupId === undefined) {
|
3039
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling showMemberDetail.');
|
3040
|
+
}
|
3041
|
+
if (memberId === null || memberId === undefined) {
|
3042
|
+
throw new RequiredError('memberId', 'Required parameter memberId was null or undefined when calling showMemberDetail.');
|
3043
|
+
}
|
3044
|
+
options.pathParams = { 'backup_id': backupId, 'member_id': memberId, };
|
3045
|
+
options.headers = localVarHeaderParameter;
|
3046
|
+
return options;
|
3047
|
+
},
|
3048
|
+
/**
|
3049
|
+
* 获取备份共享成员的列表信息
|
3050
|
+
*
|
3051
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3052
|
+
*/
|
3053
|
+
showMembersDetail(showMembersDetailRequest) {
|
3054
|
+
const options = {
|
3055
|
+
method: "GET",
|
3056
|
+
url: "/v3/{project_id}/backups/{backup_id}/members",
|
3057
|
+
contentType: "application/json",
|
3058
|
+
queryParams: {},
|
3059
|
+
pathParams: {},
|
3060
|
+
headers: {}
|
3061
|
+
};
|
3062
|
+
const localVarHeaderParameter = {};
|
3063
|
+
const localVarQueryParameter = {};
|
3064
|
+
let backupId;
|
3065
|
+
let destProjectId;
|
3066
|
+
let imageId;
|
3067
|
+
let status;
|
3068
|
+
let vaultId;
|
3069
|
+
let limit;
|
3070
|
+
let marker;
|
3071
|
+
let offset;
|
3072
|
+
let sort;
|
3073
|
+
if (showMembersDetailRequest !== null && showMembersDetailRequest !== undefined) {
|
3074
|
+
if (showMembersDetailRequest instanceof ShowMembersDetailRequest_1.ShowMembersDetailRequest) {
|
3075
|
+
backupId = showMembersDetailRequest.backupId;
|
3076
|
+
destProjectId = showMembersDetailRequest.destProjectId;
|
3077
|
+
imageId = showMembersDetailRequest.imageId;
|
3078
|
+
status = showMembersDetailRequest.status;
|
3079
|
+
vaultId = showMembersDetailRequest.vaultId;
|
3080
|
+
limit = showMembersDetailRequest.limit;
|
3081
|
+
marker = showMembersDetailRequest.marker;
|
3082
|
+
offset = showMembersDetailRequest.offset;
|
3083
|
+
sort = showMembersDetailRequest.sort;
|
3084
|
+
}
|
3085
|
+
else {
|
3086
|
+
backupId = showMembersDetailRequest['backup_id'];
|
3087
|
+
destProjectId = showMembersDetailRequest['dest_project_id'];
|
3088
|
+
imageId = showMembersDetailRequest['image_id'];
|
3089
|
+
status = showMembersDetailRequest['status'];
|
3090
|
+
vaultId = showMembersDetailRequest['vault_id'];
|
3091
|
+
limit = showMembersDetailRequest['limit'];
|
3092
|
+
marker = showMembersDetailRequest['marker'];
|
3093
|
+
offset = showMembersDetailRequest['offset'];
|
3094
|
+
sort = showMembersDetailRequest['sort'];
|
3095
|
+
}
|
3096
|
+
}
|
3097
|
+
if (backupId === null || backupId === undefined) {
|
3098
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling showMembersDetail.');
|
3099
|
+
}
|
3100
|
+
if (destProjectId !== null && destProjectId !== undefined) {
|
3101
|
+
localVarQueryParameter['dest_project_id'] = destProjectId;
|
3102
|
+
}
|
3103
|
+
if (imageId !== null && imageId !== undefined) {
|
3104
|
+
localVarQueryParameter['image_id'] = imageId;
|
3105
|
+
}
|
3106
|
+
if (status !== null && status !== undefined) {
|
3107
|
+
localVarQueryParameter['status'] = status;
|
3108
|
+
}
|
3109
|
+
if (vaultId !== null && vaultId !== undefined) {
|
3110
|
+
localVarQueryParameter['vault_id'] = vaultId;
|
3111
|
+
}
|
3112
|
+
if (limit !== null && limit !== undefined) {
|
3113
|
+
localVarQueryParameter['limit'] = limit;
|
3114
|
+
}
|
3115
|
+
if (marker !== null && marker !== undefined) {
|
3116
|
+
localVarQueryParameter['marker'] = marker;
|
3117
|
+
}
|
3118
|
+
if (offset !== null && offset !== undefined) {
|
3119
|
+
localVarQueryParameter['offset'] = offset;
|
3120
|
+
}
|
3121
|
+
if (sort !== null && sort !== undefined) {
|
3122
|
+
localVarQueryParameter['sort'] = sort;
|
3123
|
+
}
|
3124
|
+
options.queryParams = localVarQueryParameter;
|
3125
|
+
options.pathParams = { 'backup_id': backupId, };
|
3126
|
+
options.headers = localVarHeaderParameter;
|
3127
|
+
return options;
|
3128
|
+
},
|
3129
|
+
/**
|
3130
|
+
* 查询备份时资源的元数据
|
3131
|
+
*
|
3132
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3133
|
+
*/
|
3134
|
+
showMetadata(showMetadataRequest) {
|
3135
|
+
const options = {
|
3136
|
+
method: "GET",
|
3137
|
+
url: "/v3/{project_id}/backups/{backup_id}/metadata",
|
3138
|
+
contentType: "application/json",
|
3139
|
+
queryParams: {},
|
3140
|
+
pathParams: {},
|
3141
|
+
headers: {}
|
3142
|
+
};
|
3143
|
+
const localVarHeaderParameter = {};
|
3144
|
+
let backupId;
|
3145
|
+
if (showMetadataRequest !== null && showMetadataRequest !== undefined) {
|
3146
|
+
if (showMetadataRequest instanceof ShowMetadataRequest_1.ShowMetadataRequest) {
|
3147
|
+
backupId = showMetadataRequest.backupId;
|
3148
|
+
}
|
3149
|
+
else {
|
3150
|
+
backupId = showMetadataRequest['backup_id'];
|
3151
|
+
}
|
3152
|
+
}
|
3153
|
+
if (backupId === null || backupId === undefined) {
|
3154
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling showMetadata.');
|
3155
|
+
}
|
3156
|
+
options.pathParams = { 'backup_id': backupId, };
|
3157
|
+
options.headers = localVarHeaderParameter;
|
3158
|
+
return options;
|
3159
|
+
},
|
3160
|
+
/**
|
3161
|
+
* 查询迁移结果
|
3162
|
+
*
|
3163
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3164
|
+
*/
|
3165
|
+
showMigrateStatus(showMigrateStatusRequest) {
|
3166
|
+
const options = {
|
3167
|
+
method: "GET",
|
3168
|
+
url: "/v3/migrates",
|
3169
|
+
contentType: "application/json",
|
3170
|
+
queryParams: {},
|
3171
|
+
pathParams: {},
|
3172
|
+
headers: {}
|
3173
|
+
};
|
3174
|
+
const localVarHeaderParameter = {};
|
3175
|
+
const localVarQueryParameter = {};
|
3176
|
+
let allRegions;
|
3177
|
+
if (showMigrateStatusRequest !== null && showMigrateStatusRequest !== undefined) {
|
3178
|
+
if (showMigrateStatusRequest instanceof ShowMigrateStatusRequest_1.ShowMigrateStatusRequest) {
|
3179
|
+
allRegions = showMigrateStatusRequest.allRegions;
|
3180
|
+
}
|
3181
|
+
else {
|
3182
|
+
allRegions = showMigrateStatusRequest['all_regions'];
|
3183
|
+
}
|
3184
|
+
}
|
3185
|
+
if (allRegions !== null && allRegions !== undefined) {
|
3186
|
+
localVarQueryParameter['all_regions'] = allRegions;
|
3187
|
+
}
|
3188
|
+
options.queryParams = localVarQueryParameter;
|
3189
|
+
options.headers = localVarHeaderParameter;
|
3190
|
+
return options;
|
3191
|
+
},
|
3192
|
+
/**
|
3193
|
+
* 根据指定任务ID查询任务
|
3194
|
+
*
|
3195
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3196
|
+
*/
|
3197
|
+
showOpLog(showOpLogRequest) {
|
3198
|
+
const options = {
|
3199
|
+
method: "GET",
|
3200
|
+
url: "/v3/{project_id}/operation-logs/{operation_log_id}",
|
3201
|
+
contentType: "application/json",
|
3202
|
+
queryParams: {},
|
3203
|
+
pathParams: {},
|
3204
|
+
headers: {}
|
3205
|
+
};
|
3206
|
+
const localVarHeaderParameter = {};
|
3207
|
+
let operationLogId;
|
3208
|
+
if (showOpLogRequest !== null && showOpLogRequest !== undefined) {
|
3209
|
+
if (showOpLogRequest instanceof ShowOpLogRequest_1.ShowOpLogRequest) {
|
3210
|
+
operationLogId = showOpLogRequest.operationLogId;
|
3211
|
+
}
|
3212
|
+
else {
|
3213
|
+
operationLogId = showOpLogRequest['operation_log_id'];
|
3214
|
+
}
|
3215
|
+
}
|
3216
|
+
if (operationLogId === null || operationLogId === undefined) {
|
3217
|
+
throw new RequiredError('operationLogId', 'Required parameter operationLogId was null or undefined when calling showOpLog.');
|
3218
|
+
}
|
3219
|
+
options.pathParams = { 'operation_log_id': operationLogId, };
|
3220
|
+
options.headers = localVarHeaderParameter;
|
3221
|
+
return options;
|
3222
|
+
},
|
3223
|
+
/**
|
3224
|
+
* 查询单个策略
|
3225
|
+
*
|
3226
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3227
|
+
*/
|
3228
|
+
showPolicy(showPolicyRequest) {
|
3229
|
+
const options = {
|
3230
|
+
method: "GET",
|
3231
|
+
url: "/v3/{project_id}/policies/{policy_id}",
|
3232
|
+
contentType: "application/json",
|
3233
|
+
queryParams: {},
|
3234
|
+
pathParams: {},
|
3235
|
+
headers: {}
|
3236
|
+
};
|
3237
|
+
const localVarHeaderParameter = {};
|
3238
|
+
let policyId;
|
3239
|
+
if (showPolicyRequest !== null && showPolicyRequest !== undefined) {
|
3240
|
+
if (showPolicyRequest instanceof ShowPolicyRequest_1.ShowPolicyRequest) {
|
3241
|
+
policyId = showPolicyRequest.policyId;
|
3242
|
+
}
|
3243
|
+
else {
|
3244
|
+
policyId = showPolicyRequest['policy_id'];
|
3245
|
+
}
|
3246
|
+
}
|
3247
|
+
if (policyId === null || policyId === undefined) {
|
3248
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling showPolicy.');
|
3249
|
+
}
|
3250
|
+
options.pathParams = { 'policy_id': policyId, };
|
3251
|
+
options.headers = localVarHeaderParameter;
|
3252
|
+
return options;
|
3253
|
+
},
|
3254
|
+
/**
|
3255
|
+
* 根据ID查询可保护性资源
|
3256
|
+
*
|
3257
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3258
|
+
*/
|
3259
|
+
showProtectable(showProtectableRequest) {
|
3260
|
+
const options = {
|
3261
|
+
method: "GET",
|
3262
|
+
url: "/v3/{project_id}/protectables/{protectable_type}/instances/{instance_id}",
|
3263
|
+
contentType: "application/json",
|
3264
|
+
queryParams: {},
|
3265
|
+
pathParams: {},
|
3266
|
+
headers: {}
|
3267
|
+
};
|
3268
|
+
const localVarHeaderParameter = {};
|
3269
|
+
let instanceId;
|
3270
|
+
let protectableType;
|
3271
|
+
if (showProtectableRequest !== null && showProtectableRequest !== undefined) {
|
3272
|
+
if (showProtectableRequest instanceof ShowProtectableRequest_1.ShowProtectableRequest) {
|
3273
|
+
instanceId = showProtectableRequest.instanceId;
|
3274
|
+
protectableType = showProtectableRequest.protectableType;
|
3275
|
+
}
|
3276
|
+
else {
|
3277
|
+
instanceId = showProtectableRequest['instance_id'];
|
3278
|
+
protectableType = showProtectableRequest['protectable_type'];
|
3279
|
+
}
|
3280
|
+
}
|
3281
|
+
if (instanceId === null || instanceId === undefined) {
|
3282
|
+
throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showProtectable.');
|
3283
|
+
}
|
3284
|
+
if (protectableType === null || protectableType === undefined) {
|
3285
|
+
throw new RequiredError('protectableType', 'Required parameter protectableType was null or undefined when calling showProtectable.');
|
3286
|
+
}
|
3287
|
+
options.pathParams = { 'instance_id': instanceId, 'protectable_type': protectableType, };
|
3288
|
+
options.headers = localVarHeaderParameter;
|
3289
|
+
return options;
|
3290
|
+
},
|
3291
|
+
/**
|
3292
|
+
* 查询本区域的复制能力
|
3293
|
+
*
|
3294
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3295
|
+
*/
|
3296
|
+
showReplicationCapabilities() {
|
3297
|
+
const options = {
|
3298
|
+
method: "GET",
|
3299
|
+
url: "/v3/{project_id}/replication-capabilities",
|
3300
|
+
contentType: "application/json",
|
3301
|
+
queryParams: {},
|
3302
|
+
pathParams: {},
|
3303
|
+
headers: {}
|
3304
|
+
};
|
3305
|
+
const localVarHeaderParameter = {};
|
3306
|
+
options.headers = localVarHeaderParameter;
|
3307
|
+
return options;
|
3308
|
+
},
|
3309
|
+
/**
|
3310
|
+
* 查询容量统计
|
3311
|
+
*
|
3312
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3313
|
+
*/
|
3314
|
+
showStorageUsage(showStorageUsageRequest) {
|
3315
|
+
const options = {
|
3316
|
+
method: "GET",
|
3317
|
+
url: "/v3/{project_id}/storage_usage",
|
3318
|
+
contentType: "application/json",
|
3319
|
+
queryParams: {},
|
3320
|
+
pathParams: {},
|
3321
|
+
headers: {}
|
3322
|
+
};
|
3323
|
+
const localVarHeaderParameter = {};
|
3324
|
+
const localVarQueryParameter = {};
|
3325
|
+
let limit;
|
3326
|
+
let offset;
|
3327
|
+
let resourceId;
|
3328
|
+
let resourceType;
|
3329
|
+
if (showStorageUsageRequest !== null && showStorageUsageRequest !== undefined) {
|
3330
|
+
if (showStorageUsageRequest instanceof ShowStorageUsageRequest_1.ShowStorageUsageRequest) {
|
3331
|
+
limit = showStorageUsageRequest.limit;
|
3332
|
+
offset = showStorageUsageRequest.offset;
|
3333
|
+
resourceId = showStorageUsageRequest.resourceId;
|
3334
|
+
resourceType = showStorageUsageRequest.resourceType;
|
3335
|
+
}
|
3336
|
+
else {
|
3337
|
+
limit = showStorageUsageRequest['limit'];
|
3338
|
+
offset = showStorageUsageRequest['offset'];
|
3339
|
+
resourceId = showStorageUsageRequest['resource_id'];
|
3340
|
+
resourceType = showStorageUsageRequest['resource_type'];
|
3341
|
+
}
|
3342
|
+
}
|
3343
|
+
if (limit !== null && limit !== undefined) {
|
3344
|
+
localVarQueryParameter['limit'] = limit;
|
3345
|
+
}
|
3346
|
+
if (offset !== null && offset !== undefined) {
|
3347
|
+
localVarQueryParameter['offset'] = offset;
|
3348
|
+
}
|
3349
|
+
if (resourceId !== null && resourceId !== undefined) {
|
3350
|
+
localVarQueryParameter['resource_id'] = resourceId;
|
3351
|
+
}
|
3352
|
+
if (resourceType !== null && resourceType !== undefined) {
|
3353
|
+
localVarQueryParameter['resource_type'] = resourceType;
|
3354
|
+
}
|
3355
|
+
options.queryParams = localVarQueryParameter;
|
3356
|
+
options.headers = localVarHeaderParameter;
|
3357
|
+
return options;
|
3358
|
+
},
|
3359
|
+
/**
|
3360
|
+
* 查询项目下所有存储库的总容量和总使用量
|
3361
|
+
*
|
3362
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3363
|
+
*/
|
3364
|
+
showSummary() {
|
3365
|
+
const options = {
|
3366
|
+
method: "GET",
|
3367
|
+
url: "/v3/{project_id}/vaults/summary",
|
3368
|
+
contentType: "application/json",
|
3369
|
+
queryParams: {},
|
3370
|
+
pathParams: {},
|
3371
|
+
headers: {}
|
3372
|
+
};
|
3373
|
+
const localVarHeaderParameter = {};
|
3374
|
+
options.headers = localVarHeaderParameter;
|
3375
|
+
return options;
|
3376
|
+
},
|
3377
|
+
/**
|
3378
|
+
* 根据ID查询指定存储库
|
3379
|
+
*
|
3380
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3381
|
+
*/
|
3382
|
+
showVault(showVaultRequest) {
|
3383
|
+
const options = {
|
3384
|
+
method: "GET",
|
3385
|
+
url: "/v3/{project_id}/vaults/{vault_id}",
|
3386
|
+
contentType: "application/json",
|
3387
|
+
queryParams: {},
|
3388
|
+
pathParams: {},
|
3389
|
+
headers: {}
|
3390
|
+
};
|
3391
|
+
const localVarHeaderParameter = {};
|
3392
|
+
let vaultId;
|
3393
|
+
if (showVaultRequest !== null && showVaultRequest !== undefined) {
|
3394
|
+
if (showVaultRequest instanceof ShowVaultRequest_1.ShowVaultRequest) {
|
3395
|
+
vaultId = showVaultRequest.vaultId;
|
3396
|
+
}
|
3397
|
+
else {
|
3398
|
+
vaultId = showVaultRequest['vault_id'];
|
3399
|
+
}
|
3400
|
+
}
|
3401
|
+
if (vaultId === null || vaultId === undefined) {
|
3402
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling showVault.');
|
3403
|
+
}
|
3404
|
+
options.pathParams = { 'vault_id': vaultId, };
|
3405
|
+
options.headers = localVarHeaderParameter;
|
3406
|
+
return options;
|
3407
|
+
},
|
3408
|
+
/**
|
3409
|
+
* 查询租户在指定Region和实例类型的所有标签集合
|
3410
|
+
* 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能
|
3411
|
+
*
|
3412
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3413
|
+
*/
|
3414
|
+
showVaultProjectTag() {
|
3415
|
+
const options = {
|
3416
|
+
method: "GET",
|
3417
|
+
url: "/v3/{project_id}/vault/tags",
|
3418
|
+
contentType: "application/json",
|
3419
|
+
queryParams: {},
|
3420
|
+
pathParams: {},
|
3421
|
+
headers: {}
|
3422
|
+
};
|
3423
|
+
const localVarHeaderParameter = {};
|
3424
|
+
options.headers = localVarHeaderParameter;
|
3425
|
+
return options;
|
3426
|
+
},
|
3427
|
+
/**
|
3428
|
+
* 使用标签过滤实例
|
3429
|
+
* 标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力
|
3430
|
+
*
|
3431
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3432
|
+
*/
|
3433
|
+
showVaultResourceInstances(showVaultResourceInstancesRequest) {
|
3434
|
+
const options = {
|
3435
|
+
method: "POST",
|
3436
|
+
url: "/v3/{project_id}/vault/resource_instances/action",
|
3437
|
+
contentType: "application/json;charset=UTF-8",
|
3438
|
+
queryParams: {},
|
3439
|
+
pathParams: {},
|
3440
|
+
headers: {},
|
3441
|
+
data: {}
|
3442
|
+
};
|
3443
|
+
const localVarHeaderParameter = {};
|
3444
|
+
let body;
|
3445
|
+
if (showVaultResourceInstancesRequest !== null && showVaultResourceInstancesRequest !== undefined) {
|
3446
|
+
if (showVaultResourceInstancesRequest instanceof ShowVaultResourceInstancesRequest_1.ShowVaultResourceInstancesRequest) {
|
3447
|
+
body = showVaultResourceInstancesRequest.body;
|
3448
|
+
}
|
3449
|
+
else {
|
3450
|
+
body = showVaultResourceInstancesRequest['body'];
|
3451
|
+
}
|
3452
|
+
}
|
3453
|
+
if (body === null || body === undefined) {
|
3454
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3455
|
+
}
|
3456
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3457
|
+
options.data = body !== undefined ? body : {};
|
3458
|
+
options.headers = localVarHeaderParameter;
|
3459
|
+
return options;
|
3460
|
+
},
|
3461
|
+
/**
|
3462
|
+
* 查询指定实例的标签信息
|
3463
|
+
* 标签管理服务需要使用该接口查询指定实例的全部标签数据
|
3464
|
+
*
|
3465
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3466
|
+
*/
|
3467
|
+
showVaultTag(showVaultTagRequest) {
|
3468
|
+
const options = {
|
3469
|
+
method: "GET",
|
3470
|
+
url: "/v3/{project_id}/vault/{vault_id}/tags",
|
3471
|
+
contentType: "application/json",
|
3472
|
+
queryParams: {},
|
3473
|
+
pathParams: {},
|
3474
|
+
headers: {}
|
3475
|
+
};
|
3476
|
+
const localVarHeaderParameter = {};
|
3477
|
+
let vaultId;
|
3478
|
+
if (showVaultTagRequest !== null && showVaultTagRequest !== undefined) {
|
3479
|
+
if (showVaultTagRequest instanceof ShowVaultTagRequest_1.ShowVaultTagRequest) {
|
3480
|
+
vaultId = showVaultTagRequest.vaultId;
|
3481
|
+
}
|
3482
|
+
else {
|
3483
|
+
vaultId = showVaultTagRequest['vault_id'];
|
3484
|
+
}
|
3485
|
+
}
|
3486
|
+
if (vaultId === null || vaultId === undefined) {
|
3487
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling showVaultTag.');
|
3488
|
+
}
|
3489
|
+
options.pathParams = { 'vault_id': vaultId, };
|
3490
|
+
options.headers = localVarHeaderParameter;
|
3491
|
+
return options;
|
3492
|
+
},
|
3493
|
+
/**
|
3494
|
+
* 移除客户端,移除客户端时将会删除该客户端所有备份,请谨慎操作。
|
3495
|
+
*
|
3496
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3497
|
+
*/
|
3498
|
+
unregisterAgent(unregisterAgentRequest) {
|
3499
|
+
const options = {
|
3500
|
+
method: "DELETE",
|
3501
|
+
url: "/v3/{project_id}/agents/{agent_id}",
|
3502
|
+
contentType: "application/json",
|
3503
|
+
queryParams: {},
|
3504
|
+
pathParams: {},
|
3505
|
+
headers: {}
|
3506
|
+
};
|
3507
|
+
const localVarHeaderParameter = {};
|
3508
|
+
let agentId;
|
3509
|
+
if (unregisterAgentRequest !== null && unregisterAgentRequest !== undefined) {
|
3510
|
+
if (unregisterAgentRequest instanceof UnregisterAgentRequest_1.UnregisterAgentRequest) {
|
3511
|
+
agentId = unregisterAgentRequest.agentId;
|
3512
|
+
}
|
3513
|
+
else {
|
3514
|
+
agentId = unregisterAgentRequest['agent_id'];
|
3515
|
+
}
|
3516
|
+
}
|
3517
|
+
if (agentId === null || agentId === undefined) {
|
3518
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling unregisterAgent.');
|
3519
|
+
}
|
3520
|
+
options.pathParams = { 'agent_id': agentId, };
|
3521
|
+
options.headers = localVarHeaderParameter;
|
3522
|
+
return options;
|
3523
|
+
},
|
3524
|
+
/**
|
3525
|
+
* 修改客户端状态
|
3526
|
+
*
|
3527
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3528
|
+
*/
|
3529
|
+
updateAgent(updateAgentRequest) {
|
3530
|
+
const options = {
|
3531
|
+
method: "PUT",
|
3532
|
+
url: "/v3/{project_id}/agents/{agent_id}",
|
3533
|
+
contentType: "application/json;charset=UTF-8",
|
3534
|
+
queryParams: {},
|
3535
|
+
pathParams: {},
|
3536
|
+
headers: {},
|
3537
|
+
data: {}
|
3538
|
+
};
|
3539
|
+
const localVarHeaderParameter = {};
|
3540
|
+
let body;
|
3541
|
+
let agentId;
|
3542
|
+
if (updateAgentRequest !== null && updateAgentRequest !== undefined) {
|
3543
|
+
if (updateAgentRequest instanceof UpdateAgentRequest_1.UpdateAgentRequest) {
|
3544
|
+
agentId = updateAgentRequest.agentId;
|
3545
|
+
body = updateAgentRequest.body;
|
3546
|
+
}
|
3547
|
+
else {
|
3548
|
+
agentId = updateAgentRequest['agent_id'];
|
3549
|
+
body = updateAgentRequest['body'];
|
3550
|
+
}
|
3551
|
+
}
|
3552
|
+
if (agentId === null || agentId === undefined) {
|
3553
|
+
throw new RequiredError('agentId', 'Required parameter agentId was null or undefined when calling updateAgent.');
|
3554
|
+
}
|
3555
|
+
if (body === null || body === undefined) {
|
3556
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3557
|
+
}
|
3558
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3559
|
+
options.data = body !== undefined ? body : {};
|
3560
|
+
options.pathParams = { 'agent_id': agentId, };
|
3561
|
+
options.headers = localVarHeaderParameter;
|
3562
|
+
return options;
|
3563
|
+
},
|
3564
|
+
/**
|
3565
|
+
* 根据备份id更改备份
|
3566
|
+
*
|
3567
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3568
|
+
*/
|
3569
|
+
updateBackup(updateBackupRequest) {
|
3570
|
+
const options = {
|
3571
|
+
method: "PUT",
|
3572
|
+
url: "/v3/{project_id}/backups/{backup_id}",
|
3573
|
+
contentType: "application/json;charset=UTF-8",
|
3574
|
+
queryParams: {},
|
3575
|
+
pathParams: {},
|
3576
|
+
headers: {},
|
3577
|
+
data: {}
|
3578
|
+
};
|
3579
|
+
const localVarHeaderParameter = {};
|
3580
|
+
let body;
|
3581
|
+
let backupId;
|
3582
|
+
if (updateBackupRequest !== null && updateBackupRequest !== undefined) {
|
3583
|
+
if (updateBackupRequest instanceof UpdateBackupRequest_1.UpdateBackupRequest) {
|
3584
|
+
backupId = updateBackupRequest.backupId;
|
3585
|
+
body = updateBackupRequest.body;
|
3586
|
+
}
|
3587
|
+
else {
|
3588
|
+
backupId = updateBackupRequest['backup_id'];
|
3589
|
+
body = updateBackupRequest['body'];
|
3590
|
+
}
|
3591
|
+
}
|
3592
|
+
if (backupId === null || backupId === undefined) {
|
3593
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling updateBackup.');
|
3594
|
+
}
|
3595
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3596
|
+
options.data = body !== undefined ? body : {};
|
3597
|
+
options.pathParams = { 'backup_id': backupId, };
|
3598
|
+
options.headers = localVarHeaderParameter;
|
3599
|
+
return options;
|
3600
|
+
},
|
3601
|
+
/**
|
3602
|
+
* 更新备份共享成员的状态,需要接收方执行此API。
|
3603
|
+
*
|
3604
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3605
|
+
*/
|
3606
|
+
updateMemberStatus(updateMemberStatusRequest) {
|
3607
|
+
const options = {
|
3608
|
+
method: "PUT",
|
3609
|
+
url: "/v3/{project_id}/backups/{backup_id}/members/{member_id}",
|
3610
|
+
contentType: "application/json;charset=UTF-8",
|
3611
|
+
queryParams: {},
|
3612
|
+
pathParams: {},
|
3613
|
+
headers: {},
|
3614
|
+
data: {}
|
3615
|
+
};
|
3616
|
+
const localVarHeaderParameter = {};
|
3617
|
+
let body;
|
3618
|
+
let memberId;
|
3619
|
+
let backupId;
|
3620
|
+
if (updateMemberStatusRequest !== null && updateMemberStatusRequest !== undefined) {
|
3621
|
+
if (updateMemberStatusRequest instanceof UpdateMemberStatusRequest_1.UpdateMemberStatusRequest) {
|
3622
|
+
memberId = updateMemberStatusRequest.memberId;
|
3623
|
+
backupId = updateMemberStatusRequest.backupId;
|
3624
|
+
body = updateMemberStatusRequest.body;
|
3625
|
+
}
|
3626
|
+
else {
|
3627
|
+
memberId = updateMemberStatusRequest['member_id'];
|
3628
|
+
backupId = updateMemberStatusRequest['backup_id'];
|
3629
|
+
body = updateMemberStatusRequest['body'];
|
3630
|
+
}
|
3631
|
+
}
|
3632
|
+
if (memberId === null || memberId === undefined) {
|
3633
|
+
throw new RequiredError('memberId', 'Required parameter memberId was null or undefined when calling updateMemberStatus.');
|
3634
|
+
}
|
3635
|
+
if (backupId === null || backupId === undefined) {
|
3636
|
+
throw new RequiredError('backupId', 'Required parameter backupId was null or undefined when calling updateMemberStatus.');
|
3637
|
+
}
|
3638
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3639
|
+
options.data = body !== undefined ? body : {};
|
3640
|
+
options.pathParams = { 'member_id': memberId, 'backup_id': backupId, };
|
3641
|
+
options.headers = localVarHeaderParameter;
|
3642
|
+
return options;
|
3643
|
+
},
|
3644
|
+
/**
|
3645
|
+
* 订单更新,支付cbc订单后,调用该接口更新包周期产品订单信息。
|
3646
|
+
*
|
3647
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3648
|
+
*/
|
3649
|
+
updateOrder(updateOrderRequest) {
|
3650
|
+
const options = {
|
3651
|
+
method: "PUT",
|
3652
|
+
url: "/v3/{project_id}/orders/{order_id}",
|
3653
|
+
contentType: "application/json;charset=UTF-8",
|
3654
|
+
queryParams: {},
|
3655
|
+
pathParams: {},
|
3656
|
+
headers: {},
|
3657
|
+
data: {}
|
3658
|
+
};
|
3659
|
+
const localVarHeaderParameter = {};
|
3660
|
+
let body;
|
3661
|
+
let orderId;
|
3662
|
+
if (updateOrderRequest !== null && updateOrderRequest !== undefined) {
|
3663
|
+
if (updateOrderRequest instanceof UpdateOrderRequest_1.UpdateOrderRequest) {
|
3664
|
+
orderId = updateOrderRequest.orderId;
|
3665
|
+
body = updateOrderRequest.body;
|
3666
|
+
}
|
3667
|
+
else {
|
3668
|
+
orderId = updateOrderRequest['order_id'];
|
3669
|
+
body = updateOrderRequest['body'];
|
3670
|
+
}
|
3671
|
+
}
|
3672
|
+
if (orderId === null || orderId === undefined) {
|
3673
|
+
throw new RequiredError('orderId', 'Required parameter orderId was null or undefined when calling updateOrder.');
|
3674
|
+
}
|
3675
|
+
if (body === null || body === undefined) {
|
3676
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3677
|
+
}
|
3678
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3679
|
+
options.data = body !== undefined ? body : {};
|
3680
|
+
options.pathParams = { 'order_id': orderId, };
|
3681
|
+
options.headers = localVarHeaderParameter;
|
3682
|
+
return options;
|
3683
|
+
},
|
3684
|
+
/**
|
3685
|
+
* 修改策略
|
3686
|
+
*
|
3687
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3688
|
+
*/
|
3689
|
+
updatePolicy(updatePolicyRequest) {
|
3690
|
+
const options = {
|
3691
|
+
method: "PUT",
|
3692
|
+
url: "/v3/{project_id}/policies/{policy_id}",
|
3693
|
+
contentType: "application/json;charset=UTF-8",
|
3694
|
+
queryParams: {},
|
3695
|
+
pathParams: {},
|
3696
|
+
headers: {},
|
3697
|
+
data: {}
|
3698
|
+
};
|
3699
|
+
const localVarHeaderParameter = {};
|
3700
|
+
let body;
|
3701
|
+
let policyId;
|
3702
|
+
if (updatePolicyRequest !== null && updatePolicyRequest !== undefined) {
|
3703
|
+
if (updatePolicyRequest instanceof UpdatePolicyRequest_1.UpdatePolicyRequest) {
|
3704
|
+
policyId = updatePolicyRequest.policyId;
|
3705
|
+
body = updatePolicyRequest.body;
|
3706
|
+
}
|
3707
|
+
else {
|
3708
|
+
policyId = updatePolicyRequest['policy_id'];
|
3709
|
+
body = updatePolicyRequest['body'];
|
3710
|
+
}
|
3711
|
+
}
|
3712
|
+
if (policyId === null || policyId === undefined) {
|
3713
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling updatePolicy.');
|
3714
|
+
}
|
3715
|
+
if (body === null || body === undefined) {
|
3716
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3717
|
+
}
|
3718
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3719
|
+
options.data = body !== undefined ? body : {};
|
3720
|
+
options.pathParams = { 'policy_id': policyId, };
|
3721
|
+
options.headers = localVarHeaderParameter;
|
3722
|
+
return options;
|
3723
|
+
},
|
3724
|
+
/**
|
3725
|
+
* 根据存储库ID修改存储库
|
3726
|
+
*
|
3727
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
3728
|
+
*/
|
3729
|
+
updateVault(updateVaultRequest) {
|
3730
|
+
const options = {
|
3731
|
+
method: "PUT",
|
3732
|
+
url: "/v3/{project_id}/vaults/{vault_id}",
|
3733
|
+
contentType: "application/json;charset=UTF-8",
|
3734
|
+
queryParams: {},
|
3735
|
+
pathParams: {},
|
3736
|
+
headers: {},
|
3737
|
+
data: {}
|
3738
|
+
};
|
3739
|
+
const localVarHeaderParameter = {};
|
3740
|
+
let body;
|
3741
|
+
let vaultId;
|
3742
|
+
if (updateVaultRequest !== null && updateVaultRequest !== undefined) {
|
3743
|
+
if (updateVaultRequest instanceof UpdateVaultRequest_1.UpdateVaultRequest) {
|
3744
|
+
vaultId = updateVaultRequest.vaultId;
|
3745
|
+
body = updateVaultRequest.body;
|
3746
|
+
}
|
3747
|
+
else {
|
3748
|
+
vaultId = updateVaultRequest['vault_id'];
|
3749
|
+
body = updateVaultRequest['body'];
|
3750
|
+
}
|
3751
|
+
}
|
3752
|
+
if (vaultId === null || vaultId === undefined) {
|
3753
|
+
throw new RequiredError('vaultId', 'Required parameter vaultId was null or undefined when calling updateVault.');
|
3754
|
+
}
|
3755
|
+
if (body === null || body === undefined) {
|
3756
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
3757
|
+
}
|
3758
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
3759
|
+
options.data = body !== undefined ? body : {};
|
3760
|
+
options.pathParams = { 'vault_id': vaultId, };
|
3761
|
+
options.headers = localVarHeaderParameter;
|
3762
|
+
return options;
|
3763
|
+
},
|
3764
|
+
};
|
3765
|
+
};
|
3766
|
+
exports.ParamCreater = ParamCreater;
|
3767
|
+
function newClient(client) {
|
3768
|
+
return new CbrClient(client);
|
3769
|
+
}
|
3770
|
+
/**
|
3771
|
+
*
|
3772
|
+
* @export
|
3773
|
+
* @class RequiredError
|
3774
|
+
* @extends {Error}
|
3775
|
+
*/
|
3776
|
+
class RequiredError extends Error {
|
3777
|
+
constructor(field, msg) {
|
3778
|
+
super(msg);
|
3779
|
+
this.field = field;
|
3780
|
+
this.name = "RequiredError";
|
3781
|
+
}
|
3782
|
+
}
|
3783
|
+
exports.RequiredError = RequiredError;
|
3784
|
+
//# sourceMappingURL=CbrClient.js.map
|