generated/api/Models/DdbDiskInfo.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>DDB disk information of a MediaAgent</summary>
    public partial class DdbDiskInfo :
        Commvault.Powershell.Models.IDdbDiskInfo,
        Commvault.Powershell.Models.IDdbDiskInfoInternal
    {

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

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

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

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

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

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

        /// <summary>Amount of space consumed by the DDB partitions hosted on this disk</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? ConsumedSpaceMb { get => this._consumedSpaceMb; set => this._consumedSpaceMb = value; }

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

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

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

        /// <summary>File path of the DDB disk</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DiskPath { get => this._diskPath; set => this._diskPath = value; }

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

        /// <summary>Available usable free space on the disk path</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? FreeSpaceMb { get => this._freeSpaceMb; set => this._freeSpaceMb = value; }

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

        /// <summary>Number of DDB partitions hosted on this disk</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? NumOfPartitions { get => this._numOfPartitions; set => this._numOfPartitions = value; }

        /// <summary>Backing field for <see cref="PartitionList" /> property.</summary>
        private Commvault.Powershell.Models.IDdbSubStoreInfo[] _partitionList;

        /// <summary>List of DDB partitions hosted on this disk</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IDdbSubStoreInfo[] PartitionList { get => this._partitionList; set => this._partitionList = value; }

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

        /// <summary>Satus of the disk</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Status { get => this._status; set => this._status = value; }

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

        /// <summary>Total space capacity of the disk path</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? TotalSpaceMb { get => this._totalSpaceMb; set => this._totalSpaceMb = value; }

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

        }
    }
    /// DDB disk information of a MediaAgent
    public partial interface IDdbDiskInfo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? ClientInfoId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string ClientInfoName { get; set; }
        /// <summary>Amount of space consumed by the DDB partitions hosted on this disk</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Amount of space consumed by the DDB partitions hosted on this disk",
        SerializedName = @"consumedSpaceMB",
        PossibleTypes = new [] { typeof(long) })]
        long? ConsumedSpaceMb { get; set; }
        /// <summary>Id of the DDB disk</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Id of the DDB disk",
        SerializedName = @"diskId",
        PossibleTypes = new [] { typeof(long) })]
        long? DiskId { get; set; }
        /// <summary>File path of the DDB disk</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"File path of the DDB disk",
        SerializedName = @"diskPath",
        PossibleTypes = new [] { typeof(string) })]
        string DiskPath { get; set; }
        /// <summary>Available usable free space on the disk path</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Available usable free space on the disk path",
        SerializedName = @"freeSpaceMB",
        PossibleTypes = new [] { typeof(long) })]
        long? FreeSpaceMb { get; set; }
        /// <summary>Number of DDB partitions hosted on this disk</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Number of DDB partitions hosted on this disk",
        SerializedName = @"numOfPartitions",
        PossibleTypes = new [] { typeof(long) })]
        long? NumOfPartitions { get; set; }
        /// <summary>List of DDB partitions hosted on this disk</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of DDB partitions hosted on this disk",
        SerializedName = @"partitionList",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDdbSubStoreInfo) })]
        Commvault.Powershell.Models.IDdbSubStoreInfo[] PartitionList { get; set; }
        /// <summary>Satus of the disk</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Satus of the disk",
        SerializedName = @"status",
        PossibleTypes = new [] { typeof(string) })]
        string Status { get; set; }
        /// <summary>Total space capacity of the disk path</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Total space capacity of the disk path",
        SerializedName = @"totalSpaceMB",
        PossibleTypes = new [] { typeof(long) })]
        long? TotalSpaceMb { get; set; }

    }
    /// DDB disk information of a MediaAgent
    internal partial interface IDdbDiskInfoInternal

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

        long? ClientInfoId { get; set; }

        string ClientInfoName { get; set; }
        /// <summary>Amount of space consumed by the DDB partitions hosted on this disk</summary>
        long? ConsumedSpaceMb { get; set; }
        /// <summary>Id of the DDB disk</summary>
        long? DiskId { get; set; }
        /// <summary>File path of the DDB disk</summary>
        string DiskPath { get; set; }
        /// <summary>Available usable free space on the disk path</summary>
        long? FreeSpaceMb { get; set; }
        /// <summary>Number of DDB partitions hosted on this disk</summary>
        long? NumOfPartitions { get; set; }
        /// <summary>List of DDB partitions hosted on this disk</summary>
        Commvault.Powershell.Models.IDdbSubStoreInfo[] PartitionList { get; set; }
        /// <summary>Satus of the disk</summary>
        string Status { get; set; }
        /// <summary>Total space capacity of the disk path</summary>
        long? TotalSpaceMb { get; set; }

    }
}