class Azure::EventGrid::V2018_01_01::Models::DeviceTwinInfo

Information about the device twin, which is the cloud representation of application device metadata.

Attributes

authentication_type[RW]

@return [String] Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority.

cloud_to_device_message_count[RW]

@return [Float] Count of cloud to device messages sent to this device.

connection_state[RW]

@return [String] Whether the device is connected or disconnected.

device_id[RW]

@return [String] The unique identifier of the device twin.

etag[RW]

@return [String] A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin.

last_activity_time[RW]

@return [String] The ISO8601 timestamp of the last activity.

properties[RW]

@return [DeviceTwinInfoProperties] Properties JSON element.

status[RW]

@return [String] Whether the device twin is enabled or disabled.

status_update_time[RW]

@return [String] The ISO8601 timestamp of the last device twin status update.

version[RW]

@return [Float] An integer that is incremented by one each time the device twin is updated.

x509thumbprint[RW]

@return [DeviceTwinInfoX509Thumbprint] The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-01-01/generated/azure_event_grid/models/device_twin_info.rb, line 62
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DeviceTwinInfo',
    type: {
      name: 'Composite',
      class_name: 'DeviceTwinInfo',
      model_properties: {
        authentication_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'authenticationType',
          type: {
            name: 'String'
          }
        },
        cloud_to_device_message_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'cloudToDeviceMessageCount',
          type: {
            name: 'Double'
          }
        },
        connection_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'connectionState',
          type: {
            name: 'String'
          }
        },
        device_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'deviceId',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        last_activity_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastActivityTime',
          type: {
            name: 'String'
          }
        },
        properties: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties',
          type: {
            name: 'Composite',
            class_name: 'DeviceTwinInfoProperties'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        status_update_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'statusUpdateTime',
          type: {
            name: 'String'
          }
        },
        version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'version',
          type: {
            name: 'Double'
          }
        },
        x509thumbprint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'x509Thumbprint',
          type: {
            name: 'Composite',
            class_name: 'DeviceTwinInfoX509Thumbprint'
          }
        }
      }
    }
  }
end