Sha256: e2895a2356824e835678ccf44b55aece4bd2828c65958f823cf775ecc618c324

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

# 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::V7_0_0_42
  module Models
    #
    # Describes the policy to be used for placement of a Service Fabric
    # service.
    #
    class ServicePlacementPolicyDescription

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["InvalidDomain"] = "ServicePlacementInvalidDomainPolicyDescription"
      @@discriminatorMap["NonPartiallyPlaceService"] = "ServicePlacementNonPartiallyPlaceServicePolicyDescription"
      @@discriminatorMap["PreferPrimaryDomain"] = "ServicePlacementPreferPrimaryDomainPolicyDescription"
      @@discriminatorMap["RequireDomain"] = "ServicePlacementRequiredDomainPolicyDescription"
      @@discriminatorMap["RequireDomainDistribution"] = "ServicePlacementRequireDomainDistributionPolicyDescription"

      def initialize
        @Type = "ServicePlacementPolicyDescription"
      end

      attr_accessor :Type


      #
      # Mapper for ServicePlacementPolicyDescription class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/7.0.0.42/generated/azure_service_fabric/models/service_placement_policy_description.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/service_placement_policy_description.rb