generated/api/Models/CreateArray.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>Request body for creating Array</summary> public partial class CreateArray : Commvault.Powershell.Models.ICreateArray, Commvault.Powershell.Models.ICreateArrayInternal { /// <summary>Backing field for <see cref="AccessNodes" /> property.</summary> private Commvault.Powershell.Models.IArrayAccessNodes[] _accessNodes; /// <summary>MAs that can access the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public Commvault.Powershell.Models.IArrayAccessNodes[] AccessNodes { get => this._accessNodes; set => this._accessNodes = value; } /// <summary>Internal Acessors for General</summary> Commvault.Powershell.Models.IVendorDetails Commvault.Powershell.Models.ICreateArrayInternal.General { get => (this._general = this._general ?? new Commvault.Powershell.Models.VendorDetails()); set { {_general = value;} } } /// <summary>Internal Acessors for GeneralCredential</summary> Commvault.Powershell.Models.IArrayUserPassword Commvault.Powershell.Models.ICreateArrayInternal.GeneralCredential { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).Credential; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).Credential = value; } /// <summary>Internal Acessors for GeneralSavedCredential</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateArrayInternal.GeneralSavedCredential { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SavedCredential; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SavedCredential = 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.IVendorDetailsInternal)General).CredentialPassword; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).CredentialPassword = value ?? null; } /// <summary>Username to access the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialUserName { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).CredentialUserName; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).CredentialUserName = value ?? null; } /// <summary>Backing field for <see cref="General" /> property.</summary> private Commvault.Powershell.Models.IVendorDetails _general; /// <summary>Details of the vendor being selected</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IVendorDetails General { get => (this._general = this._general ?? new Commvault.Powershell.Models.VendorDetails()); set => this._general = value; } /// <summary>Host Name of the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GeneralControlHost { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).ControlHost; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).ControlHost = value ?? null; } /// <summary>Description of the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GeneralDescription { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).Description; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).Description = value ?? null; } /// <summary>Name of the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GeneralName { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).Name; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GeneralSnapVendor { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SnapVendor; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SnapVendor = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SavedCredentialId { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SavedCredentialId; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SavedCredentialId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SavedCredentialName { get => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SavedCredentialName; set => ((Commvault.Powershell.Models.IVendorDetailsInternal)General).SavedCredentialName = value ?? null; } /// <summary>Backing field for <see cref="SnapConfigurations" /> property.</summary> private Commvault.Powershell.Models.IArrayConfigsBasic[] _snapConfigurations; /// <summary>Configurations related to a snap engine</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public Commvault.Powershell.Models.IArrayConfigsBasic[] SnapConfigurations { get => this._snapConfigurations; set => this._snapConfigurations = value; } /// <summary>Creates an new <see cref="CreateArray" /> instance.</summary> public CreateArray() { } } /// Request body for creating Array public partial interface ICreateArray : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>MAs that can access the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"MAs that can access the array", SerializedName = @"accessNodes", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IArrayAccessNodes) })] Commvault.Powershell.Models.IArrayAccessNodes[] AccessNodes { 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>Host Name of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Host Name of the array", SerializedName = @"controlHost", PossibleTypes = new [] { typeof(string) })] string GeneralControlHost { get; set; } /// <summary>Description of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Description of the array", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string GeneralDescription { get; set; } /// <summary>Name of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Name of the array", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string GeneralName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"snapVendor", PossibleTypes = new [] { typeof(string) })] string GeneralSnapVendor { 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; } /// <summary>Configurations related to a snap engine</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Configurations related to a snap engine", SerializedName = @"snapConfigurations", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IArrayConfigsBasic) })] Commvault.Powershell.Models.IArrayConfigsBasic[] SnapConfigurations { get; set; } } /// Request body for creating Array internal partial interface ICreateArrayInternal { /// <summary>MAs that can access the array</summary> Commvault.Powershell.Models.IArrayAccessNodes[] AccessNodes { 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>Details of the vendor being selected</summary> Commvault.Powershell.Models.IVendorDetails General { get; set; } /// <summary>Host Name of the array</summary> string GeneralControlHost { get; set; } /// <summary>Template for options provided to user</summary> Commvault.Powershell.Models.IArrayUserPassword GeneralCredential { get; set; } /// <summary>Description of the array</summary> string GeneralDescription { get; set; } /// <summary>Name of the array</summary> string GeneralName { get; set; } Commvault.Powershell.Models.IIdName GeneralSavedCredential { get; set; } string GeneralSnapVendor { get; set; } long? SavedCredentialId { get; set; } string SavedCredentialName { get; set; } /// <summary>Configurations related to a snap engine</summary> Commvault.Powershell.Models.IArrayConfigsBasic[] SnapConfigurations { get; set; } } } |