# 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::TimeSeriesInsights::Mgmt::V2018_08_15_preview
  module Models
    #
    # An object that represents the status of ingress on an environment.
    #
    class IngressEnvironmentStatus

      include MsRestAzure

      # @return [IngressState] This string represents the state of ingress
      # operations on an environment. It can be "Disabled", "Ready", "Running",
      # "Paused" or "Unknown". Possible values include: 'Disabled', 'Ready',
      # 'Running', 'Paused', 'Unknown'
      attr_accessor :state

      # @return [EnvironmentStateDetails] An object that contains the details
      # about an environment's state.
      attr_accessor :state_details


      #
      # Mapper for IngressEnvironmentStatus class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IngressEnvironmentStatus',
          type: {
            name: 'Composite',
            class_name: 'IngressEnvironmentStatus',
            model_properties: {
              state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'state',
                type: {
                  name: 'String'
                }
              },
              state_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'stateDetails',
                type: {
                  name: 'Composite',
                  class_name: 'EnvironmentStateDetails'
                }
              }
            }
          }
        }
      end
    end
  end
end
