generated/api/Models/ArrayLevel.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>Array detail template</summary> public partial class ArrayLevel : Commvault.Powershell.Models.IArrayLevel, Commvault.Powershell.Models.IArrayLevelInternal { /// <summary>Backing field for <see cref="AssocFlag" /> property.</summary> private bool? _assocFlag; /// <summary>Flag to check if the array is associated to the given client or subclient</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? AssocFlag { get => this._assocFlag; set => this._assocFlag = value; } /// <summary>Internal Acessors for Company</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArrayLevelInternal.Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set { {_company = value;} } } /// <summary>Backing field for <see cref="Company" /> property.</summary> private Commvault.Powershell.Models.IIdName _company; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set => this._company = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CompanyId { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CompanyName { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name = value ?? null; } /// <summary>Backing field for <see cref="ControlHost" /> property.</summary> private string _controlHost; /// <summary>Control host of the storage array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ControlHost { get => this._controlHost; set => this._controlHost = value; } /// <summary>Backing field for <see cref="Description" /> property.</summary> private string _description; /// <summary>description about the Storage Array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Description { get => this._description; set => this._description = value; } /// <summary>Backing field for <see cref="Flags" /> property.</summary> private long? _flags; /// <summary> /// 0: default 1: Only selected arrays 2: Disable automatic cleanup 4: System created arrays 8: Auto created arrays 16: User /// created arrays /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Flags { get => this._flags; set => this._flags = value; } /// <summary>Backing field for <see cref="Id" /> property.</summary> private long? _id; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Id { get => this._id; set => this._id = value; } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <summary>Backing field for <see cref="UserName" /> property.</summary> private string _userName; /// <summary>User name for array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UserName { get => this._userName; set => this._userName = value; } /// <summary>Backing field for <see cref="Vendor" /> property.</summary> private string _vendor; /// <summary>Vendor Name</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Vendor { get => this._vendor; set => this._vendor = value; } /// <summary>Backing field for <see cref="VsVendor" /> property.</summary> private string _vsVendor; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string VsVendor { get => this._vsVendor; set => this._vsVendor = value; } /// <summary>Creates an new <see cref="ArrayLevel" /> instance.</summary> public ArrayLevel() { } } /// Array detail template public partial interface IArrayLevel : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Flag to check if the array is associated to the given client or subclient</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Flag to check if the array is associated to the given client or subclient", SerializedName = @"assocFlag", PossibleTypes = new [] { typeof(bool) })] bool? AssocFlag { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CompanyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CompanyName { get; set; } /// <summary>Control host of the storage array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Control host of the storage array", SerializedName = @"controlHost", PossibleTypes = new [] { typeof(string) })] string ControlHost { get; set; } /// <summary>description about the Storage Array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"description about the Storage Array", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } /// <summary> /// 0: default 1: Only selected arrays 2: Disable automatic cleanup 4: System created arrays 8: Auto created arrays 16: User /// created arrays /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"0: default 1: Only selected arrays 2: Disable automatic cleanup 4: System created arrays 8: Auto created arrays 16: User created arrays", SerializedName = @"flags", PossibleTypes = new [] { typeof(long) })] long? Flags { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } /// <summary>User name for array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"User name for array", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] string UserName { get; set; } /// <summary>Vendor Name</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Vendor Name", SerializedName = @"vendor", PossibleTypes = new [] { typeof(string) })] string Vendor { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"VSVendor", PossibleTypes = new [] { typeof(string) })] string VsVendor { get; set; } } /// Array detail template internal partial interface IArrayLevelInternal { /// <summary>Flag to check if the array is associated to the given client or subclient</summary> bool? AssocFlag { get; set; } Commvault.Powershell.Models.IIdName Company { get; set; } long? CompanyId { get; set; } string CompanyName { get; set; } /// <summary>Control host of the storage array</summary> string ControlHost { get; set; } /// <summary>description about the Storage Array</summary> string Description { get; set; } /// <summary> /// 0: default 1: Only selected arrays 2: Disable automatic cleanup 4: System created arrays 8: Auto created arrays 16: User /// created arrays /// </summary> long? Flags { get; set; } long? Id { get; set; } string Name { get; set; } /// <summary>User name for array</summary> string UserName { get; set; } /// <summary>Vendor Name</summary> string Vendor { get; set; } string VsVendor { get; set; } } } |