Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb
Overview
Describes the policy to be used for placement of a Service Fabric service.
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#Type ⇒ Object
Returns the value of attribute Type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServicePlacementPolicyDescription class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServicePlacementPolicyDescription
constructor
A new instance of ServicePlacementPolicyDescription.
Constructor Details
#initialize ⇒ ServicePlacementPolicyDescription
Returns a new instance of ServicePlacementPolicyDescription.
18 19 20 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb', line 18 def initialize @Type = "ServicePlacementPolicyDescription" end |
Instance Attribute Details
#Type ⇒ Object
Returns the value of attribute Type.
22 23 24 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb', line 22 def Type @Type end |
Class Method Details
.mapper ⇒ Object
Mapper for ServicePlacementPolicyDescription class as Ruby Hash. This will be used for serialization/deserialization.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb', line 29 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ServicePlacementPolicyDescription', type: { name: 'Composite', polymorphic_discriminator: 'Type', uber_parent: 'ServicePlacementPolicyDescription', class_name: 'ServicePlacementPolicyDescription', model_properties: { } } } end |