generated/api/Models/WorkflowEntity.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>WorkflowEntity</summary>
    public partial class WorkflowEntity :
        Commvault.Powershell.Models.IWorkflowEntity,
        Commvault.Powershell.Models.IWorkflowEntityInternal
    {

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

        /// <summary>
        /// id of the client on which the workflow runs (zero value means it can run on any workflow engine)
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long ClientId { get => this._clientId; set => this._clientId = value; }

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

        /// <summary>
        /// name of the client on which the workflow runs (empty value means it can run on any workflow engine)
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ClientName { get => this._clientName; set => this._clientName = value; }

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

        /// <summary>id of the workflow which runs when the alert is triggered</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 workflow which runs when the alert is triggered</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

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

        }
    }
    /// WorkflowEntity
    public partial interface IWorkflowEntity :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>
        /// id of the client on which the workflow runs (zero value means it can run on any workflow engine)
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"id of the client on which the workflow runs (zero value means it can run on any workflow engine)",
        SerializedName = @"clientId",
        PossibleTypes = new [] { typeof(long) })]
        long ClientId { get; set; }
        /// <summary>
        /// name of the client on which the workflow runs (empty value means it can run on any workflow engine)
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"name of the client on which the workflow runs (empty value means it can run on any workflow engine)",
        SerializedName = @"clientName",
        PossibleTypes = new [] { typeof(string) })]
        string ClientName { get; set; }
        /// <summary>id of the workflow which runs when the alert is triggered</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"id of the workflow which runs when the alert is triggered",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long Id { get; set; }
        /// <summary>name of the workflow which runs when the alert is triggered</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"name of the workflow which runs when the alert is triggered",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }

    }
    /// WorkflowEntity
    internal partial interface IWorkflowEntityInternal

    {
        /// <summary>
        /// id of the client on which the workflow runs (zero value means it can run on any workflow engine)
        /// </summary>
        long ClientId { get; set; }
        /// <summary>
        /// name of the client on which the workflow runs (empty value means it can run on any workflow engine)
        /// </summary>
        string ClientName { get; set; }
        /// <summary>id of the workflow which runs when the alert is triggered</summary>
        long Id { get; set; }
        /// <summary>name of the workflow which runs when the alert is triggered</summary>
        string Name { get; set; }

    }
}