Compartilhar via


JsonInputSchemaMapping Class

Definition

This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.JsonInputSchemaMappingTypeConverter))]
public class JsonInputSchemaMapping : Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMapping, Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.JsonInputSchemaMappingTypeConverter))>]
type JsonInputSchemaMapping = class
    interface IJsonInputSchemaMapping
    interface IJsonSerializable
    interface IInputSchemaMapping
    interface IValidates
Public Class JsonInputSchemaMapping
Implements IJsonInputSchemaMapping, IValidates
Inheritance
JsonInputSchemaMapping
Attributes
Implements

Constructors

JsonInputSchemaMapping()

Creates an new JsonInputSchemaMapping instance.

Properties

DataVersionDefaultValue

The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.

DataVersionSourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

EventTimeSourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

EventTypeDefaultValue

The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.

EventTypeSourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

IdSourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

SubjectDefaultValue

The default value to be used for mapping when a SourceField is not provided or if there's no property with the specified name in the published JSON event payload.

SubjectSourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

TopicSourceField

Name of a field in the input event schema that's to be used as the source of a mapping.

Type

Type of the custom mapping

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of JsonInputSchemaMapping.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of JsonInputSchemaMapping.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.EventGrid.Models.IJsonInputSchemaMapping.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of JsonInputSchemaMapping into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to