# 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::V2016_08_10
  module Models
    #
    # Recovery services provider properties.
    #
    class RecoveryServicesProviderProperties

      include MsRestAzure

      # @return [String] Type of the site.
      attr_accessor :fabric_type

      # @return [String] Friendly name of the DRA.
      attr_accessor :friendly_name

      # @return [String] The provider version.
      attr_accessor :provider_version

      # @return [String] The fabric provider.
      attr_accessor :server_version

      # @return [String] DRA version status.
      attr_accessor :provider_version_state

      # @return [DateTime] Expiry date if the version is deprecated.
      attr_accessor :provider_version_expiry_date

      # @return [String] The fabric friendly name.
      attr_accessor :fabric_friendly_name

      # @return [DateTime] Time when last heartbeat was sent by the DRA.
      attr_accessor :last_heart_beat

      # @return [String] A value indicating whether DRA is responsive.
      attr_accessor :connection_status

      # @return [Integer] Number of protected VMs currently managed by the DRA.
      attr_accessor :protected_item_count

      # @return [Array<String>] The scenarios allowed on this provider.
      attr_accessor :allowed_scenarios

      # @return [Array<HealthError>] The recovery services provider health
      # error details.
      attr_accessor :health_error_details

      # @return [String] The DRA Id.
      attr_accessor :dra_identifier

      # @return [IdentityInformation] The identity details.
      attr_accessor :identity_details


      #
      # Mapper for RecoveryServicesProviderProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RecoveryServicesProviderProperties',
          type: {
            name: 'Composite',
            class_name: 'RecoveryServicesProviderProperties',
            model_properties: {
              fabric_type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'fabricType',
                type: {
                  name: 'String'
                }
              },
              friendly_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'friendlyName',
                type: {
                  name: 'String'
                }
              },
              provider_version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'providerVersion',
                type: {
                  name: 'String'
                }
              },
              server_version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'serverVersion',
                type: {
                  name: 'String'
                }
              },
              provider_version_state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'providerVersionState',
                type: {
                  name: 'String'
                }
              },
              provider_version_expiry_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'providerVersionExpiryDate',
                type: {
                  name: 'DateTime'
                }
              },
              fabric_friendly_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'fabricFriendlyName',
                type: {
                  name: 'String'
                }
              },
              last_heart_beat: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastHeartBeat',
                type: {
                  name: 'DateTime'
                }
              },
              connection_status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'connectionStatus',
                type: {
                  name: 'String'
                }
              },
              protected_item_count: {
                client_side_validation: true,
                required: false,
                serialized_name: 'protectedItemCount',
                type: {
                  name: 'Number'
                }
              },
              allowed_scenarios: {
                client_side_validation: true,
                required: false,
                serialized_name: 'allowedScenarios',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              health_error_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'healthErrorDetails',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'HealthErrorElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'HealthError'
                      }
                  }
                }
              },
              dra_identifier: {
                client_side_validation: true,
                required: false,
                serialized_name: 'draIdentifier',
                type: {
                  name: 'String'
                }
              },
              identity_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'identityDetails',
                type: {
                  name: 'Composite',
                  class_name: 'IdentityInformation'
                }
              }
            }
          }
        }
      end
    end
  end
end
