20
20
21
21
namespace Microsoft . Azure . Commands . RecoveryServices . Backup . Cmdlets . Models
22
22
{
23
+ /// <summary>
24
+ /// Type of the container that maybe managed by the recovery services vault.
25
+ /// </summary>
23
26
public enum ContainerType
24
27
{
28
+ /// <summary>
29
+ /// Represents the Azure Virtual Machine (both Classic and Compute versions).
30
+ /// </summary>
25
31
AzureVM = 1 ,
32
+
33
+ /// <summary>
34
+ /// Represents any windows containers such as those managed by the MAB device etc.
35
+ /// </summary>
26
36
Windows
27
37
}
28
38
39
+ /// <summary>
40
+ /// Type of the backup management agent.
41
+ /// </summary>
29
42
public enum BackupManagementType
30
43
{
44
+ /// <summary>
45
+ /// Represents the Azure Virtual Machine agent (both Classic and Compute versions).
46
+ /// </summary>
31
47
AzureVM = 1 ,
48
+
49
+ /// <summary>
50
+ /// Represents the Microsoft Azure Recovery Services agent.
51
+ /// </summary>
32
52
MARS ,
53
+
54
+ /// <summary>
55
+ /// Represents the Service Center Data Protection Manager agent.
56
+ /// </summary>
33
57
SCDPM ,
58
+
59
+ /// <summary>
60
+ /// Represents the Azure Backup Server agent.
61
+ /// </summary>
34
62
AzureBackupServer ,
35
63
}
36
64
65
+ /// <summary>
66
+ /// Type of the backup engine.
67
+ /// </summary>
37
68
public enum BackupEngineType
38
69
{
70
+ /// <summary>
71
+ /// Represents the Data Protection Manager backup engine.
72
+ /// </summary>
39
73
DpmBackupEngine = 1 ,
74
+
75
+ /// <summary>
76
+ /// Represents the Azure Backup Server backup engine.
77
+ /// </summary>
40
78
AzureBackupServerEngine
41
79
}
42
80
81
+ /// <summary>
82
+ /// Type of the workload running in an item.
83
+ /// </summary>
43
84
public enum WorkloadType
44
85
{
86
+ /// <summary>
87
+ /// Represents the Azure Virtual Machine (both Classic and Compute versions).
88
+ /// </summary>
45
89
AzureVM = 1 ,
46
90
}
47
91
92
+ /// <summary>
93
+ /// Types of the PowerShell providers for the cmdlet implementation.
94
+ /// </summary>
48
95
public enum PsBackupProviderTypes
49
96
{
97
+ /// <summary>
98
+ /// Represents the IaaS VM provider for powershell cmdlets.
99
+ /// </summary>
50
100
IaasVm = 1 ,
101
+
102
+ /// <summary>
103
+ /// Represents the Azure SQL provider for powershell cmdlets.
104
+ /// </summary>
51
105
AzureSql ,
106
+
107
+ /// <summary>
108
+ /// Represents the Microsoft Azure Backup provider for powershell cmdlets.
109
+ /// </summary>
52
110
Mab ,
111
+
112
+ /// <summary>
113
+ /// Represents the Data Protection Manager provider for powershell cmdlets.
114
+ /// </summary>
53
115
Dpm
54
116
}
55
117
118
+ /// <summary>
119
+ /// Status of the registration of the container with the recovery services vault.
120
+ /// </summary>
56
121
public enum ContainerRegistrationStatus
57
122
{
123
+ /// <summary>
124
+ /// Represents the registered state of the container with the recovery services vault.
125
+ /// </summary>
58
126
Registered = 1 ,
59
127
}
60
128
129
+ /// <summary>
130
+ /// Status of the registration of the backup engine with the recovery services vault.
131
+ /// </summary>
61
132
public enum BackupEngineRegistrationStatus
62
133
{
134
+ /// <summary>
135
+ /// Represents the registered state of the backup engine with the recovery services vault.
136
+ /// </summary>
63
137
Registered = 1 ,
138
+
139
+ /// <summary>
140
+ /// Represents the state after the registration process has started but the registration
141
+ /// is not yet complete.
142
+ /// </summary>
64
143
Registering ,
65
144
}
66
145
146
+ /// <summary>
147
+ /// Status of the protection of the item by the recovery services vault.
148
+ /// </summary>
67
149
public enum ItemProtectionStatus
68
150
{
151
+ /// <summary>
152
+ /// Represents the healthy state of the protection.
153
+ /// </summary>
69
154
Healthy = 1 ,
155
+
156
+ /// <summary>
157
+ /// Represents a state of the protection which is unhealthy.
158
+ /// </summary>
70
159
Unhealthy ,
71
160
}
72
161
162
+ /// <summary>
163
+ /// State of the protection of the item by the recovery services vault.
164
+ /// </summary>
73
165
public enum ItemProtectionState
74
166
{
167
+ /// <summary>
168
+ /// Initial backup is pending
169
+ /// </summary>
75
170
IRPending = 1 ,
171
+
172
+ /// <summary>
173
+ /// Error during protection
174
+ /// </summary>
76
175
ProtectionError ,
176
+
177
+ /// <summary>
178
+ /// Protected
179
+ /// </summary>
77
180
Protected ,
181
+
182
+ /// <summary>
183
+ /// Protection was disabled
184
+ /// </summary>
78
185
ProtectionStopped
79
186
}
80
187
@@ -103,12 +210,18 @@ public enum Month
103
210
December = 12
104
211
}
105
212
213
+ /// <summary>
214
+ /// Represents how the policy can be scheduled.
215
+ /// </summary>
106
216
public enum ScheduleRunType
107
217
{
108
218
Daily = 1 ,
109
219
Weekly = 2 ,
110
220
}
111
221
222
+ /// <summary>
223
+ /// Type of the duration for which the recovery points can be retained.
224
+ /// </summary>
112
225
public enum RetentionDurationType
113
226
{
114
227
Days = 1 ,
@@ -117,6 +230,9 @@ public enum RetentionDurationType
117
230
Years = 4
118
231
}
119
232
233
+ /// <summary>
234
+ /// Represents the format of the schedule
235
+ /// </summary>
120
236
public enum RetentionScheduleFormat
121
237
{
122
238
Daily = 1 ,
@@ -127,15 +243,40 @@ public enum RetentionScheduleFormat
127
243
128
244
#region jobs
129
245
246
+ /// <summary>
247
+ /// Types of operations which create jobs
248
+ /// </summary>
130
249
public enum JobOperation
131
250
{
251
+ /// <summary>
252
+ /// Trigger backup
253
+ /// </summary>
132
254
Backup ,
255
+
256
+ /// <summary>
257
+ /// Trigger restore
258
+ /// </summary>
133
259
Restore ,
260
+
261
+ /// <summary>
262
+ /// Enable protection
263
+ /// </summary>
134
264
ConfigureBackup ,
265
+
266
+ /// <summary>
267
+ /// Disable protection with retain data
268
+ /// </summary>
135
269
DisableBackup ,
270
+
271
+ /// <summary>
272
+ /// Disable protection with delete data
273
+ /// </summary>
136
274
DeleteBackupData
137
275
}
138
276
277
+ /// <summary>
278
+ /// Status of the job
279
+ /// </summary>
139
280
public enum JobStatus
140
281
{
141
282
InProgress ,
0 commit comments