generated/api/Models/DrivePoolDetailsResp.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 DrivePoolDetailsResp : Commvault.Powershell.Models.IDrivePoolDetailsResp, Commvault.Powershell.Models.IDrivePoolDetailsRespInternal, 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>Internal Acessors for Status</summary> Commvault.Powershell.Models.IDriveStatus Commvault.Powershell.Models.IDrivePoolDetailsRespInternal.Status { get => (this._status = this._status ?? new Commvault.Powershell.Models.DriveStatus()); set { {_status = value;} } } /// <summary>Backing field for <see cref="FirmwareRevision" /> property.</summary> private string _firmwareRevision; /// <summary>drive firmwareRevision.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string FirmwareRevision { get => this._firmwareRevision; set => this._firmwareRevision = value; } /// <summary>Backing field for <see cref="HoursUsedSinceLastClean" /> property.</summary> private long? _hoursUsedSinceLastClean; /// <summary>drive hours used from last clean.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? HoursUsedSinceLastClean { get => this._hoursUsedSinceLastClean; set => this._hoursUsedSinceLastClean = 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="Manufacturer" /> property.</summary> private string _manufacturer; /// <summary>drive 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>drive 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>drive 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.IDriveStatus _status; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IDriveStatus Status { get => (this._status = this._status ?? new Commvault.Powershell.Models.DriveStatus()); set => this._status = value; } /// <summary>drive is enabled or not.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? StatusEnable { get => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).Enable; set => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).Enable = value ?? default(bool); } /// <summary>drive maintenance mode</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? StatusMaintenanceMode { get => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).MaintenanceMode; set => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).MaintenanceMode = value ?? default(bool); } /// <summary>drive mark for read only.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? StatusMarkForReadOnly { get => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).MarkForReadOnly; set => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).MarkForReadOnly = value ?? default(bool); } /// <summary>drive offline reason.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StatusOfflineReason { get => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).OfflineReason; set => ((Commvault.Powershell.Models.IDriveStatusInternal)Status).OfflineReason = value ?? null; } /// <summary>Creates an new <see cref="DrivePoolDetailsResp" /> instance.</summary> public DrivePoolDetailsResp() { } /// <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 IDrivePoolDetailsResp : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IIdName { /// <summary>drive firmwareRevision.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive firmwareRevision.", SerializedName = @"firmwareRevision", PossibleTypes = new [] { typeof(string) })] string FirmwareRevision { get; set; } /// <summary>drive hours used from last clean.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive hours used from last clean.", SerializedName = @"hoursUsedSinceLastClean", PossibleTypes = new [] { typeof(long) })] long? HoursUsedSinceLastClean { get; set; } /// <summary>drive manufacturer.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive manufacturer.", SerializedName = @"manufacturer", PossibleTypes = new [] { typeof(string) })] string Manufacturer { get; set; } /// <summary>drive model.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive model.", SerializedName = @"model", PossibleTypes = new [] { typeof(string) })] string Model { get; set; } /// <summary>drive serial Number.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive serial Number.", SerializedName = @"serialNumber", PossibleTypes = new [] { typeof(string) })] string SerialNumber { get; set; } /// <summary>drive is enabled or not.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive is enabled or not.", SerializedName = @"enable", PossibleTypes = new [] { typeof(bool) })] bool? StatusEnable { get; set; } /// <summary>drive maintenance mode</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive maintenance mode", SerializedName = @"maintenanceMode", PossibleTypes = new [] { typeof(bool) })] bool? StatusMaintenanceMode { get; set; } /// <summary>drive mark for read only.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive mark for read only.", SerializedName = @"markForReadOnly", PossibleTypes = new [] { typeof(bool) })] bool? StatusMarkForReadOnly { get; set; } /// <summary>drive offline reason.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive offline reason.", SerializedName = @"offlineReason", PossibleTypes = new [] { typeof(string) })] string StatusOfflineReason { get; set; } } internal partial interface IDrivePoolDetailsRespInternal : Commvault.Powershell.Models.IIdNameInternal { /// <summary>drive firmwareRevision.</summary> string FirmwareRevision { get; set; } /// <summary>drive hours used from last clean.</summary> long? HoursUsedSinceLastClean { get; set; } /// <summary>drive manufacturer.</summary> string Manufacturer { get; set; } /// <summary>drive model.</summary> string Model { get; set; } /// <summary>drive serial Number.</summary> string SerialNumber { get; set; } Commvault.Powershell.Models.IDriveStatus Status { get; set; } /// <summary>drive is enabled or not.</summary> bool? StatusEnable { get; set; } /// <summary>drive maintenance mode</summary> bool? StatusMaintenanceMode { get; set; } /// <summary>drive mark for read only.</summary> bool? StatusMarkForReadOnly { get; set; } /// <summary>drive offline reason.</summary> string StatusOfflineReason { get; set; } } } |