class Azure::EventGrid::V2018_01_01::Models::DeviceLifeCycleEventProperties

Schema of the Data property of an EventGridEvent for a device life cycle event (DeviceCreated, DeviceDeleted).

Attributes

device_id[RW]

@return [String] The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ # * ? ! ( ) , = @ ; $ '.

hub_name[RW]

@return [String] Name of the IoT Hub where the device was created or deleted.

twin[RW]

@return [DeviceTwinInfo] Information about the device twin, which is the cloud representation of application device metadata.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-01-01/generated/azure_event_grid/models/device_life_cycle_event_properties.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DeviceLifeCycleEventProperties',
    type: {
      name: 'Composite',
      class_name: 'DeviceLifeCycleEventProperties',
      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