# 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::Web module Models # # The IIS handler mappings used to define which handler processes HTTP # requests with certain extension. # For example it is used to configure php-cgi.exe process to # handle all HTTP requests with *.php extension. # class HandlerMapping include MsRestAzure # @return [String] Requests with this extension will be handled using # the specified FastCGI application. attr_accessor :extension # @return [String] The absolute path to the FastCGI application. attr_accessor :script_processor # @return [String] Command-line arguments to be passed to the script # processor. attr_accessor :arguments # # Validate the object. Throws ValidationError if validation fails. # def validate # Nothing to validate end # # Serializes given Model object into Ruby Hash. # @param object Model object to serialize. # @return [Hash] Serialized object in form of Ruby Hash. # def self.serialize_object(object) object.validate output_object = {} serialized_property = object.extension output_object['extension'] = serialized_property unless serialized_property.nil? serialized_property = object.script_processor output_object['scriptProcessor'] = serialized_property unless serialized_property.nil? serialized_property = object.arguments output_object['arguments'] = serialized_property unless serialized_property.nil? output_object end # # Deserializes given Ruby Hash into Model object. # @param object [Hash] Ruby Hash object to deserialize. # @return [HandlerMapping] Deserialized object. # def self.deserialize_object(object) return if object.nil? output_object = HandlerMapping.new deserialized_property = object['extension'] output_object.extension = deserialized_property deserialized_property = object['scriptProcessor'] output_object.script_processor = deserialized_property deserialized_property = object['arguments'] output_object.arguments = deserialized_property output_object end end end end