generated/api/Models/ActiveDirectoryClient.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>ActiveDirectoryClient</summary> public partial class ActiveDirectoryClient : Commvault.Powershell.Models.IActiveDirectoryClient, Commvault.Powershell.Models.IActiveDirectoryClientInternal { /// <summary>Backing field for <see cref="AppTypeId" /> property.</summary> private long? _appTypeId; /// <summary> /// Azure Active Directory (139), Granular Active Directory (41) or File Server (33) /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? AppTypeId { get => this._appTypeId; set => this._appTypeId = value; } /// <summary>Backing field for <see cref="ApplicationSize" /> property.</summary> private long? _applicationSize; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? ApplicationSize { get => this._applicationSize; set => this._applicationSize = value; } /// <summary>Backing field for <see cref="Backupset" /> property.</summary> private Commvault.Powershell.Models.IIdName _backupset; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Backupset { get => (this._backupset = this._backupset ?? new Commvault.Powershell.Models.IdName()); set => this._backupset = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? BackupsetId { get => ((Commvault.Powershell.Models.IIdNameInternal)Backupset).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Backupset).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string BackupsetName { get => ((Commvault.Powershell.Models.IIdNameInternal)Backupset).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Backupset).Name = value ?? null; } /// <summary>Backing field for <see cref="Client" /> property.</summary> private Commvault.Powershell.Models.IIdNameDisplayName _client; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameDisplayName Client { get => (this._client = this._client ?? new Commvault.Powershell.Models.IdNameDisplayName()); set => this._client = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ClientDisplayName { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Client).DisplayName; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Client).DisplayName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ClientId { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Client).Id; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Client).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ClientName { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Client).Name; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Client).Name = value ?? null; } /// <summary>Internal Acessors for Backupset</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IActiveDirectoryClientInternal.Backupset { get => (this._backupset = this._backupset ?? new Commvault.Powershell.Models.IdName()); set { {_backupset = value;} } } /// <summary>Internal Acessors for Client</summary> Commvault.Powershell.Models.IIdNameDisplayName Commvault.Powershell.Models.IActiveDirectoryClientInternal.Client { get => (this._client = this._client ?? new Commvault.Powershell.Models.IdNameDisplayName()); set { {_client = value;} } } /// <summary>Internal Acessors for Company</summary> Commvault.Powershell.Models.IIdNameFullName Commvault.Powershell.Models.IActiveDirectoryClientInternal.Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdNameFullName()); set { {_company = value;} } } /// <summary>Internal Acessors for LastBackup</summary> Commvault.Powershell.Models.ILastBackupJobInfo Commvault.Powershell.Models.IActiveDirectoryClientInternal.LastBackup { get => (this._lastBackup = this._lastBackup ?? new Commvault.Powershell.Models.LastBackupJobInfo()); set { {_lastBackup = value;} } } /// <summary>Internal Acessors for Plan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IActiveDirectoryClientInternal.Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdName()); set { {_plan = value;} } } /// <summary>Internal Acessors for Subclient</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IActiveDirectoryClientInternal.Subclient { get => (this._subclient = this._subclient ?? new Commvault.Powershell.Models.IdName()); set { {_subclient = value;} } } /// <summary>Internal Acessors for UserAccount</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IActiveDirectoryClientInternal.UserAccount { get => (this._userAccount = this._userAccount ?? new Commvault.Powershell.Models.IdName()); set { {_userAccount = value;} } } /// <summary>Backing field for <see cref="Company" /> property.</summary> private Commvault.Powershell.Models.IIdNameFullName _company; /// <summary>IdNameFullName</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameFullName Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdNameFullName()); set => this._company = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CompanyFullName { get => ((Commvault.Powershell.Models.IIdNameFullNameInternal)Company).FullName; set => ((Commvault.Powershell.Models.IIdNameFullNameInternal)Company).FullName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CompanyId { get => ((Commvault.Powershell.Models.IIdNameFullNameInternal)Company).Id; set => ((Commvault.Powershell.Models.IIdNameFullNameInternal)Company).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CompanyName { get => ((Commvault.Powershell.Models.IIdNameFullNameInternal)Company).Name; set => ((Commvault.Powershell.Models.IIdNameFullNameInternal)Company).Name = value ?? null; } /// <summary>Backing field for <see cref="IsConfigured" /> property.</summary> private bool? _isConfigured; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsConfigured { get => this._isConfigured; set => this._isConfigured = value; } /// <summary>Backing field for <see cref="IsDisabledClient" /> property.</summary> private bool? _isDisabledClient; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsDisabledClient { get => this._isDisabledClient; set => this._isDisabledClient = value; } /// <summary>Backing field for <see cref="LastBackup" /> property.</summary> private Commvault.Powershell.Models.ILastBackupJobInfo _lastBackup; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ILastBackupJobInfo LastBackup { get => (this._lastBackup = this._lastBackup ?? new Commvault.Powershell.Models.LastBackupJobInfo()); set => this._lastBackup = value; } /// <summary>Gives the reason for the last backup job failing, if the last backup job fails.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LastBackupFailureReason { get => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).FailureReason; set => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).FailureReason = value ?? null; } /// <summary>Returns the job id of the last backup job performed.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LastBackupJobId { get => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).JobId; set => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).JobId = value ?? default(long); } /// <summary>Status of the last backup job performed.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LastBackupStatus { get => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).Status; set => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).Status = value ?? null; } /// <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.Inlined)] public long? LastBackupTime { get => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).Time; set => ((Commvault.Powershell.Models.ILastBackupJobInfoInternal)LastBackup).Time = value ?? default(long); } /// <summary>Backing field for <see cref="NumberOfItems" /> property.</summary> private long? _numberOfItems; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? NumberOfItems { get => this._numberOfItems; set => this._numberOfItems = value; } /// <summary>Backing field for <see cref="Plan" /> property.</summary> private Commvault.Powershell.Models.IIdName _plan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdName()); set => this._plan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? PlanId { get => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanName { get => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Name = value ?? null; } /// <summary>Backing field for <see cref="SlaStatus" /> property.</summary> private string _slaStatus; /// <summary>Provides the SLA status.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SlaStatus { get => this._slaStatus; set => this._slaStatus = value; } /// <summary>Backing field for <see cref="Subclient" /> property.</summary> private Commvault.Powershell.Models.IIdName _subclient; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Subclient { get => (this._subclient = this._subclient ?? new Commvault.Powershell.Models.IdName()); set => this._subclient = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SubclientId { get => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SubclientName { get => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Subclient).Name = value ?? null; } /// <summary>Backing field for <see cref="UserAccount" /> property.</summary> private Commvault.Powershell.Models.IIdName _userAccount; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName UserAccount { get => (this._userAccount = this._userAccount ?? new Commvault.Powershell.Models.IdName()); set => this._userAccount = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? UserAccountId { get => ((Commvault.Powershell.Models.IIdNameInternal)UserAccount).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)UserAccount).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string UserAccountName { get => ((Commvault.Powershell.Models.IIdNameInternal)UserAccount).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)UserAccount).Name = value ?? null; } /// <summary>Creates an new <see cref="ActiveDirectoryClient" /> instance.</summary> public ActiveDirectoryClient() { } } /// ActiveDirectoryClient public partial interface IActiveDirectoryClient : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary> /// Azure Active Directory (139), Granular Active Directory (41) or File Server (33) /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Azure Active Directory (139), Granular Active Directory (41) or File Server (33)", SerializedName = @"appTypeId", PossibleTypes = new [] { typeof(long) })] long? AppTypeId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"applicationSize", PossibleTypes = new [] { typeof(long) })] long? ApplicationSize { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? BackupsetId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string BackupsetName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string ClientDisplayName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ClientId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ClientName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"fullName", PossibleTypes = new [] { typeof(string) })] string CompanyFullName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CompanyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CompanyName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"isConfigured", PossibleTypes = new [] { typeof(bool) })] bool? IsConfigured { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"isDisabledClient", PossibleTypes = new [] { typeof(bool) })] bool? IsDisabledClient { get; set; } /// <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 LastBackupFailureReason { 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? LastBackupJobId { 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 LastBackupStatus { 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? LastBackupTime { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"numberOfItems", PossibleTypes = new [] { typeof(long) })] long? NumberOfItems { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? PlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PlanName { get; set; } /// <summary>Provides the SLA status.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Provides the SLA status.", SerializedName = @"slaStatus", PossibleTypes = new [] { typeof(string) })] string SlaStatus { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SubclientId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SubclientName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? UserAccountId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string UserAccountName { get; set; } } /// ActiveDirectoryClient internal partial interface IActiveDirectoryClientInternal { /// <summary> /// Azure Active Directory (139), Granular Active Directory (41) or File Server (33) /// </summary> long? AppTypeId { get; set; } long? ApplicationSize { get; set; } Commvault.Powershell.Models.IIdName Backupset { get; set; } long? BackupsetId { get; set; } string BackupsetName { get; set; } Commvault.Powershell.Models.IIdNameDisplayName Client { get; set; } string ClientDisplayName { get; set; } long? ClientId { get; set; } string ClientName { get; set; } /// <summary>IdNameFullName</summary> Commvault.Powershell.Models.IIdNameFullName Company { get; set; } string CompanyFullName { get; set; } long? CompanyId { get; set; } string CompanyName { get; set; } bool? IsConfigured { get; set; } bool? IsDisabledClient { get; set; } Commvault.Powershell.Models.ILastBackupJobInfo LastBackup { get; set; } /// <summary>Gives the reason for the last backup job failing, if the last backup job fails.</summary> string LastBackupFailureReason { get; set; } /// <summary>Returns the job id of the last backup job performed.</summary> long? LastBackupJobId { get; set; } /// <summary>Status of the last backup job performed.</summary> string LastBackupStatus { 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? LastBackupTime { get; set; } long? NumberOfItems { get; set; } Commvault.Powershell.Models.IIdName Plan { get; set; } long? PlanId { get; set; } string PlanName { get; set; } /// <summary>Provides the SLA status.</summary> string SlaStatus { get; set; } Commvault.Powershell.Models.IIdName Subclient { get; set; } long? SubclientId { get; set; } string SubclientName { get; set; } Commvault.Powershell.Models.IIdName UserAccount { get; set; } long? UserAccountId { get; set; } string UserAccountName { get; set; } } } |