generated/api/Models/TestCloudConnectionReq.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>Request body for checking cloud resource connectivity</summary>
    public partial class TestCloudConnectionReq :
        Commvault.Powershell.Models.ITestCloudConnectionReq,
        Commvault.Powershell.Models.ITestCloudConnectionReqInternal
    {

        /// <summary>Backing field for <see cref="BackupGatewayIds" /> property.</summary>
        private System.Collections.Generic.List<long> _backupGatewayIds;

        /// <summary>Backup gateways list for connectivity verification</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<long> BackupGatewayIds { get => this._backupGatewayIds; set => this._backupGatewayIds = value; }

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

        /// <summary>Hostname / IP address of cloud resource</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Hostname { get => this._hostname; set => this._hostname = value; }

        /// <summary>Backing field for <see cref="Port" /> property.</summary>
        private long _port;

        /// <summary>Connection port</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long Port { get => this._port; set => this._port = value; }

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

        }
    }
    /// Request body for checking cloud resource connectivity
    public partial interface ITestCloudConnectionReq :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Backup gateways list for connectivity verification</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Backup gateways list for connectivity verification",
        SerializedName = @"backupGatewayIds",
        PossibleTypes = new [] { typeof(long) })]
        System.Collections.Generic.List<long> BackupGatewayIds { get; set; }
        /// <summary>Hostname / IP address of cloud resource</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Hostname / IP address of cloud resource",
        SerializedName = @"hostname",
        PossibleTypes = new [] { typeof(string) })]
        string Hostname { get; set; }
        /// <summary>Connection port</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Connection port",
        SerializedName = @"port",
        PossibleTypes = new [] { typeof(long) })]
        long Port { get; set; }

    }
    /// Request body for checking cloud resource connectivity
    internal partial interface ITestCloudConnectionReqInternal

    {
        /// <summary>Backup gateways list for connectivity verification</summary>
        System.Collections.Generic.List<long> BackupGatewayIds { get; set; }
        /// <summary>Hostname / IP address of cloud resource</summary>
        string Hostname { get; set; }
        /// <summary>Connection port</summary>
        long Port { get; set; }

    }
}