generated/api/Models/TapeDetails.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 TapeDetails : Commvault.Powershell.Models.ITapeDetails, Commvault.Powershell.Models.ITapeDetailsInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IIdName" /> /// </summary> private Commvault.Powershell.Models.IIdName __idName = new Commvault.Powershell.Models.IdName(); /// <summary>Backing field for <see cref="BarcodeReader" /> property.</summary> private bool? _barcodeReader; /// <summary>library bar code.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? BarcodeReader { get => this._barcodeReader; set => this._barcodeReader = value; } /// <summary>Internal Acessors for Status</summary> Commvault.Powershell.Models.IStatus Commvault.Powershell.Models.ITapeDetailsInternal.Status { get => (this._status = this._status ?? new Commvault.Powershell.Models.Status()); set { {_status = value;} } } /// <summary>Backing field for <see cref="Drives" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IDriveSummary> _drives; /// <summary>list of drives.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IDriveSummary> Drives { get => this._drives; set => this._drives = value; } /// <summary>Backing field for <see cref="FirmwareRevision" /> property.</summary> private string _firmwareRevision; /// <summary>library firmware revision.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string FirmwareRevision { get => this._firmwareRevision; set => this._firmwareRevision = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? Id { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Id = value ?? default(long); } /// <summary>Backing field for <see cref="LibraryType" /> property.</summary> private long? _libraryType; /// <summary>library type.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? LibraryType { get => this._libraryType; set => this._libraryType = value; } /// <summary>Backing field for <see cref="Manufacturer" /> property.</summary> private string _manufacturer; /// <summary>library manufacturer.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Manufacturer { get => this._manufacturer; set => this._manufacturer = value; } /// <summary>Backing field for <see cref="Model" /> property.</summary> private string _model; /// <summary>library model.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Model { get => this._model; set => this._model = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Name { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name = value ?? null; } /// <summary>Backing field for <see cref="SerialNumber" /> property.</summary> private string _serialNumber; /// <summary>library serial number.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SerialNumber { get => this._serialNumber; set => this._serialNumber = value; } /// <summary>Backing field for <see cref="Status" /> property.</summary> private Commvault.Powershell.Models.IStatus _status; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IStatus Status { get => (this._status = this._status ?? new Commvault.Powershell.Models.Status()); set => this._status = value; } /// <summary>Tells if library is enabled or not</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? StatusEnable { get => ((Commvault.Powershell.Models.IStatusInternal)Status).Enable; set => ((Commvault.Powershell.Models.IStatusInternal)Status).Enable = value ?? default(bool); } /// <summary>library maintenance mode.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? StatusMaintenanceMode { get => ((Commvault.Powershell.Models.IStatusInternal)Status).MaintenanceMode; set => ((Commvault.Powershell.Models.IStatusInternal)Status).MaintenanceMode = value ?? default(bool); } /// <summary>library offline reason.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StatusOfflineReason { get => ((Commvault.Powershell.Models.IStatusInternal)Status).OfflineReason; set => ((Commvault.Powershell.Models.IStatusInternal)Status).OfflineReason = value ?? null; } /// <summary>Backing field for <see cref="Storage" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IStroagePoolList> _storage; /// <summary>Returns list of stroage.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IStroagePoolList> Storage { get => this._storage; set => this._storage = value; } /// <summary>Creates an new <see cref="TapeDetails" /> instance.</summary> public TapeDetails() { } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(__idName), __idName); await eventListener.AssertObjectIsValid(nameof(__idName), __idName); } } public partial interface ITapeDetails : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IIdName { /// <summary>library bar code.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library bar code.", SerializedName = @"barcodeReader", PossibleTypes = new [] { typeof(bool) })] bool? BarcodeReader { get; set; } /// <summary>list of drives.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"list of drives.", SerializedName = @"drives", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDriveSummary) })] System.Collections.Generic.List<Commvault.Powershell.Models.IDriveSummary> Drives { get; set; } /// <summary>library firmware revision.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library firmware revision.", SerializedName = @"firmwareRevision", PossibleTypes = new [] { typeof(string) })] string FirmwareRevision { get; set; } /// <summary>library type.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library type.", SerializedName = @"libraryType", PossibleTypes = new [] { typeof(long) })] long? LibraryType { get; set; } /// <summary>library manufacturer.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library manufacturer.", SerializedName = @"manufacturer", PossibleTypes = new [] { typeof(string) })] string Manufacturer { get; set; } /// <summary>library model.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library model.", SerializedName = @"model", PossibleTypes = new [] { typeof(string) })] string Model { get; set; } /// <summary>library serial number.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library serial number.", SerializedName = @"serialNumber", PossibleTypes = new [] { typeof(string) })] string SerialNumber { get; set; } /// <summary>Tells if library is enabled or not</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Tells if library is enabled or not", SerializedName = @"enable", PossibleTypes = new [] { typeof(bool) })] bool? StatusEnable { get; set; } /// <summary>library maintenance mode.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library maintenance mode.", SerializedName = @"maintenanceMode", PossibleTypes = new [] { typeof(bool) })] bool? StatusMaintenanceMode { get; set; } /// <summary>library offline reason.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library offline reason.", SerializedName = @"offlineReason", PossibleTypes = new [] { typeof(string) })] string StatusOfflineReason { get; set; } /// <summary>Returns list of stroage.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Returns list of stroage.", SerializedName = @"storage", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IStroagePoolList) })] System.Collections.Generic.List<Commvault.Powershell.Models.IStroagePoolList> Storage { get; set; } } internal partial interface ITapeDetailsInternal : Commvault.Powershell.Models.IIdNameInternal { /// <summary>library bar code.</summary> bool? BarcodeReader { get; set; } /// <summary>list of drives.</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IDriveSummary> Drives { get; set; } /// <summary>library firmware revision.</summary> string FirmwareRevision { get; set; } /// <summary>library type.</summary> long? LibraryType { get; set; } /// <summary>library manufacturer.</summary> string Manufacturer { get; set; } /// <summary>library model.</summary> string Model { get; set; } /// <summary>library serial number.</summary> string SerialNumber { get; set; } Commvault.Powershell.Models.IStatus Status { get; set; } /// <summary>Tells if library is enabled or not</summary> bool? StatusEnable { get; set; } /// <summary>library maintenance mode.</summary> bool? StatusMaintenanceMode { get; set; } /// <summary>library offline reason.</summary> string StatusOfflineReason { get; set; } /// <summary>Returns list of stroage.</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IStroagePoolList> Storage { get; set; } } } |