generated/api/Models/AlertAssocParentEntity.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>
    /// parentEntity1 can only have type SERVER_ENTITY.parentEntity2 can only have type APPTYPE_ENTITY.parentEntity3 can only
    /// have type INSTANCE_ENTITY.parentEntity4 can only have type BACKUPSET_ENTITY.
    /// </summary>
    public partial class AlertAssocParentEntity :
        Commvault.Powershell.Models.IAlertAssocParentEntity,
        Commvault.Powershell.Models.IAlertAssocParentEntityInternal
    {

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

        /// <summary>id of the associated entity</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 the associated entity</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;

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

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

        }
    }
    /// parentEntity1 can only have type SERVER_ENTITY.parentEntity2 can only have type APPTYPE_ENTITY.parentEntity3 can only
    /// have type INSTANCE_ENTITY.parentEntity4 can only have type BACKUPSET_ENTITY.
    public partial interface IAlertAssocParentEntity :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>id of the associated entity</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"id of the associated entity",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? Id { get; set; }
        /// <summary>name of the associated entity</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"name of the associated entity",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }

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

    }
    /// parentEntity1 can only have type SERVER_ENTITY.parentEntity2 can only have type APPTYPE_ENTITY.parentEntity3 can only
    /// have type INSTANCE_ENTITY.parentEntity4 can only have type BACKUPSET_ENTITY.
    internal partial interface IAlertAssocParentEntityInternal

    {
        /// <summary>id of the associated entity</summary>
        long? Id { get; set; }
        /// <summary>name of the associated entity</summary>
        string Name { get; set; }

        string Type { get; set; }

    }
}