Class: Azure::ServiceFabric::V6_5_0_36::Models::ServicePlacementRequiredDomainPolicyDescription

Inherits:
ServicePlacementPolicyDescription show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb

Overview

Describes the policy to be used for placement of a Service Fabric service where the instances or replicas of that service must be placed in a particular domain

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServicePlacementRequiredDomainPolicyDescription

Returns a new instance of ServicePlacementRequiredDomainPolicyDescription.



18
19
20
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 18

def initialize
  @Type = "RequireDomain"
end

Instance Attribute Details

#domain_nameString

as per this policy.

Returns:

  • (String)

    The name of the domain that should used for placement



26
27
28
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 26

def domain_name
  @domain_name
end

#TypeObject

Returns the value of attribute Type.



22
23
24
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 22

def Type
  @Type
end

Class Method Details

.mapperObject

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



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RequireDomain',
    type: {
      name: 'Composite',
      class_name: 'ServicePlacementRequiredDomainPolicyDescription',
      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