generated/api/Models/RecoveryActivity.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>RecoveryActivity</summary>
    public partial class RecoveryActivity :
        Commvault.Powershell.Models.IRecoveryActivity,
        Commvault.Powershell.Models.IRecoveryActivityInternal
    {

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

        /// <summary>Type of recovery activity</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ActivityType { get => this._activityType; set => this._activityType = value; }

        /// <summary>Internal Acessors for ExecutionOrder</summary>
        Commvault.Powershell.Models.IRecoveryEntityExecutionInfo Commvault.Powershell.Models.IRecoveryActivityInternal.ExecutionOrder { get => (this._executionOrder = this._executionOrder ?? new Commvault.Powershell.Models.RecoveryEntityExecutionInfo()); set { {_executionOrder = value;} } }

        /// <summary>Internal Acessors for Workflow</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IRecoveryActivityInternal.Workflow { get => (this._workflow = this._workflow ?? new Commvault.Powershell.Models.IdName()); set { {_workflow = value;} } }

        /// <summary>Backing field for <see cref="ExecutionOrder" /> property.</summary>
        private Commvault.Powershell.Models.IRecoveryEntityExecutionInfo _executionOrder;

        /// <summary>RecoveryEntityExecutionInfo</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IRecoveryEntityExecutionInfo ExecutionOrder { get => (this._executionOrder = this._executionOrder ?? new Commvault.Powershell.Models.RecoveryEntityExecutionInfo()); set => this._executionOrder = value; }

        /// <summary>Group ID to group similar entities together</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? ExecutionOrderGroup { get => ((Commvault.Powershell.Models.IRecoveryEntityExecutionInfoInternal)ExecutionOrder).Group; set => ((Commvault.Powershell.Models.IRecoveryEntityExecutionInfoInternal)ExecutionOrder).Group = value ?? default(long); }

        /// <summary>Decides the priority of entites within a group</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? ExecutionOrderOrder { get => ((Commvault.Powershell.Models.IRecoveryEntityExecutionInfoInternal)ExecutionOrder).Order; set => ((Commvault.Powershell.Models.IRecoveryEntityExecutionInfoInternal)ExecutionOrder).Order = value ?? default(long); }

        /// <summary>Decides the priority of group execution</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? ExecutionOrderPriority { get => ((Commvault.Powershell.Models.IRecoveryEntityExecutionInfoInternal)ExecutionOrder).Priority; set => ((Commvault.Powershell.Models.IRecoveryEntityExecutionInfoInternal)ExecutionOrder).Priority = value ?? default(long); }

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

        /// <summary>Id of the recovery activity</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 recovery activity</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

        /// <summary>Backing field for <see cref="Workflow" /> property.</summary>
        private Commvault.Powershell.Models.IIdName _workflow;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdName Workflow { get => (this._workflow = this._workflow ?? new Commvault.Powershell.Models.IdName()); set => this._workflow = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? WorkflowId { get => ((Commvault.Powershell.Models.IIdNameInternal)Workflow).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Workflow).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string WorkflowName { get => ((Commvault.Powershell.Models.IIdNameInternal)Workflow).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Workflow).Name = value ?? null; }

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

        }
    }
    /// RecoveryActivity
    public partial interface IRecoveryActivity :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Type of recovery activity</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Type of recovery activity",
        SerializedName = @"activityType",
        PossibleTypes = new [] { typeof(string) })]
        string ActivityType { get; set; }
        /// <summary>Group ID to group similar entities together</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Group ID to group similar entities together",
        SerializedName = @"group",
        PossibleTypes = new [] { typeof(long) })]
        long? ExecutionOrderGroup { get; set; }
        /// <summary>Decides the priority of entites within a group</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Decides the priority of entites within a group",
        SerializedName = @"order",
        PossibleTypes = new [] { typeof(long) })]
        long? ExecutionOrderOrder { get; set; }
        /// <summary>Decides the priority of group execution</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Decides the priority of group execution",
        SerializedName = @"priority",
        PossibleTypes = new [] { typeof(long) })]
        long? ExecutionOrderPriority { get; set; }
        /// <summary>Id of the recovery activity</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Id of the recovery activity",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? Id { get; set; }
        /// <summary>Name of the recovery activity</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Name of the recovery activity",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? WorkflowId { get; set; }

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

    }
    /// RecoveryActivity
    internal partial interface IRecoveryActivityInternal

    {
        /// <summary>Type of recovery activity</summary>
        string ActivityType { get; set; }
        /// <summary>RecoveryEntityExecutionInfo</summary>
        Commvault.Powershell.Models.IRecoveryEntityExecutionInfo ExecutionOrder { get; set; }
        /// <summary>Group ID to group similar entities together</summary>
        long? ExecutionOrderGroup { get; set; }
        /// <summary>Decides the priority of entites within a group</summary>
        long? ExecutionOrderOrder { get; set; }
        /// <summary>Decides the priority of group execution</summary>
        long? ExecutionOrderPriority { get; set; }
        /// <summary>Id of the recovery activity</summary>
        long? Id { get; set; }
        /// <summary>Name of the recovery activity</summary>
        string Name { get; set; }

        Commvault.Powershell.Models.IIdName Workflow { get; set; }

        long? WorkflowId { get; set; }

        string WorkflowName { get; set; }

    }
}