class Azure::ServiceFabric::V6_2_0_9::Models::ServicePlacementInvalidDomainPolicyDescription

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.

Attributes

Type[RW]
domain_name[RW]

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

Public Class Methods

mapper() click to toggle source

Mapper for ServicePlacementInvalidDomainPolicyDescription class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/6.2.0.9/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb, line 34
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
new() click to toggle source
# File lib/6.2.0.9/generated/azure_service_fabric/models/service_placement_invalid_domain_policy_description.rb, line 18
def initialize
  @Type = "InvalidDomain"
end