generated/api/Models/JobOperationOnCopyReq.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>JobOperationOnCopyReq</summary>
    public partial class JobOperationOnCopyReq :
        Commvault.Powershell.Models.IJobOperationOnCopyReq,
        Commvault.Powershell.Models.IJobOperationOnCopyReqInternal
    {

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

        /// <summary>ID for chosen commcell</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long CommcellId { get => this._commcellId; set => this._commcellId = value; }

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

        /// <summary>ID for chosen copy</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long CopyId { get => this._copyId; set => this._copyId = value; }

        /// <summary>Backing field for <see cref="JobIds" /> property.</summary>
        private long[] _jobIds;

        /// <summary>Comma separated Job IDs to run job operation on</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long[] JobIds { get => this._jobIds; set => this._jobIds = value; }

        /// <summary>Backing field for <see cref="LoadArchiverJobs" /> property.</summary>
        private bool? _loadArchiverJobs;

        /// <summary>Defines whether archiver jobs need to be computed.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? LoadArchiverJobs { get => this._loadArchiverJobs; set => this._loadArchiverJobs = value; }

        /// <summary>Backing field for <see cref="LoadDependentJobs" /> property.</summary>
        private bool? _loadDependentJobs;

        /// <summary>Defines whether dependent jobs need to be computed.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? LoadDependentJobs { get => this._loadDependentJobs; set => this._loadDependentJobs = value; }

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

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

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

        /// <summary>
        /// Job will be retained till specified time. The time is provided in unix time format.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? RetainUntilTime { get => this._retainUntilTime; set => this._retainUntilTime = value; }

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

        /// <summary>ID for chosen storage policy</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long StoragePolicyId { get => this._storagePolicyId; set => this._storagePolicyId = value; }

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

        }
    }
    /// JobOperationOnCopyReq
    public partial interface IJobOperationOnCopyReq :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>ID for chosen commcell</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"ID for chosen commcell",
        SerializedName = @"commcellId",
        PossibleTypes = new [] { typeof(long) })]
        long CommcellId { get; set; }
        /// <summary>ID for chosen copy</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"ID for chosen copy",
        SerializedName = @"copyId",
        PossibleTypes = new [] { typeof(long) })]
        long CopyId { get; set; }
        /// <summary>Comma separated Job IDs to run job operation on</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"Comma separated Job IDs to run job operation on",
        SerializedName = @"jobIds",
        PossibleTypes = new [] { typeof(long) })]
        long[] JobIds { get; set; }
        /// <summary>Defines whether archiver jobs need to be computed.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Defines whether archiver jobs need to be computed.",
        SerializedName = @"loadArchiverJobs",
        PossibleTypes = new [] { typeof(bool) })]
        bool? LoadArchiverJobs { get; set; }
        /// <summary>Defines whether dependent jobs need to be computed.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Defines whether dependent jobs need to be computed.",
        SerializedName = @"loadDependentJobs",
        PossibleTypes = new [] { typeof(bool) })]
        bool? LoadDependentJobs { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"opType",
        PossibleTypes = new [] { typeof(string) })]
        string OpType { get; set; }
        /// <summary>
        /// Job will be retained till specified time. The time is provided in unix time format.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Job will be retained till specified time. The time is provided in unix time format.",
        SerializedName = @"retainUntilTime",
        PossibleTypes = new [] { typeof(long) })]
        long? RetainUntilTime { get; set; }
        /// <summary>ID for chosen storage policy</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"ID for chosen storage policy",
        SerializedName = @"storagePolicyId",
        PossibleTypes = new [] { typeof(long) })]
        long StoragePolicyId { get; set; }

    }
    /// JobOperationOnCopyReq
    internal partial interface IJobOperationOnCopyReqInternal

    {
        /// <summary>ID for chosen commcell</summary>
        long CommcellId { get; set; }
        /// <summary>ID for chosen copy</summary>
        long CopyId { get; set; }
        /// <summary>Comma separated Job IDs to run job operation on</summary>
        long[] JobIds { get; set; }
        /// <summary>Defines whether archiver jobs need to be computed.</summary>
        bool? LoadArchiverJobs { get; set; }
        /// <summary>Defines whether dependent jobs need to be computed.</summary>
        bool? LoadDependentJobs { get; set; }

        string OpType { get; set; }
        /// <summary>
        /// Job will be retained till specified time. The time is provided in unix time format.
        /// </summary>
        long? RetainUntilTime { get; set; }
        /// <summary>ID for chosen storage policy</summary>
        long StoragePolicyId { get; set; }

    }
}