Class: Azure::ServiceFabric::V6_3_0_9::Models::ServicePlacementPreferPrimaryDomainPolicyDescription
- Inherits:
-
ServicePlacementPolicyDescription
- Object
- ServicePlacementPolicyDescription
- Azure::ServiceFabric::V6_3_0_9::Models::ServicePlacementPreferPrimaryDomainPolicyDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_prefer_primary_domain_policy_description.rb
Overview
Describes the policy to be used for placement of a Service Fabric service where the service’s Primary replicas should optimally be placed in a particular domain.
This placement policy is usually used with fault domains in scenarios where the Service Fabric cluster is geographically distributed in order to indicate that a service’s primary replica should be located in a particular fault domain, which in geo-distributed scenarios usually aligns with regional or datacenter boundaries. Note that since this is an optimization it is possible that the Primary replica may not end up located in this domain due to failures, capacity limits, or other constraints.
Instance Attribute Summary collapse
-
#domain_name ⇒ String
as per this policy.
-
#Type ⇒ Object
Returns the value of attribute Type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServicePlacementPreferPrimaryDomainPolicyDescription class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServicePlacementPreferPrimaryDomainPolicyDescription
constructor
A new instance of ServicePlacementPreferPrimaryDomainPolicyDescription.
Constructor Details
#initialize ⇒ ServicePlacementPreferPrimaryDomainPolicyDescription
Returns a new instance of ServicePlacementPreferPrimaryDomainPolicyDescription.
27 28 29 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_prefer_primary_domain_policy_description.rb', line 27 def initialize @Type = "PreferredPrimaryDomain" end |
Instance Attribute Details
#domain_name ⇒ String
as per this policy.
35 36 37 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_prefer_primary_domain_policy_description.rb', line 35 def domain_name @domain_name end |
#Type ⇒ Object
Returns the value of attribute Type.
31 32 33 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_prefer_primary_domain_policy_description.rb', line 31 def Type @Type end |
Class Method Details
.mapper ⇒ Object
Mapper for ServicePlacementPreferPrimaryDomainPolicyDescription class as Ruby Hash. This will be used for serialization/deserialization.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_prefer_primary_domain_policy_description.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PreferredPrimaryDomain', type: { name: 'Composite', class_name: 'ServicePlacementPreferPrimaryDomainPolicyDescription', 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 |