ResourceGraphQuerySpecification Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Discovery rule specification for an Azure Resource Graph query
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudHealth.Models.ResourceGraphQuerySpecificationTypeConverter))]
public class ResourceGraphQuerySpecification : Microsoft.Azure.PowerShell.Cmdlets.CloudHealth.Models.IResourceGraphQuerySpecification, Microsoft.Azure.PowerShell.Cmdlets.CloudHealth.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudHealth.Models.ResourceGraphQuerySpecificationTypeConverter))>]
type ResourceGraphQuerySpecification = class
interface IResourceGraphQuerySpecification
interface IJsonSerializable
interface IDiscoveryRuleSpecification
interface IValidates
Public Class ResourceGraphQuerySpecification
Implements IResourceGraphQuerySpecification, IValidates
- Inheritance
-
ResourceGraphQuerySpecification
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ResourceGraphQuerySpecification() |
Creates an new ResourceGraphQuerySpecification instance. |
Properties
| Name | Description |
|---|---|
| Kind |
Kind of the discovery rule specification |
| ResourceGraphQuery |
Azure Resource Graph query text in KQL syntax. The query must return at least a column named 'id' which contains the resource ID of the discovered resources. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ResourceGraphQuerySpecification. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ResourceGraphQuerySpecification. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudHealth.Models.IResourceGraphQuerySpecification. |
| FromJsonString(String) |
Creates a new instance of ResourceGraphQuerySpecification, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of ResourceGraphQuerySpecification into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| ToString() | |
| Validate(IEventListener) |
Validates that this object meets the validation criteria. |