Sha256: cfcca546a5fb87a411285022c2b4ded3391622a6f057c937ec872f563261bcb9

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.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

1 entries across 1 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.10.0 lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb