generated/api/Models/BackupCopyOptions.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; /// <summary>Options for snap management with backup copy</summary> public partial class BackupCopyOptions : Commvault.Powershell.Models.IBackupCopyOptions, Commvault.Powershell.Models.IBackupCopyOptionsInternal { /// <summary>Backing field for <see cref="Action" /> property.</summary> private string _action; /// <summary>Which type of action should be followed if backup copy falls behind</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Action { get => this._action; set => this._action = value; } /// <summary>Backing field for <see cref="AlertInHours" /> property.</summary> private long? _alertInHours; /// <summary>Alert to throw when backup copy falls behind in hours</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? AlertInHours { get => this._alertInHours; set => this._alertInHours = value; } /// <summary>Backing field for <see cref="BackupFullToCopy" /> property.</summary> private string _backupFullToCopy; /// <summary> /// Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default /// is LAST while adding new backup destination. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string BackupFullToCopy { get => this._backupFullToCopy; set => this._backupFullToCopy = value; } /// <summary>Backing field for <see cref="BackupTypeToCopy" /> property.</summary> private string _backupTypeToCopy; /// <summary>Backup type to copy for backup copy operation</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string BackupTypeToCopy { get => this._backupTypeToCopy; set => this._backupTypeToCopy = value; } /// <summary>Backing field for <see cref="EnableAlert" /> property.</summary> private bool? _enableAlert; /// <summary>Flag to enable backup copy fallen behind alert</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? EnableAlert { get => this._enableAlert; set => this._enableAlert = value; } /// <summary>Backing field for <see cref="SkipAfterThresholdDays" /> property.</summary> private long? _skipAfterThresholdDays; /// <summary>The allowable delay in days before a backup copy job is considered overdue</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? SkipAfterThresholdDays { get => this._skipAfterThresholdDays; set => this._skipAfterThresholdDays = value; } /// <summary>Backing field for <see cref="StartTime" /> property.</summary> private long? _startTime; /// <summary> /// Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap /// copy. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? StartTime { get => this._startTime; set => this._startTime = value; } /// <summary>Creates an new <see cref="BackupCopyOptions" /> instance.</summary> public BackupCopyOptions() { } } /// Options for snap management with backup copy public partial interface IBackupCopyOptions : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Which type of action should be followed if backup copy falls behind</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Which type of action should be followed if backup copy falls behind", SerializedName = @"action", PossibleTypes = new [] { typeof(string) })] string Action { get; set; } /// <summary>Alert to throw when backup copy falls behind in hours</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Alert to throw when backup copy falls behind in hours", SerializedName = @"alertInHours", PossibleTypes = new [] { typeof(long) })] long? AlertInHours { get; set; } /// <summary> /// Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default /// is LAST while adding new backup destination. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default is LAST while adding new backup destination.", SerializedName = @"backupFullToCopy", PossibleTypes = new [] { typeof(string) })] string BackupFullToCopy { get; set; } /// <summary>Backup type to copy for backup copy operation</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Backup type to copy for backup copy operation", SerializedName = @"backupTypeToCopy", PossibleTypes = new [] { typeof(string) })] string BackupTypeToCopy { get; set; } /// <summary>Flag to enable backup copy fallen behind alert</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Flag to enable backup copy fallen behind alert", SerializedName = @"enableAlert", PossibleTypes = new [] { typeof(bool) })] bool? EnableAlert { get; set; } /// <summary>The allowable delay in days before a backup copy job is considered overdue</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The allowable delay in days before a backup copy job is considered overdue", SerializedName = @"skipAfterThresholdDays", PossibleTypes = new [] { typeof(long) })] long? SkipAfterThresholdDays { get; set; } /// <summary> /// Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap /// copy. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap copy.", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] long? StartTime { get; set; } } /// Options for snap management with backup copy internal partial interface IBackupCopyOptionsInternal { /// <summary>Which type of action should be followed if backup copy falls behind</summary> string Action { get; set; } /// <summary>Alert to throw when backup copy falls behind in hours</summary> long? AlertInHours { get; set; } /// <summary> /// Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default /// is LAST while adding new backup destination. /// </summary> string BackupFullToCopy { get; set; } /// <summary>Backup type to copy for backup copy operation</summary> string BackupTypeToCopy { get; set; } /// <summary>Flag to enable backup copy fallen behind alert</summary> bool? EnableAlert { get; set; } /// <summary>The allowable delay in days before a backup copy job is considered overdue</summary> long? SkipAfterThresholdDays { get; set; } /// <summary> /// Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap /// copy. /// </summary> long? StartTime { get; set; } } } |