generated/api/Models/StorageListSummary.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // 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="CloudStorageClass" /> property.</summary> private Commvault.Powershell.Models.IIdName _cloudStorageClass; /// <summary>It indicates the storage class of cloud storage pool.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName CloudStorageClass { get => (this._cloudStorageClass = this._cloudStorageClass ?? new Commvault.Powershell.Models.IdName()); set => this._cloudStorageClass = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CloudStorageClassId { get => ((Commvault.Powershell.Models.IIdNameInternal)CloudStorageClass).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)CloudStorageClass).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CloudStorageClassName { get => ((Commvault.Powershell.Models.IIdNameInternal)CloudStorageClass).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)CloudStorageClass).Name = value ?? null; } /// <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 CloudStorageClass</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IStorageListSummaryInternal.CloudStorageClass { get => (this._cloudStorageClass = this._cloudStorageClass ?? new Commvault.Powershell.Models.IdName()); set { {_cloudStorageClass = value;} } } /// <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>Internal Acessors for Region</summary> Commvault.Powershell.Models.IIdNameDisplayName Commvault.Powershell.Models.IStorageListSummaryInternal.Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdNameDisplayName()); set { {_region = 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="LibraryVendorType" /> property.</summary> private long? _libraryVendorType; /// <summary>Gives the storage vendor of the storage pool.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? LibraryVendorType { get => this._libraryVendorType; set => this._libraryVendorType = 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="Region" /> property.</summary> private Commvault.Powershell.Models.IIdNameDisplayName _region; /// <summary>It indicates the region of the storage pool.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameDisplayName Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdNameDisplayName()); set => this._region = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RegionDisplayName { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).DisplayName; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).DisplayName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RegionId { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Id; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RegionName { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Name; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Name = value ?? null; } /// <summary>Backing field for <see cref="SizeOnDisk" /> property.</summary> private long? _sizeOnDisk; /// <summary>It indicates the amount of space consumed by storage pool.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? SizeOnDisk { get => this._sizeOnDisk; set => this._sizeOnDisk = 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>Backing field for <see cref="StorageType" /> property.</summary> private string _storageType; /// <summary>Indicates the type of storage for a storage pool.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string StorageType { get => this._storageType; set => this._storageType = 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CloudStorageClassId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CloudStorageClassName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CommcellId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CommcellName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CompanyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"id of the storage pool", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } /// <summary>Gives the storage vendor of the storage pool.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Gives the storage vendor of the storage pool.", SerializedName = @"libraryVendorType", PossibleTypes = new [] { typeof(long) })] long? LibraryVendorType { get; set; } /// <summary>storage pool name</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"storage pool name", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string RegionDisplayName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? RegionId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string RegionName { get; set; } /// <summary>It indicates the amount of space consumed by storage pool.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"It indicates the amount of space consumed by storage pool.", SerializedName = @"sizeOnDisk", PossibleTypes = new [] { typeof(long) })] long? SizeOnDisk { get; set; } /// <summary>mentions if the storage pool is enabled</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"storagePoolType", PossibleTypes = new [] { typeof(string) })] string StoragePoolType { get; set; } /// <summary>Indicates the type of storage for a storage pool.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Indicates the type of storage for a storage pool.", SerializedName = @"storageType", PossibleTypes = new [] { typeof(string) })] string StorageType { get; set; } } internal partial interface IStorageListSummaryInternal { /// <summary>provides the capacity of the storage pool. Provided in megabytes</summary> long? Capacity { get; set; } /// <summary>It indicates the storage class of cloud storage pool.</summary> Commvault.Powershell.Models.IIdName CloudStorageClass { get; set; } long? CloudStorageClassId { get; set; } string CloudStorageClassName { 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>Gives the storage vendor of the storage pool.</summary> long? LibraryVendorType { get; set; } /// <summary>storage pool name</summary> string Name { get; set; } /// <summary>It indicates the region of the storage pool.</summary> Commvault.Powershell.Models.IIdNameDisplayName Region { get; set; } string RegionDisplayName { get; set; } long? RegionId { get; set; } string RegionName { get; set; } /// <summary>It indicates the amount of space consumed by storage pool.</summary> long? SizeOnDisk { get; set; } /// <summary>mentions if the storage pool is enabled</summary> string Status { get; set; } string StoragePoolType { get; set; } /// <summary>Indicates the type of storage for a storage pool.</summary> string StorageType { get; set; } } } |