# 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::DeploymentManager::Mgmt::V2019_11_01_preview
  module Models
    #
    # The properties that make up a REST request
    #
    class RestRequest

      include MsRestAzure

      # @return [RestRequestMethod] The HTTP method to use for the request.
      # Possible values include: 'GET', 'POST'
      attr_accessor :method

      # @return [String] The HTTP URI to use for the request.
      attr_accessor :uri

      # @return [RestRequestAuthentication] The authentication information
      # required in the request to the health provider.
      attr_accessor :authentication


      #
      # Mapper for RestRequest class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RestRequest',
          type: {
            name: 'Composite',
            class_name: 'RestRequest',
            model_properties: {
              method: {
                client_side_validation: true,
                required: true,
                serialized_name: 'method',
                type: {
                  name: 'Enum',
                  module: 'RestRequestMethod'
                }
              },
              uri: {
                client_side_validation: true,
                required: true,
                serialized_name: 'uri',
                type: {
                  name: 'String'
                }
              },
              authentication: {
                client_side_validation: true,
                required: true,
                serialized_name: 'authentication',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'type',
                  uber_parent: 'RestRequestAuthentication',
                  class_name: 'RestRequestAuthentication'
                }
              }
            }
          }
        }
      end
    end
  end
end
