# 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::ApiManagement::Mgmt::V2019_12_01
  module Models
    #
    # Resource location data properties.
    #
    class ResourceLocationDataContract

      include MsRestAzure

      # @return [String] A canonical name for the geographic or physical
      # location.
      attr_accessor :name

      # @return [String] The city or locality where the resource is located.
      attr_accessor :city

      # @return [String] The district, state, or province where the resource is
      # located.
      attr_accessor :district

      # @return [String] The country or region where the resource is located.
      attr_accessor :country_or_region


      #
      # Mapper for ResourceLocationDataContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ResourceLocationDataContract',
          type: {
            name: 'Composite',
            class_name: 'ResourceLocationDataContract',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                constraints: {
                  MaxLength: 256
                },
                type: {
                  name: 'String'
                }
              },
              city: {
                client_side_validation: true,
                required: false,
                serialized_name: 'city',
                constraints: {
                  MaxLength: 256
                },
                type: {
                  name: 'String'
                }
              },
              district: {
                client_side_validation: true,
                required: false,
                serialized_name: 'district',
                constraints: {
                  MaxLength: 256
                },
                type: {
                  name: 'String'
                }
              },
              country_or_region: {
                client_side_validation: true,
                required: false,
                serialized_name: 'countryOrRegion',
                constraints: {
                  MaxLength: 256
                },
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
