generated/api/Models/AnomalousConditionInfo.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 AnomalousConditionInfo : Commvault.Powershell.Models.IAnomalousConditionInfo, Commvault.Powershell.Models.IAnomalousConditionInfoInternal { /// <summary>Backing field for <see cref="AnomalyType" /> property.</summary> private string _anomalyType; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string AnomalyType { get => this._anomalyType; set => this._anomalyType = value; } /// <summary>Backing field for <see cref="ClientInfo" /> property.</summary> private Commvault.Powershell.Models.IIdName _clientInfo; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName ClientInfo { get => (this._clientInfo = this._clientInfo ?? new Commvault.Powershell.Models.IdName()); set => this._clientInfo = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ClientInfoId { get => ((Commvault.Powershell.Models.IIdNameInternal)ClientInfo).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)ClientInfo).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ClientInfoName { get => ((Commvault.Powershell.Models.IIdNameInternal)ClientInfo).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)ClientInfo).Name = value ?? null; } /// <summary>Internal Acessors for ClientInfo</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IAnomalousConditionInfoInternal.ClientInfo { get => (this._clientInfo = this._clientInfo ?? new Commvault.Powershell.Models.IdName()); set { {_clientInfo = value;} } } /// <summary>Backing field for <see cref="Description" /> property.</summary> private string _description; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Description { get => this._description; set => this._description = value; } /// <summary>Backing field for <see cref="Time" /> property.</summary> private long? _time; /// <summary>Time when anomalous condition has happened</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Time { get => this._time; set => this._time = value; } /// <summary>Creates an new <see cref="AnomalousConditionInfo" /> instance.</summary> public AnomalousConditionInfo() { } } public partial interface IAnomalousConditionInfo : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"anomalyType", PossibleTypes = new [] { typeof(string) })] string AnomalyType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ClientInfoId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ClientInfoName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } /// <summary>Time when anomalous condition has happened</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Time when anomalous condition has happened", SerializedName = @"time", PossibleTypes = new [] { typeof(long) })] long? Time { get; set; } } internal partial interface IAnomalousConditionInfoInternal { string AnomalyType { get; set; } Commvault.Powershell.Models.IIdName ClientInfo { get; set; } long? ClientInfoId { get; set; } string ClientInfoName { get; set; } string Description { get; set; } /// <summary>Time when anomalous condition has happened</summary> long? Time { get; set; } } } |