generated/api/Models/LastBackup.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>last backup job details for the client</summary>
    public partial class LastBackup :
        Commvault.Powershell.Models.ILastBackup,
        Commvault.Powershell.Models.ILastBackupInternal
    {

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

        /// <summary>Failure reason for the last backup job</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>Job id of the last backup job</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? JobId { get => this._jobId; set => this._jobId = value; }

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

        /// <summary>UNIX time for the last successful backup job run</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? LastSuccessfulBackupTime { get => this._lastSuccessfulBackupTime; set => this._lastSuccessfulBackupTime = 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>UNIX time for the last backup job run</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Time { get => this._time; set => this._time = value; }

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

        }
    }
    /// last backup job details for the client
    public partial interface ILastBackup :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Failure reason for the last backup job</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Failure reason for the last backup job",
        SerializedName = @"failureReason",
        PossibleTypes = new [] { typeof(string) })]
        string FailureReason { get; set; }
        /// <summary>Job id of the last backup job</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Job id of the last backup job",
        SerializedName = @"jobId",
        PossibleTypes = new [] { typeof(long) })]
        long? JobId { get; set; }
        /// <summary>UNIX time for the last successful backup job run</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"UNIX time for the last successful backup job run",
        SerializedName = @"lastSuccessfulBackupTime",
        PossibleTypes = new [] { typeof(long) })]
        long? LastSuccessfulBackupTime { 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>UNIX time for the last backup job run</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"UNIX time for the last backup job run",
        SerializedName = @"time",
        PossibleTypes = new [] { typeof(long) })]
        long? Time { get; set; }

    }
    /// last backup job details for the client
    internal partial interface ILastBackupInternal

    {
        /// <summary>Failure reason for the last backup job</summary>
        string FailureReason { get; set; }
        /// <summary>Job id of the last backup job</summary>
        long? JobId { get; set; }
        /// <summary>UNIX time for the last successful backup job run</summary>
        long? LastSuccessfulBackupTime { get; set; }
        /// <summary>Status of the last backup job performed.</summary>
        string Status { get; set; }
        /// <summary>UNIX time for the last backup job run</summary>
        long? Time { get; set; }

    }
}