generated/api/Models/EsxServerMapping.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>An entity to represent one-one ESX server mapping rule</summary>
    public partial class EsxServerMapping :
        Commvault.Powershell.Models.IEsxServerMapping,
        Commvault.Powershell.Models.IEsxServerMappingInternal
    {

        /// <summary>Backing field for <see cref="DestinationServer" /> property.</summary>
        private string _destinationServer;

        /// <summary>The name of destination ESX server</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DestinationServer { get => this._destinationServer; set => this._destinationServer = value; }

        /// <summary>Backing field for <see cref="NetworkSettings" /> property.</summary>
        private Commvault.Powershell.Models.INetworkSetting[] _networkSettings;

        /// <summary>
        /// The list of all source network interface to destination network interface mapping
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.INetworkSetting[] NetworkSettings { get => this._networkSettings; set => this._networkSettings = value; }

        /// <summary>Backing field for <see cref="SourceServer" /> property.</summary>
        private string _sourceServer;

        /// <summary>The name of source ESX server</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string SourceServer { get => this._sourceServer; set => this._sourceServer = value; }

        /// <summary>Creates an new <see cref="EsxServerMapping" /> instance.</summary>
        public EsxServerMapping()
        {

        }
    }
    /// An entity to represent one-one ESX server mapping rule
    public partial interface IEsxServerMapping :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>The name of destination ESX server</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The name of destination ESX server",
        SerializedName = @"destinationServer",
        PossibleTypes = new [] { typeof(string) })]
        string DestinationServer { get; set; }
        /// <summary>
        /// The list of all source network interface to destination network interface mapping
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The list of all source network interface to destination network interface mapping",
        SerializedName = @"networkSettings",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.INetworkSetting) })]
        Commvault.Powershell.Models.INetworkSetting[] NetworkSettings { get; set; }
        /// <summary>The name of source ESX server</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The name of source ESX server",
        SerializedName = @"sourceServer",
        PossibleTypes = new [] { typeof(string) })]
        string SourceServer { get; set; }

    }
    /// An entity to represent one-one ESX server mapping rule
    internal partial interface IEsxServerMappingInternal

    {
        /// <summary>The name of destination ESX server</summary>
        string DestinationServer { get; set; }
        /// <summary>
        /// The list of all source network interface to destination network interface mapping
        /// </summary>
        Commvault.Powershell.Models.INetworkSetting[] NetworkSettings { get; set; }
        /// <summary>The name of source ESX server</summary>
        string SourceServer { get; set; }

    }
}