# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Monitor::Mgmt::V2018_09_01
  module Models
    #
    # An azure function receiver.
    #
    class AzureFunctionReceiver

      include MsRestAzure

      # @return [String] The name of the azure function receiver. Names must be
      # unique across all receivers within an action group.
      attr_accessor :name

      # @return [String] The azure resource id of the function app.
      attr_accessor :function_app_resource_id

      # @return [String] The function name in the function app.
      attr_accessor :function_name

      # @return [String] The http trigger url where http request sent to.
      attr_accessor :http_trigger_url


      #
      # Mapper for AzureFunctionReceiver class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AzureFunctionReceiver',
          type: {
            name: 'Composite',
            class_name: 'AzureFunctionReceiver',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              function_app_resource_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'functionAppResourceId',
                type: {
                  name: 'String'
                }
              },
              function_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'functionName',
                type: {
                  name: 'String'
                }
              },
              http_trigger_url: {
                client_side_validation: true,
                required: true,
                serialized_name: 'httpTriggerUrl',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
