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

    public partial class Office365OnedriveUserData :
        Commvault.Powershell.Models.IOffice365OnedriveUserData,
        Commvault.Powershell.Models.IOffice365OnedriveUserDataInternal,
        Commvault.Powershell.Runtime.IValidates
    {
        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.INameGuid" />
        /// </summary>
        private Commvault.Powershell.Models.INameGuid __nameGuid = new Commvault.Powershell.Models.NameGuid();

        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IOffice365CommonInfo" />
        /// </summary>
        private Commvault.Powershell.Models.IOffice365CommonInfo __office365CommonInfo = new Commvault.Powershell.Models.Office365CommonInfo();

        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IOffice365ContentIndividualBackupStats" />
        /// </summary>
        private Commvault.Powershell.Models.IOffice365ContentIndividualBackupStats __office365ContentIndividualBackupStats = new Commvault.Powershell.Models.Office365ContentIndividualBackupStats();

        /// <summary>Size of active backups in bytes.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? ActiveBackupSize { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).ActiveBackupSize; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).ActiveBackupSize = value ?? default(long); }

        /// <summary>Active backup items count.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? ActiveItemsBackedUp { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).ActiveItemsBackedUp; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).ActiveItemsBackedUp = value ?? default(long); }

        /// <summary>Backing field for <see cref="AdGroup" /> property.</summary>
        private System.Collections.Generic.List<Commvault.Powershell.Models.INameGuid> _adGroup;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<Commvault.Powershell.Models.INameGuid> AdGroup { get => this._adGroup; set => this._adGroup = value; }

        /// <summary>Internal Acessors for Office365Plan</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IOffice365CommonInfoInternal.Office365Plan { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan = value; }

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

        /// <summary>Email Address of the mailbox</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string EmailAddress { get => this._emailAddress; set => this._emailAddress = value; }

        /// <summary>Count of the failed items in the backup.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? FailedItemsCount { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).FailedItemsCount; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).FailedItemsCount = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string Guid { get => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Guid = value ?? null; }

        /// <summary>Size of inactive backups in bytes.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? InactiveBackupSize { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).InactiveBackupSize; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).InactiveBackupSize = value ?? default(long); }

        /// <summary>Inactive backup items count.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? InactiveItemsBackedUp { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).InactiveItemsBackedUp; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).InactiveItemsBackedUp = value ?? default(long); }

        /// <summary>Job Id of the last backup job.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? LastAttemptJobId { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastAttemptJobId; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastAttemptJobId = value ?? default(long); }

        /// <summary>Time of last backup in UNIX time.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? LastBackup { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastBackup; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastBackup = value ?? default(long); }

        /// <summary>Time of last backup attempt in UNIX time.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? LastBackupAttempt { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastBackupAttempt; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastBackupAttempt = value ?? default(long); }

        /// <summary>status of last backup for this entity</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string LastBackupStatus { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastBackupStatus; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).LastBackupStatus = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string Name { get => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Name = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        internal Commvault.Powershell.Models.IIdName Office365Plan { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365Plan = value ?? null /* model class */; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? Office365PlanId { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanId; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanId = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string Office365PlanName { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanName; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Office365PlanName = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string Status { get => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Status; set => ((Commvault.Powershell.Models.IOffice365CommonInfoInternal)__office365CommonInfo).Status = value ?? null; }

        /// <summary>Total size of all backups in bytes.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? TotalBackupSize { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).TotalBackupSize; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).TotalBackupSize = value ?? default(long); }

        /// <summary>Total backup items count.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? TotalItemsBackedUp { get => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).TotalItemsBackedUp; set => ((Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal)__office365ContentIndividualBackupStats).TotalItemsBackedUp = value ?? default(long); }

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

        }

        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(__office365ContentIndividualBackupStats), __office365ContentIndividualBackupStats);
            await eventListener.AssertObjectIsValid(nameof(__office365ContentIndividualBackupStats), __office365ContentIndividualBackupStats);
            await eventListener.AssertNotNull(nameof(__nameGuid), __nameGuid);
            await eventListener.AssertObjectIsValid(nameof(__nameGuid), __nameGuid);
            await eventListener.AssertNotNull(nameof(__office365CommonInfo), __office365CommonInfo);
            await eventListener.AssertObjectIsValid(nameof(__office365CommonInfo), __office365CommonInfo);
        }
    }
    public partial interface IOffice365OnedriveUserData :
        Commvault.Powershell.Runtime.IJsonSerializable,
        Commvault.Powershell.Models.IOffice365ContentIndividualBackupStats,
        Commvault.Powershell.Models.INameGuid,
        Commvault.Powershell.Models.IOffice365CommonInfo
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"adGroup",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.INameGuid) })]
        System.Collections.Generic.List<Commvault.Powershell.Models.INameGuid> AdGroup { get; set; }
        /// <summary>Email Address of the mailbox</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Email Address of the mailbox",
        SerializedName = @"emailAddress",
        PossibleTypes = new [] { typeof(string) })]
        string EmailAddress { get; set; }

    }
    internal partial interface IOffice365OnedriveUserDataInternal :
        Commvault.Powershell.Models.IOffice365ContentIndividualBackupStatsInternal,
        Commvault.Powershell.Models.INameGuidInternal,
        Commvault.Powershell.Models.IOffice365CommonInfoInternal
    {
        System.Collections.Generic.List<Commvault.Powershell.Models.INameGuid> AdGroup { get; set; }
        /// <summary>Email Address of the mailbox</summary>
        string EmailAddress { get; set; }

    }
}