Sha256: 538bb754cf7db3dbd6f170e3634993df0dd2e0f160a3345a6a97f071261537ad

Contents?: true

Size: 1.76 KB

Versions: 2

Compression:

Stored size: 1.76 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
    # where a particular fault or upgrade domain should not be used for
    # placement of the instances or replicas of that service.
    #
    class ServicePlacementInvalidDomainPolicyDescription < ServicePlacementPolicyDescription

      include MsRestAzure


      def initialize
        @Type = "InvalidDomain"
      end

      attr_accessor :Type

      # @return [String] The name of the domain that should not be used for
      # placement.
      attr_accessor :domain_name


      #
      # Mapper for ServicePlacementInvalidDomainPolicyDescription class as Ruby
      # Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'InvalidDomain',
          type: {
            name: 'Composite',
            class_name: 'ServicePlacementInvalidDomainPolicyDescription',
            model_properties: {
              Type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Type',
                type: {
                  name: 'String'
                }
              },
              domain_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DomainName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      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_invalid_domain_policy_description.rb
azure_service_fabric-0.18.0 lib/7.0.0.42/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb