-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ResourceQueryContent.cs
41 lines (35 loc) · 1.64 KB
/
ResourceQueryContent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.ResourceGraph.Models
{
/// <summary> Describes a query to be executed. </summary>
public partial class ResourceQueryContent
{
/// <summary> Initializes a new instance of ResourceQueryContent. </summary>
/// <param name="query"> The resources query. </param>
/// <exception cref="ArgumentNullException"> <paramref name="query"/> is null. </exception>
public ResourceQueryContent(string query)
{
Argument.AssertNotNull(query, nameof(query));
Subscriptions = new ChangeTrackingList<string>();
ManagementGroups = new ChangeTrackingList<string>();
Query = query;
Facets = new ChangeTrackingList<FacetRequest>();
}
/// <summary> Azure subscriptions against which to execute the query. </summary>
public IList<string> Subscriptions { get; }
/// <summary> Azure management groups against which to execute the query. Example: [ 'mg1', 'mg2' ]. </summary>
public IList<string> ManagementGroups { get; }
/// <summary> The resources query. </summary>
public string Query { get; }
/// <summary> The query evaluation options. </summary>
public ResourceQueryRequestOptions Options { get; set; }
/// <summary> An array of facet requests to be computed against the query result. </summary>
public IList<FacetRequest> Facets { get; }
}
}