# 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::Web::Mgmt::V2020_09_01
  module Models
    #
    # Model object.
    #
    #
    class WebSiteInstanceStatus < ProxyOnlyResource

      include MsRestAzure

      # @return [SiteRuntimeState] Possible values include: 'READY', 'STOPPED',
      # 'UNKNOWN'
      attr_accessor :state

      # @return [String] Link to the GetStatusApi in Kudu
      attr_accessor :status_url

      # @return [String] Link to the Diagnose and Solve Portal
      attr_accessor :detector_url

      # @return [String] Link to the console to web app instance
      attr_accessor :console_url

      # @return [String] Link to the console to web app instance
      attr_accessor :health_check_url

      # @return [Hash{String => ContainerInfo}]
      attr_accessor :containers


      #
      # Mapper for WebSiteInstanceStatus class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WebSiteInstanceStatus',
          type: {
            name: 'Composite',
            class_name: 'WebSiteInstanceStatus',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              kind: {
                client_side_validation: true,
                required: false,
                serialized_name: 'kind',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              system_data: {
                client_side_validation: true,
                required: false,
                serialized_name: 'systemData',
                type: {
                  name: 'Composite',
                  class_name: 'SystemData'
                }
              },
              state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.state',
                type: {
                  name: 'Enum',
                  module: 'SiteRuntimeState'
                }
              },
              status_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.statusUrl',
                type: {
                  name: 'String'
                }
              },
              detector_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.detectorUrl',
                type: {
                  name: 'String'
                }
              },
              console_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.consoleUrl',
                type: {
                  name: 'String'
                }
              },
              health_check_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.healthCheckUrl',
                type: {
                  name: 'String'
                }
              },
              containers: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.containers',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ContainerInfoElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ContainerInfo'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
