generated/api/Models/DriveSummary.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 DriveSummary : Commvault.Powershell.Models.IDriveSummary, Commvault.Powershell.Models.IDriveSummaryInternal, 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="ActiveMediaAgent" /> property.</summary> private string _activeMediaAgent; /// <summary>media Agent of the drive.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ActiveMediaAgent { get => this._activeMediaAgent; set => this._activeMediaAgent = value; } /// <summary>Backing field for <see cref="BarCode" /> property.</summary> private string _barCode; /// <summary>barCode of a drive.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string BarCode { get => this._barCode; set => this._barCode = value; } /// <summary>Backing field for <see cref="DriveAttributes" /> property.</summary> private long? _driveAttributes; /// <summary>if the drive attribute is 1 then the drive is cleanable.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? DriveAttributes { get => this._driveAttributes; set => this._driveAttributes = 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="MountStatus" /> property.</summary> private string _mountStatus; /// <summary>mountStatus of a drive.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string MountStatus { get => this._mountStatus; set => this._mountStatus = 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="Online" /> property.</summary> private string _online; /// <summary>status of a drive.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Online { get => this._online; set => this._online = value; } /// <summary>Backing field for <see cref="Status" /> property.</summary> private string _status; /// <summary>access of a drive.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Status { get => this._status; set => this._status = value; } /// <summary>Backing field for <see cref="Type" /> property.</summary> private string _type; /// <summary>drive type.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } /// <summary>Creates an new <see cref="DriveSummary" /> instance.</summary> public DriveSummary() { } /// <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 IDriveSummary : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IIdName { /// <summary>media Agent of the drive.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"media Agent of the drive.", SerializedName = @"activeMediaAgent", PossibleTypes = new [] { typeof(string) })] string ActiveMediaAgent { get; set; } /// <summary>barCode of a drive.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"barCode of a drive.", SerializedName = @"barCode", PossibleTypes = new [] { typeof(string) })] string BarCode { get; set; } /// <summary>if the drive attribute is 1 then the drive is cleanable.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"if the drive attribute is 1 then the drive is cleanable.", SerializedName = @"driveAttributes", PossibleTypes = new [] { typeof(long) })] long? DriveAttributes { get; set; } /// <summary>mountStatus of a drive.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"mountStatus of a drive.", SerializedName = @"mountStatus", PossibleTypes = new [] { typeof(string) })] string MountStatus { get; set; } /// <summary>status of a drive.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"status of a drive.", SerializedName = @"online", PossibleTypes = new [] { typeof(string) })] string Online { get; set; } /// <summary>access of a drive.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"access of a drive.", SerializedName = @"status", PossibleTypes = new [] { typeof(string) })] string Status { get; set; } /// <summary>drive type.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"drive type.", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; set; } } internal partial interface IDriveSummaryInternal : Commvault.Powershell.Models.IIdNameInternal { /// <summary>media Agent of the drive.</summary> string ActiveMediaAgent { get; set; } /// <summary>barCode of a drive.</summary> string BarCode { get; set; } /// <summary>if the drive attribute is 1 then the drive is cleanable.</summary> long? DriveAttributes { get; set; } /// <summary>mountStatus of a drive.</summary> string MountStatus { get; set; } /// <summary>status of a drive.</summary> string Online { get; set; } /// <summary>access of a drive.</summary> string Status { get; set; } /// <summary>drive type.</summary> string Type { get; set; } } } |