# 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_5_0_36 module Models # # Describes the mechanism for performing auto scaling operation. Derived # classes will describe the actual mechanism. # class AutoScalingMechanism include MsRestAzure @@discriminatorMap = Hash.new @@discriminatorMap["AddRemoveReplica"] = "AddRemoveReplicaScalingMechanism" def initialize @kind = "AutoScalingMechanism" end attr_accessor :kind # # Mapper for AutoScalingMechanism class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AutoScalingMechanism', type: { name: 'Composite', polymorphic_discriminator: 'kind', uber_parent: 'AutoScalingMechanism', class_name: 'AutoScalingMechanism', model_properties: { } } } end end end end