generated/api/Models/RestrictedConsoleTypes.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> /// This property is listing restricted consoles. If the restricted console is inherited from parent, parent name and id will /// be listed along with restricted console. /// </summary> public partial class RestrictedConsoleTypes : Commvault.Powershell.Models.IRestrictedConsoleTypes, Commvault.Powershell.Models.IRestrictedConsoleTypesInternal { /// <summary>Internal Acessors for Parent</summary> Commvault.Powershell.Models.IIdNameType Commvault.Powershell.Models.IRestrictedConsoleTypesInternal.Parent { get => (this._parent = this._parent ?? new Commvault.Powershell.Models.IdNameType()); set { {_parent = value;} } } /// <summary>Backing field for <see cref="ConsoleType" /> property.</summary> private string _consoleType; /// <summary>This is console type</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ConsoleType { get => this._consoleType; set => this._consoleType = value; } /// <summary>Backing field for <see cref="Parent" /> property.</summary> private Commvault.Powershell.Models.IIdNameType _parent; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameType Parent { get => (this._parent = this._parent ?? new Commvault.Powershell.Models.IdNameType()); set => this._parent = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ParentId { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)Parent).Id; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)Parent).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ParentName { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)Parent).Name; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)Parent).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ParentType { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)Parent).Type; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)Parent).Type = value ?? null; } /// <summary>Creates an new <see cref="RestrictedConsoleTypes" /> instance.</summary> public RestrictedConsoleTypes() { } } /// This property is listing restricted consoles. If the restricted console is inherited from parent, parent name and id will /// be listed along with restricted console. public partial interface IRestrictedConsoleTypes : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>This is console type</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This is console type", SerializedName = @"consoleType", PossibleTypes = new [] { typeof(string) })] string ConsoleType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ParentId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ParentName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string ParentType { get; set; } } /// This property is listing restricted consoles. If the restricted console is inherited from parent, parent name and id will /// be listed along with restricted console. internal partial interface IRestrictedConsoleTypesInternal { /// <summary>This is console type</summary> string ConsoleType { get; set; } Commvault.Powershell.Models.IIdNameType Parent { get; set; } long? ParentId { get; set; } string ParentName { get; set; } string ParentType { get; set; } } } |