# 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
    #
    # Recovery plan test failover input properties.
    #
    class RecoveryPlanTestFailoverInputProperties

      include MsRestAzure

      # @return [PossibleOperationsDirections] The failover direction. Possible
      # values include: 'PrimaryToRecovery', 'RecoveryToPrimary'
      attr_accessor :failover_direction

      # @return [String] The network type to be used for test failover.
      attr_accessor :network_type

      # @return [String] The Id of the network to be used for test failover.
      attr_accessor :network_id

      # @return [String] A value indicating whether the test failover cleanup
      # is to be skipped.
      attr_accessor :skip_test_failover_cleanup

      # @return [Array<RecoveryPlanProviderSpecificFailoverInput>] The provider
      # specific properties.
      attr_accessor :provider_specific_details


      #
      # Mapper for RecoveryPlanTestFailoverInputProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RecoveryPlanTestFailoverInputProperties',
          type: {
            name: 'Composite',
            class_name: 'RecoveryPlanTestFailoverInputProperties',
            model_properties: {
              failover_direction: {
                client_side_validation: true,
                required: true,
                serialized_name: 'failoverDirection',
                type: {
                  name: 'String'
                }
              },
              network_type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'networkType',
                type: {
                  name: 'String'
                }
              },
              network_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'networkId',
                type: {
                  name: 'String'
                }
              },
              skip_test_failover_cleanup: {
                client_side_validation: true,
                required: false,
                serialized_name: 'skipTestFailoverCleanup',
                type: {
                  name: 'String'
                }
              },
              provider_specific_details: {
                client_side_validation: true,
                required: false,
                serialized_name: 'providerSpecificDetails',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'RecoveryPlanProviderSpecificFailoverInputElementType',
                      type: {
                        name: 'Composite',
                        polymorphic_discriminator: 'instanceType',
                        uber_parent: 'RecoveryPlanProviderSpecificFailoverInput',
                        class_name: 'RecoveryPlanProviderSpecificFailoverInput'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
