class Azure::EventGrid::V2018_01_01::Models::DeviceConnectionStateEventProperties

Schema of the Data property of an EventGridEvent for a device connection state event (DeviceConnected, DeviceDisconnected).

Attributes

device_connection_state_event_info[RW]

@return [DeviceConnectionStateEventInfo] Information about the device connection state event.

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.

module_id[RW]

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

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-01-01/generated/azure_event_grid/models/device_connection_state_event_properties.rb, line 41
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DeviceConnectionStateEventProperties',
    type: {
      name: 'Composite',
      class_name: 'DeviceConnectionStateEventProperties',
      model_properties: {
        device_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'deviceId',
          type: {
            name: 'String'
          }
        },
        module_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'moduleId',
          type: {
            name: 'String'
          }
        },
        hub_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'hubName',
          type: {
            name: 'String'
          }
        },
        device_connection_state_event_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'deviceConnectionStateEventInfo',
          type: {
            name: 'Composite',
            class_name: 'DeviceConnectionStateEventInfo'
          }
        }
      }
    }
  }
end