generated/api/Models/StorageListSummary.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.2, generator: @autorest/powershell@3.0.494) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; public partial class StorageListSummary : Commvault.Powershell.Models.IStorageListSummary, Commvault.Powershell.Models.IStorageListSummaryInternal { /// <summary>Backing field for <see cref="Capacity" /> property.</summary> private long? _capacity; /// <summary>provides the capacity of the storage pool. Provided in megabytes</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Capacity { get => this._capacity; set => this._capacity = value; } /// <summary>Backing field for <see cref="Commcell" /> property.</summary> private Commvault.Powershell.Models.IIdName _commcell; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Commcell { get => (this._commcell = this._commcell ?? new Commvault.Powershell.Models.IdName()); set => this._commcell = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CommcellId { get => ((Commvault.Powershell.Models.IIdNameInternal)Commcell).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Commcell).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CommcellName { get => ((Commvault.Powershell.Models.IIdNameInternal)Commcell).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Commcell).Name = value ?? null; } /// <summary>Internal Acessors for Commcell</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IStorageListSummaryInternal.Commcell { get => (this._commcell = this._commcell ?? new Commvault.Powershell.Models.IdName()); set { {_commcell = value;} } } /// <summary>Internal Acessors for Company</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IStorageListSummaryInternal.Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set { {_company = value;} } } /// <summary>Backing field for <see cref="Company" /> property.</summary> private Commvault.Powershell.Models.IIdName _company; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set => this._company = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CompanyId { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CompanyName { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name = value ?? null; } /// <summary>Backing field for <see cref="FreeSpace" /> property.</summary> private long? _freeSpace; /// <summary>provides the free space available on the storage pool. Provided in megabytes.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? FreeSpace { get => this._freeSpace; set => this._freeSpace = value; } /// <summary>Backing field for <see cref="Id" /> property.</summary> private long? _id; /// <summary>id of the storage pool</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Id { get => this._id; set => this._id = value; } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; /// <summary>storage pool name</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <summary>Backing field for <see cref="Status" /> property.</summary> private string _status; /// <summary>mentions if the storage pool is enabled</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Status { get => this._status; set => this._status = value; } /// <summary>Backing field for <see cref="StoragePoolType" /> property.</summary> private string _storagePoolType; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string StoragePoolType { get => this._storagePoolType; set => this._storagePoolType = value; } /// <summary>Creates an new <see cref="StorageListSummary" /> instance.</summary> public StorageListSummary() { } } public partial interface IStorageListSummary : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>provides the capacity of the storage pool. Provided in megabytes</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"provides the capacity of the storage pool. Provided in megabytes", SerializedName = @"capacity", PossibleTypes = new [] { typeof(long) })] long? Capacity { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CommcellId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CommcellName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CompanyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CompanyName { get; set; } /// <summary>provides the free space available on the storage pool. Provided in megabytes.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"provides the free space available on the storage pool. Provided in megabytes.", SerializedName = @"freeSpace", PossibleTypes = new [] { typeof(long) })] long? FreeSpace { get; set; } /// <summary>id of the storage pool</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"id of the storage pool", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } /// <summary>storage pool name</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"storage pool name", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } /// <summary>mentions if the storage pool is enabled</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"mentions if the storage pool is enabled", SerializedName = @"status", PossibleTypes = new [] { typeof(string) })] string Status { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"storagePoolType", PossibleTypes = new [] { typeof(string) })] string StoragePoolType { get; set; } } internal partial interface IStorageListSummaryInternal { /// <summary>provides the capacity of the storage pool. Provided in megabytes</summary> long? Capacity { get; set; } Commvault.Powershell.Models.IIdName Commcell { get; set; } long? CommcellId { get; set; } string CommcellName { get; set; } Commvault.Powershell.Models.IIdName Company { get; set; } long? CompanyId { get; set; } string CompanyName { get; set; } /// <summary>provides the free space available on the storage pool. Provided in megabytes.</summary> long? FreeSpace { get; set; } /// <summary>id of the storage pool</summary> long? Id { get; set; } /// <summary>storage pool name</summary> string Name { get; set; } /// <summary>mentions if the storage pool is enabled</summary> string Status { get; set; } string StoragePoolType { get; set; } } } |