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