generated/api/Models/ValidateVMRestoreReq.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>VM restore validate request body</summary>
    public partial class ValidateVMRestoreReq :
        Commvault.Powershell.Models.IValidateVMRestoreReq,
        Commvault.Powershell.Models.IValidateVMRestoreReqInternal
    {

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

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

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

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

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

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

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

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

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

        /// <summary>
        /// Backup source information from where you want to restore. 0 (Automatic), 1 (Snap Copy), 2 (Primary), 3 to N (Aux Copy)
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? BackupSource { get => this._backupSource; set => this._backupSource = value; }

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

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

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

        /// <summary>
        /// Restore window UTC from time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string FromTime { get => this._fromTime; set => this._fromTime = value; }

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

        /// <summary>Enable email notificaiton for job status. Defaults to false</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? NotifyOnJobCompletion { get => this._notifyOnJobCompletion; set => this._notifyOnJobCompletion = value; }

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

        /// <summary>
        /// Restore window UTC to time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ToTime { get => this._toTime; set => this._toTime = value; }

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

        }
    }
    /// VM restore validate request body
    public partial interface IValidateVMRestoreReq :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? AccessNodeGroupId { get; set; }

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

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string AccessNodeName { get; set; }
        /// <summary>
        /// Backup source information from where you want to restore. 0 (Automatic), 1 (Snap Copy), 2 (Primary), 3 to N (Aux Copy)
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Backup source information from where you want to restore. 0 (Automatic), 1 (Snap Copy), 2 (Primary), 3 to N (Aux Copy)",
        SerializedName = @"backupSource",
        PossibleTypes = new [] { typeof(long) })]
        long? BackupSource { get; set; }
        /// <summary>
        /// Restore window UTC from time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Restore window UTC from time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd",
        SerializedName = @"fromTime",
        PossibleTypes = new [] { typeof(string) })]
        string FromTime { get; set; }
        /// <summary>Enable email notificaiton for job status. Defaults to false</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Enable email notificaiton for job status. Defaults to false",
        SerializedName = @"notifyOnJobCompletion",
        PossibleTypes = new [] { typeof(bool) })]
        bool? NotifyOnJobCompletion { get; set; }
        /// <summary>
        /// Restore window UTC to time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Restore window UTC to time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd",
        SerializedName = @"toTime",
        PossibleTypes = new [] { typeof(string) })]
        string ToTime { get; set; }

    }
    /// VM restore validate request body
    internal partial interface IValidateVMRestoreReqInternal

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

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

        long? AccessNodeGroupId { get; set; }

        string AccessNodeGroupName { get; set; }

        long? AccessNodeId { get; set; }

        string AccessNodeName { get; set; }
        /// <summary>
        /// Backup source information from where you want to restore. 0 (Automatic), 1 (Snap Copy), 2 (Primary), 3 to N (Aux Copy)
        /// </summary>
        long? BackupSource { get; set; }
        /// <summary>
        /// Restore window UTC from time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
        /// </summary>
        string FromTime { get; set; }
        /// <summary>Enable email notificaiton for job status. Defaults to false</summary>
        bool? NotifyOnJobCompletion { get; set; }
        /// <summary>
        /// Restore window UTC to time. Valid Formats: yyyy-MM-ddTHH:mm:ss or yyyy-MM-ddTHH:mm:sszzz or yyyy-MM-dd
        /// </summary>
        string ToTime { get; set; }

    }
}