Skip to content

Commit 77cfb8f

Browse files
committed
Merge pull request #100 from MabOneSdk/dev1-pikumar-git2
Adding friendly name
2 parents 17aaa42 + a820dee commit 77cfb8f

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup/Microsoft.Azure.Commands.AzureBackup.format.ps1xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@
127127
<TableControl>
128128
<TableHeaders>
129129
<TableColumnHeader>
130-
<Label>ItemName</Label>
131-
<Width>18</Width>
130+
<Label>Name</Label>
131+
<Width>32</Width>
132132
</TableColumnHeader>
133133
<TableColumnHeader>
134134
<Label>ProtectionStatus</Label>
135-
<Width>18</Width>
135+
<Width>32</Width>
136136
</TableColumnHeader>
137137
<TableColumnHeader>
138138
<Label>RecoveryPointsCount</Label>
139-
<Width>22</Width>
139+
<Width>32</Width>
140140
</TableColumnHeader>
141141
<TableColumnHeader>
142142
<Label>ProtectionPolicyName</Label>
@@ -147,7 +147,7 @@
147147
<TableRowEntry>
148148
<TableColumnItems>
149149
<TableColumnItem>
150-
<PropertyName>ItemName</PropertyName>
150+
<PropertyName>Name</PropertyName>
151151
</TableColumnItem>
152152
<TableColumnItem>
153153
<PropertyName>ProtectionStatus</PropertyName>

src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupBaseObjects.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public AzureBackupContainerContextObject(AzurePSBackupVault vault, CSMContainerR
100100
public class AzureBackupItemContextObject : AzureBackupContainerContextObject
101101
{
102102
/// <summary>
103-
/// DataSourceId of Azure Backup Item
103+
/// DataSourceName of Azure Backup Item
104104
/// </summary>
105105
public string ItemName { get; set; }
106106

src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupItem.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ namespace Microsoft.Azure.Commands.AzureBackup.Models
2626
/// </summary>
2727
public class AzureBackupItem : AzureBackupItemContextObject
2828
{
29+
/// <summary>
30+
/// Friendly Name for the Azure BackupItem
31+
/// </summary>
32+
public string Name { get; set; }
33+
2934
/// <summary>
3035
/// Status for the Azure Backup Item
3136
/// </summary>
@@ -67,6 +72,7 @@ public AzureBackupItem(CSMProtectedItemResponse datasource, AzureBackupContainer
6772
DataSourceStatus = datasource.Properties.ProtectionStatus;
6873
ProtectionStatus = datasource.Properties.Status;
6974
ItemName = datasource.Name;
75+
Name = datasource.Properties.FriendlyName;
7076

7177
if (datasource.Properties.ProtectionPolicyId != null)
7278
{
@@ -83,6 +89,7 @@ public AzureBackupItem(CSMItemResponse pPOItem, AzureBackupContainer azureBackup
8389
{
8490
ProtectionStatus = pPOItem.Properties.Status;
8591
ItemName = pPOItem.Name;
92+
Name = pPOItem.Properties.FriendlyName;
8693
Type = pPOItem.Properties.ItemType;
8794
}
8895
}

0 commit comments

Comments
 (0)