Sha256: a08d8acd9fb8ad7a71b0dd711dad377daaa1d3550b1eff52c5c94eb967f7e956

Contents?: true

Size: 1.64 KB

Versions: 3

Compression:

Stored size: 1.64 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::MobileEngagement
  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()
        {
          required: false,
          serialized_name: 'DeviceLocation',
          type: {
            name: 'Composite',
            class_name: 'DeviceLocation',
            model_properties: {
              countrycode: {
                required: false,
                serialized_name: 'countrycode',
                type: {
                  name: 'String'
                }
              },
              region: {
                required: false,
                serialized_name: 'region',
                type: {
                  name: 'String'
                }
              },
              locality: {
                required: false,
                serialized_name: 'locality',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.7.0 lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb
azure_mgmt_mobile_engagement-0.6.0 lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb
azure_mgmt_mobile_engagement-0.5.0 lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb