ArmResourceGraphModelFactory.ResourceGraphQueryData Method

Definition

Initializes a new instance of ResourceGraphQueryData.

public static Azure.ResourceManager.ResourceGraph.ResourceGraphQueryData ResourceGraphQueryData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, DateTimeOffset? modifiedOn = default, string description = default, string query = default, Azure.ResourceManager.ResourceGraph.Models.ResultKind? resultKind = default, Azure.ETag? etag = default);
static member ResourceGraphQueryData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<DateTimeOffset> * string * string * Nullable<Azure.ResourceManager.ResourceGraph.Models.ResultKind> * Nullable<Azure.ETag> -> Azure.ResourceManager.ResourceGraph.ResourceGraphQueryData
Public Shared Function ResourceGraphQueryData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional modifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional description As String = Nothing, Optional query As String = Nothing, Optional resultKind As Nullable(Of ResultKind) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As ResourceGraphQueryData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

modifiedOn
Nullable<DateTimeOffset>

Date and time in UTC of the last modification that was made to this graph query definition.

description
String

The description of a graph query.

query
String

KQL query that will be graph.

resultKind
Nullable<ResultKind>

Enum indicating a type of graph query.

etag
Nullable<ETag>

This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict.

Returns

A new ResourceGraphQueryData instance for mocking.

Applies to