generated/api/Models/LastBackupJobInfoWithLastSuccessfulBackup.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;

    public partial class LastBackupJobInfoWithLastSuccessfulBackup :
        Commvault.Powershell.Models.ILastBackupJobInfoWithLastSuccessfulBackup,
        Commvault.Powershell.Models.ILastBackupJobInfoWithLastSuccessfulBackupInternal
    {

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

        /// <summary>Gives the reason for the last backup job failing, if the last backup job fails.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string FailureReason { get => this._failureReason; set => this._failureReason = value; }

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

        /// <summary>Returns the job id of the last backup job performed.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? JobId { get => this._jobId; set => this._jobId = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? LastSuccessfulBackup { get => this._lastSuccessfulBackup; set => this._lastSuccessfulBackup = value; }

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

        /// <summary>Status of the last backup job performed.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Status { get => this._status; set => this._status = value; }

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

        /// <summary>
        /// Shows the time when the last back up job was carried out. The time is provided in unix time format.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Time { get => this._time; set => this._time = value; }

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

        }
    }
    public partial interface ILastBackupJobInfoWithLastSuccessfulBackup :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Gives the reason for the last backup job failing, if the last backup job fails.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Gives the reason for the last backup job failing, if the last backup job fails.",
        SerializedName = @"failureReason",
        PossibleTypes = new [] { typeof(string) })]
        string FailureReason { get; set; }
        /// <summary>Returns the job id of the last backup job performed.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Returns the job id of the last backup job performed.",
        SerializedName = @"jobId",
        PossibleTypes = new [] { typeof(long) })]
        long? JobId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"lastSuccessfulBackup",
        PossibleTypes = new [] { typeof(long) })]
        long? LastSuccessfulBackup { get; set; }
        /// <summary>Status of the last backup job performed.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Status of the last backup job performed.",
        SerializedName = @"status",
        PossibleTypes = new [] { typeof(string) })]
        string Status { get; set; }
        /// <summary>
        /// Shows the time when the last back up job was carried out. The time is provided in unix time format.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Shows the time when the last back up job was carried out. The time is provided in unix time format.",
        SerializedName = @"time",
        PossibleTypes = new [] { typeof(long) })]
        long? Time { get; set; }

    }
    internal partial interface ILastBackupJobInfoWithLastSuccessfulBackupInternal

    {
        /// <summary>Gives the reason for the last backup job failing, if the last backup job fails.</summary>
        string FailureReason { get; set; }
        /// <summary>Returns the job id of the last backup job performed.</summary>
        long? JobId { get; set; }

        long? LastSuccessfulBackup { get; set; }
        /// <summary>Status of the last backup job performed.</summary>
        string Status { get; set; }
        /// <summary>
        /// Shows the time when the last back up job was carried out. The time is provided in unix time format.
        /// </summary>
        long? Time { get; set; }

    }
}