generated/api/Models/ArrayGenDetails.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415) // 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> /// Generic Details of the Engine Array. Region depicts the workload region which is only applicable to NetApp arrays as of /// now. /// </summary> public partial class ArrayGenDetails : Commvault.Powershell.Models.IArrayGenDetails, Commvault.Powershell.Models.IArrayGenDetailsInternal { /// <summary>Backing field for <see cref="Array" /> property.</summary> private Commvault.Powershell.Models.IIdName _array; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Array { get => (this._array = this._array ?? new Commvault.Powershell.Models.IdName()); set => this._array = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ArrayId { get => ((Commvault.Powershell.Models.IIdNameInternal)Array).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Array).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ArrayName { get => ((Commvault.Powershell.Models.IIdNameInternal)Array).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Array).Name = value ?? null; } /// <summary>Backing field for <see cref="ArrayType" /> property.</summary> private long? _arrayType; /// <summary>Used to differentiate between Primary, Secondary, and OCUM type of NetApp Array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? ArrayType { get => this._arrayType; set => this._arrayType = value; } /// <summary>Backing field for <see cref="CloudVendorId" /> property.</summary> private long? _cloudVendorId; /// <summary>Id for cloud vendors associated to arrays</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? CloudVendorId { get => this._cloudVendorId; set => this._cloudVendorId = value; } /// <summary>Internal Acessors for Array</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArrayGenDetailsInternal.Array { get => (this._array = this._array ?? new Commvault.Powershell.Models.IdName()); set { {_array = value;} } } /// <summary>Internal Acessors for Company</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArrayGenDetailsInternal.Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set { {_company = value;} } } /// <summary>Internal Acessors for Credential</summary> Commvault.Powershell.Models.IArrayUserPassword Commvault.Powershell.Models.IArrayGenDetailsInternal.Credential { get => (this._credential = this._credential ?? new Commvault.Powershell.Models.ArrayUserPassword()); set { {_credential = value;} } } /// <summary>Internal Acessors for Region</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArrayGenDetailsInternal.Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdName()); set { {_region = value;} } } /// <summary>Internal Acessors for SavedCredential</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArrayGenDetailsInternal.SavedCredential { get => (this._savedCredential = this._savedCredential ?? new Commvault.Powershell.Models.IdName()); set { {_savedCredential = value;} } } /// <summary>Internal Acessors for SnapVendor</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArrayGenDetailsInternal.SnapVendor { get => (this._snapVendor = this._snapVendor ?? new Commvault.Powershell.Models.IdName()); set { {_snapVendor = 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 name of the 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="Credential" /> property.</summary> private Commvault.Powershell.Models.IArrayUserPassword _credential; /// <summary>Template for options provided to user</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IArrayUserPassword Credential { get => (this._credential = this._credential ?? new Commvault.Powershell.Models.ArrayUserPassword()); set => this._credential = value; } /// <summary>Base 64 encoded Password to access the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialPassword { get => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).Password; set => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).Password = value ?? null; } /// <summary>Username to access the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialUserName { get => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).UserName; set => ((Commvault.Powershell.Models.IArrayUserPasswordInternal)Credential).UserName = value ?? null; } /// <summary>Backing field for <see cref="Description" /> property.</summary> private string _description; /// <summary>User provided description of the 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="EnableNetAppCloudAccount" /> property.</summary> private bool? _enableNetAppCloudAccount; /// <summary>Set as true for NetApp cloud target arrays</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? EnableNetAppCloudAccount { get => this._enableNetAppCloudAccount; set => this._enableNetAppCloudAccount = 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="Region" /> property.</summary> private Commvault.Powershell.Models.IIdName _region; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdName()); set => this._region = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RegionId { get => ((Commvault.Powershell.Models.IIdNameInternal)Region).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Region).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RegionName { get => ((Commvault.Powershell.Models.IIdNameInternal)Region).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Region).Name = value ?? null; } /// <summary>Backing field for <see cref="SavedCredential" /> property.</summary> private Commvault.Powershell.Models.IIdName _savedCredential; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName SavedCredential { get => (this._savedCredential = this._savedCredential ?? new Commvault.Powershell.Models.IdName()); set => this._savedCredential = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SavedCredentialId { get => ((Commvault.Powershell.Models.IIdNameInternal)SavedCredential).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)SavedCredential).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SavedCredentialName { get => ((Commvault.Powershell.Models.IIdNameInternal)SavedCredential).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)SavedCredential).Name = value ?? null; } /// <summary>Backing field for <see cref="SnapVendor" /> property.</summary> private Commvault.Powershell.Models.IIdName _snapVendor; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName SnapVendor { get => (this._snapVendor = this._snapVendor ?? new Commvault.Powershell.Models.IdName()); set => this._snapVendor = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SnapVendorId { get => ((Commvault.Powershell.Models.IIdNameInternal)SnapVendor).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)SnapVendor).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SnapVendorName { get => ((Commvault.Powershell.Models.IIdNameInternal)SnapVendor).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)SnapVendor).Name = value ?? null; } /// <summary>Backing field for <see cref="UniqueIdentifier" /> property.</summary> private string _uniqueIdentifier; /// <summary>Unique identifier pertaining to each array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UniqueIdentifier { get => this._uniqueIdentifier; set => this._uniqueIdentifier = value; } /// <summary>Creates an new <see cref="ArrayGenDetails" /> instance.</summary> public ArrayGenDetails() { } } /// Generic Details of the Engine Array. Region depicts the workload region which is only applicable to NetApp arrays as of /// now. public partial interface IArrayGenDetails : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ArrayId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ArrayName { get; set; } /// <summary>Used to differentiate between Primary, Secondary, and OCUM type of NetApp Array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Used to differentiate between Primary, Secondary, and OCUM type of NetApp Array", SerializedName = @"arrayType", PossibleTypes = new [] { typeof(long) })] long? ArrayType { get; set; } /// <summary>Id for cloud vendors associated to arrays</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Id for cloud vendors associated to arrays", SerializedName = @"cloudVendorId", PossibleTypes = new [] { typeof(long) })] long? CloudVendorId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CompanyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CompanyName { get; set; } /// <summary>Control Host name of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Control Host name of the array", SerializedName = @"controlHost", PossibleTypes = new [] { typeof(string) })] string ControlHost { get; set; } /// <summary>Base 64 encoded Password to access the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Base 64 encoded Password to access the array", SerializedName = @"password", PossibleTypes = new [] { typeof(string) })] string CredentialPassword { get; set; } /// <summary>Username to access the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Username to access the array", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] string CredentialUserName { get; set; } /// <summary>User provided description of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"User provided description of the array", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } /// <summary>Set as true for NetApp cloud target arrays</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Set as true for NetApp cloud target arrays", SerializedName = @"enableNetAppCloudAccount", PossibleTypes = new [] { typeof(bool) })] bool? EnableNetAppCloudAccount { 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, 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, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? RegionId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string RegionName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SavedCredentialId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SavedCredentialName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SnapVendorId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SnapVendorName { get; set; } /// <summary>Unique identifier pertaining to each array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Unique identifier pertaining to each array", SerializedName = @"uniqueIdentifier", PossibleTypes = new [] { typeof(string) })] string UniqueIdentifier { get; set; } } /// Generic Details of the Engine Array. Region depicts the workload region which is only applicable to NetApp arrays as of /// now. internal partial interface IArrayGenDetailsInternal { Commvault.Powershell.Models.IIdName Array { get; set; } long? ArrayId { get; set; } string ArrayName { get; set; } /// <summary>Used to differentiate between Primary, Secondary, and OCUM type of NetApp Array</summary> long? ArrayType { get; set; } /// <summary>Id for cloud vendors associated to arrays</summary> long? CloudVendorId { get; set; } Commvault.Powershell.Models.IIdName Company { get; set; } long? CompanyId { get; set; } string CompanyName { get; set; } /// <summary>Control Host name of the array</summary> string ControlHost { get; set; } /// <summary>Template for options provided to user</summary> Commvault.Powershell.Models.IArrayUserPassword Credential { get; set; } /// <summary>Base 64 encoded Password to access the array</summary> string CredentialPassword { get; set; } /// <summary>Username to access the array</summary> string CredentialUserName { get; set; } /// <summary>User provided description of the array</summary> string Description { get; set; } /// <summary>Set as true for NetApp cloud target arrays</summary> bool? EnableNetAppCloudAccount { 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; } Commvault.Powershell.Models.IIdName Region { get; set; } long? RegionId { get; set; } string RegionName { get; set; } Commvault.Powershell.Models.IIdName SavedCredential { get; set; } long? SavedCredentialId { get; set; } string SavedCredentialName { get; set; } Commvault.Powershell.Models.IIdName SnapVendor { get; set; } long? SnapVendorId { get; set; } string SnapVendorName { get; set; } /// <summary>Unique identifier pertaining to each array</summary> string UniqueIdentifier { get; set; } } } |