# 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::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10
  module Models
    #
    # class to define the health summary of the Vault.
    #
    class VaultHealthProperties

      include MsRestAzure

      # @return [Array<HealthError>] The list of errors on the vault.
      attr_accessor :vault_errors

      # @return [ResourceHealthSummary] The list of the health detail of the
      # protected items in the vault.
      attr_accessor :protected_items_health

      # @return [ResourceHealthSummary] The list of the health detail of the
      # fabrics in the vault.
      attr_accessor :fabrics_health

      # @return [ResourceHealthSummary] The list of the health detail of the
      # containers in the vault.
      attr_accessor :containers_health


      #
      # Mapper for VaultHealthProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'VaultHealthProperties',
          type: {
            name: 'Composite',
            class_name: 'VaultHealthProperties',
            model_properties: {
              vault_errors: {
                client_side_validation: true,
                required: false,
                serialized_name: 'vaultErrors',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'HealthErrorElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'HealthError'
                      }
                  }
                }
              },
              protected_items_health: {
                client_side_validation: true,
                required: false,
                serialized_name: 'protectedItemsHealth',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceHealthSummary'
                }
              },
              fabrics_health: {
                client_side_validation: true,
                required: false,
                serialized_name: 'fabricsHealth',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceHealthSummary'
                }
              },
              containers_health: {
                client_side_validation: true,
                required: false,
                serialized_name: 'containersHealth',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceHealthSummary'
                }
              }
            }
          }
        }
      end
    end
  end
end
