# 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::HybridCompute::Mgmt::V2020_08_02
  module Models
    #
    # Metadata pertaining to the geographic location of the resource.
    #
    class LocationData

      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 LocationData class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'locationData',
          type: {
            name: 'Composite',
            class_name: 'LocationData',
            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',
                type: {
                  name: 'String'
                }
              },
              district: {
                client_side_validation: true,
                required: false,
                serialized_name: 'district',
                type: {
                  name: 'String'
                }
              },
              country_or_region: {
                client_side_validation: true,
                required: false,
                serialized_name: 'countryOrRegion',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
