# 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 # # Health Error # class HealthError include MsRestAzure # @return [String] Source of error. attr_accessor :error_source # @return [String] Type of error. attr_accessor :error_type # @return [String] Level of error. attr_accessor :error_level # @return [String] Error code. attr_accessor :error_code # @return [String] Error message. attr_accessor :error_message # @return [String] Possible causes of error. attr_accessor :possible_causes # @return [String] Recommended action to resolve error. attr_accessor :recommended_action # @return [DateTime] Error creation time (UTC) attr_accessor :creation_time_utc # @return [String] DRA error message. attr_accessor :recovery_provider_error_message # @return [String] ID of the entity. attr_accessor :entity_id # @return [Array] The child health errors. attr_accessor :child_errors # # Mapper for HealthError class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'HealthError', type: { name: 'Composite', class_name: 'HealthError', model_properties: { error_source: { client_side_validation: true, required: false, serialized_name: 'errorSource', type: { name: 'String' } }, error_type: { client_side_validation: true, required: false, serialized_name: 'errorType', type: { name: 'String' } }, error_level: { client_side_validation: true, required: false, serialized_name: 'errorLevel', type: { name: 'String' } }, error_code: { client_side_validation: true, required: false, serialized_name: 'errorCode', type: { name: 'String' } }, error_message: { client_side_validation: true, required: false, serialized_name: 'errorMessage', type: { name: 'String' } }, possible_causes: { client_side_validation: true, required: false, serialized_name: 'possibleCauses', type: { name: 'String' } }, recommended_action: { client_side_validation: true, required: false, serialized_name: 'recommendedAction', type: { name: 'String' } }, creation_time_utc: { client_side_validation: true, required: false, serialized_name: 'creationTimeUtc', type: { name: 'DateTime' } }, recovery_provider_error_message: { client_side_validation: true, required: false, serialized_name: 'recoveryProviderErrorMessage', type: { name: 'String' } }, entity_id: { client_side_validation: true, required: false, serialized_name: 'entityId', type: { name: 'String' } }, child_errors: { client_side_validation: true, required: false, serialized_name: 'childErrors', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'HealthErrorElementType', type: { name: 'Composite', class_name: 'HealthError' } } } } } } } end end end end