generated/api/Models/SoftwareCacheDetail.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>Details of software cache server.</summary>
    public partial class SoftwareCacheDetail :
        Commvault.Powershell.Models.ISoftwareCacheDetail,
        Commvault.Powershell.Models.ISoftwareCacheDetailInternal
    {

        /// <summary>Backing field for <see cref="Associations" /> property.</summary>
        private Commvault.Powershell.Models.IServerOrServerGroupAssociation[] _associations;

        /// <summary>List of servers and server groups.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IServerOrServerGroupAssociation[] Associations { get => this._associations; set => this._associations = value; }

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

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

        /// <summary>Backing field for <see cref="CacheContents" /> property.</summary>
        private Commvault.Powershell.Models.ISoftwareCacheContent[] _cacheContents;

        /// <summary>List of cache content details of software cache.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.ISoftwareCacheContent[] CacheContents { get => this._cacheContents; set => this._cacheContents = value; }

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

        /// <summary>The software cache directory path where the media will be located</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string CacheDirectory { get => this._cacheDirectory; set => this._cacheDirectory = value; }

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

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

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

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

        /// <summary>Whether the software cache is configurable</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Configurable { get => this._configurable; set => this._configurable = value; }

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

        /// <summary>Whether the software cache is enabled or not</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Enabled { get => this._enabled; set => this._enabled = value; }

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

        /// <summary>
        /// The status of the software cache for server. Either In Sync or Out of Sync with CommServe cache
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Status { get => this._status; set => this._status = value; }

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

        }
    }
    /// Details of software cache server.
    public partial interface ISoftwareCacheDetail :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>List of servers and server groups.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of servers and server groups.",
        SerializedName = @"associations",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IServerOrServerGroupAssociation) })]
        Commvault.Powershell.Models.IServerOrServerGroupAssociation[] Associations { get; set; }
        /// <summary>List of cache content details of software cache.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of cache content details of software cache.",
        SerializedName = @"cacheContents",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ISoftwareCacheContent) })]
        Commvault.Powershell.Models.ISoftwareCacheContent[] CacheContents { get; set; }
        /// <summary>The software cache directory path where the media will be located</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The software cache directory path where the media will be located",
        SerializedName = @"cacheDirectory",
        PossibleTypes = new [] { typeof(string) })]
        string CacheDirectory { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string CacheName { get; set; }
        /// <summary>Whether the software cache is configurable</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Whether the software cache is configurable",
        SerializedName = @"configurable",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Configurable { get; set; }
        /// <summary>Whether the software cache is enabled or not</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Whether the software cache is enabled or not",
        SerializedName = @"enabled",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Enabled { get; set; }
        /// <summary>
        /// The status of the software cache for server. Either In Sync or Out of Sync with CommServe cache
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The status of the software cache for server. Either In Sync or Out of Sync with CommServe cache",
        SerializedName = @"status",
        PossibleTypes = new [] { typeof(string) })]
        string Status { get; set; }

    }
    /// Details of software cache server.
    internal partial interface ISoftwareCacheDetailInternal

    {
        /// <summary>List of servers and server groups.</summary>
        Commvault.Powershell.Models.IServerOrServerGroupAssociation[] Associations { get; set; }

        Commvault.Powershell.Models.IIdName Cache { get; set; }
        /// <summary>List of cache content details of software cache.</summary>
        Commvault.Powershell.Models.ISoftwareCacheContent[] CacheContents { get; set; }
        /// <summary>The software cache directory path where the media will be located</summary>
        string CacheDirectory { get; set; }

        long? CacheId { get; set; }

        string CacheName { get; set; }
        /// <summary>Whether the software cache is configurable</summary>
        bool? Configurable { get; set; }
        /// <summary>Whether the software cache is enabled or not</summary>
        bool? Enabled { get; set; }
        /// <summary>
        /// The status of the software cache for server. Either In Sync or Out of Sync with CommServe cache
        /// </summary>
        string Status { get; set; }

    }
}