generated/api/Models/EditArrayInfo.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>
    /// Template for the editable generic information of an array. Region depicts the workload region which is only applicable
    /// to NetApp arrays as of now.
    /// </summary>
    public partial class EditArrayInfo :
        Commvault.Powershell.Models.IEditArrayInfo,
        Commvault.Powershell.Models.IEditArrayInfoInternal
    {

        /// <summary>Internal Acessors for Credential</summary>
        Commvault.Powershell.Models.IArrayUserPassword Commvault.Powershell.Models.IEditArrayInfoInternal.Credential { get => (this._credential = this._credential ?? new Commvault.Powershell.Models.ArrayUserPassword()); set { {_credential = value;} } }

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

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

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

        /// <summary>Host name of the array</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ControlHost { get => this._controlHost; set => this._controlHost = value; }

        /// <summary>Backing field for <see cref="Credential" /> property.</summary>
        private Commvault.Powershell.Models.IArrayUserPassword _credential;

        /// <summary>Template for options provided to user</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IArrayUserPassword Credential { get => (this._credential = this._credential ?? new Commvault.Powershell.Models.ArrayUserPassword()); set => this._credential = value; }

        /// <summary>Base 64 encoded Password to access the array</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string CredentialPassword { get => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).Password; set => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).Password = value ?? null; }

        /// <summary>Username to access the array</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string CredentialUserName { get => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).UserName; set => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).UserName = value ?? null; }

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

        /// <summary>Description about the Array</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Description { get => this._description; set => this._description = value; }

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

        /// <summary>Flags to be set for array</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Flags { get => this._flags; set => this._flags = value; }

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

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

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

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

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

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

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

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

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

        }
    }
    /// Template for the editable generic information of an array. Region depicts the workload region which is only applicable
    /// to NetApp arrays as of now.
    public partial interface IEditArrayInfo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Host name of the array</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Host name of the array",
        SerializedName = @"controlHost",
        PossibleTypes = new [] { typeof(string) })]
        string ControlHost { get; set; }
        /// <summary>Base 64 encoded Password to access the array</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Base 64 encoded Password to access the array",
        SerializedName = @"password",
        PossibleTypes = new [] { typeof(string) })]
        string CredentialPassword { get; set; }
        /// <summary>Username to access the array</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Username to access the array",
        SerializedName = @"userName",
        PossibleTypes = new [] { typeof(string) })]
        string CredentialUserName { get; set; }
        /// <summary>Description about the Array</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Description about the Array",
        SerializedName = @"description",
        PossibleTypes = new [] { typeof(string) })]
        string Description { get; set; }
        /// <summary>Flags to be set for array</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Flags to be set for array",
        SerializedName = @"flags",
        PossibleTypes = new [] { typeof(long) })]
        long? Flags { get; set; }

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

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

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

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

    }
    /// Template for the editable generic information of an array. Region depicts the workload region which is only applicable
    /// to NetApp arrays as of now.
    internal partial interface IEditArrayInfoInternal

    {
        /// <summary>Host name of the array</summary>
        string ControlHost { get; set; }
        /// <summary>Template for options provided to user</summary>
        Commvault.Powershell.Models.IArrayUserPassword Credential { get; set; }
        /// <summary>Base 64 encoded Password to access the array</summary>
        string CredentialPassword { get; set; }
        /// <summary>Username to access the array</summary>
        string CredentialUserName { get; set; }
        /// <summary>Description about the Array</summary>
        string Description { get; set; }
        /// <summary>Flags to be set for array</summary>
        long? Flags { get; set; }

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

        long? RegionId { get; set; }

        string RegionName { get; set; }

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

        long? SavedCredentialId { get; set; }

        string SavedCredentialName { get; set; }

    }
}