generated/api/Models/Office365AllClientData.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 Office365AllClientData : Commvault.Powershell.Models.IOffice365AllClientData, Commvault.Powershell.Models.IOffice365AllClientDataInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IOffice365ClientData" /> /// </summary> private Commvault.Powershell.Models.IOffice365ClientData __office365ClientData = new Commvault.Powershell.Models.Office365ClientData(); /// <summary>Number of entities associated for this client.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? AssociatedEntities { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).AssociatedEntities; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).AssociatedEntities = value ?? default(long); } /// <summary>Value of backup health percentage for this client</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public float? BackupHealthPercentage { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).BackupHealthPercentage; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).BackupHealthPercentage = value ?? default(float); } /// <summary>Backup size in bytes for this client.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? BackupSize { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).BackupSize; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).BackupSize = value ?? default(long); } /// <summary>Internal Acessors for Company</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IOffice365ClientDataInternal.Company { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).Company; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).Company = value; } /// <summary>Internal Acessors for ServerPlan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IOffice365ClientDataInternal.ServerPlan { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlan; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IIdName Company { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).Company; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).Company = value ?? null /* model class */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? CompanyId { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).CompanyId; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).CompanyId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string CompanyName { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).CompanyName; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).CompanyName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? Id { get => ((Commvault.Powershell.Models.IIdNameInternal)__office365ClientData).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)__office365ClientData).Id = value ?? default(long); } /// <summary>Number of items backed up for this client.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? ItemsBackedUp { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ItemsBackedUp; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ItemsBackedUp = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Name { get => ((Commvault.Powershell.Models.IIdNameInternal)__office365ClientData).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)__office365ClientData).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IIdName ServerPlan { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlan; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlan = value ?? null /* model class */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? ServerPlanId { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlanId; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlanId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string ServerPlanName { get => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlanName; set => ((Commvault.Powershell.Models.IOffice365ClientDataInternal)__office365ClientData).ServerPlanName = value ?? null; } /// <summary>Backing field for <see cref="Type" /> property.</summary> private string _type; /// <summary>Agent type of this client</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } /// <summary>Creates an new <see cref="Office365AllClientData" /> instance.</summary> public Office365AllClientData() { } /// <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(__office365ClientData), __office365ClientData); await eventListener.AssertObjectIsValid(nameof(__office365ClientData), __office365ClientData); } } public partial interface IOffice365AllClientData : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IOffice365ClientData { /// <summary>Agent type of this client</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Agent type of this client", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; set; } } internal partial interface IOffice365AllClientDataInternal : Commvault.Powershell.Models.IOffice365ClientDataInternal { /// <summary>Agent type of this client</summary> string Type { get; set; } } } |