generated/api/Models/NetworkDetails.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>NetworkDetails</summary>
    public partial class NetworkDetails :
        Commvault.Powershell.Models.INetworkDetails,
        Commvault.Powershell.Models.INetworkDetailsInternal
    {

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DnsSearch { get => this._dnsSearch; set => this._dnsSearch = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Gateway { get => this._gateway; set => this._gateway = value; }

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

        /// <summary>Destination network name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

        /// <summary>Backing field for <see cref="Nameservers" /> property.</summary>
        private string[] _nameservers;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string[] Nameservers { get => this._nameservers; set => this._nameservers = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Netmask { get => this._netmask; set => this._netmask = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string StaticIP { get => this._staticIP; set => this._staticIP = value; }

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

        /// <summary>If useDHCP is False then make sure to provide staticIP, netmask, gateway</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string UseDhcp { get => this._useDhcp; set => this._useDhcp = value; }

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

        }
    }
    /// NetworkDetails
    public partial interface INetworkDetails :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"dnsSearch",
        PossibleTypes = new [] { typeof(string) })]
        string DnsSearch { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"gateway",
        PossibleTypes = new [] { typeof(string) })]
        string Gateway { get; set; }
        /// <summary>Destination network name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"Destination network name",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"nameservers",
        PossibleTypes = new [] { typeof(string) })]
        string[] Nameservers { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"netmask",
        PossibleTypes = new [] { typeof(string) })]
        string Netmask { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"staticIP",
        PossibleTypes = new [] { typeof(string) })]
        string StaticIP { get; set; }
        /// <summary>If useDHCP is False then make sure to provide staticIP, netmask, gateway</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"If useDHCP is False then make sure to provide staticIP, netmask, gateway",
        SerializedName = @"useDHCP",
        PossibleTypes = new [] { typeof(string) })]
        string UseDhcp { get; set; }

    }
    /// NetworkDetails
    internal partial interface INetworkDetailsInternal

    {
        string DnsSearch { get; set; }

        string Gateway { get; set; }
        /// <summary>Destination network name</summary>
        string Name { get; set; }

        string[] Nameservers { get; set; }

        string Netmask { get; set; }

        string StaticIP { get; set; }
        /// <summary>If useDHCP is False then make sure to provide staticIP, netmask, gateway</summary>
        string UseDhcp { get; set; }

    }
}