# 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::Signalr::Mgmt::V2018_10_01
  module Models
    #
    # Parameters for SignalR service create/update operation.
    #
    # Keep the same schema as AzSignalR.Models.SignalRResource
    #
    class SignalRCreateParameters < SignalRUpdateParameters

      include MsRestAzure

      # @return [String] Azure GEO region: e.g. West US | East US | North
      # Central US | South Central US | West Europe | North Europe | East Asia
      # | Southeast Asia | etc.
      # The geo region of a resource never changes after it is created.
      attr_accessor :location


      #
      # Mapper for SignalRCreateParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SignalRCreateParameters',
          type: {
            name: 'Composite',
            class_name: 'SignalRCreateParameters',
            model_properties: {
              tags: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tags',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              sku: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sku',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceSku'
                }
              },
              properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties',
                type: {
                  name: 'Composite',
                  class_name: 'SignalRCreateOrUpdateProperties'
                }
              },
              location: {
                client_side_validation: true,
                required: true,
                serialized_name: 'location',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
