Class: Azure::ServiceFabric::V6_3_0_9::Models::StatefulServiceReplicaInfo
- Inherits:
-
ReplicaInfo
- Object
- ReplicaInfo
- Azure::ServiceFabric::V6_3_0_9::Models::StatefulServiceReplicaInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb
Overview
Represents a stateful service replica. This includes information about the identity, role, status, health, node name, uptime, and other details about the replica.
Instance Attribute Summary collapse
-
#replica_id ⇒ String
Service Fabric to uniquely identify a replica of a partition.
-
#replica_role ⇒ ReplicaRole
Possible values include: ‘Unknown’, ‘None’, ‘Primary’, ‘IdleSecondary’, ‘ActiveSecondary’.
-
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
Attributes inherited from ReplicaInfo
#address, #health_state, #last_in_build_duration_in_seconds, #node_name, #replica_status
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for StatefulServiceReplicaInfo class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ StatefulServiceReplicaInfo
constructor
A new instance of StatefulServiceReplicaInfo.
Constructor Details
#initialize ⇒ StatefulServiceReplicaInfo
Returns a new instance of StatefulServiceReplicaInfo.
18 19 20 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb', line 18 def initialize @ServiceKind = "Stateful" end |
Instance Attribute Details
#replica_id ⇒ String
Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id.
36 37 38 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb', line 36 def replica_id @replica_id end |
#replica_role ⇒ ReplicaRole
Possible values include: ‘Unknown’, ‘None’, ‘Primary’, ‘IdleSecondary’, ‘ActiveSecondary’
27 28 29 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb', line 27 def replica_role @replica_role end |
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
22 23 24 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb', line 22 def ServiceKind @ServiceKind end |
Class Method Details
.mapper ⇒ Object
Mapper for StatefulServiceReplicaInfo 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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_replica_info.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Stateful', type: { name: 'Composite', class_name: 'StatefulServiceReplicaInfo', model_properties: { replica_status: { client_side_validation: true, required: false, serialized_name: 'ReplicaStatus', type: { name: 'String' } }, health_state: { client_side_validation: true, required: false, serialized_name: 'HealthState', type: { name: 'String' } }, node_name: { client_side_validation: true, required: false, serialized_name: 'NodeName', type: { name: 'String' } }, address: { client_side_validation: true, required: false, serialized_name: 'Address', type: { name: 'String' } }, last_in_build_duration_in_seconds: { client_side_validation: true, required: false, serialized_name: 'LastInBuildDurationInSeconds', type: { name: 'String' } }, ServiceKind: { client_side_validation: true, required: true, serialized_name: 'ServiceKind', type: { name: 'String' } }, replica_role: { client_side_validation: true, required: false, serialized_name: 'ReplicaRole', type: { name: 'String' } }, replica_id: { client_side_validation: true, required: false, serialized_name: 'ReplicaId', type: { name: 'String' } } } } } end |