Class: Azure::ServiceFabric::V6_3_0_9::Models::ScalingPolicyDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_3_0_9::Models::ScalingPolicyDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/scaling_policy_description.rb
Overview
Describes how the scaling should be performed
Instance Attribute Summary collapse
-
#scaling_mechanism ⇒ ScalingMechanismDescription
associated with this scaling policy.
-
#scaling_trigger ⇒ ScalingTriggerDescription
with this scaling policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ScalingPolicyDescription class as Ruby Hash.
Instance Attribute Details
#scaling_mechanism ⇒ ScalingMechanismDescription
associated with this scaling policy
21 22 23 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/scaling_policy_description.rb', line 21 def scaling_mechanism @scaling_mechanism end |
#scaling_trigger ⇒ ScalingTriggerDescription
with this scaling policy
17 18 19 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/scaling_policy_description.rb', line 17 def scaling_trigger @scaling_trigger end |
Class Method Details
.mapper ⇒ Object
Mapper for ScalingPolicyDescription class as Ruby Hash. This will be used for serialization/deserialization.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/scaling_policy_description.rb', line 28 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 |