ArmResourceGraphModelFactory.ResourceQueryResult Method

Definition

Initializes a new instance of ResourceQueryResult.

public static Azure.ResourceManager.ResourceGraph.Models.ResourceQueryResult ResourceQueryResult (long totalRecords = 0, long count = 0, Azure.ResourceManager.ResourceGraph.Models.ResultTruncated resultTruncated = Azure.ResourceManager.ResourceGraph.Models.ResultTruncated.True, string skipToken = default, BinaryData data = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ResourceGraph.Models.Facet> facets = default);
static member ResourceQueryResult : int64 * int64 * Azure.ResourceManager.ResourceGraph.Models.ResultTruncated * string * BinaryData * seq<Azure.ResourceManager.ResourceGraph.Models.Facet> -> Azure.ResourceManager.ResourceGraph.Models.ResourceQueryResult
Public Shared Function ResourceQueryResult (Optional totalRecords As Long = 0, Optional count As Long = 0, Optional resultTruncated As ResultTruncated = Azure.ResourceManager.ResourceGraph.Models.ResultTruncated.True, Optional skipToken As String = Nothing, Optional data As BinaryData = Nothing, Optional facets As IEnumerable(Of Facet) = Nothing) As ResourceQueryResult

Parameters

totalRecords
Int64

Number of total records matching the query.

count
Int64

Number of records returned in the current response. In the case of paging, this is the number of records in the current page.

resultTruncated
ResultTruncated

Indicates whether the query results are truncated.

skipToken
String

When present, the value can be passed to a subsequent query call (together with the same query and scopes used in the current request) to retrieve the next page of data.

data
BinaryData

Query output in JObject array or Table format.

facets
IEnumerable<Facet>

Query facets. Please note Facet is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include FacetError and FacetResult.

Returns

A new ResourceQueryResult instance for mocking.

Applies to