Skip to content

Commit 09c9847

Browse files
committed
Update AzureBackupContainer.cs
1 parent 90242f3 commit 09c9847

File tree

1 file changed

+11
-36
lines changed

1 file changed

+11
-36
lines changed
Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// ----------------------------------------------------------------------------------
1+
// ----------------------------------------------------------------------------------
22
//
33
// Copyright Microsoft Corporation
44
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Management.BackupServices.Models;
1516
using System;
1617
using System.Collections.Generic;
1718
using System.Linq;
@@ -25,49 +26,23 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
2526
/// </summary>
2627
public class AzureBackupContainer : AzureBackupContainerContextObject
2728
{
28-
/// <summary>
29-
/// Type of the Azure Backup container
30-
/// </summary>
31-
public string ContainerType { get; set; }
32-
33-
/// <summary>
34-
/// Friendly name for the Azure Backup container
35-
/// </summary>
36-
public string FriendlyName { get; set; }
37-
3829
/// <summary>
3930
/// Status of health of the Azure Backup container
4031
/// </summary>
4132
public string HealthStatus { get; set; }
4233

43-
/// <summary>
44-
/// Id of the Azure Backup Container
45-
/// </summary>
46-
public string InstanceId { get; set; }
47-
48-
/// <summary>
49-
/// Name of the Azure Backup container
50-
/// </summary>
51-
public string Name { get; set; }
52-
53-
/// <summary>
54-
/// Friendly name of the parent container
55-
/// </summary>
56-
public string ParentContainerFriendlyName { get; set; }
57-
58-
/// <summary>
59-
/// Name of the parent container
60-
/// </summary>
61-
public string ParentContainerName { get; set; }
62-
63-
/// <summary>
64-
/// Region where this container is present
65-
/// </summary>
66-
public string Region { get; set; }
67-
6834
/// <summary>
6935
/// Status of registration of the container
7036
/// </summary>
7137
public string RegistrationStatus { get; set; }
38+
39+
public AzureBackupContainer() : base() { }
40+
41+
public AzureBackupContainer(ContainerInfo containerInfo)
42+
: base(containerInfo)
43+
{
44+
HealthStatus = containerInfo.HealthStatus;
45+
RegistrationStatus = containerInfo.RegistrationStatus;
46+
}
7247
}
7348
}

0 commit comments

Comments
 (0)