-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VmWorkloadSqlAvailabilityGroupProtectableItem.cs
51 lines (45 loc) · 3.46 KB
/
VmWorkloadSqlAvailabilityGroupProtectableItem.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.RecoveryServicesBackup.Models
{
/// <summary> Azure VM workload-specific protectable item representing SQL Availability Group. </summary>
public partial class VmWorkloadSqlAvailabilityGroupProtectableItem : VmWorkloadProtectableItem
{
/// <summary> Initializes a new instance of <see cref="VmWorkloadSqlAvailabilityGroupProtectableItem"/>. </summary>
public VmWorkloadSqlAvailabilityGroupProtectableItem()
{
NodesList = new ChangeTrackingList<DistributedNodesInfo>();
ProtectableItemType = "SQLAvailabilityGroupContainer";
}
/// <summary> Initializes a new instance of <see cref="VmWorkloadSqlAvailabilityGroupProtectableItem"/>. </summary>
/// <param name="backupManagementType"> Type of backup management to backup an item. </param>
/// <param name="workloadType"> Type of workload for the backup management. </param>
/// <param name="protectableItemType"> Type of the backup item. </param>
/// <param name="friendlyName"> Friendly name of the backup item. </param>
/// <param name="protectionState"> State of the back up item. </param>
/// <param name="parentName"> Name for instance or AG. </param>
/// <param name="parentUniqueName">
/// Parent Unique Name is added to provide the service formatted URI Name of the Parent
/// Only Applicable for data bases where the parent would be either Instance or a SQL AG.
/// </param>
/// <param name="serverName"> Host/Cluster Name for instance or AG. </param>
/// <param name="isAutoProtectable"> Indicates if protectable item is auto-protectable. </param>
/// <param name="isAutoProtected"> Indicates if protectable item is auto-protected. </param>
/// <param name="subInquiredItemCount"> For instance or AG, indicates number of DB's present. </param>
/// <param name="subProtectableItemCount"> For instance or AG, indicates number of DB's to be protected. </param>
/// <param name="preBackupValidation"> Pre-backup validation for protectable objects. </param>
/// <param name="isProtectable"> Indicates if item is protectable. </param>
/// <param name="nodesList"> List of the nodes in case of distributed container. </param>
internal VmWorkloadSqlAvailabilityGroupProtectableItem(string backupManagementType, string workloadType, string protectableItemType, string friendlyName, BackupProtectionStatus? protectionState, string parentName, string parentUniqueName, string serverName, bool? isAutoProtectable, bool? isAutoProtected, int? subInquiredItemCount, int? subProtectableItemCount, PreBackupValidation preBackupValidation, bool? isProtectable, IList<DistributedNodesInfo> nodesList) : base(backupManagementType, workloadType, protectableItemType, friendlyName, protectionState, parentName, parentUniqueName, serverName, isAutoProtectable, isAutoProtected, subInquiredItemCount, subProtectableItemCount, preBackupValidation, isProtectable)
{
NodesList = nodesList;
ProtectableItemType = protectableItemType ?? "SQLAvailabilityGroupContainer";
}
/// <summary> List of the nodes in case of distributed container. </summary>
public IList<DistributedNodesInfo> NodesList { get; }
}
}