Class: Azure::ServiceFabric::V6_3_0_9::Models::ServicePlacementRequiredDomainPolicyDescription
- Inherits:
-
ServicePlacementPolicyDescription
- Object
- ServicePlacementPolicyDescription
- Azure::ServiceFabric::V6_3_0_9::Models::ServicePlacementRequiredDomainPolicyDescription
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/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
-
#domain_name ⇒ String
as per this policy.
-
#Type ⇒ Object
Returns the value of attribute Type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServicePlacementRequiredDomainPolicyDescription class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServicePlacementRequiredDomainPolicyDescription
constructor
A new instance of ServicePlacementRequiredDomainPolicyDescription.
Constructor Details
#initialize ⇒ ServicePlacementRequiredDomainPolicyDescription
Returns a new instance of ServicePlacementRequiredDomainPolicyDescription.
18 19 20 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 18 def initialize @Type = "RequiredDomain" end |
Instance Attribute Details
#domain_name ⇒ String
as per this policy.
26 27 28 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 26 def domain_name @domain_name end |
#Type ⇒ Object
Returns the value of attribute Type.
22 23 24 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_placement_required_domain_policy_description.rb', line 22 def Type @Type end |
Class Method Details
.mapper ⇒ Object
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.3.0.9/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: 'RequiredDomain', 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 |