# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::MobileEngagement::Mgmt::V2014_12_01 module Models # # Model object. # # class Device include MsRestAzure # @return [String] The device result. attr_accessor :device_id # @return [DeviceMeta] Application usage data. attr_accessor :meta # @return [DeviceInfo] Last technical data received (concerning device, # system, network and application identification). attr_accessor :info # @return [DeviceLocation] Last geo-location data received. attr_accessor :location # @return [Hash{String => String}] Also known as tags, a key-value set as # a JSON object. attr_accessor :app_info # # Mapper for Device class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'Device', type: { name: 'Composite', class_name: 'Device', model_properties: { device_id: { required: true, serialized_name: 'deviceId', type: { name: 'String' } }, meta: { required: false, serialized_name: 'meta', type: { name: 'Composite', class_name: 'DeviceMeta' } }, info: { required: false, serialized_name: 'info', type: { name: 'Composite', class_name: 'DeviceInfo' } }, location: { required: false, serialized_name: 'location', type: { name: 'Composite', class_name: 'DeviceLocation' } }, app_info: { required: false, serialized_name: 'appInfo', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end