20
20
namespace Microsoft . Azure . Commands . RecoveryServices . Backup . Cmdlets . Models
21
21
{
22
22
/// <summary>
23
- /// Base class for objects.
23
+ /// Base class for all the PowerShell model objects.
24
24
/// </summary>
25
25
public class ObjectBase
26
26
{
27
+ /// <summary>
28
+ /// Method to validate the object properties.
29
+ /// </summary>
27
30
public virtual void Validate ( ) { }
28
31
}
29
32
@@ -33,7 +36,7 @@ public virtual void Validate() { }
33
36
public class ManagementContext : ObjectBase
34
37
{
35
38
/// <summary>
36
- /// BackupManagementType
39
+ /// Type of the backup management agent.
37
40
/// </summary>
38
41
public BackupManagementType BackupManagementType { get ; set ; }
39
42
@@ -50,6 +53,9 @@ public ManagementContext(string backupManagementType)
50
53
/// </summary>
51
54
public class ContainerContext : ManagementContext
52
55
{
56
+ /// <summary>
57
+ /// Type of the container that maybe managed by the recovery services vault.
58
+ /// </summary>
53
59
public ContainerType ContainerType { get ; set ; }
54
60
55
61
public ContainerContext ( ) { }
@@ -72,6 +78,9 @@ public ContainerContext(string backupManagementType)
72
78
/// </summary>
73
79
public class BackupEngineContext : ManagementContext
74
80
{
81
+ /// <summary>
82
+ /// Type of the backup engine.
83
+ /// </summary>
75
84
public string BackupEngineType { get ; set ; }
76
85
77
86
public BackupEngineContext ( ) { }
@@ -89,7 +98,7 @@ public BackupEngineContext(string backupEngineType, string backupManagementType)
89
98
public class ContainerBase : ContainerContext
90
99
{
91
100
/// <summary>
92
- /// Container Name
101
+ /// Name of the container
93
102
/// </summary>
94
103
public string Name { get ; set ; }
95
104
@@ -107,7 +116,7 @@ public ContainerBase(ServiceClientModel.ProtectionContainerResource protectionCo
107
116
public class BackupEngineBase : BackupEngineContext
108
117
{
109
118
/// <summary>
110
- /// Container Name
119
+ /// Name of the backup engine
111
120
/// </summary>
112
121
public string Name { get ; set ; }
113
122
@@ -165,7 +174,7 @@ public class ItemBase : ItemContext
165
174
public string Id { get ; set ; }
166
175
167
176
/// <summary>
168
- /// Last Recovery Point for the item
177
+ /// Latest Recovery Point for the item
169
178
/// </summary>
170
179
public DateTime ? LatestRecoveryPoint { get ; set ; }
171
180
@@ -195,28 +204,27 @@ public class RecoveryPointBase : ItemContext
195
204
private global ::Microsoft . Azure . Management . RecoveryServices . Backup . Models . RecoveryPointResource rp ;
196
205
197
206
/// <summary>
198
- ///
207
+ /// ID of the recovery point
199
208
/// </summary>
200
209
public string RecoveryPointId { get ; set ; }
201
210
202
211
/// <summary>
203
- ///
212
+ /// Name of the item represented by this recovery point
204
213
/// </summary>
205
214
public string ItemName { get ; set ; }
206
215
207
216
/// <summary>
208
- ///
217
+ /// Fully qualified ARM ID of this recovery point
209
218
/// </summary>
210
219
public string Id { get ; set ; }
211
220
212
221
/// <summary>
213
- ///Type of recovery point (appConsistent\CrashConsistent etc)
222
+ /// Type of recovery point (appConsistent\CrashConsistent etc)
214
223
/// </summary>
215
- ///
216
224
public String RecoveryPointType { get ; set ; }
217
225
218
226
/// <summary>
219
- /// Time of RecoveryPoint
227
+ /// Time when this recovery point was created
220
228
/// </summary>
221
229
public DateTime RecoveryPointTime { get ; set ; }
222
230
@@ -231,10 +239,19 @@ public RecoveryPointBase()
231
239
/// </summary>
232
240
public class PolicyBase : ManagementContext
233
241
{
242
+ /// <summary>
243
+ /// Name of the policy
244
+ /// </summary>
234
245
public string Name { get ; set ; }
235
246
247
+ /// <summary>
248
+ /// Workload type of the item associated with this policy
249
+ /// </summary>
236
250
public WorkloadType WorkloadType { get ; set ; }
237
251
252
+ /// <summary>
253
+ /// Fully qualified ARM ID of this policy
254
+ /// </summary>
238
255
public string Id { get ; set ; }
239
256
240
257
public override void Validate ( )
@@ -272,20 +289,44 @@ public class SchedulePolicyBase : ObjectBase
272
289
/// </summary>
273
290
public class JobBase : ManagementContext
274
291
{
292
+ /// <summary>
293
+ /// Activity ID of this job
294
+ /// </summary>
275
295
public string ActivityId { get ; set ; }
276
296
297
+ /// <summary>
298
+ /// ID of this job
299
+ /// </summary>
277
300
public string JobId { get ; set ; }
278
301
302
+ /// <summary>
303
+ /// Operation represented by this job
304
+ /// </summary>
279
305
public string Operation { get ; set ; }
280
306
307
+ /// <summary>
308
+ /// Status of this job
309
+ /// </summary>
281
310
public string Status { get ; set ; }
282
311
312
+ /// <summary>
313
+ /// Name of the workload handled by this job
314
+ /// </summary>
283
315
public string WorkloadName { get ; set ; }
284
316
317
+ /// <summary>
318
+ /// Time at which this job started
319
+ /// </summary>
285
320
public DateTime StartTime { get ; set ; }
286
321
322
+ /// <summary>
323
+ /// Time at which this job was terminated
324
+ /// </summary>
287
325
public DateTime ? EndTime { get ; set ; }
288
326
327
+ /// <summary>
328
+ /// Time taken by this job to run
329
+ /// </summary>
289
330
public TimeSpan Duration { get ; set ; }
290
331
}
291
332
@@ -294,8 +335,14 @@ public class JobBase : ManagementContext
294
335
/// </summary>
295
336
public class JobErrorInfoBase
296
337
{
338
+ /// <summary>
339
+ /// Description of the error in the backend service
340
+ /// </summary>
297
341
public string ErrorMessage { get ; set ; }
298
342
343
+ /// <summary>
344
+ /// List of recommendations to the user, provided by the backend service for this error
345
+ /// </summary>
299
346
public List < string > Recommendations { get ; set ; }
300
347
}
301
348
@@ -304,8 +351,14 @@ public class JobErrorInfoBase
304
351
/// </summary>
305
352
public class JobSubTaskBase
306
353
{
354
+ /// <summary>
355
+ /// Name of the sub task
356
+ /// </summary>
307
357
public string Name { get ; set ; }
308
358
359
+ /// <summary>
360
+ /// Status of the sub task
361
+ /// </summary>
309
362
public string Status { get ; set ; }
310
363
}
311
364
}
0 commit comments