generated/api/Models/ServerOrServerGroupAssociation.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>ServerOrServerGroupAssociation</summary>
    public partial class ServerOrServerGroupAssociation :
        Commvault.Powershell.Models.IServerOrServerGroupAssociation,
        Commvault.Powershell.Models.IServerOrServerGroupAssociationInternal
    {

        /// <summary>Backing field for <see cref="Id" /> property.</summary>
        private long? _id;

        /// <summary>Id of server or server group</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Id { get => this._id; set => this._id = value; }

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

        /// <summary>Name of server or server group</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

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

        /// <summary>ServerOrServerGroupTypes</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Type { get => this._type; set => this._type = value; }

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

        }
    }
    /// ServerOrServerGroupAssociation
    public partial interface IServerOrServerGroupAssociation :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Id of server or server group</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Id of server or server group",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? Id { get; set; }
        /// <summary>Name of server or server group</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Name of server or server group",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>ServerOrServerGroupTypes</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"ServerOrServerGroupTypes",
        SerializedName = @"type",
        PossibleTypes = new [] { typeof(string) })]
        string Type { get; set; }

    }
    /// ServerOrServerGroupAssociation
    internal partial interface IServerOrServerGroupAssociationInternal

    {
        /// <summary>Id of server or server group</summary>
        long? Id { get; set; }
        /// <summary>Name of server or server group</summary>
        string Name { get; set; }
        /// <summary>ServerOrServerGroupTypes</summary>
        string Type { get; set; }

    }
}