generated/api/Models/SlotInfo.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; /// <summary>Details of Slot</summary> public partial class SlotInfo : Commvault.Powershell.Models.ISlotInfo, Commvault.Powershell.Models.ISlotInfoInternal { /// <summary>Internal Acessors for Slot</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ISlotInfoInternal.Slot { get => (this._slot = this._slot ?? new Commvault.Powershell.Models.IdName()); set { {_slot = value;} } } /// <summary>Backing field for <see cref="LibraryId" /> property.</summary> private long? _libraryId; /// <summary>Id of Library</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? LibraryId { get => this._libraryId; set => this._libraryId = value; } /// <summary>Backing field for <see cref="MediaDetails" /> property.</summary> private Commvault.Powershell.Models.IMediaDetails _mediaDetails; /// <summary>Details of Media</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public Commvault.Powershell.Models.IMediaDetails MediaDetails { get => (this._mediaDetails = this._mediaDetails ?? new Commvault.Powershell.Models.MediaDetails()); set => this._mediaDetails = value; } /// <summary>Backing field for <see cref="MediaId" /> property.</summary> private long? _mediaId; /// <summary>Id of Media</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? MediaId { get => this._mediaId; set => this._mediaId = value; } /// <summary>Backing field for <see cref="Slot" /> property.</summary> private Commvault.Powershell.Models.IIdName _slot; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Slot { get => (this._slot = this._slot ?? new Commvault.Powershell.Models.IdName()); set => this._slot = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SlotId { get => ((Commvault.Powershell.Models.IIdNameInternal)Slot).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Slot).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SlotName { get => ((Commvault.Powershell.Models.IIdNameInternal)Slot).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Slot).Name = value ?? null; } /// <summary>Backing field for <see cref="SlotType" /> property.</summary> private string _slotType; /// <summary>Enum to filter the slot list based on given type</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SlotType { get => this._slotType; set => this._slotType = value; } /// <summary>Creates an new <see cref="SlotInfo" /> instance.</summary> public SlotInfo() { } } /// Details of Slot public partial interface ISlotInfo : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Id of Library</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of Library", SerializedName = @"libraryId", PossibleTypes = new [] { typeof(long) })] long? LibraryId { get; set; } /// <summary>Details of Media</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Details of Media", SerializedName = @"mediaDetails", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IMediaDetails) })] Commvault.Powershell.Models.IMediaDetails MediaDetails { get; set; } /// <summary>Id of Media</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of Media", SerializedName = @"mediaId", PossibleTypes = new [] { typeof(long) })] long? MediaId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SlotId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SlotName { get; set; } /// <summary>Enum to filter the slot list based on given type</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Enum to filter the slot list based on given type", SerializedName = @"slotType", PossibleTypes = new [] { typeof(string) })] string SlotType { get; set; } } /// Details of Slot internal partial interface ISlotInfoInternal { /// <summary>Id of Library</summary> long? LibraryId { get; set; } /// <summary>Details of Media</summary> Commvault.Powershell.Models.IMediaDetails MediaDetails { get; set; } /// <summary>Id of Media</summary> long? MediaId { get; set; } Commvault.Powershell.Models.IIdName Slot { get; set; } long? SlotId { get; set; } string SlotName { get; set; } /// <summary>Enum to filter the slot list based on given type</summary> string SlotType { get; set; } } } |