Freigeben über


GraphQueryResource Class

Definition

Graph Query entity definition.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.GraphQueryResourceTypeConverter))]
public class GraphQueryResource : Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResource, Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.GraphQueryResourceTypeConverter))>]
type GraphQueryResource = class
    interface IGraphQueryResource
    interface IJsonSerializable
    interface IResource
    interface IValidates
Public Class GraphQueryResource
Implements IGraphQueryResource, IValidates
Inheritance
GraphQueryResource
Attributes
Implements

Constructors

Name Description
GraphQueryResource()

Creates an new GraphQueryResource instance.

Properties

Name Description
Description

The description of a graph query.

Etag

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

Id

Azure resource Id

Location

The location of the resource

Name

Azure resource name. This is GUID value. The display name should be assigned within properties field.

Query

KQL query that will be graph.

ResourceGroupName

Gets the resource group name

ResultKind

Enum indicating a type of graph query.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Tag

Resource tags

TimeModified

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

Type

Azure resource type

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of GraphQueryResource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GraphQueryResource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Models.IGraphQueryResource.

FromJsonString(String)

Creates a new instance of GraphQueryResource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of GraphQueryResource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to