generated/api/Models/MigrationSource.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>Source of the migration NAS data</summary>
    public partial class MigrationSource :
        Commvault.Powershell.Models.IMigrationSource,
        Commvault.Powershell.Models.IMigrationSourceInternal
    {

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

        /// <summary>Access nodes for source clients</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IAccessNodes[] AccessNode { get => this._accessNode; set => this._accessNode = value; }

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

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

        /// <summary>NAS type</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string NasType { get => this._nasType; set => this._nasType = value; }

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

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

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

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

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

        /// <summary>NAS filer name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string SourceName { get => this._sourceName; set => this._sourceName = value; }

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

        }
    }
    /// Source of the migration NAS data
    public partial interface IMigrationSource :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Access nodes for source clients</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Access nodes for source clients",
        SerializedName = @"accessNode",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAccessNodes) })]
        Commvault.Powershell.Models.IAccessNodes[] AccessNode { get; set; }
        /// <summary>NAS type</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"NAS type",
        SerializedName = @"NASType",
        PossibleTypes = new [] { typeof(string) })]
        string NasType { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string SourceCredentialsName { get; set; }
        /// <summary>NAS filer name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"NAS filer name",
        SerializedName = @"sourceName",
        PossibleTypes = new [] { typeof(string) })]
        string SourceName { get; set; }

    }
    /// Source of the migration NAS data
    internal partial interface IMigrationSourceInternal

    {
        /// <summary>Access nodes for source clients</summary>
        Commvault.Powershell.Models.IAccessNodes[] AccessNode { get; set; }
        /// <summary>NAS type</summary>
        string NasType { get; set; }

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

        long? SourceCredentialsId { get; set; }

        string SourceCredentialsName { get; set; }
        /// <summary>NAS filer name</summary>
        string SourceName { get; set; }

    }
}