Sha256: 877665cfdbb1a6eb1bae8672d7b78aa4d399a195aca243bb7a480ae521e7c6c6

Contents?: true

Size: 1.76 KB

Versions: 3

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::V6_5_0_36
  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

3 entries across 3 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb
azure_service_fabric-0.18.0 lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb
azure_service_fabric-0.17.2 lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb