/// <summary> /// Initializes a new instance of the DPMProtectedItem class. /// </summary> /// <param name="backupManagementType">Type of backup management for /// the backed up item. Possible values include: 'Invalid', /// 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', /// 'AzureStorage', 'AzureWorkload', 'DefaultBackup'</param> /// <param name="workloadType">Type of workload this item represents. /// Possible values include: 'Invalid', 'VM', 'FileFolder', /// 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', /// 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', /// 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase'</param> /// <param name="containerName">Unique name of container</param> /// <param name="sourceResourceId">ARM ID of the resource to be backed /// up.</param> /// <param name="policyId">ID of the backup policy with which this item /// is backed up.</param> /// <param name="lastRecoveryPoint">Timestamp when the last (latest) /// backup copy was created for this backup item.</param> /// <param name="backupSetName">Name of the backup set the backup item /// belongs to</param> /// <param name="createMode">Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover'</param> /// <param name="deferredDeleteTimeInUTC">Time for deferred deletion in /// UTC</param> /// <param name="isScheduledForDeferredDelete">Flag to identify whether /// the DS is scheduled for deferred delete</param> /// <param name="deferredDeleteTimeRemaining">Time remaining before the /// DS marked for deferred delete is permanently deleted</param> /// <param name="isDeferredDeleteScheduleUpcoming">Flag to identify /// whether the deferred deleted DS is to be purged soon</param> /// <param name="isRehydrate">Flag to identify that deferred deleted DS /// is to be moved into Pause state</param> /// <param /// name="resourceGuardOperationRequests">ResourceGuardOperationRequests /// on which LAC check will be performed</param> /// <param name="friendlyName">Friendly name of the managed /// item</param> /// <param name="backupEngineName">Backup Management server protecting /// this backup item</param> /// <param name="protectionState">Protection state of the backup /// engine. Possible values include: 'Invalid', 'IRPending', /// 'Protected', 'ProtectionError', 'ProtectionStopped', /// 'ProtectionPaused'</param> /// <param name="extendedInfo">Extended info of the backup /// item.</param> public DPMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime?lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), System.DateTime?deferredDeleteTimeInUTC = default(System.DateTime?), bool?isScheduledForDeferredDelete = default(bool?), string deferredDeleteTimeRemaining = default(string), bool?isDeferredDeleteScheduleUpcoming = default(bool?), bool?isRehydrate = default(bool?), IList <string> resourceGuardOperationRequests = default(IList <string>), string friendlyName = default(string), string backupEngineName = default(string), string protectionState = default(string), DPMProtectedItemExtendedInfo extendedInfo = default(DPMProtectedItemExtendedInfo)) : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode, deferredDeleteTimeInUTC, isScheduledForDeferredDelete, deferredDeleteTimeRemaining, isDeferredDeleteScheduleUpcoming, isRehydrate, resourceGuardOperationRequests) { FriendlyName = friendlyName; BackupEngineName = backupEngineName; ProtectionState = protectionState; ExtendedInfo = extendedInfo; CustomInit(); }
/// <summary> /// Initializes a new instance of the DPMProtectedItem class. /// </summary> /// <param name="backupManagementType">Type of backup management for /// the backed up item. Possible values include: 'Invalid', /// 'AzureIaasVM', 'MAB', 'DPM', 'AzureBackupServer', 'AzureSql', /// 'AzureStorage', 'AzureWorkload', 'DefaultBackup'</param> /// <param name="workloadType">Type of workload this item represents. /// Possible values include: 'Invalid', 'VM', 'FileFolder', /// 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM', /// 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase', /// 'AzureFileShare', 'SAPHanaDatabase', 'SAPAseDatabase'</param> /// <param name="containerName">Unique name of container</param> /// <param name="sourceResourceId">ARM ID of the resource to be backed /// up.</param> /// <param name="policyId">ID of the backup policy with which this item /// is backed up.</param> /// <param name="lastRecoveryPoint">Timestamp when the last (latest) /// backup copy was created for this backup item.</param> /// <param name="backupSetName">Name of the backup set the backup item /// belongs to</param> /// <param name="createMode">Create mode to indicate recovery of /// existing soft deleted data source or creation of new data source. /// Possible values include: 'Invalid', 'Default', 'Recover'</param> /// <param name="friendlyName">Friendly name of the managed /// item</param> /// <param name="backupEngineName">Backup Management server protecting /// this backup item</param> /// <param name="protectionState">Protection state of the backupengine. /// Possible values include: 'Invalid', 'IRPending', 'Protected', /// 'ProtectionError', 'ProtectionStopped', 'ProtectionPaused'</param> /// <param name="isScheduledForDeferredDelete">To check if backup item /// is scheduled for deferred delete</param> /// <param name="extendedInfo">Extended info of the backup /// item.</param> public DPMProtectedItem(string backupManagementType = default(string), string workloadType = default(string), string containerName = default(string), string sourceResourceId = default(string), string policyId = default(string), System.DateTime?lastRecoveryPoint = default(System.DateTime?), string backupSetName = default(string), string createMode = default(string), string friendlyName = default(string), string backupEngineName = default(string), string protectionState = default(string), bool?isScheduledForDeferredDelete = default(bool?), DPMProtectedItemExtendedInfo extendedInfo = default(DPMProtectedItemExtendedInfo)) : base(backupManagementType, workloadType, containerName, sourceResourceId, policyId, lastRecoveryPoint, backupSetName, createMode) { FriendlyName = friendlyName; BackupEngineName = backupEngineName; ProtectionState = protectionState; IsScheduledForDeferredDelete = isScheduledForDeferredDelete; ExtendedInfo = extendedInfo; CustomInit(); }