Class: Azure::ServiceFabric::V6_3_0_9::Models::ReplicaHealthState
- Inherits:
-
EntityHealthState
- Object
- EntityHealthState
- Azure::ServiceFabric::V6_3_0_9::Models::ReplicaHealthState
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/replica_health_state.rb
Overview
Represents a base class for stateful service replica or stateless service instance health state.
Direct Known Subclasses
StatefulServiceReplicaHealthState, StatelessServiceInstanceHealthState
Instance Attribute Summary collapse
-
#partition_id ⇒ Object
The ID of the partition to which this replica belongs.
-
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
Attributes inherited from EntityHealthState
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReplicaHealthState class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ReplicaHealthState
constructor
A new instance of ReplicaHealthState.
Constructor Details
#initialize ⇒ ReplicaHealthState
Returns a new instance of ReplicaHealthState.
17 18 19 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_health_state.rb', line 17 def initialize @ServiceKind = "ReplicaHealthState" end |
Instance Attribute Details
#partition_id ⇒ Object
Returns The ID of the partition to which this replica belongs.
24 25 26 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_health_state.rb', line 24 def partition_id @partition_id end |
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
21 22 23 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_health_state.rb', line 21 def ServiceKind @ServiceKind end |
Class Method Details
.mapper ⇒ Object
Mapper for ReplicaHealthState class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 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 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/replica_health_state.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ReplicaHealthState', type: { name: 'Composite', polymorphic_discriminator: 'ServiceKind', uber_parent: 'EntityHealthState', class_name: 'ReplicaHealthState', model_properties: { aggregated_health_state: { client_side_validation: true, required: false, serialized_name: 'AggregatedHealthState', type: { name: 'String' } }, partition_id: { client_side_validation: true, required: false, serialized_name: 'PartitionId', type: { name: 'String' } } } } } end |