# 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 unplanned failover input properties. # class RecoveryPlanUnplannedFailoverInputProperties include MsRestAzure # @return [PossibleOperationsDirections] The failover direction. Possible # values include: 'PrimaryToRecovery', 'RecoveryToPrimary' attr_accessor :failover_direction # @return [SourceSiteOperations] A value indicating whether source site # operations are required. Possible values include: 'Required', # 'NotRequired' attr_accessor :source_site_operations # @return [Array] The provider # specific properties. attr_accessor :provider_specific_details # # Mapper for RecoveryPlanUnplannedFailoverInputProperties class as Ruby # Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RecoveryPlanUnplannedFailoverInputProperties', type: { name: 'Composite', class_name: 'RecoveryPlanUnplannedFailoverInputProperties', model_properties: { failover_direction: { client_side_validation: true, required: true, serialized_name: 'failoverDirection', type: { name: 'String' } }, source_site_operations: { client_side_validation: true, required: true, serialized_name: 'sourceSiteOperations', 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