class Azure::EventGrid::V2018_01_01::Models::IotHubDeviceCreatedEventData

Event data for Microsoft.Devices.DeviceCreated event.

Private Class Methods

mapper() click to toggle source

Mapper for IotHubDeviceCreatedEventData class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-01-01/generated/azure_event_grid/models/iot_hub_device_created_event_data.rb, line 20
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IotHubDeviceCreatedEventData',
    type: {
      name: 'Composite',
      class_name: 'IotHubDeviceCreatedEventData',
      model_properties: {
        device_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'deviceId',
          type: {
            name: 'String'
          }
        },
        hub_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'hubName',
          type: {
            name: 'String'
          }
        },
        twin: {
          client_side_validation: true,
          required: false,
          serialized_name: 'twin',
          type: {
            name: 'Composite',
            class_name: 'DeviceTwinInfo'
          }
        }
      }
    }
  }
end