# 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::ServiceFabric::V7_0_0_42
  module Models
    #
    # Http probe for the container.
    #
    class ProbeHttpGet

      include MsRestAzure

      # @return [Integer] Port to access for probe.
      attr_accessor :port

      # @return [String] Path to access on the HTTP request.
      attr_accessor :path

      # @return [String] Host IP to connect to.
      attr_accessor :host

      # @return [Array<ProbeHttpGetHeaders>] Headers to set in the request.
      attr_accessor :http_headers

      # @return [Scheme] Scheme for the http probe. Can be Http or Https.
      # Possible values include: 'http', 'https'
      attr_accessor :scheme


      #
      # Mapper for ProbeHttpGet class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ProbeHttpGet',
          type: {
            name: 'Composite',
            class_name: 'ProbeHttpGet',
            model_properties: {
              port: {
                client_side_validation: true,
                required: true,
                serialized_name: 'port',
                type: {
                  name: 'Number'
                }
              },
              path: {
                client_side_validation: true,
                required: false,
                serialized_name: 'path',
                type: {
                  name: 'String'
                }
              },
              host: {
                client_side_validation: true,
                required: false,
                serialized_name: 'host',
                type: {
                  name: 'String'
                }
              },
              http_headers: {
                client_side_validation: true,
                required: false,
                serialized_name: 'httpHeaders',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ProbeHttpGetHeadersElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ProbeHttpGetHeaders'
                      }
                  }
                }
              },
              scheme: {
                client_side_validation: true,
                required: false,
                serialized_name: 'scheme',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
