generated/api/Models/RecoveryGroup.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// 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>Model to provide basic detail of recovery group</summary>
    public partial class RecoveryGroup :
        Commvault.Powershell.Models.IRecoveryGroup,
        Commvault.Powershell.Models.IRecoveryGroupInternal
    {

        /// <summary>Backing field for <see cref="Action" /> property.</summary>
        private string _action;

        /// <summary>Recovery Action</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Action { get => this._action; set => this._action = value; }

        /// <summary>Internal Acessors for RecoveryPointDetails</summary>
        Commvault.Powershell.Models.IRecoveryGroupRpDetails Commvault.Powershell.Models.IRecoveryGroupInternal.RecoveryPointDetails { get => (this._recoveryPointDetails = this._recoveryPointDetails ?? new Commvault.Powershell.Models.RecoveryGroupRpDetails()); set { {_recoveryPointDetails = value;} } }

        /// <summary>Internal Acessors for Target</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IRecoveryGroupInternal.Target { get => (this._target = this._target ?? new Commvault.Powershell.Models.IdName()); set { {_target = value;} } }

        /// <summary>Backing field for <see cref="ContinueOnFailure" /> property.</summary>
        private bool? _continueOnFailure;

        /// <summary>Set to true to continue to the next priority machines on failure</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? ContinueOnFailure { get => this._continueOnFailure; set => this._continueOnFailure = value; }

        /// <summary>Backing field for <see cref="DelayBetweenPriorityMachines" /> property.</summary>
        private long? _delayBetweenPriorityMachines;

        /// <summary>The delay between machines in different priorities in minutes</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? DelayBetweenPriorityMachines { get => this._delayBetweenPriorityMachines; set => this._delayBetweenPriorityMachines = value; }

        /// <summary>Backing field for <see cref="Id" /> property.</summary>
        private long? _id;

        /// <summary>Id of the recovery group</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Id { get => this._id; set => this._id = value; }

        /// <summary>Backing field for <see cref="Name" /> property.</summary>
        private string _name;

        /// <summary>Name of the recovery group</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

        /// <summary>Backing field for <see cref="PostRecoveryActions" /> property.</summary>
        private Commvault.Powershell.Models.IDrOperationScript[] _postRecoveryActions;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IDrOperationScript[] PostRecoveryActions { get => this._postRecoveryActions; set => this._postRecoveryActions = value; }

        /// <summary>Backing field for <see cref="RecoveryPoint" /> property.</summary>
        private long? _recoveryPoint;

        /// <summary>
        /// Timestamp for group restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? RecoveryPoint { get => this._recoveryPoint; set => this._recoveryPoint = value; }

        /// <summary>
        /// Timestamp for group restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? RecoveryPointDetailRecoveryPoint { get => ((Commvault.Powershell.Models.IRecoveryGroupRpDetailsInternal)RecoveryPointDetails).RecoveryPoint; set => ((Commvault.Powershell.Models.IRecoveryGroupRpDetailsInternal)RecoveryPointDetails).RecoveryPoint = value ?? default(long); }

        /// <summary>Type of recovery point category that can be selected. Default is Latest</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string RecoveryPointDetailRecoveryPointCategory { get => ((Commvault.Powershell.Models.IRecoveryGroupRpDetailsInternal)RecoveryPointDetails).RecoveryPointCategory; set => ((Commvault.Powershell.Models.IRecoveryGroupRpDetailsInternal)RecoveryPointDetails).RecoveryPointCategory = value ?? null; }

        /// <summary>Backing field for <see cref="RecoveryPointDetails" /> property.</summary>
        private Commvault.Powershell.Models.IRecoveryGroupRpDetails _recoveryPointDetails;

        /// <summary>
        /// Contains the information regarding the recovery group level recoveryPoint selection
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IRecoveryGroupRpDetails RecoveryPointDetails { get => (this._recoveryPointDetails = this._recoveryPointDetails ?? new Commvault.Powershell.Models.RecoveryGroupRpDetails()); set => this._recoveryPointDetails = value; }

        /// <summary>Backing field for <see cref="Target" /> property.</summary>
        private Commvault.Powershell.Models.IIdName _target;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdName Target { get => (this._target = this._target ?? new Commvault.Powershell.Models.IdName()); set => this._target = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? TargetId { get => ((Commvault.Powershell.Models.IIdNameInternal)Target).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Target).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string TargetName { get => ((Commvault.Powershell.Models.IIdNameInternal)Target).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Target).Name = value ?? null; }

        /// <summary>Creates an new <see cref="RecoveryGroup" /> instance.</summary>
        public RecoveryGroup()
        {

        }
    }
    /// Model to provide basic detail of recovery group
    public partial interface IRecoveryGroup :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Recovery Action</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Recovery Action",
        SerializedName = @"action",
        PossibleTypes = new [] { typeof(string) })]
        string Action { get; set; }
        /// <summary>Set to true to continue to the next priority machines on failure</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Set to true to continue to the next priority machines on failure",
        SerializedName = @"continueOnFailure",
        PossibleTypes = new [] { typeof(bool) })]
        bool? ContinueOnFailure { get; set; }
        /// <summary>The delay between machines in different priorities in minutes</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The delay between machines in different priorities in minutes",
        SerializedName = @"delayBetweenPriorityMachines",
        PossibleTypes = new [] { typeof(long) })]
        long? DelayBetweenPriorityMachines { get; set; }
        /// <summary>Id of the recovery group</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Id of the recovery group",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? Id { get; set; }
        /// <summary>Name of the recovery group</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Name of the recovery group",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"postRecoveryActions",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDrOperationScript) })]
        Commvault.Powershell.Models.IDrOperationScript[] PostRecoveryActions { get; set; }
        /// <summary>
        /// Timestamp for group restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Timestamp for group restore in case of disaster, default value is 0 as latest recovery point",
        SerializedName = @"recoveryPoint",
        PossibleTypes = new [] { typeof(long) })]
        long? RecoveryPoint { get; set; }
        /// <summary>
        /// Timestamp for group restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Timestamp for group restore in case of disaster, default value is 0 as latest recovery point",
        SerializedName = @"recoveryPoint",
        PossibleTypes = new [] { typeof(long) })]
        long? RecoveryPointDetailRecoveryPoint { get; set; }
        /// <summary>Type of recovery point category that can be selected. Default is Latest</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Type of recovery point category that can be selected. Default is Latest",
        SerializedName = @"recoveryPointCategory",
        PossibleTypes = new [] { typeof(string) })]
        string RecoveryPointDetailRecoveryPointCategory { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? TargetId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string TargetName { get; set; }

    }
    /// Model to provide basic detail of recovery group
    internal partial interface IRecoveryGroupInternal

    {
        /// <summary>Recovery Action</summary>
        string Action { get; set; }
        /// <summary>Set to true to continue to the next priority machines on failure</summary>
        bool? ContinueOnFailure { get; set; }
        /// <summary>The delay between machines in different priorities in minutes</summary>
        long? DelayBetweenPriorityMachines { get; set; }
        /// <summary>Id of the recovery group</summary>
        long? Id { get; set; }
        /// <summary>Name of the recovery group</summary>
        string Name { get; set; }

        Commvault.Powershell.Models.IDrOperationScript[] PostRecoveryActions { get; set; }
        /// <summary>
        /// Timestamp for group restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        long? RecoveryPoint { get; set; }
        /// <summary>
        /// Timestamp for group restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        long? RecoveryPointDetailRecoveryPoint { get; set; }
        /// <summary>Type of recovery point category that can be selected. Default is Latest</summary>
        string RecoveryPointDetailRecoveryPointCategory { get; set; }
        /// <summary>
        /// Contains the information regarding the recovery group level recoveryPoint selection
        /// </summary>
        Commvault.Powershell.Models.IRecoveryGroupRpDetails RecoveryPointDetails { get; set; }

        Commvault.Powershell.Models.IIdName Target { get; set; }

        long? TargetId { get; set; }

        string TargetName { get; set; }

    }
}