generated/api/Models/CustomQueryDetails.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 CustomQueryDetails : Commvault.Powershell.Models.ICustomQueryDetails, Commvault.Powershell.Models.ICustomQueryDetailsInternal { /// <summary>Backing field for <see cref="AdditionalQueryInfo" /> property.</summary> private Commvault.Powershell.Models.IQueryAdditionalInfo _additionalQueryInfo; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IQueryAdditionalInfo AdditionalQueryInfo { get => (this._additionalQueryInfo = this._additionalQueryInfo ?? new Commvault.Powershell.Models.QueryAdditionalInfo()); set => this._additionalQueryInfo = value; } /// <summary>List of query parameters</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<Commvault.Powershell.Models.IQueryParameter> AdditionalQueryInfoQueryParameters { get => ((Commvault.Powershell.Models.IQueryAdditionalInfoInternal)AdditionalQueryInfo).QueryParameters; set => ((Commvault.Powershell.Models.IQueryAdditionalInfoInternal)AdditionalQueryInfo).QueryParameters = value ?? null /* arrayOf */; } /// <summary>Internal Acessors for AdditionalQueryInfo</summary> Commvault.Powershell.Models.IQueryAdditionalInfo Commvault.Powershell.Models.ICustomQueryDetailsInternal.AdditionalQueryInfo { get => (this._additionalQueryInfo = this._additionalQueryInfo ?? new Commvault.Powershell.Models.QueryAdditionalInfo()); set { {_additionalQueryInfo = value;} } } /// <summary>Backing field for <see cref="QueryId" /> property.</summary> private long? _queryId; /// <summary>Unique id for the custom alert rule associated with the alert definition</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? QueryId { get => this._queryId; set => this._queryId = value; } /// <summary>Creates an new <see cref="CustomQueryDetails" /> instance.</summary> public CustomQueryDetails() { } } public partial interface ICustomQueryDetails : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>List of query parameters</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"List of query parameters", SerializedName = @"queryParameters", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IQueryParameter) })] System.Collections.Generic.List<Commvault.Powershell.Models.IQueryParameter> AdditionalQueryInfoQueryParameters { get; set; } /// <summary>Unique id for the custom alert rule associated with the alert definition</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Unique id for the custom alert rule associated with the alert definition", SerializedName = @"queryId", PossibleTypes = new [] { typeof(long) })] long? QueryId { get; set; } } internal partial interface ICustomQueryDetailsInternal { Commvault.Powershell.Models.IQueryAdditionalInfo AdditionalQueryInfo { get; set; } /// <summary>List of query parameters</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IQueryParameter> AdditionalQueryInfoQueryParameters { get; set; } /// <summary>Unique id for the custom alert rule associated with the alert definition</summary> long? QueryId { get; set; } } } |