@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,87 @@
|
|
1
|
+
import { OpErrorInfo } from './OpErrorInfo';
|
2
|
+
import { OpExtraInfo } from './OpExtraInfo';
|
3
|
+
export declare class OperationLog {
|
4
|
+
private 'checkpoint_id'?;
|
5
|
+
private 'created_at';
|
6
|
+
private 'ended_at'?;
|
7
|
+
private 'error_info';
|
8
|
+
private 'extra_info'?;
|
9
|
+
id: string;
|
10
|
+
private 'operation_type'?;
|
11
|
+
private 'policy_id'?;
|
12
|
+
private 'project_id';
|
13
|
+
private 'provider_id'?;
|
14
|
+
private 'started_at';
|
15
|
+
status: OperationLogStatusEnum;
|
16
|
+
private 'updated_at';
|
17
|
+
private 'vault_id'?;
|
18
|
+
private 'vault_name'?;
|
19
|
+
constructor(createdAt?: any, errorInfo?: any, id?: any, projectId?: any, startedAt?: any, status?: any, updatedAt?: any);
|
20
|
+
withCheckpointId(checkpointId: string): OperationLog;
|
21
|
+
set checkpointId(checkpointId: string | undefined);
|
22
|
+
get checkpointId(): string | undefined;
|
23
|
+
withCreatedAt(createdAt: string): OperationLog;
|
24
|
+
set createdAt(createdAt: string | undefined);
|
25
|
+
get createdAt(): string | undefined;
|
26
|
+
withEndedAt(endedAt: string): OperationLog;
|
27
|
+
set endedAt(endedAt: string | undefined);
|
28
|
+
get endedAt(): string | undefined;
|
29
|
+
withErrorInfo(errorInfo: OpErrorInfo): OperationLog;
|
30
|
+
set errorInfo(errorInfo: OpErrorInfo | undefined);
|
31
|
+
get errorInfo(): OpErrorInfo | undefined;
|
32
|
+
withExtraInfo(extraInfo: OpExtraInfo): OperationLog;
|
33
|
+
set extraInfo(extraInfo: OpExtraInfo | undefined);
|
34
|
+
get extraInfo(): OpExtraInfo | undefined;
|
35
|
+
withId(id: string): OperationLog;
|
36
|
+
withOperationType(operationType: OperationLogOperationTypeEnum): OperationLog;
|
37
|
+
set operationType(operationType: OperationLogOperationTypeEnum | undefined);
|
38
|
+
get operationType(): OperationLogOperationTypeEnum | undefined;
|
39
|
+
withPolicyId(policyId: string): OperationLog;
|
40
|
+
set policyId(policyId: string | undefined);
|
41
|
+
get policyId(): string | undefined;
|
42
|
+
withProjectId(projectId: string): OperationLog;
|
43
|
+
set projectId(projectId: string | undefined);
|
44
|
+
get projectId(): string | undefined;
|
45
|
+
withProviderId(providerId: string): OperationLog;
|
46
|
+
set providerId(providerId: string | undefined);
|
47
|
+
get providerId(): string | undefined;
|
48
|
+
withStartedAt(startedAt: string): OperationLog;
|
49
|
+
set startedAt(startedAt: string | undefined);
|
50
|
+
get startedAt(): string | undefined;
|
51
|
+
withStatus(status: OperationLogStatusEnum): OperationLog;
|
52
|
+
withUpdatedAt(updatedAt: string): OperationLog;
|
53
|
+
set updatedAt(updatedAt: string | undefined);
|
54
|
+
get updatedAt(): string | undefined;
|
55
|
+
withVaultId(vaultId: string): OperationLog;
|
56
|
+
set vaultId(vaultId: string | undefined);
|
57
|
+
get vaultId(): string | undefined;
|
58
|
+
withVaultName(vaultName: string): OperationLog;
|
59
|
+
set vaultName(vaultName: string | undefined);
|
60
|
+
get vaultName(): string | undefined;
|
61
|
+
}
|
62
|
+
/**
|
63
|
+
* @export
|
64
|
+
* @enum {string}
|
65
|
+
*/
|
66
|
+
export declare enum OperationLogOperationTypeEnum {
|
67
|
+
BACKUP = "backup",
|
68
|
+
COPY = "copy",
|
69
|
+
REPLICATION = "replication",
|
70
|
+
RESTORE = "restore",
|
71
|
+
DELETE = "delete",
|
72
|
+
SYNC = "sync",
|
73
|
+
VAULT_DELETE = "vault_delete",
|
74
|
+
REMOVE_RESOURCE = "remove_resource"
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* @export
|
78
|
+
* @enum {string}
|
79
|
+
*/
|
80
|
+
export declare enum OperationLogStatusEnum {
|
81
|
+
SUCCESS = "success",
|
82
|
+
SKIPPED = "skipped",
|
83
|
+
FAILED = "failed",
|
84
|
+
RUNNING = "running",
|
85
|
+
TIMEOUT = "timeout",
|
86
|
+
WAITING = "waiting"
|
87
|
+
}
|
@@ -0,0 +1,234 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.OperationLogStatusEnum = exports.OperationLogOperationTypeEnum = exports.OperationLog = void 0;
|
4
|
+
var OperationLog = /** @class */ (function () {
|
5
|
+
function OperationLog(createdAt, errorInfo, id, projectId, startedAt, status, updatedAt) {
|
6
|
+
this['created_at'] = createdAt;
|
7
|
+
this['error_info'] = errorInfo;
|
8
|
+
this['id'] = id;
|
9
|
+
this['project_id'] = projectId;
|
10
|
+
this['started_at'] = startedAt;
|
11
|
+
this['status'] = status;
|
12
|
+
this['updated_at'] = updatedAt;
|
13
|
+
}
|
14
|
+
OperationLog.prototype.withCheckpointId = function (checkpointId) {
|
15
|
+
this['checkpoint_id'] = checkpointId;
|
16
|
+
return this;
|
17
|
+
};
|
18
|
+
Object.defineProperty(OperationLog.prototype, "checkpointId", {
|
19
|
+
get: function () {
|
20
|
+
return this['checkpoint_id'];
|
21
|
+
},
|
22
|
+
set: function (checkpointId) {
|
23
|
+
this['checkpoint_id'] = checkpointId;
|
24
|
+
},
|
25
|
+
enumerable: false,
|
26
|
+
configurable: true
|
27
|
+
});
|
28
|
+
OperationLog.prototype.withCreatedAt = function (createdAt) {
|
29
|
+
this['created_at'] = createdAt;
|
30
|
+
return this;
|
31
|
+
};
|
32
|
+
Object.defineProperty(OperationLog.prototype, "createdAt", {
|
33
|
+
get: function () {
|
34
|
+
return this['created_at'];
|
35
|
+
},
|
36
|
+
set: function (createdAt) {
|
37
|
+
this['created_at'] = createdAt;
|
38
|
+
},
|
39
|
+
enumerable: false,
|
40
|
+
configurable: true
|
41
|
+
});
|
42
|
+
OperationLog.prototype.withEndedAt = function (endedAt) {
|
43
|
+
this['ended_at'] = endedAt;
|
44
|
+
return this;
|
45
|
+
};
|
46
|
+
Object.defineProperty(OperationLog.prototype, "endedAt", {
|
47
|
+
get: function () {
|
48
|
+
return this['ended_at'];
|
49
|
+
},
|
50
|
+
set: function (endedAt) {
|
51
|
+
this['ended_at'] = endedAt;
|
52
|
+
},
|
53
|
+
enumerable: false,
|
54
|
+
configurable: true
|
55
|
+
});
|
56
|
+
OperationLog.prototype.withErrorInfo = function (errorInfo) {
|
57
|
+
this['error_info'] = errorInfo;
|
58
|
+
return this;
|
59
|
+
};
|
60
|
+
Object.defineProperty(OperationLog.prototype, "errorInfo", {
|
61
|
+
get: function () {
|
62
|
+
return this['error_info'];
|
63
|
+
},
|
64
|
+
set: function (errorInfo) {
|
65
|
+
this['error_info'] = errorInfo;
|
66
|
+
},
|
67
|
+
enumerable: false,
|
68
|
+
configurable: true
|
69
|
+
});
|
70
|
+
OperationLog.prototype.withExtraInfo = function (extraInfo) {
|
71
|
+
this['extra_info'] = extraInfo;
|
72
|
+
return this;
|
73
|
+
};
|
74
|
+
Object.defineProperty(OperationLog.prototype, "extraInfo", {
|
75
|
+
get: function () {
|
76
|
+
return this['extra_info'];
|
77
|
+
},
|
78
|
+
set: function (extraInfo) {
|
79
|
+
this['extra_info'] = extraInfo;
|
80
|
+
},
|
81
|
+
enumerable: false,
|
82
|
+
configurable: true
|
83
|
+
});
|
84
|
+
OperationLog.prototype.withId = function (id) {
|
85
|
+
this['id'] = id;
|
86
|
+
return this;
|
87
|
+
};
|
88
|
+
OperationLog.prototype.withOperationType = function (operationType) {
|
89
|
+
this['operation_type'] = operationType;
|
90
|
+
return this;
|
91
|
+
};
|
92
|
+
Object.defineProperty(OperationLog.prototype, "operationType", {
|
93
|
+
get: function () {
|
94
|
+
return this['operation_type'];
|
95
|
+
},
|
96
|
+
set: function (operationType) {
|
97
|
+
this['operation_type'] = operationType;
|
98
|
+
},
|
99
|
+
enumerable: false,
|
100
|
+
configurable: true
|
101
|
+
});
|
102
|
+
OperationLog.prototype.withPolicyId = function (policyId) {
|
103
|
+
this['policy_id'] = policyId;
|
104
|
+
return this;
|
105
|
+
};
|
106
|
+
Object.defineProperty(OperationLog.prototype, "policyId", {
|
107
|
+
get: function () {
|
108
|
+
return this['policy_id'];
|
109
|
+
},
|
110
|
+
set: function (policyId) {
|
111
|
+
this['policy_id'] = policyId;
|
112
|
+
},
|
113
|
+
enumerable: false,
|
114
|
+
configurable: true
|
115
|
+
});
|
116
|
+
OperationLog.prototype.withProjectId = function (projectId) {
|
117
|
+
this['project_id'] = projectId;
|
118
|
+
return this;
|
119
|
+
};
|
120
|
+
Object.defineProperty(OperationLog.prototype, "projectId", {
|
121
|
+
get: function () {
|
122
|
+
return this['project_id'];
|
123
|
+
},
|
124
|
+
set: function (projectId) {
|
125
|
+
this['project_id'] = projectId;
|
126
|
+
},
|
127
|
+
enumerable: false,
|
128
|
+
configurable: true
|
129
|
+
});
|
130
|
+
OperationLog.prototype.withProviderId = function (providerId) {
|
131
|
+
this['provider_id'] = providerId;
|
132
|
+
return this;
|
133
|
+
};
|
134
|
+
Object.defineProperty(OperationLog.prototype, "providerId", {
|
135
|
+
get: function () {
|
136
|
+
return this['provider_id'];
|
137
|
+
},
|
138
|
+
set: function (providerId) {
|
139
|
+
this['provider_id'] = providerId;
|
140
|
+
},
|
141
|
+
enumerable: false,
|
142
|
+
configurable: true
|
143
|
+
});
|
144
|
+
OperationLog.prototype.withStartedAt = function (startedAt) {
|
145
|
+
this['started_at'] = startedAt;
|
146
|
+
return this;
|
147
|
+
};
|
148
|
+
Object.defineProperty(OperationLog.prototype, "startedAt", {
|
149
|
+
get: function () {
|
150
|
+
return this['started_at'];
|
151
|
+
},
|
152
|
+
set: function (startedAt) {
|
153
|
+
this['started_at'] = startedAt;
|
154
|
+
},
|
155
|
+
enumerable: false,
|
156
|
+
configurable: true
|
157
|
+
});
|
158
|
+
OperationLog.prototype.withStatus = function (status) {
|
159
|
+
this['status'] = status;
|
160
|
+
return this;
|
161
|
+
};
|
162
|
+
OperationLog.prototype.withUpdatedAt = function (updatedAt) {
|
163
|
+
this['updated_at'] = updatedAt;
|
164
|
+
return this;
|
165
|
+
};
|
166
|
+
Object.defineProperty(OperationLog.prototype, "updatedAt", {
|
167
|
+
get: function () {
|
168
|
+
return this['updated_at'];
|
169
|
+
},
|
170
|
+
set: function (updatedAt) {
|
171
|
+
this['updated_at'] = updatedAt;
|
172
|
+
},
|
173
|
+
enumerable: false,
|
174
|
+
configurable: true
|
175
|
+
});
|
176
|
+
OperationLog.prototype.withVaultId = function (vaultId) {
|
177
|
+
this['vault_id'] = vaultId;
|
178
|
+
return this;
|
179
|
+
};
|
180
|
+
Object.defineProperty(OperationLog.prototype, "vaultId", {
|
181
|
+
get: function () {
|
182
|
+
return this['vault_id'];
|
183
|
+
},
|
184
|
+
set: function (vaultId) {
|
185
|
+
this['vault_id'] = vaultId;
|
186
|
+
},
|
187
|
+
enumerable: false,
|
188
|
+
configurable: true
|
189
|
+
});
|
190
|
+
OperationLog.prototype.withVaultName = function (vaultName) {
|
191
|
+
this['vault_name'] = vaultName;
|
192
|
+
return this;
|
193
|
+
};
|
194
|
+
Object.defineProperty(OperationLog.prototype, "vaultName", {
|
195
|
+
get: function () {
|
196
|
+
return this['vault_name'];
|
197
|
+
},
|
198
|
+
set: function (vaultName) {
|
199
|
+
this['vault_name'] = vaultName;
|
200
|
+
},
|
201
|
+
enumerable: false,
|
202
|
+
configurable: true
|
203
|
+
});
|
204
|
+
return OperationLog;
|
205
|
+
}());
|
206
|
+
exports.OperationLog = OperationLog;
|
207
|
+
/**
|
208
|
+
* @export
|
209
|
+
* @enum {string}
|
210
|
+
*/
|
211
|
+
var OperationLogOperationTypeEnum;
|
212
|
+
(function (OperationLogOperationTypeEnum) {
|
213
|
+
OperationLogOperationTypeEnum["BACKUP"] = "backup";
|
214
|
+
OperationLogOperationTypeEnum["COPY"] = "copy";
|
215
|
+
OperationLogOperationTypeEnum["REPLICATION"] = "replication";
|
216
|
+
OperationLogOperationTypeEnum["RESTORE"] = "restore";
|
217
|
+
OperationLogOperationTypeEnum["DELETE"] = "delete";
|
218
|
+
OperationLogOperationTypeEnum["SYNC"] = "sync";
|
219
|
+
OperationLogOperationTypeEnum["VAULT_DELETE"] = "vault_delete";
|
220
|
+
OperationLogOperationTypeEnum["REMOVE_RESOURCE"] = "remove_resource";
|
221
|
+
})(OperationLogOperationTypeEnum = exports.OperationLogOperationTypeEnum || (exports.OperationLogOperationTypeEnum = {}));
|
222
|
+
/**
|
223
|
+
* @export
|
224
|
+
* @enum {string}
|
225
|
+
*/
|
226
|
+
var OperationLogStatusEnum;
|
227
|
+
(function (OperationLogStatusEnum) {
|
228
|
+
OperationLogStatusEnum["SUCCESS"] = "success";
|
229
|
+
OperationLogStatusEnum["SKIPPED"] = "skipped";
|
230
|
+
OperationLogStatusEnum["FAILED"] = "failed";
|
231
|
+
OperationLogStatusEnum["RUNNING"] = "running";
|
232
|
+
OperationLogStatusEnum["TIMEOUT"] = "timeout";
|
233
|
+
OperationLogStatusEnum["WAITING"] = "waiting";
|
234
|
+
})(OperationLogStatusEnum = exports.OperationLogStatusEnum || (exports.OperationLogStatusEnum = {}));
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { PolicyAssociateVault } from './PolicyAssociateVault';
|
2
|
+
import { PolicyTriggerResp } from './PolicyTriggerResp';
|
3
|
+
import { PolicyoODCreate } from './PolicyoODCreate';
|
4
|
+
export declare class Policy {
|
5
|
+
enabled: boolean;
|
6
|
+
id: string;
|
7
|
+
name: string;
|
8
|
+
private 'operation_definition';
|
9
|
+
private 'operation_type';
|
10
|
+
trigger: PolicyTriggerResp;
|
11
|
+
private 'associated_vaults'?;
|
12
|
+
constructor(enabled?: any, id?: any, name?: any, operationDefinition?: any, operationType?: any, trigger?: any);
|
13
|
+
withEnabled(enabled: boolean): Policy;
|
14
|
+
withId(id: string): Policy;
|
15
|
+
withName(name: string): Policy;
|
16
|
+
withOperationDefinition(operationDefinition: PolicyoODCreate): Policy;
|
17
|
+
set operationDefinition(operationDefinition: PolicyoODCreate | undefined);
|
18
|
+
get operationDefinition(): PolicyoODCreate | undefined;
|
19
|
+
withOperationType(operationType: PolicyOperationTypeEnum): Policy;
|
20
|
+
set operationType(operationType: PolicyOperationTypeEnum | undefined);
|
21
|
+
get operationType(): PolicyOperationTypeEnum | undefined;
|
22
|
+
withTrigger(trigger: PolicyTriggerResp): Policy;
|
23
|
+
withAssociatedVaults(associatedVaults: Array<PolicyAssociateVault>): Policy;
|
24
|
+
set associatedVaults(associatedVaults: Array<PolicyAssociateVault> | undefined);
|
25
|
+
get associatedVaults(): Array<PolicyAssociateVault> | undefined;
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* @export
|
29
|
+
* @enum {string}
|
30
|
+
*/
|
31
|
+
export declare enum PolicyOperationTypeEnum {
|
32
|
+
BACKUP = "backup",
|
33
|
+
REPLICATION = "replication"
|
34
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PolicyOperationTypeEnum = exports.Policy = void 0;
|
4
|
+
var Policy = /** @class */ (function () {
|
5
|
+
function Policy(enabled, id, name, operationDefinition, operationType, trigger) {
|
6
|
+
this['enabled'] = enabled;
|
7
|
+
this['id'] = id;
|
8
|
+
this['name'] = name;
|
9
|
+
this['operation_definition'] = operationDefinition;
|
10
|
+
this['operation_type'] = operationType;
|
11
|
+
this['trigger'] = trigger;
|
12
|
+
}
|
13
|
+
Policy.prototype.withEnabled = function (enabled) {
|
14
|
+
this['enabled'] = enabled;
|
15
|
+
return this;
|
16
|
+
};
|
17
|
+
Policy.prototype.withId = function (id) {
|
18
|
+
this['id'] = id;
|
19
|
+
return this;
|
20
|
+
};
|
21
|
+
Policy.prototype.withName = function (name) {
|
22
|
+
this['name'] = name;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
Policy.prototype.withOperationDefinition = function (operationDefinition) {
|
26
|
+
this['operation_definition'] = operationDefinition;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
Object.defineProperty(Policy.prototype, "operationDefinition", {
|
30
|
+
get: function () {
|
31
|
+
return this['operation_definition'];
|
32
|
+
},
|
33
|
+
set: function (operationDefinition) {
|
34
|
+
this['operation_definition'] = operationDefinition;
|
35
|
+
},
|
36
|
+
enumerable: false,
|
37
|
+
configurable: true
|
38
|
+
});
|
39
|
+
Policy.prototype.withOperationType = function (operationType) {
|
40
|
+
this['operation_type'] = operationType;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
Object.defineProperty(Policy.prototype, "operationType", {
|
44
|
+
get: function () {
|
45
|
+
return this['operation_type'];
|
46
|
+
},
|
47
|
+
set: function (operationType) {
|
48
|
+
this['operation_type'] = operationType;
|
49
|
+
},
|
50
|
+
enumerable: false,
|
51
|
+
configurable: true
|
52
|
+
});
|
53
|
+
Policy.prototype.withTrigger = function (trigger) {
|
54
|
+
this['trigger'] = trigger;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
Policy.prototype.withAssociatedVaults = function (associatedVaults) {
|
58
|
+
this['associated_vaults'] = associatedVaults;
|
59
|
+
return this;
|
60
|
+
};
|
61
|
+
Object.defineProperty(Policy.prototype, "associatedVaults", {
|
62
|
+
get: function () {
|
63
|
+
return this['associated_vaults'];
|
64
|
+
},
|
65
|
+
set: function (associatedVaults) {
|
66
|
+
this['associated_vaults'] = associatedVaults;
|
67
|
+
},
|
68
|
+
enumerable: false,
|
69
|
+
configurable: true
|
70
|
+
});
|
71
|
+
return Policy;
|
72
|
+
}());
|
73
|
+
exports.Policy = Policy;
|
74
|
+
/**
|
75
|
+
* @export
|
76
|
+
* @enum {string}
|
77
|
+
*/
|
78
|
+
var PolicyOperationTypeEnum;
|
79
|
+
(function (PolicyOperationTypeEnum) {
|
80
|
+
PolicyOperationTypeEnum["BACKUP"] = "backup";
|
81
|
+
PolicyOperationTypeEnum["REPLICATION"] = "replication";
|
82
|
+
})(PolicyOperationTypeEnum = exports.PolicyOperationTypeEnum || (exports.PolicyOperationTypeEnum = {}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class PolicyAssociateVault {
|
2
|
+
private 'destination_vault_id'?;
|
3
|
+
private 'vault_id';
|
4
|
+
constructor(vaultId?: any);
|
5
|
+
withDestinationVaultId(destinationVaultId: string): PolicyAssociateVault;
|
6
|
+
set destinationVaultId(destinationVaultId: string | undefined);
|
7
|
+
get destinationVaultId(): string | undefined;
|
8
|
+
withVaultId(vaultId: string): PolicyAssociateVault;
|
9
|
+
set vaultId(vaultId: string | undefined);
|
10
|
+
get vaultId(): string | undefined;
|
11
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PolicyAssociateVault = void 0;
|
4
|
+
var PolicyAssociateVault = /** @class */ (function () {
|
5
|
+
function PolicyAssociateVault(vaultId) {
|
6
|
+
this['vault_id'] = vaultId;
|
7
|
+
}
|
8
|
+
PolicyAssociateVault.prototype.withDestinationVaultId = function (destinationVaultId) {
|
9
|
+
this['destination_vault_id'] = destinationVaultId;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(PolicyAssociateVault.prototype, "destinationVaultId", {
|
13
|
+
get: function () {
|
14
|
+
return this['destination_vault_id'];
|
15
|
+
},
|
16
|
+
set: function (destinationVaultId) {
|
17
|
+
this['destination_vault_id'] = destinationVaultId;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
PolicyAssociateVault.prototype.withVaultId = function (vaultId) {
|
23
|
+
this['vault_id'] = vaultId;
|
24
|
+
return this;
|
25
|
+
};
|
26
|
+
Object.defineProperty(PolicyAssociateVault.prototype, "vaultId", {
|
27
|
+
get: function () {
|
28
|
+
return this['vault_id'];
|
29
|
+
},
|
30
|
+
set: function (vaultId) {
|
31
|
+
this['vault_id'] = vaultId;
|
32
|
+
},
|
33
|
+
enumerable: false,
|
34
|
+
configurable: true
|
35
|
+
});
|
36
|
+
return PolicyAssociateVault;
|
37
|
+
}());
|
38
|
+
exports.PolicyAssociateVault = PolicyAssociateVault;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { PolicyTriggerReq } from './PolicyTriggerReq';
|
2
|
+
import { PolicyoODCreate } from './PolicyoODCreate';
|
3
|
+
export declare class PolicyCreate {
|
4
|
+
enabled?: boolean;
|
5
|
+
name: string;
|
6
|
+
private 'operation_definition';
|
7
|
+
private 'operation_type';
|
8
|
+
trigger: PolicyTriggerReq;
|
9
|
+
constructor(name?: any, operationDefinition?: any, operationType?: any, trigger?: any);
|
10
|
+
withEnabled(enabled: boolean): PolicyCreate;
|
11
|
+
withName(name: string): PolicyCreate;
|
12
|
+
withOperationDefinition(operationDefinition: PolicyoODCreate): PolicyCreate;
|
13
|
+
set operationDefinition(operationDefinition: PolicyoODCreate | undefined);
|
14
|
+
get operationDefinition(): PolicyoODCreate | undefined;
|
15
|
+
withOperationType(operationType: PolicyCreateOperationTypeEnum): PolicyCreate;
|
16
|
+
set operationType(operationType: PolicyCreateOperationTypeEnum | undefined);
|
17
|
+
get operationType(): PolicyCreateOperationTypeEnum | undefined;
|
18
|
+
withTrigger(trigger: PolicyTriggerReq): PolicyCreate;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* @export
|
22
|
+
* @enum {string}
|
23
|
+
*/
|
24
|
+
export declare enum PolicyCreateOperationTypeEnum {
|
25
|
+
BACKUP = "backup",
|
26
|
+
REPLICATION = "replication"
|
27
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PolicyCreateOperationTypeEnum = exports.PolicyCreate = void 0;
|
4
|
+
var PolicyCreate = /** @class */ (function () {
|
5
|
+
function PolicyCreate(name, operationDefinition, operationType, trigger) {
|
6
|
+
this['name'] = name;
|
7
|
+
this['operation_definition'] = operationDefinition;
|
8
|
+
this['operation_type'] = operationType;
|
9
|
+
this['trigger'] = trigger;
|
10
|
+
}
|
11
|
+
PolicyCreate.prototype.withEnabled = function (enabled) {
|
12
|
+
this['enabled'] = enabled;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
PolicyCreate.prototype.withName = function (name) {
|
16
|
+
this['name'] = name;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
PolicyCreate.prototype.withOperationDefinition = function (operationDefinition) {
|
20
|
+
this['operation_definition'] = operationDefinition;
|
21
|
+
return this;
|
22
|
+
};
|
23
|
+
Object.defineProperty(PolicyCreate.prototype, "operationDefinition", {
|
24
|
+
get: function () {
|
25
|
+
return this['operation_definition'];
|
26
|
+
},
|
27
|
+
set: function (operationDefinition) {
|
28
|
+
this['operation_definition'] = operationDefinition;
|
29
|
+
},
|
30
|
+
enumerable: false,
|
31
|
+
configurable: true
|
32
|
+
});
|
33
|
+
PolicyCreate.prototype.withOperationType = function (operationType) {
|
34
|
+
this['operation_type'] = operationType;
|
35
|
+
return this;
|
36
|
+
};
|
37
|
+
Object.defineProperty(PolicyCreate.prototype, "operationType", {
|
38
|
+
get: function () {
|
39
|
+
return this['operation_type'];
|
40
|
+
},
|
41
|
+
set: function (operationType) {
|
42
|
+
this['operation_type'] = operationType;
|
43
|
+
},
|
44
|
+
enumerable: false,
|
45
|
+
configurable: true
|
46
|
+
});
|
47
|
+
PolicyCreate.prototype.withTrigger = function (trigger) {
|
48
|
+
this['trigger'] = trigger;
|
49
|
+
return this;
|
50
|
+
};
|
51
|
+
return PolicyCreate;
|
52
|
+
}());
|
53
|
+
exports.PolicyCreate = PolicyCreate;
|
54
|
+
/**
|
55
|
+
* @export
|
56
|
+
* @enum {string}
|
57
|
+
*/
|
58
|
+
var PolicyCreateOperationTypeEnum;
|
59
|
+
(function (PolicyCreateOperationTypeEnum) {
|
60
|
+
PolicyCreateOperationTypeEnum["BACKUP"] = "backup";
|
61
|
+
PolicyCreateOperationTypeEnum["REPLICATION"] = "replication";
|
62
|
+
})(PolicyCreateOperationTypeEnum = exports.PolicyCreateOperationTypeEnum || (exports.PolicyCreateOperationTypeEnum = {}));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PolicyCreateReq = void 0;
|
4
|
+
var PolicyCreateReq = /** @class */ (function () {
|
5
|
+
function PolicyCreateReq(policy) {
|
6
|
+
this['policy'] = policy;
|
7
|
+
}
|
8
|
+
PolicyCreateReq.prototype.withPolicy = function (policy) {
|
9
|
+
this['policy'] = policy;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
return PolicyCreateReq;
|
13
|
+
}());
|
14
|
+
exports.PolicyCreateReq = PolicyCreateReq;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PolicyTriggerPropertiesReq = void 0;
|
4
|
+
var PolicyTriggerPropertiesReq = /** @class */ (function () {
|
5
|
+
function PolicyTriggerPropertiesReq(pattern) {
|
6
|
+
this['pattern'] = pattern;
|
7
|
+
}
|
8
|
+
PolicyTriggerPropertiesReq.prototype.withPattern = function (pattern) {
|
9
|
+
this['pattern'] = pattern;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
return PolicyTriggerPropertiesReq;
|
13
|
+
}());
|
14
|
+
exports.PolicyTriggerPropertiesReq = PolicyTriggerPropertiesReq;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare class PolicyTriggerPropertiesResp {
|
2
|
+
pattern: Array<string>;
|
3
|
+
private 'start_time'?;
|
4
|
+
constructor(pattern?: any);
|
5
|
+
withPattern(pattern: Array<string>): PolicyTriggerPropertiesResp;
|
6
|
+
withStartTime(startTime: string): PolicyTriggerPropertiesResp;
|
7
|
+
set startTime(startTime: string | undefined);
|
8
|
+
get startTime(): string | undefined;
|
9
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PolicyTriggerPropertiesResp = void 0;
|
4
|
+
var PolicyTriggerPropertiesResp = /** @class */ (function () {
|
5
|
+
function PolicyTriggerPropertiesResp(pattern) {
|
6
|
+
this['pattern'] = pattern;
|
7
|
+
}
|
8
|
+
PolicyTriggerPropertiesResp.prototype.withPattern = function (pattern) {
|
9
|
+
this['pattern'] = pattern;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
PolicyTriggerPropertiesResp.prototype.withStartTime = function (startTime) {
|
13
|
+
this['start_time'] = startTime;
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
Object.defineProperty(PolicyTriggerPropertiesResp.prototype, "startTime", {
|
17
|
+
get: function () {
|
18
|
+
return this['start_time'];
|
19
|
+
},
|
20
|
+
set: function (startTime) {
|
21
|
+
this['start_time'] = startTime;
|
22
|
+
},
|
23
|
+
enumerable: false,
|
24
|
+
configurable: true
|
25
|
+
});
|
26
|
+
return PolicyTriggerPropertiesResp;
|
27
|
+
}());
|
28
|
+
exports.PolicyTriggerPropertiesResp = PolicyTriggerPropertiesResp;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PolicyTriggerPropertiesReq } from './PolicyTriggerPropertiesReq';
|
2
|
+
export declare class PolicyTriggerReq {
|
3
|
+
properties: PolicyTriggerPropertiesReq;
|
4
|
+
constructor(properties?: any);
|
5
|
+
withProperties(properties: PolicyTriggerPropertiesReq): PolicyTriggerReq;
|
6
|
+
}
|