/
backupClientModels.ts
98 lines (85 loc) · 2.29 KB
/
backupClientModels.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { CommonClientOptions, OperationOptions } from "@azure/core-client";
import { SUPPORTED_API_VERSIONS } from "./constants";
/**
* The optional parameters accepted by the KeyVaultBackupClient
*/
export interface KeyVaultBackupClientOptions extends CommonClientOptions {
/**
* The accepted versions of the Key Vault's service API.
*/
serviceVersion?: SUPPORTED_API_VERSIONS;
}
/**
* An interface representing the optional parameters that can be
* passed to {@link beginBackup}
*/
export interface KeyVaultBackupPollerOptions extends OperationOptions {
/**
* Time between each polling
*/
intervalInMs?: number;
/**
* A serialized poller, used to resume an existing operation
*/
resumeFrom?: string;
}
/**
* An interface representing the optional parameters that can be
* passed to {@link beginBackup}
*/
export interface KeyVaultBeginBackupOptions extends KeyVaultBackupPollerOptions {}
/**
* An interface representing the optional parameters that can be
* passed to {@link beginRestore}
*/
export interface KeyVaultBeginRestoreOptions extends KeyVaultBackupPollerOptions {}
/**
* An interface representing the optional parameters that can be
* passed to {@link beginSelectiveKeyRestore}
*/
export interface KeyVaultBeginSelectiveKeyRestoreOptions extends KeyVaultBackupPollerOptions {}
/**
* An interface representing the result of a backup operation.
*/
export interface KeyVaultBackupResult {
/**
* The location of the full backup.
*/
folderUri?: string;
/**
* The start time of the backup operation.
*/
startTime: Date;
/**
* The end time of the backup operation.
*/
endTime?: Date;
}
/**
* An interface representing the result of a restore operation.
*/
export interface KeyVaultRestoreResult {
/**
* The start time of the restore operation.
*/
startTime: Date;
/**
* The end time of the restore operation.
*/
endTime?: Date;
}
/**
* An interface representing the result of a selective key restore operation.
*/
export interface KeyVaultSelectiveKeyRestoreResult {
/**
* The start time of the selective key restore operation.
*/
startTime: Date;
/**
* The end time of the selective key restore operation.
*/
endTime?: Date;
}