@huaweicloud/huaweicloud-sdk-cbr 3.1.36
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +13 -0
- package/README.md +1 -0
- package/huaweicloud-sdk-cbr.d.ts +2 -0
- package/huaweicloud-sdk-cbr.js +31 -0
- package/package.json +19 -0
- package/v1/CbrClient.d.ts +1175 -0
- package/v1/CbrClient.js +2558 -0
- package/v1/CbrRegion.d.ts +22 -0
- package/v1/CbrRegion.js +57 -0
- package/v1/model/AddMemberRequest.d.ts +10 -0
- package/v1/model/AddMemberRequest.js +28 -0
- package/v1/model/AddMemberResponse.d.ts +9 -0
- package/v1/model/AddMemberResponse.js +35 -0
- package/v1/model/AddMembersReq.d.ts +5 -0
- package/v1/model/AddMembersReq.js +14 -0
- package/v1/model/AddVaultResourceRequest.d.ts +10 -0
- package/v1/model/AddVaultResourceRequest.js +28 -0
- package/v1/model/AddVaultResourceResponse.d.ts +8 -0
- package/v1/model/AddVaultResourceResponse.js +41 -0
- package/v1/model/AssociateVaultPolicyRequest.d.ts +10 -0
- package/v1/model/AssociateVaultPolicyRequest.js +28 -0
- package/v1/model/AssociateVaultPolicyResponse.d.ts +9 -0
- package/v1/model/AssociateVaultPolicyResponse.js +41 -0
- package/v1/model/BackupExtendInfo.d.ts +51 -0
- package/v1/model/BackupExtendInfo.js +143 -0
- package/v1/model/BackupReplicateReq.d.ts +6 -0
- package/v1/model/BackupReplicateReq.js +14 -0
- package/v1/model/BackupReplicateReqBody.d.ts +23 -0
- package/v1/model/BackupReplicateReqBody.js +76 -0
- package/v1/model/BackupReplicateRespBody.d.ts +35 -0
- package/v1/model/BackupReplicateRespBody.js +121 -0
- package/v1/model/BackupResp.d.ts +118 -0
- package/v1/model/BackupResp.js +335 -0
- package/v1/model/BackupRestore.d.ts +22 -0
- package/v1/model/BackupRestore.js +69 -0
- package/v1/model/BackupRestoreReq.d.ts +6 -0
- package/v1/model/BackupRestoreReq.js +14 -0
- package/v1/model/BackupRestoreServerMapping.d.ts +11 -0
- package/v1/model/BackupRestoreServerMapping.js +39 -0
- package/v1/model/BackupSync.d.ts +35 -0
- package/v1/model/BackupSync.js +129 -0
- package/v1/model/BackupSyncReq.d.ts +6 -0
- package/v1/model/BackupSyncReq.js +14 -0
- package/v1/model/BackupSyncRespBody.d.ts +11 -0
- package/v1/model/BackupSyncRespBody.js +39 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.d.ts +10 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsRequest.js +28 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.d.ts +4 -0
- package/v1/model/BatchCreateAndDeleteVaultTagsResponse.js +27 -0
- package/v1/model/BillbingCreateExtraInfo.d.ts +11 -0
- package/v1/model/BillbingCreateExtraInfo.js +37 -0
- package/v1/model/Billing.d.ts +119 -0
- package/v1/model/Billing.js +258 -0
- package/v1/model/BillingCreate.d.ts +119 -0
- package/v1/model/BillingCreate.js +286 -0
- package/v1/model/BillingUpdate.d.ts +17 -0
- package/v1/model/BillingUpdate.js +36 -0
- package/v1/model/BindRulesTags.d.ts +7 -0
- package/v1/model/BindRulesTags.js +19 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.d.ts +21 -0
- package/v1/model/BulkCreateAndDeleteVaultTagsReq.js +41 -0
- package/v1/model/CbcOrderResult.d.ts +11 -0
- package/v1/model/CbcOrderResult.js +27 -0
- package/v1/model/CheckpointCreate.d.ts +35 -0
- package/v1/model/CheckpointCreate.js +80 -0
- package/v1/model/CheckpointCreateSkippedResource.d.ts +13 -0
- package/v1/model/CheckpointCreateSkippedResource.js +29 -0
- package/v1/model/CheckpointExtraInfoResp.d.ts +11 -0
- package/v1/model/CheckpointExtraInfoResp.js +31 -0
- package/v1/model/CheckpointParam.d.ts +24 -0
- package/v1/model/CheckpointParam.js +67 -0
- package/v1/model/CheckpointPlanCreate.d.ts +15 -0
- package/v1/model/CheckpointPlanCreate.js +37 -0
- package/v1/model/CheckpointReplicateParam.d.ts +27 -0
- package/v1/model/CheckpointReplicateParam.js +97 -0
- package/v1/model/CheckpointReplicateReq.d.ts +6 -0
- package/v1/model/CheckpointReplicateReq.js +14 -0
- package/v1/model/CheckpointReplicateRespBody.d.ts +34 -0
- package/v1/model/CheckpointReplicateRespBody.js +119 -0
- package/v1/model/CheckpointReplicateRespbackups.d.ts +11 -0
- package/v1/model/CheckpointReplicateRespbackups.js +39 -0
- package/v1/model/CheckpointResourceResp.d.ts +40 -0
- package/v1/model/CheckpointResourceResp.js +106 -0
- package/v1/model/CopyBackupRequest.d.ts +10 -0
- package/v1/model/CopyBackupRequest.js +28 -0
- package/v1/model/CopyBackupResponse.d.ts +7 -0
- package/v1/model/CopyBackupResponse.js +31 -0
- package/v1/model/CopyCheckpointRequest.d.ts +6 -0
- package/v1/model/CopyCheckpointRequest.js +13 -0
- package/v1/model/CopyCheckpointResponse.d.ts +7 -0
- package/v1/model/CopyCheckpointResponse.js +31 -0
- package/v1/model/CreateCheckpointRequest.d.ts +6 -0
- package/v1/model/CreateCheckpointRequest.js +13 -0
- package/v1/model/CreateCheckpointResponse.d.ts +7 -0
- package/v1/model/CreateCheckpointResponse.js +31 -0
- package/v1/model/CreatePolicyRequest.d.ts +6 -0
- package/v1/model/CreatePolicyRequest.js +13 -0
- package/v1/model/CreatePolicyResponse.d.ts +7 -0
- package/v1/model/CreatePolicyResponse.js +31 -0
- package/v1/model/CreateVaultRequest.d.ts +6 -0
- package/v1/model/CreateVaultRequest.js +13 -0
- package/v1/model/CreateVaultResponse.d.ts +7 -0
- package/v1/model/CreateVaultResponse.js +31 -0
- package/v1/model/CreateVaultTagsRequest.d.ts +10 -0
- package/v1/model/CreateVaultTagsRequest.js +28 -0
- package/v1/model/CreateVaultTagsResponse.d.ts +4 -0
- package/v1/model/CreateVaultTagsResponse.js +27 -0
- package/v1/model/DeleteBackupRequest.d.ts +7 -0
- package/v1/model/DeleteBackupRequest.js +24 -0
- package/v1/model/DeleteBackupResponse.d.ts +4 -0
- package/v1/model/DeleteBackupResponse.js +27 -0
- package/v1/model/DeleteMemberRequest.d.ts +11 -0
- package/v1/model/DeleteMemberRequest.js +39 -0
- package/v1/model/DeleteMemberResponse.d.ts +4 -0
- package/v1/model/DeleteMemberResponse.js +27 -0
- package/v1/model/DeletePolicyRequest.d.ts +7 -0
- package/v1/model/DeletePolicyRequest.js +24 -0
- package/v1/model/DeletePolicyResponse.d.ts +4 -0
- package/v1/model/DeletePolicyResponse.js +27 -0
- package/v1/model/DeleteVaultRequest.d.ts +7 -0
- package/v1/model/DeleteVaultRequest.js +24 -0
- package/v1/model/DeleteVaultResponse.d.ts +4 -0
- package/v1/model/DeleteVaultResponse.js +27 -0
- package/v1/model/DeleteVaultTagRequest.d.ts +9 -0
- package/v1/model/DeleteVaultTagRequest.js +29 -0
- package/v1/model/DeleteVaultTagResponse.d.ts +4 -0
- package/v1/model/DeleteVaultTagResponse.js +27 -0
- package/v1/model/DisassociateVaultPolicyRequest.d.ts +10 -0
- package/v1/model/DisassociateVaultPolicyRequest.js +28 -0
- package/v1/model/DisassociateVaultPolicyResponse.d.ts +9 -0
- package/v1/model/DisassociateVaultPolicyResponse.js +41 -0
- package/v1/model/ImageData.d.ts +7 -0
- package/v1/model/ImageData.js +23 -0
- package/v1/model/ImportBackupRequest.d.ts +6 -0
- package/v1/model/ImportBackupRequest.js +13 -0
- package/v1/model/ImportBackupResponse.d.ts +7 -0
- package/v1/model/ImportBackupResponse.js +31 -0
- package/v1/model/ListBackupsRequest.d.ts +128 -0
- package/v1/model/ListBackupsRequest.js +305 -0
- package/v1/model/ListBackupsResponse.d.ts +13 -0
- package/v1/model/ListBackupsResponse.js +43 -0
- package/v1/model/ListOpLogsRequest.d.ts +71 -0
- package/v1/model/ListOpLogsRequest.js +175 -0
- package/v1/model/ListOpLogsResponse.d.ts +15 -0
- package/v1/model/ListOpLogsResponse.js +53 -0
- package/v1/model/ListPoliciesRequest.d.ts +19 -0
- package/v1/model/ListPoliciesRequest.js +46 -0
- package/v1/model/ListPoliciesResponse.d.ts +9 -0
- package/v1/model/ListPoliciesResponse.js +35 -0
- package/v1/model/ListProtectableRequest.d.ts +31 -0
- package/v1/model/ListProtectableRequest.js +71 -0
- package/v1/model/ListProtectableResponse.d.ts +7 -0
- package/v1/model/ListProtectableResponse.js +31 -0
- package/v1/model/ListVaultRequest.d.ts +53 -0
- package/v1/model/ListVaultRequest.js +131 -0
- package/v1/model/ListVaultResponse.d.ts +13 -0
- package/v1/model/ListVaultResponse.js +43 -0
- package/v1/model/Match.d.ts +7 -0
- package/v1/model/Match.js +19 -0
- package/v1/model/Member.d.ts +40 -0
- package/v1/model/Member.js +112 -0
- package/v1/model/MigrateVaultResourceRequest.d.ts +10 -0
- package/v1/model/MigrateVaultResourceRequest.js +28 -0
- package/v1/model/MigrateVaultResourceResponse.d.ts +8 -0
- package/v1/model/MigrateVaultResourceResponse.js +41 -0
- package/v1/model/OpErrorInfo.d.ts +7 -0
- package/v1/model/OpErrorInfo.js +17 -0
- package/v1/model/OpExtendInfoBckup.d.ts +41 -0
- package/v1/model/OpExtendInfoBckup.js +102 -0
- package/v1/model/OpExtendInfoCommon.d.ts +13 -0
- package/v1/model/OpExtendInfoCommon.js +43 -0
- package/v1/model/OpExtendInfoDelete.d.ts +11 -0
- package/v1/model/OpExtendInfoDelete.js +39 -0
- package/v1/model/OpExtendInfoRemoveResources.d.ts +14 -0
- package/v1/model/OpExtendInfoRemoveResources.js +41 -0
- package/v1/model/OpExtendInfoReplication.d.ts +43 -0
- package/v1/model/OpExtendInfoReplication.js +154 -0
- package/v1/model/OpExtendInfoRestore.d.ts +19 -0
- package/v1/model/OpExtendInfoRestore.js +65 -0
- package/v1/model/OpExtendInfoSync.d.ts +15 -0
- package/v1/model/OpExtendInfoSync.js +51 -0
- package/v1/model/OpExtendInfoVaultDelete.d.ts +11 -0
- package/v1/model/OpExtendInfoVaultDelete.js +37 -0
- package/v1/model/OpExtraInfo.d.ts +36 -0
- package/v1/model/OpExtraInfo.js +77 -0
- package/v1/model/OperationLog.d.ts +87 -0
- package/v1/model/OperationLog.js +234 -0
- package/v1/model/Policy.d.ts +34 -0
- package/v1/model/Policy.js +82 -0
- package/v1/model/PolicyAssociateVault.d.ts +11 -0
- package/v1/model/PolicyAssociateVault.js +38 -0
- package/v1/model/PolicyCreate.d.ts +27 -0
- package/v1/model/PolicyCreate.js +62 -0
- package/v1/model/PolicyCreateReq.d.ts +6 -0
- package/v1/model/PolicyCreateReq.js +14 -0
- package/v1/model/PolicyTriggerPropertiesReq.d.ts +5 -0
- package/v1/model/PolicyTriggerPropertiesReq.js +14 -0
- package/v1/model/PolicyTriggerPropertiesResp.d.ts +9 -0
- package/v1/model/PolicyTriggerPropertiesResp.js +28 -0
- package/v1/model/PolicyTriggerReq.d.ts +6 -0
- package/v1/model/PolicyTriggerReq.js +14 -0
- package/v1/model/PolicyTriggerResp.d.ts +19 -0
- package/v1/model/PolicyTriggerResp.js +35 -0
- package/v1/model/PolicyUpdate.d.ts +15 -0
- package/v1/model/PolicyUpdate.js +35 -0
- package/v1/model/PolicyUpdateReq.d.ts +6 -0
- package/v1/model/PolicyUpdateReq.js +14 -0
- package/v1/model/PolicyoODCreate.d.ts +41 -0
- package/v1/model/PolicyoODCreate.js +139 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.d.ts +9 -0
- package/v1/model/ProtectableReplicationCapabilitiesRespRegion.js +29 -0
- package/v1/model/ProtectableResult.d.ts +14 -0
- package/v1/model/ProtectableResult.js +30 -0
- package/v1/model/ProtectablesResp.d.ts +29 -0
- package/v1/model/ProtectablesResp.js +56 -0
- package/v1/model/RemoveVaultResourceRequest.d.ts +10 -0
- package/v1/model/RemoveVaultResourceRequest.js +28 -0
- package/v1/model/RemoveVaultResourceResponse.d.ts +8 -0
- package/v1/model/RemoveVaultResourceResponse.js +41 -0
- package/v1/model/ReplicationRecordGet.d.ts +67 -0
- package/v1/model/ReplicationRecordGet.js +198 -0
- package/v1/model/ReplicationRecordsExtraInfo.d.ts +21 -0
- package/v1/model/ReplicationRecordsExtraInfo.js +69 -0
- package/v1/model/Resource.d.ts +14 -0
- package/v1/model/Resource.js +37 -0
- package/v1/model/ResourceCreate.d.ts +14 -0
- package/v1/model/ResourceCreate.js +37 -0
- package/v1/model/ResourceExtraInfo.d.ts +12 -0
- package/v1/model/ResourceExtraInfo.js +37 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.d.ts +9 -0
- package/v1/model/ResourceExtraInfoIncludeVolumes.js +28 -0
- package/v1/model/ResourceResp.d.ts +43 -0
- package/v1/model/ResourceResp.js +110 -0
- package/v1/model/RestoreBackupRequest.d.ts +10 -0
- package/v1/model/RestoreBackupRequest.js +28 -0
- package/v1/model/RestoreBackupResponse.d.ts +4 -0
- package/v1/model/RestoreBackupResponse.js +27 -0
- package/v1/model/ShowBackupRequest.d.ts +7 -0
- package/v1/model/ShowBackupRequest.js +24 -0
- package/v1/model/ShowBackupResponse.d.ts +7 -0
- package/v1/model/ShowBackupResponse.js +31 -0
- package/v1/model/ShowCheckpointRequest.d.ts +7 -0
- package/v1/model/ShowCheckpointRequest.js +24 -0
- package/v1/model/ShowCheckpointResponse.d.ts +7 -0
- package/v1/model/ShowCheckpointResponse.js +31 -0
- package/v1/model/ShowMemberDetailRequest.d.ts +11 -0
- package/v1/model/ShowMemberDetailRequest.js +39 -0
- package/v1/model/ShowMemberDetailResponse.d.ts +7 -0
- package/v1/model/ShowMemberDetailResponse.js +31 -0
- package/v1/model/ShowMembersDetailRequest.d.ts +29 -0
- package/v1/model/ShowMembersDetailRequest.js +86 -0
- package/v1/model/ShowMembersDetailResponse.d.ts +9 -0
- package/v1/model/ShowMembersDetailResponse.js +35 -0
- package/v1/model/ShowOpLogRequest.d.ts +7 -0
- package/v1/model/ShowOpLogRequest.js +24 -0
- package/v1/model/ShowOpLogResponse.d.ts +9 -0
- package/v1/model/ShowOpLogResponse.js +41 -0
- package/v1/model/ShowPolicyRequest.d.ts +7 -0
- package/v1/model/ShowPolicyRequest.js +24 -0
- package/v1/model/ShowPolicyResponse.d.ts +7 -0
- package/v1/model/ShowPolicyResponse.js +31 -0
- package/v1/model/ShowProtectableRequest.d.ts +19 -0
- package/v1/model/ShowProtectableRequest.js +48 -0
- package/v1/model/ShowProtectableResponse.d.ts +7 -0
- package/v1/model/ShowProtectableResponse.js +31 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.d.ts +3 -0
- package/v1/model/ShowReplicationCapabilitiesRequest.js +9 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.d.ts +7 -0
- package/v1/model/ShowReplicationCapabilitiesResponse.js +31 -0
- package/v1/model/ShowVaultProjectTagRequest.d.ts +3 -0
- package/v1/model/ShowVaultProjectTagRequest.js +9 -0
- package/v1/model/ShowVaultProjectTagResponse.d.ts +7 -0
- package/v1/model/ShowVaultProjectTagResponse.js +31 -0
- package/v1/model/ShowVaultRequest.d.ts +7 -0
- package/v1/model/ShowVaultRequest.js +24 -0
- package/v1/model/ShowVaultResourceInstancesRequest.d.ts +6 -0
- package/v1/model/ShowVaultResourceInstancesRequest.js +13 -0
- package/v1/model/ShowVaultResourceInstancesResponse.d.ts +11 -0
- package/v1/model/ShowVaultResourceInstancesResponse.js +45 -0
- package/v1/model/ShowVaultResponse.d.ts +7 -0
- package/v1/model/ShowVaultResponse.js +31 -0
- package/v1/model/ShowVaultTagRequest.d.ts +7 -0
- package/v1/model/ShowVaultTagRequest.js +24 -0
- package/v1/model/ShowVaultTagResponse.d.ts +12 -0
- package/v1/model/ShowVaultTagResponse.js +45 -0
- package/v1/model/SysTag.d.ts +7 -0
- package/v1/model/SysTag.js +19 -0
- package/v1/model/SysTags.d.ts +7 -0
- package/v1/model/SysTags.js +19 -0
- package/v1/model/Tag.d.ts +7 -0
- package/v1/model/Tag.js +18 -0
- package/v1/model/TagResource.d.ts +24 -0
- package/v1/model/TagResource.js +74 -0
- package/v1/model/TagsReq.d.ts +7 -0
- package/v1/model/TagsReq.js +19 -0
- package/v1/model/TagsResp.d.ts +7 -0
- package/v1/model/TagsResp.js +17 -0
- package/v1/model/UpdateMember.d.ts +18 -0
- package/v1/model/UpdateMember.js +38 -0
- package/v1/model/UpdateMemberStatusRequest.d.ts +14 -0
- package/v1/model/UpdateMemberStatusRequest.js +43 -0
- package/v1/model/UpdateMemberStatusResponse.d.ts +7 -0
- package/v1/model/UpdateMemberStatusResponse.js +31 -0
- package/v1/model/UpdatePolicyRequest.d.ts +10 -0
- package/v1/model/UpdatePolicyRequest.js +28 -0
- package/v1/model/UpdatePolicyResponse.d.ts +7 -0
- package/v1/model/UpdatePolicyResponse.js +31 -0
- package/v1/model/UpdateVaultRequest.d.ts +10 -0
- package/v1/model/UpdateVaultRequest.js +28 -0
- package/v1/model/UpdateVaultResponse.d.ts +7 -0
- package/v1/model/UpdateVaultResponse.js +31 -0
- package/v1/model/Vault.d.ts +57 -0
- package/v1/model/Vault.js +169 -0
- package/v1/model/VaultAddResourceReq.d.ts +6 -0
- package/v1/model/VaultAddResourceReq.js +14 -0
- package/v1/model/VaultAssociate.d.ts +15 -0
- package/v1/model/VaultAssociate.js +51 -0
- package/v1/model/VaultBackup.d.ts +10 -0
- package/v1/model/VaultBackup.js +28 -0
- package/v1/model/VaultBackupReq.d.ts +6 -0
- package/v1/model/VaultBackupReq.js +14 -0
- package/v1/model/VaultBindRules.d.ts +6 -0
- package/v1/model/VaultBindRules.js +13 -0
- package/v1/model/VaultCreate.d.ts +37 -0
- package/v1/model/VaultCreate.js +102 -0
- package/v1/model/VaultCreateReq.d.ts +6 -0
- package/v1/model/VaultCreateReq.js +14 -0
- package/v1/model/VaultCreateResource.d.ts +64 -0
- package/v1/model/VaultCreateResource.js +181 -0
- package/v1/model/VaultDissociate.d.ts +7 -0
- package/v1/model/VaultDissociate.js +24 -0
- package/v1/model/VaultGet.d.ts +63 -0
- package/v1/model/VaultGet.js +188 -0
- package/v1/model/VaultMigrateResourceReq.d.ts +11 -0
- package/v1/model/VaultMigrateResourceReq.js +39 -0
- package/v1/model/VaultPolicyResp.d.ts +15 -0
- package/v1/model/VaultPolicyResp.js +53 -0
- package/v1/model/VaultRemoveResourceReq.d.ts +7 -0
- package/v1/model/VaultRemoveResourceReq.js +24 -0
- package/v1/model/VaultResourceInstancesReq.d.ts +60 -0
- package/v1/model/VaultResourceInstancesReq.js +146 -0
- package/v1/model/VaultTagsCreateReq.d.ts +6 -0
- package/v1/model/VaultTagsCreateReq.js +13 -0
- package/v1/model/VaultUpdate.d.ts +27 -0
- package/v1/model/VaultUpdate.js +77 -0
- package/v1/model/VaultUpdateReq.d.ts +6 -0
- package/v1/model/VaultUpdateReq.js +14 -0
- package/v1/public-api.d.ts +171 -0
- package/v1/public-api.js +187 -0
@@ -0,0 +1,198 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ReplicationRecordGetStatusEnum = exports.ReplicationRecordGet = void 0;
|
4
|
+
var ReplicationRecordGet = /** @class */ (function () {
|
5
|
+
function ReplicationRecordGet(id) {
|
6
|
+
this['id'] = id;
|
7
|
+
}
|
8
|
+
ReplicationRecordGet.prototype.withCreatedAt = function (createdAt) {
|
9
|
+
this['created_at'] = createdAt;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "createdAt", {
|
13
|
+
get: function () {
|
14
|
+
return this['created_at'];
|
15
|
+
},
|
16
|
+
set: function (createdAt) {
|
17
|
+
this['created_at'] = createdAt;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
ReplicationRecordGet.prototype.withDestinationBackupId = function (destinationBackupId) {
|
23
|
+
this['destination_backup_id'] = destinationBackupId;
|
24
|
+
return this;
|
25
|
+
};
|
26
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "destinationBackupId", {
|
27
|
+
get: function () {
|
28
|
+
return this['destination_backup_id'];
|
29
|
+
},
|
30
|
+
set: function (destinationBackupId) {
|
31
|
+
this['destination_backup_id'] = destinationBackupId;
|
32
|
+
},
|
33
|
+
enumerable: false,
|
34
|
+
configurable: true
|
35
|
+
});
|
36
|
+
ReplicationRecordGet.prototype.withDestinationCheckpointId = function (destinationCheckpointId) {
|
37
|
+
this['destination_checkpoint_id'] = destinationCheckpointId;
|
38
|
+
return this;
|
39
|
+
};
|
40
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "destinationCheckpointId", {
|
41
|
+
get: function () {
|
42
|
+
return this['destination_checkpoint_id'];
|
43
|
+
},
|
44
|
+
set: function (destinationCheckpointId) {
|
45
|
+
this['destination_checkpoint_id'] = destinationCheckpointId;
|
46
|
+
},
|
47
|
+
enumerable: false,
|
48
|
+
configurable: true
|
49
|
+
});
|
50
|
+
ReplicationRecordGet.prototype.withDestinationProjectId = function (destinationProjectId) {
|
51
|
+
this['destination_project_id'] = destinationProjectId;
|
52
|
+
return this;
|
53
|
+
};
|
54
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "destinationProjectId", {
|
55
|
+
get: function () {
|
56
|
+
return this['destination_project_id'];
|
57
|
+
},
|
58
|
+
set: function (destinationProjectId) {
|
59
|
+
this['destination_project_id'] = destinationProjectId;
|
60
|
+
},
|
61
|
+
enumerable: false,
|
62
|
+
configurable: true
|
63
|
+
});
|
64
|
+
ReplicationRecordGet.prototype.withDestinationRegion = function (destinationRegion) {
|
65
|
+
this['destination_region'] = destinationRegion;
|
66
|
+
return this;
|
67
|
+
};
|
68
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "destinationRegion", {
|
69
|
+
get: function () {
|
70
|
+
return this['destination_region'];
|
71
|
+
},
|
72
|
+
set: function (destinationRegion) {
|
73
|
+
this['destination_region'] = destinationRegion;
|
74
|
+
},
|
75
|
+
enumerable: false,
|
76
|
+
configurable: true
|
77
|
+
});
|
78
|
+
ReplicationRecordGet.prototype.withDestinationVaultId = function (destinationVaultId) {
|
79
|
+
this['destination_vault_id'] = destinationVaultId;
|
80
|
+
return this;
|
81
|
+
};
|
82
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "destinationVaultId", {
|
83
|
+
get: function () {
|
84
|
+
return this['destination_vault_id'];
|
85
|
+
},
|
86
|
+
set: function (destinationVaultId) {
|
87
|
+
this['destination_vault_id'] = destinationVaultId;
|
88
|
+
},
|
89
|
+
enumerable: false,
|
90
|
+
configurable: true
|
91
|
+
});
|
92
|
+
ReplicationRecordGet.prototype.withExtraInfo = function (extraInfo) {
|
93
|
+
this['extra_info'] = extraInfo;
|
94
|
+
return this;
|
95
|
+
};
|
96
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "extraInfo", {
|
97
|
+
get: function () {
|
98
|
+
return this['extra_info'];
|
99
|
+
},
|
100
|
+
set: function (extraInfo) {
|
101
|
+
this['extra_info'] = extraInfo;
|
102
|
+
},
|
103
|
+
enumerable: false,
|
104
|
+
configurable: true
|
105
|
+
});
|
106
|
+
ReplicationRecordGet.prototype.withId = function (id) {
|
107
|
+
this['id'] = id;
|
108
|
+
return this;
|
109
|
+
};
|
110
|
+
ReplicationRecordGet.prototype.withSourceBackupId = function (sourceBackupId) {
|
111
|
+
this['source_backup_id'] = sourceBackupId;
|
112
|
+
return this;
|
113
|
+
};
|
114
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "sourceBackupId", {
|
115
|
+
get: function () {
|
116
|
+
return this['source_backup_id'];
|
117
|
+
},
|
118
|
+
set: function (sourceBackupId) {
|
119
|
+
this['source_backup_id'] = sourceBackupId;
|
120
|
+
},
|
121
|
+
enumerable: false,
|
122
|
+
configurable: true
|
123
|
+
});
|
124
|
+
ReplicationRecordGet.prototype.withSourceCheckpointId = function (sourceCheckpointId) {
|
125
|
+
this['source_checkpoint_id'] = sourceCheckpointId;
|
126
|
+
return this;
|
127
|
+
};
|
128
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "sourceCheckpointId", {
|
129
|
+
get: function () {
|
130
|
+
return this['source_checkpoint_id'];
|
131
|
+
},
|
132
|
+
set: function (sourceCheckpointId) {
|
133
|
+
this['source_checkpoint_id'] = sourceCheckpointId;
|
134
|
+
},
|
135
|
+
enumerable: false,
|
136
|
+
configurable: true
|
137
|
+
});
|
138
|
+
ReplicationRecordGet.prototype.withSourceProjectId = function (sourceProjectId) {
|
139
|
+
this['source_project_id'] = sourceProjectId;
|
140
|
+
return this;
|
141
|
+
};
|
142
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "sourceProjectId", {
|
143
|
+
get: function () {
|
144
|
+
return this['source_project_id'];
|
145
|
+
},
|
146
|
+
set: function (sourceProjectId) {
|
147
|
+
this['source_project_id'] = sourceProjectId;
|
148
|
+
},
|
149
|
+
enumerable: false,
|
150
|
+
configurable: true
|
151
|
+
});
|
152
|
+
ReplicationRecordGet.prototype.withSourceRegion = function (sourceRegion) {
|
153
|
+
this['source_region'] = sourceRegion;
|
154
|
+
return this;
|
155
|
+
};
|
156
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "sourceRegion", {
|
157
|
+
get: function () {
|
158
|
+
return this['source_region'];
|
159
|
+
},
|
160
|
+
set: function (sourceRegion) {
|
161
|
+
this['source_region'] = sourceRegion;
|
162
|
+
},
|
163
|
+
enumerable: false,
|
164
|
+
configurable: true
|
165
|
+
});
|
166
|
+
ReplicationRecordGet.prototype.withStatus = function (status) {
|
167
|
+
this['status'] = status;
|
168
|
+
return this;
|
169
|
+
};
|
170
|
+
ReplicationRecordGet.prototype.withVaultId = function (vaultId) {
|
171
|
+
this['vault_id'] = vaultId;
|
172
|
+
return this;
|
173
|
+
};
|
174
|
+
Object.defineProperty(ReplicationRecordGet.prototype, "vaultId", {
|
175
|
+
get: function () {
|
176
|
+
return this['vault_id'];
|
177
|
+
},
|
178
|
+
set: function (vaultId) {
|
179
|
+
this['vault_id'] = vaultId;
|
180
|
+
},
|
181
|
+
enumerable: false,
|
182
|
+
configurable: true
|
183
|
+
});
|
184
|
+
return ReplicationRecordGet;
|
185
|
+
}());
|
186
|
+
exports.ReplicationRecordGet = ReplicationRecordGet;
|
187
|
+
/**
|
188
|
+
* @export
|
189
|
+
* @enum {string}
|
190
|
+
*/
|
191
|
+
var ReplicationRecordGetStatusEnum;
|
192
|
+
(function (ReplicationRecordGetStatusEnum) {
|
193
|
+
ReplicationRecordGetStatusEnum["REPLICATING"] = "replicating";
|
194
|
+
ReplicationRecordGetStatusEnum["SUCCESS"] = "success";
|
195
|
+
ReplicationRecordGetStatusEnum["FAIL"] = "fail";
|
196
|
+
ReplicationRecordGetStatusEnum["SKIP"] = "skip";
|
197
|
+
ReplicationRecordGetStatusEnum["WAITING_REPLICATE"] = "waiting_replicate";
|
198
|
+
})(ReplicationRecordGetStatusEnum = exports.ReplicationRecordGetStatusEnum || (exports.ReplicationRecordGetStatusEnum = {}));
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare class ReplicationRecordsExtraInfo {
|
2
|
+
progress?: number;
|
3
|
+
private 'fail_code'?;
|
4
|
+
private 'fail_reason'?;
|
5
|
+
private 'auto_trigger'?;
|
6
|
+
private 'destinatio_vault_id'?;
|
7
|
+
constructor();
|
8
|
+
withProgress(progress: number): ReplicationRecordsExtraInfo;
|
9
|
+
withFailCode(failCode: string): ReplicationRecordsExtraInfo;
|
10
|
+
set failCode(failCode: string | undefined);
|
11
|
+
get failCode(): string | undefined;
|
12
|
+
withFailReason(failReason: string): ReplicationRecordsExtraInfo;
|
13
|
+
set failReason(failReason: string | undefined);
|
14
|
+
get failReason(): string | undefined;
|
15
|
+
withAutoTrigger(autoTrigger: boolean): ReplicationRecordsExtraInfo;
|
16
|
+
set autoTrigger(autoTrigger: boolean | undefined);
|
17
|
+
get autoTrigger(): boolean | undefined;
|
18
|
+
withDestinatioVaultId(destinatioVaultId: string): ReplicationRecordsExtraInfo;
|
19
|
+
set destinatioVaultId(destinatioVaultId: string | undefined);
|
20
|
+
get destinatioVaultId(): string | undefined;
|
21
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ReplicationRecordsExtraInfo = void 0;
|
4
|
+
var ReplicationRecordsExtraInfo = /** @class */ (function () {
|
5
|
+
function ReplicationRecordsExtraInfo() {
|
6
|
+
}
|
7
|
+
ReplicationRecordsExtraInfo.prototype.withProgress = function (progress) {
|
8
|
+
this['progress'] = progress;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
ReplicationRecordsExtraInfo.prototype.withFailCode = function (failCode) {
|
12
|
+
this['fail_code'] = failCode;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
Object.defineProperty(ReplicationRecordsExtraInfo.prototype, "failCode", {
|
16
|
+
get: function () {
|
17
|
+
return this['fail_code'];
|
18
|
+
},
|
19
|
+
set: function (failCode) {
|
20
|
+
this['fail_code'] = failCode;
|
21
|
+
},
|
22
|
+
enumerable: false,
|
23
|
+
configurable: true
|
24
|
+
});
|
25
|
+
ReplicationRecordsExtraInfo.prototype.withFailReason = function (failReason) {
|
26
|
+
this['fail_reason'] = failReason;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(ReplicationRecordsExtraInfo.prototype, "failReason", {
|
30
|
+
get: function () {
|
31
|
+
return this['fail_reason'];
|
32
|
+
},
|
33
|
+
set: function (failReason) {
|
34
|
+
this['fail_reason'] = failReason;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
ReplicationRecordsExtraInfo.prototype.withAutoTrigger = function (autoTrigger) {
|
40
|
+
this['auto_trigger'] = autoTrigger;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(ReplicationRecordsExtraInfo.prototype, "autoTrigger", {
|
44
|
+
get: function () {
|
45
|
+
return this['auto_trigger'];
|
46
|
+
},
|
47
|
+
set: function (autoTrigger) {
|
48
|
+
this['auto_trigger'] = autoTrigger;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
ReplicationRecordsExtraInfo.prototype.withDestinatioVaultId = function (destinatioVaultId) {
|
54
|
+
this['destinatio_vault_id'] = destinatioVaultId;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
Object.defineProperty(ReplicationRecordsExtraInfo.prototype, "destinatioVaultId", {
|
58
|
+
get: function () {
|
59
|
+
return this['destinatio_vault_id'];
|
60
|
+
},
|
61
|
+
set: function (destinatioVaultId) {
|
62
|
+
this['destinatio_vault_id'] = destinatioVaultId;
|
63
|
+
},
|
64
|
+
enumerable: false,
|
65
|
+
configurable: true
|
66
|
+
});
|
67
|
+
return ReplicationRecordsExtraInfo;
|
68
|
+
}());
|
69
|
+
exports.ReplicationRecordsExtraInfo = ReplicationRecordsExtraInfo;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ResourceExtraInfo } from './ResourceExtraInfo';
|
2
|
+
export declare class Resource {
|
3
|
+
private 'extra_info'?;
|
4
|
+
id: string;
|
5
|
+
name?: string;
|
6
|
+
type: string;
|
7
|
+
constructor(id?: any, type?: any);
|
8
|
+
withExtraInfo(extraInfo: ResourceExtraInfo): Resource;
|
9
|
+
set extraInfo(extraInfo: ResourceExtraInfo | undefined);
|
10
|
+
get extraInfo(): ResourceExtraInfo | undefined;
|
11
|
+
withId(id: string): Resource;
|
12
|
+
withName(name: string): Resource;
|
13
|
+
withType(type: string): Resource;
|
14
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Resource = void 0;
|
4
|
+
var Resource = /** @class */ (function () {
|
5
|
+
function Resource(id, type) {
|
6
|
+
this['id'] = id;
|
7
|
+
this['type'] = type;
|
8
|
+
}
|
9
|
+
Resource.prototype.withExtraInfo = function (extraInfo) {
|
10
|
+
this['extra_info'] = extraInfo;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
Object.defineProperty(Resource.prototype, "extraInfo", {
|
14
|
+
get: function () {
|
15
|
+
return this['extra_info'];
|
16
|
+
},
|
17
|
+
set: function (extraInfo) {
|
18
|
+
this['extra_info'] = extraInfo;
|
19
|
+
},
|
20
|
+
enumerable: false,
|
21
|
+
configurable: true
|
22
|
+
});
|
23
|
+
Resource.prototype.withId = function (id) {
|
24
|
+
this['id'] = id;
|
25
|
+
return this;
|
26
|
+
};
|
27
|
+
Resource.prototype.withName = function (name) {
|
28
|
+
this['name'] = name;
|
29
|
+
return this;
|
30
|
+
};
|
31
|
+
Resource.prototype.withType = function (type) {
|
32
|
+
this['type'] = type;
|
33
|
+
return this;
|
34
|
+
};
|
35
|
+
return Resource;
|
36
|
+
}());
|
37
|
+
exports.Resource = Resource;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ResourceExtraInfo } from './ResourceExtraInfo';
|
2
|
+
export declare class ResourceCreate {
|
3
|
+
private 'extra_info'?;
|
4
|
+
id: string;
|
5
|
+
type: string;
|
6
|
+
name?: string;
|
7
|
+
constructor(id?: any, type?: any);
|
8
|
+
withExtraInfo(extraInfo: ResourceExtraInfo): ResourceCreate;
|
9
|
+
set extraInfo(extraInfo: ResourceExtraInfo | undefined);
|
10
|
+
get extraInfo(): ResourceExtraInfo | undefined;
|
11
|
+
withId(id: string): ResourceCreate;
|
12
|
+
withType(type: string): ResourceCreate;
|
13
|
+
withName(name: string): ResourceCreate;
|
14
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResourceCreate = void 0;
|
4
|
+
var ResourceCreate = /** @class */ (function () {
|
5
|
+
function ResourceCreate(id, type) {
|
6
|
+
this['id'] = id;
|
7
|
+
this['type'] = type;
|
8
|
+
}
|
9
|
+
ResourceCreate.prototype.withExtraInfo = function (extraInfo) {
|
10
|
+
this['extra_info'] = extraInfo;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
Object.defineProperty(ResourceCreate.prototype, "extraInfo", {
|
14
|
+
get: function () {
|
15
|
+
return this['extra_info'];
|
16
|
+
},
|
17
|
+
set: function (extraInfo) {
|
18
|
+
this['extra_info'] = extraInfo;
|
19
|
+
},
|
20
|
+
enumerable: false,
|
21
|
+
configurable: true
|
22
|
+
});
|
23
|
+
ResourceCreate.prototype.withId = function (id) {
|
24
|
+
this['id'] = id;
|
25
|
+
return this;
|
26
|
+
};
|
27
|
+
ResourceCreate.prototype.withType = function (type) {
|
28
|
+
this['type'] = type;
|
29
|
+
return this;
|
30
|
+
};
|
31
|
+
ResourceCreate.prototype.withName = function (name) {
|
32
|
+
this['name'] = name;
|
33
|
+
return this;
|
34
|
+
};
|
35
|
+
return ResourceCreate;
|
36
|
+
}());
|
37
|
+
exports.ResourceCreate = ResourceCreate;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ResourceExtraInfoIncludeVolumes } from './ResourceExtraInfoIncludeVolumes';
|
2
|
+
export declare class ResourceExtraInfo {
|
3
|
+
private 'exclude_volumes'?;
|
4
|
+
private 'include_volumes'?;
|
5
|
+
constructor();
|
6
|
+
withExcludeVolumes(excludeVolumes: Array<string>): ResourceExtraInfo;
|
7
|
+
set excludeVolumes(excludeVolumes: Array<string> | undefined);
|
8
|
+
get excludeVolumes(): Array<string> | undefined;
|
9
|
+
withIncludeVolumes(includeVolumes: Array<ResourceExtraInfoIncludeVolumes>): ResourceExtraInfo;
|
10
|
+
set includeVolumes(includeVolumes: Array<ResourceExtraInfoIncludeVolumes> | undefined);
|
11
|
+
get includeVolumes(): Array<ResourceExtraInfoIncludeVolumes> | undefined;
|
12
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResourceExtraInfo = void 0;
|
4
|
+
var ResourceExtraInfo = /** @class */ (function () {
|
5
|
+
function ResourceExtraInfo() {
|
6
|
+
}
|
7
|
+
ResourceExtraInfo.prototype.withExcludeVolumes = function (excludeVolumes) {
|
8
|
+
this['exclude_volumes'] = excludeVolumes;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(ResourceExtraInfo.prototype, "excludeVolumes", {
|
12
|
+
get: function () {
|
13
|
+
return this['exclude_volumes'];
|
14
|
+
},
|
15
|
+
set: function (excludeVolumes) {
|
16
|
+
this['exclude_volumes'] = excludeVolumes;
|
17
|
+
},
|
18
|
+
enumerable: false,
|
19
|
+
configurable: true
|
20
|
+
});
|
21
|
+
ResourceExtraInfo.prototype.withIncludeVolumes = function (includeVolumes) {
|
22
|
+
this['include_volumes'] = includeVolumes;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
Object.defineProperty(ResourceExtraInfo.prototype, "includeVolumes", {
|
26
|
+
get: function () {
|
27
|
+
return this['include_volumes'];
|
28
|
+
},
|
29
|
+
set: function (includeVolumes) {
|
30
|
+
this['include_volumes'] = includeVolumes;
|
31
|
+
},
|
32
|
+
enumerable: false,
|
33
|
+
configurable: true
|
34
|
+
});
|
35
|
+
return ResourceExtraInfo;
|
36
|
+
}());
|
37
|
+
exports.ResourceExtraInfo = ResourceExtraInfo;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare class ResourceExtraInfoIncludeVolumes {
|
2
|
+
id: string;
|
3
|
+
private 'os_version'?;
|
4
|
+
constructor(id?: any);
|
5
|
+
withId(id: string): ResourceExtraInfoIncludeVolumes;
|
6
|
+
withOsVersion(osVersion: string): ResourceExtraInfoIncludeVolumes;
|
7
|
+
set osVersion(osVersion: string | undefined);
|
8
|
+
get osVersion(): string | undefined;
|
9
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResourceExtraInfoIncludeVolumes = void 0;
|
4
|
+
var ResourceExtraInfoIncludeVolumes = /** @class */ (function () {
|
5
|
+
function ResourceExtraInfoIncludeVolumes(id) {
|
6
|
+
this['id'] = id;
|
7
|
+
}
|
8
|
+
ResourceExtraInfoIncludeVolumes.prototype.withId = function (id) {
|
9
|
+
this['id'] = id;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
ResourceExtraInfoIncludeVolumes.prototype.withOsVersion = function (osVersion) {
|
13
|
+
this['os_version'] = osVersion;
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
Object.defineProperty(ResourceExtraInfoIncludeVolumes.prototype, "osVersion", {
|
17
|
+
get: function () {
|
18
|
+
return this['os_version'];
|
19
|
+
},
|
20
|
+
set: function (osVersion) {
|
21
|
+
this['os_version'] = osVersion;
|
22
|
+
},
|
23
|
+
enumerable: false,
|
24
|
+
configurable: true
|
25
|
+
});
|
26
|
+
return ResourceExtraInfoIncludeVolumes;
|
27
|
+
}());
|
28
|
+
exports.ResourceExtraInfoIncludeVolumes = ResourceExtraInfoIncludeVolumes;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ResourceExtraInfo } from './ResourceExtraInfo';
|
2
|
+
export declare class ResourceResp {
|
3
|
+
private 'extra_info'?;
|
4
|
+
id: string;
|
5
|
+
name: string;
|
6
|
+
private 'protect_status'?;
|
7
|
+
size?: number;
|
8
|
+
type: string;
|
9
|
+
private 'backup_size'?;
|
10
|
+
private 'backup_count'?;
|
11
|
+
private 'auto_protect'?;
|
12
|
+
constructor(id?: any, name?: any, type?: any);
|
13
|
+
withExtraInfo(extraInfo: ResourceExtraInfo): ResourceResp;
|
14
|
+
set extraInfo(extraInfo: ResourceExtraInfo | undefined);
|
15
|
+
get extraInfo(): ResourceExtraInfo | undefined;
|
16
|
+
withId(id: string): ResourceResp;
|
17
|
+
withName(name: string): ResourceResp;
|
18
|
+
withProtectStatus(protectStatus: ResourceRespProtectStatusEnum): ResourceResp;
|
19
|
+
set protectStatus(protectStatus: ResourceRespProtectStatusEnum | undefined);
|
20
|
+
get protectStatus(): ResourceRespProtectStatusEnum | undefined;
|
21
|
+
withSize(size: number): ResourceResp;
|
22
|
+
withType(type: string): ResourceResp;
|
23
|
+
withBackupSize(backupSize: number): ResourceResp;
|
24
|
+
set backupSize(backupSize: number | undefined);
|
25
|
+
get backupSize(): number | undefined;
|
26
|
+
withBackupCount(backupCount: number): ResourceResp;
|
27
|
+
set backupCount(backupCount: number | undefined);
|
28
|
+
get backupCount(): number | undefined;
|
29
|
+
withAutoProtect(autoProtect: boolean): ResourceResp;
|
30
|
+
set autoProtect(autoProtect: boolean | undefined);
|
31
|
+
get autoProtect(): boolean | undefined;
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* @export
|
35
|
+
* @enum {string}
|
36
|
+
*/
|
37
|
+
export declare enum ResourceRespProtectStatusEnum {
|
38
|
+
AVAILABLE = "available",
|
39
|
+
ERROR = "error",
|
40
|
+
PROTECTING = "protecting",
|
41
|
+
RESTORING = "restoring",
|
42
|
+
REMOVING = "removing"
|
43
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResourceRespProtectStatusEnum = exports.ResourceResp = void 0;
|
4
|
+
var ResourceResp = /** @class */ (function () {
|
5
|
+
function ResourceResp(id, name, type) {
|
6
|
+
this['id'] = id;
|
7
|
+
this['name'] = name;
|
8
|
+
this['type'] = type;
|
9
|
+
}
|
10
|
+
ResourceResp.prototype.withExtraInfo = function (extraInfo) {
|
11
|
+
this['extra_info'] = extraInfo;
|
12
|
+
return this;
|
13
|
+
};
|
14
|
+
Object.defineProperty(ResourceResp.prototype, "extraInfo", {
|
15
|
+
get: function () {
|
16
|
+
return this['extra_info'];
|
17
|
+
},
|
18
|
+
set: function (extraInfo) {
|
19
|
+
this['extra_info'] = extraInfo;
|
20
|
+
},
|
21
|
+
enumerable: false,
|
22
|
+
configurable: true
|
23
|
+
});
|
24
|
+
ResourceResp.prototype.withId = function (id) {
|
25
|
+
this['id'] = id;
|
26
|
+
return this;
|
27
|
+
};
|
28
|
+
ResourceResp.prototype.withName = function (name) {
|
29
|
+
this['name'] = name;
|
30
|
+
return this;
|
31
|
+
};
|
32
|
+
ResourceResp.prototype.withProtectStatus = function (protectStatus) {
|
33
|
+
this['protect_status'] = protectStatus;
|
34
|
+
return this;
|
35
|
+
};
|
36
|
+
Object.defineProperty(ResourceResp.prototype, "protectStatus", {
|
37
|
+
get: function () {
|
38
|
+
return this['protect_status'];
|
39
|
+
},
|
40
|
+
set: function (protectStatus) {
|
41
|
+
this['protect_status'] = protectStatus;
|
42
|
+
},
|
43
|
+
enumerable: false,
|
44
|
+
configurable: true
|
45
|
+
});
|
46
|
+
ResourceResp.prototype.withSize = function (size) {
|
47
|
+
this['size'] = size;
|
48
|
+
return this;
|
49
|
+
};
|
50
|
+
ResourceResp.prototype.withType = function (type) {
|
51
|
+
this['type'] = type;
|
52
|
+
return this;
|
53
|
+
};
|
54
|
+
ResourceResp.prototype.withBackupSize = function (backupSize) {
|
55
|
+
this['backup_size'] = backupSize;
|
56
|
+
return this;
|
57
|
+
};
|
58
|
+
Object.defineProperty(ResourceResp.prototype, "backupSize", {
|
59
|
+
get: function () {
|
60
|
+
return this['backup_size'];
|
61
|
+
},
|
62
|
+
set: function (backupSize) {
|
63
|
+
this['backup_size'] = backupSize;
|
64
|
+
},
|
65
|
+
enumerable: false,
|
66
|
+
configurable: true
|
67
|
+
});
|
68
|
+
ResourceResp.prototype.withBackupCount = function (backupCount) {
|
69
|
+
this['backup_count'] = backupCount;
|
70
|
+
return this;
|
71
|
+
};
|
72
|
+
Object.defineProperty(ResourceResp.prototype, "backupCount", {
|
73
|
+
get: function () {
|
74
|
+
return this['backup_count'];
|
75
|
+
},
|
76
|
+
set: function (backupCount) {
|
77
|
+
this['backup_count'] = backupCount;
|
78
|
+
},
|
79
|
+
enumerable: false,
|
80
|
+
configurable: true
|
81
|
+
});
|
82
|
+
ResourceResp.prototype.withAutoProtect = function (autoProtect) {
|
83
|
+
this['auto_protect'] = autoProtect;
|
84
|
+
return this;
|
85
|
+
};
|
86
|
+
Object.defineProperty(ResourceResp.prototype, "autoProtect", {
|
87
|
+
get: function () {
|
88
|
+
return this['auto_protect'];
|
89
|
+
},
|
90
|
+
set: function (autoProtect) {
|
91
|
+
this['auto_protect'] = autoProtect;
|
92
|
+
},
|
93
|
+
enumerable: false,
|
94
|
+
configurable: true
|
95
|
+
});
|
96
|
+
return ResourceResp;
|
97
|
+
}());
|
98
|
+
exports.ResourceResp = ResourceResp;
|
99
|
+
/**
|
100
|
+
* @export
|
101
|
+
* @enum {string}
|
102
|
+
*/
|
103
|
+
var ResourceRespProtectStatusEnum;
|
104
|
+
(function (ResourceRespProtectStatusEnum) {
|
105
|
+
ResourceRespProtectStatusEnum["AVAILABLE"] = "available";
|
106
|
+
ResourceRespProtectStatusEnum["ERROR"] = "error";
|
107
|
+
ResourceRespProtectStatusEnum["PROTECTING"] = "protecting";
|
108
|
+
ResourceRespProtectStatusEnum["RESTORING"] = "restoring";
|
109
|
+
ResourceRespProtectStatusEnum["REMOVING"] = "removing";
|
110
|
+
})(ResourceRespProtectStatusEnum = exports.ResourceRespProtectStatusEnum || (exports.ResourceRespProtectStatusEnum = {}));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { BackupRestoreReq } from './BackupRestoreReq';
|
2
|
+
export declare class RestoreBackupRequest {
|
3
|
+
private 'backup_id';
|
4
|
+
body?: BackupRestoreReq;
|
5
|
+
constructor(backupId?: any);
|
6
|
+
withBackupId(backupId: string): RestoreBackupRequest;
|
7
|
+
set backupId(backupId: string | undefined);
|
8
|
+
get backupId(): string | undefined;
|
9
|
+
withBody(body: BackupRestoreReq): RestoreBackupRequest;
|
10
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RestoreBackupRequest = void 0;
|
4
|
+
var RestoreBackupRequest = /** @class */ (function () {
|
5
|
+
function RestoreBackupRequest(backupId) {
|
6
|
+
this['backup_id'] = backupId;
|
7
|
+
}
|
8
|
+
RestoreBackupRequest.prototype.withBackupId = function (backupId) {
|
9
|
+
this['backup_id'] = backupId;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(RestoreBackupRequest.prototype, "backupId", {
|
13
|
+
get: function () {
|
14
|
+
return this['backup_id'];
|
15
|
+
},
|
16
|
+
set: function (backupId) {
|
17
|
+
this['backup_id'] = backupId;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
RestoreBackupRequest.prototype.withBody = function (body) {
|
23
|
+
this['body'] = body;
|
24
|
+
return this;
|
25
|
+
};
|
26
|
+
return RestoreBackupRequest;
|
27
|
+
}());
|
28
|
+
exports.RestoreBackupRequest = RestoreBackupRequest;
|