generated/api/Models/VendorDetails.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 the vendor being selected</summary> public partial class VendorDetails : Commvault.Powershell.Models.IVendorDetails, Commvault.Powershell.Models.IVendorDetailsInternal { /// <summary>Internal Acessors for Credential</summary> Commvault.Powershell.Models.IArrayUserPassword Commvault.Powershell.Models.IVendorDetailsInternal.Credential { get => (this._credential = this._credential ?? new Commvault.Powershell.Models.ArrayUserPassword()); set { {_credential = value;} } } /// <summary>Internal Acessors for SavedCredential</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVendorDetailsInternal.SavedCredential { get => (this._savedCredential = this._savedCredential ?? new Commvault.Powershell.Models.IdName()); set { {_savedCredential = value;} } } /// <summary>Backing field for <see cref="ControlHost" /> property.</summary> private string _controlHost; /// <summary>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>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="Name" /> property.</summary> private string _name; /// <summary>Name of the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <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 string _snapVendor; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SnapVendor { get => this._snapVendor; set => this._snapVendor = value; } /// <summary>Creates an new <see cref="VendorDetails" /> instance.</summary> public VendorDetails() { } } /// Details of the vendor being selected public partial interface IVendorDetails : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Host Name of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"Username to access the array", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] string CredentialUserName { get; set; } /// <summary>Description of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Description of the array", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } /// <summary>Name of the array</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Name of the array", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SavedCredentialId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SavedCredentialName { get; set; } [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"snapVendor", PossibleTypes = new [] { typeof(string) })] string SnapVendor { get; set; } } /// Details of the vendor being selected internal partial interface IVendorDetailsInternal { /// <summary>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>Description of the array</summary> string Description { get; set; } /// <summary>Name of the array</summary> string Name { get; set; } Commvault.Powershell.Models.IIdName SavedCredential { get; set; } long? SavedCredentialId { get; set; } string SavedCredentialName { get; set; } string SnapVendor { get; set; } } } |