generated/api/Models/AlertRuleQueryEntityDetails.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; /// <summary>query entity object</summary> public partial class AlertRuleQueryEntityDetails : Commvault.Powershell.Models.IAlertRuleQueryEntityDetails, Commvault.Powershell.Models.IAlertRuleQueryEntityDetailsInternal { /// <summary>query severity level value</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string AdditionalQueryDetailQuerySeverity { get => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).QuerySeverity; set => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).QuerySeverity = value ?? null; } /// <summary>Backing field for <see cref="AdditionalQueryDetails" /> property.</summary> private Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetails _additionalQueryDetails; /// <summary>contains additional query details</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetails AdditionalQueryDetails { get => (this._additionalQueryDetails = this._additionalQueryDetails ?? new Commvault.Powershell.Models.AlertRuleAdditionalQueryDetails()); set => this._additionalQueryDetails = value; } /// <summary>Internal Acessors for AdditionalQueryDetailScriptDescription</summary> Commvault.Powershell.Models.IScriptDescriptionDetails Commvault.Powershell.Models.IAlertRuleQueryEntityDetailsInternal.AdditionalQueryDetailScriptDescription { get => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescription; set => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescription = value; } /// <summary>Internal Acessors for AdditionalQueryDetails</summary> Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetails Commvault.Powershell.Models.IAlertRuleQueryEntityDetailsInternal.AdditionalQueryDetails { get => (this._additionalQueryDetails = this._additionalQueryDetails ?? new Commvault.Powershell.Models.AlertRuleAdditionalQueryDetails()); set { {_additionalQueryDetails = value;} } } /// <summary>Internal Acessors for Creator</summary> Commvault.Powershell.Models.IAlertRuleQueryCreator Commvault.Powershell.Models.IAlertRuleQueryEntityDetailsInternal.Creator { get => (this._creator = this._creator ?? new Commvault.Powershell.Models.AlertRuleQueryCreator()); set { {_creator = value;} } } /// <summary>Internal Acessors for QueryEntity</summary> Commvault.Powershell.Models.IAlertRuleQueryEntity Commvault.Powershell.Models.IAlertRuleQueryEntityDetailsInternal.QueryEntity { get => (this._queryEntity = this._queryEntity ?? new Commvault.Powershell.Models.AlertRuleQueryEntity()); set { {_queryEntity = value;} } } /// <summary>Internal Acessors for SecurityAssociations</summary> Commvault.Powershell.Models.IAlertRuleSecurityAssociations Commvault.Powershell.Models.IAlertRuleQueryEntityDetailsInternal.SecurityAssociations { get => (this._securityAssociations = this._securityAssociations ?? new Commvault.Powershell.Models.AlertRuleSecurityAssociations()); set { {_securityAssociations = value;} } } /// <summary>Backing field for <see cref="Creator" /> property.</summary> private Commvault.Powershell.Models.IAlertRuleQueryCreator _creator; /// <summary>details of the query creator</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IAlertRuleQueryCreator Creator { get => (this._creator = this._creator ?? new Commvault.Powershell.Models.AlertRuleQueryCreator()); set => this._creator = value; } /// <summary>unique id of the user</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CreatorUserId { get => ((Commvault.Powershell.Models.IAlertRuleQueryCreatorInternal)Creator).UserId; set => ((Commvault.Powershell.Models.IAlertRuleQueryCreatorInternal)Creator).UserId = value ?? default(long); } /// <summary>name of the query creator</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CreatorUserName { get => ((Commvault.Powershell.Models.IAlertRuleQueryCreatorInternal)Creator).UserName; set => ((Commvault.Powershell.Models.IAlertRuleQueryCreatorInternal)Creator).UserName = value ?? null; } /// <summary>Backing field for <see cref="CustomAlertType" /> property.</summary> private long? _customAlertType; /// <summary>alert type enum value</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? CustomAlertType { get => this._customAlertType; set => this._customAlertType = value; } /// <summary>Backing field for <see cref="DoesQuerySupportOutputFilter" /> property.</summary> private bool? _doesQuerySupportOutputFilter; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? DoesQuerySupportOutputFilter { get => this._doesQuerySupportOutputFilter; set => this._doesQuerySupportOutputFilter = value; } /// <summary>Backing field for <see cref="Frequency" /> property.</summary> private long? _frequency; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Frequency { get => this._frequency; set => this._frequency = value; } /// <summary>Backing field for <see cref="IsDisabled" /> property.</summary> private bool? _isDisabled; /// <summary>whether its disabled or not</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsDisabled { get => this._isDisabled; set => this._isDisabled = value; } /// <summary>Backing field for <see cref="IsOverwriteAssociationAtAlertAllowed" /> property.</summary> private bool? _isOverwriteAssociationAtAlertAllowed; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsOverwriteAssociationAtAlertAllowed { get => this._isOverwriteAssociationAtAlertAllowed; set => this._isOverwriteAssociationAtAlertAllowed = value; } /// <summary>Backing field for <see cref="IsPrimaryKeyPresent" /> property.</summary> private bool? _isPrimaryKeyPresent; /// <summary>whether primary key is present or not</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsPrimaryKeyPresent { get => this._isPrimaryKeyPresent; set => this._isPrimaryKeyPresent = value; } /// <summary>Backing field for <see cref="IsQueryModifyEnabled" /> property.</summary> private bool? _isQueryModifyEnabled; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsQueryModifyEnabled { get => this._isQueryModifyEnabled; set => this._isQueryModifyEnabled = value; } /// <summary>Backing field for <see cref="IsSystemCreated" /> property.</summary> private bool? _isSystemCreated; /// <summary>whether its system created or not</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsSystemCreated { get => this._isSystemCreated; set => this._isSystemCreated = value; } /// <summary>Backing field for <see cref="QueryCriteriaName" /> property.</summary> private string _queryCriteriaName; /// <summary>criteria name of the query</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string QueryCriteriaName { get => this._queryCriteriaName; set => this._queryCriteriaName = value; } /// <summary>Backing field for <see cref="QueryDescription" /> property.</summary> private string _queryDescription; /// <summary>brief description of the query</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string QueryDescription { get => this._queryDescription; set => this._queryDescription = value; } /// <summary>Backing field for <see cref="QueryEntity" /> property.</summary> private Commvault.Powershell.Models.IAlertRuleQueryEntity _queryEntity; /// <summary>contains query details</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IAlertRuleQueryEntity QueryEntity { get => (this._queryEntity = this._queryEntity ?? new Commvault.Powershell.Models.AlertRuleQueryEntity()); set => this._queryEntity = value; } /// <summary>unique id of the query</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? QueryEntityQueryId { get => ((Commvault.Powershell.Models.IAlertRuleQueryEntityInternal)QueryEntity).QueryId; set => ((Commvault.Powershell.Models.IAlertRuleQueryEntityInternal)QueryEntity).QueryId = value ?? default(long); } /// <summary>name of the query</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string QueryEntityQueryName { get => ((Commvault.Powershell.Models.IAlertRuleQueryEntityInternal)QueryEntity).QueryName; set => ((Commvault.Powershell.Models.IAlertRuleQueryEntityInternal)QueryEntity).QueryName = value ?? null; } /// <summary>Backing field for <see cref="QueryOutputColumns" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleQueryOutputColumnObject> _queryOutputColumns; /// <summary>list of the output columns associated with the alert rule</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleQueryOutputColumnObject> QueryOutputColumns { get => this._queryOutputColumns; set => this._queryOutputColumns = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ScriptDescription { get => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescriptionDescription; set => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescriptionDescription = value ?? null; } /// <summary>unique identifier for the script</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ScriptDescriptionGuid { get => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescriptionGuid; set => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescriptionGuid = value ?? null; } /// <summary>name of the report</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ScriptDescriptionReportName { get => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescriptionReportName; set => ((Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetailsInternal)AdditionalQueryDetails).ScriptDescriptionReportName = value ?? null; } /// <summary>contains list of security associations</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleAssociationsObject> SecurityAssociationAssociations { get => ((Commvault.Powershell.Models.IAlertRuleSecurityAssociationsInternal)SecurityAssociations).Associations; set => ((Commvault.Powershell.Models.IAlertRuleSecurityAssociationsInternal)SecurityAssociations).Associations = value ?? null /* arrayOf */; } /// <summary>Backing field for <see cref="SecurityAssociations" /> property.</summary> private Commvault.Powershell.Models.IAlertRuleSecurityAssociations _securityAssociations; /// <summary>contains associations</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IAlertRuleSecurityAssociations SecurityAssociations { get => (this._securityAssociations = this._securityAssociations ?? new Commvault.Powershell.Models.AlertRuleSecurityAssociations()); set => this._securityAssociations = value; } /// <summary>Backing field for <see cref="SqlQuery" /> property.</summary> private string _sqlQuery; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SqlQuery { get => this._sqlQuery; set => this._sqlQuery = value; } /// <summary>Backing field for <see cref="Visibility" /> property.</summary> private long? _visibility; /// <summary>whether its private or public</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Visibility { get => this._visibility; set => this._visibility = value; } /// <summary>Creates an new <see cref="AlertRuleQueryEntityDetails" /> instance.</summary> public AlertRuleQueryEntityDetails() { } } /// query entity object public partial interface IAlertRuleQueryEntityDetails : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>query severity level value</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"query severity level value", SerializedName = @"querySeverity", PossibleTypes = new [] { typeof(string) })] string AdditionalQueryDetailQuerySeverity { get; set; } /// <summary>unique id of the user</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"unique id of the user", SerializedName = @"userId", PossibleTypes = new [] { typeof(long) })] long? CreatorUserId { get; set; } /// <summary>name of the query creator</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"name of the query creator", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] string CreatorUserName { get; set; } /// <summary>alert type enum value</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"alert type enum value", SerializedName = @"customAlertType", PossibleTypes = new [] { typeof(long) })] long? CustomAlertType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"doesQuerySupportOutputFilter", PossibleTypes = new [] { typeof(bool) })] bool? DoesQuerySupportOutputFilter { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"frequency", PossibleTypes = new [] { typeof(long) })] long? Frequency { get; set; } /// <summary>whether its disabled or not</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"whether its disabled or not", SerializedName = @"isDisabled", PossibleTypes = new [] { typeof(bool) })] bool? IsDisabled { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"isOverwriteAssociationAtAlertAllowed", PossibleTypes = new [] { typeof(bool) })] bool? IsOverwriteAssociationAtAlertAllowed { get; set; } /// <summary>whether primary key is present or not</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"whether primary key is present or not", SerializedName = @"isPrimaryKeyPresent", PossibleTypes = new [] { typeof(bool) })] bool? IsPrimaryKeyPresent { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"isQueryModifyEnabled", PossibleTypes = new [] { typeof(bool) })] bool? IsQueryModifyEnabled { get; set; } /// <summary>whether its system created or not</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"whether its system created or not", SerializedName = @"isSystemCreated", PossibleTypes = new [] { typeof(bool) })] bool? IsSystemCreated { get; set; } /// <summary>criteria name of the query</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"criteria name of the query", SerializedName = @"queryCriteriaName", PossibleTypes = new [] { typeof(string) })] string QueryCriteriaName { get; set; } /// <summary>brief description of the query</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"brief description of the query", SerializedName = @"queryDescription", PossibleTypes = new [] { typeof(string) })] string QueryDescription { get; set; } /// <summary>unique id of the query</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"unique id of the query", SerializedName = @"queryId", PossibleTypes = new [] { typeof(long) })] long? QueryEntityQueryId { get; set; } /// <summary>name of the query</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"name of the query", SerializedName = @"queryName", PossibleTypes = new [] { typeof(string) })] string QueryEntityQueryName { get; set; } /// <summary>list of the output columns associated with the alert rule</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"list of the output columns associated with the alert rule", SerializedName = @"queryOutputColumns", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAlertRuleQueryOutputColumnObject) })] System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleQueryOutputColumnObject> QueryOutputColumns { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string ScriptDescription { get; set; } /// <summary>unique identifier for the script</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"unique identifier for the script", SerializedName = @"guid", PossibleTypes = new [] { typeof(string) })] string ScriptDescriptionGuid { get; set; } /// <summary>name of the report</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"name of the report", SerializedName = @"reportName", PossibleTypes = new [] { typeof(string) })] string ScriptDescriptionReportName { get; set; } /// <summary>contains list of security associations</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"contains list of security associations", SerializedName = @"associations", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAlertRuleAssociationsObject) })] System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleAssociationsObject> SecurityAssociationAssociations { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"sqlQuery", PossibleTypes = new [] { typeof(string) })] string SqlQuery { get; set; } /// <summary>whether its private or public</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"whether its private or public", SerializedName = @"visibility", PossibleTypes = new [] { typeof(long) })] long? Visibility { get; set; } } /// query entity object internal partial interface IAlertRuleQueryEntityDetailsInternal { /// <summary>query severity level value</summary> string AdditionalQueryDetailQuerySeverity { get; set; } /// <summary>contains script details</summary> Commvault.Powershell.Models.IScriptDescriptionDetails AdditionalQueryDetailScriptDescription { get; set; } /// <summary>contains additional query details</summary> Commvault.Powershell.Models.IAlertRuleAdditionalQueryDetails AdditionalQueryDetails { get; set; } /// <summary>details of the query creator</summary> Commvault.Powershell.Models.IAlertRuleQueryCreator Creator { get; set; } /// <summary>unique id of the user</summary> long? CreatorUserId { get; set; } /// <summary>name of the query creator</summary> string CreatorUserName { get; set; } /// <summary>alert type enum value</summary> long? CustomAlertType { get; set; } bool? DoesQuerySupportOutputFilter { get; set; } long? Frequency { get; set; } /// <summary>whether its disabled or not</summary> bool? IsDisabled { get; set; } bool? IsOverwriteAssociationAtAlertAllowed { get; set; } /// <summary>whether primary key is present or not</summary> bool? IsPrimaryKeyPresent { get; set; } bool? IsQueryModifyEnabled { get; set; } /// <summary>whether its system created or not</summary> bool? IsSystemCreated { get; set; } /// <summary>criteria name of the query</summary> string QueryCriteriaName { get; set; } /// <summary>brief description of the query</summary> string QueryDescription { get; set; } /// <summary>contains query details</summary> Commvault.Powershell.Models.IAlertRuleQueryEntity QueryEntity { get; set; } /// <summary>unique id of the query</summary> long? QueryEntityQueryId { get; set; } /// <summary>name of the query</summary> string QueryEntityQueryName { get; set; } /// <summary>list of the output columns associated with the alert rule</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleQueryOutputColumnObject> QueryOutputColumns { get; set; } string ScriptDescription { get; set; } /// <summary>unique identifier for the script</summary> string ScriptDescriptionGuid { get; set; } /// <summary>name of the report</summary> string ScriptDescriptionReportName { get; set; } /// <summary>contains list of security associations</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IAlertRuleAssociationsObject> SecurityAssociationAssociations { get; set; } /// <summary>contains associations</summary> Commvault.Powershell.Models.IAlertRuleSecurityAssociations SecurityAssociations { get; set; } string SqlQuery { get; set; } /// <summary>whether its private or public</summary> long? Visibility { get; set; } } } |