Skip to content

Commit 6966a2d

Browse files
committed
Merge pull request #7 from MabOneSdk/pikumar
Adding AzureBackupItemContextObject class and AzureBackupItem.cs file Adding DataSourceType in AzureBackupItemContextObject class
2 parents 144b9be + e571e45 commit 6966a2d

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,17 @@ public class AzureBackupContainerContextObject : AzureBackupVaultContextObject
5454
/// </summary>
5555
public string ContainerId { get; set; }
5656
}
57+
58+
public class AzureBackupItemContextObject : AzureBackupContainerContextObject
59+
{
60+
/// <summary>
61+
/// DataSourceId of Azure Backup Item
62+
/// </summary>
63+
public string DataSourceId { get; set; }
64+
65+
/// <summary>
66+
/// DataSourceId of Azure Backup Item
67+
/// </summary>
68+
public string DataSourceType { get; set; }
69+
}
5770
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using System;
16+
using System.Collections.Generic;
17+
using System.Linq;
18+
using System.Text;
19+
using System.Threading.Tasks;
20+
21+
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
22+
{
23+
/// <summary>
24+
/// Represents Azure Backup Container
25+
/// </summary>
26+
public class AzureBackupItem : AzureBackupItemContextObject
27+
{
28+
/// <summary>
29+
/// Status for the Azure Backup Item
30+
/// </summary>
31+
public string Status { get; set; }
32+
33+
/// <summary>
34+
/// Protection Status for the Azure Backup Item
35+
/// </summary>
36+
public string ProtectionStatus { get; set; }
37+
38+
/// <summary>
39+
/// Protectable Object Name for the Azure Backup Item
40+
/// </summary>
41+
public string ProtectableObjectName { get; set; }
42+
43+
/// <summary>
44+
/// Protection Policy Name for the Azure Backup Item
45+
/// </summary>
46+
public string ProtectionPolicyName { get; set; }
47+
48+
/// <summary>
49+
/// Protection Policy Id for the Azure Backup Item
50+
/// </summary>
51+
public string ProtectionPolicyId { get; set; }
52+
53+
/// <summary>
54+
/// Policy Inconsistent for the Azure Backup Item
55+
/// </summary>
56+
public bool PolicyInconsistent { get; set; }
57+
58+
/// <summary>
59+
/// Recovery Points Count for the Azure Backup Item
60+
/// </summary>
61+
public int RecoveryPointsCount { get; set; }
62+
63+
/// <summary>
64+
/// Last Recovery Point for the Azure Backup Item
65+
/// </summary>
66+
public DateTime? LastRecoveryPoint { get; set; }
67+
68+
/// <summary>
69+
/// Last Backup Time for the Azure Backup Item
70+
/// </summary>
71+
public DateTime? LastBackupTime { get; set; }
72+
73+
/// <summary>
74+
/// Last Backup Status for the Azure Backup Item
75+
/// </summary>
76+
public string LastBackupStatus { get; set; }
77+
78+
/// <summary>
79+
/// Last Backup Job Id for the Azure Backup Item
80+
/// </summary>
81+
public string LastBackupJobId { get; set; }
82+
}
83+
}

0 commit comments

Comments
 (0)