Sha256: 23600dd15ab73d03ef736a501d9f4614aa86e0890e5d72a71b3d72bef0c9addb

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

# 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 DeviceLocation

      include MsRestAzure

      # @return [String] The ISO 3166 two-letter country code.
      attr_accessor :countrycode

      # @return [String] An administrative region of the nation, such as a
      # state or province.
      attr_accessor :region

      # @return [String] A locality within the administrative region, such as a
      # town or city.
      attr_accessor :locality


      #
      # Mapper for DeviceLocation class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DeviceLocation',
          type: {
            name: 'Composite',
            class_name: 'DeviceLocation',
            model_properties: {
              countrycode: {
                client_side_validation: true,
                required: false,
                serialized_name: 'countrycode',
                type: {
                  name: 'String'
                }
              },
              region: {
                client_side_validation: true,
                required: false,
                serialized_name: 'region',
                type: {
                  name: 'String'
                }
              },
              locality: {
                client_side_validation: true,
                required: false,
                serialized_name: 'locality',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.16.0 lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device_location.rb
azure_mgmt_mobile_engagement-0.15.2 lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/device_location.rb