Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServicePlacementPolicyDescription

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

#TypeObject

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

.mapperObject

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