class Azure::EventGrid::Mgmt::V2020_06_01::Models::JsonInputSchemaMapping
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.
Attributes
@return [JsonFieldWithDefault] The mapping information for the DataVersion property of the Event Grid Event.
@return [JsonField] The mapping information for the EventTime property of the Event Grid Event.
@return [JsonFieldWithDefault] The mapping information for the EventType
property of the Event Grid Event.
@return [JsonField] The mapping information for the Id property of the Event Grid Event.
@return [JsonFieldWithDefault] The mapping information for the Subject property of the Event Grid Event.
@return [JsonField] The mapping information for the Topic
property of the Event Grid Event.
Public Class Methods
Mapper for JsonInputSchemaMapping
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-06-01/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb, line 53 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Json', type: { name: 'Composite', class_name: 'JsonInputSchemaMapping', model_properties: { inputSchemaMappingType: { client_side_validation: true, required: true, serialized_name: 'inputSchemaMappingType', type: { name: 'String' } }, id: { client_side_validation: true, required: false, serialized_name: 'properties.id', type: { name: 'Composite', class_name: 'JsonField' } }, topic: { client_side_validation: true, required: false, serialized_name: 'properties.topic', type: { name: 'Composite', class_name: 'JsonField' } }, event_time: { client_side_validation: true, required: false, serialized_name: 'properties.eventTime', type: { name: 'Composite', class_name: 'JsonField' } }, event_type: { client_side_validation: true, required: false, serialized_name: 'properties.eventType', type: { name: 'Composite', class_name: 'JsonFieldWithDefault' } }, subject: { client_side_validation: true, required: false, serialized_name: 'properties.subject', type: { name: 'Composite', class_name: 'JsonFieldWithDefault' } }, data_version: { client_side_validation: true, required: false, serialized_name: 'properties.dataVersion', type: { name: 'Composite', class_name: 'JsonFieldWithDefault' } } } } } end
# File lib/2020-06-01/generated/azure_mgmt_event_grid/models/json_input_schema_mapping.rb, line 18 def initialize @inputSchemaMappingType = "Json" end