# 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::ServiceFabric::V6_2_0_9 module Models # # Describes how the scaling should be performed # class ScalingPolicyDescription include MsRestAzure # @return [ScalingTriggerDescription] Specifies the trigger associated # with this scaling policy attr_accessor :scaling_trigger # @return [ScalingMechanismDescription] Specifies the mechanism # associated with this scaling policy attr_accessor :scaling_mechanism # # Mapper for ScalingPolicyDescription class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ScalingPolicyDescription', type: { name: 'Composite', class_name: 'ScalingPolicyDescription', model_properties: { scaling_trigger: { client_side_validation: true, required: true, serialized_name: 'ScalingTrigger', type: { name: 'Composite', polymorphic_discriminator: 'Kind', uber_parent: 'ScalingTriggerDescription', class_name: 'ScalingTriggerDescription' } }, scaling_mechanism: { client_side_validation: true, required: true, serialized_name: 'ScalingMechanism', type: { name: 'Composite', polymorphic_discriminator: 'Kind', uber_parent: 'ScalingMechanismDescription', class_name: 'ScalingMechanismDescription' } } } } } end end end end