Class: Azure::ServiceFabric::V6_4_0_36::Models::ReplicaInfo
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_4_0_36::Models::ReplicaInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb
Overview
Information about the identity, status, health, node name, uptime, and other details about the replica.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#address ⇒ String
The address the replica is listening on.
-
#health_state ⇒ HealthState
as Cluster, Node, Application, Service, Partition, Replica etc.
-
#last_in_build_duration_in_seconds ⇒ String
The last in build duration of the replica in seconds.
-
#node_name ⇒ String
The name of a Service Fabric node.
-
#replica_status ⇒ ReplicaStatus
values include: ‘Invalid’, ‘InBuild’, ‘Standby’, ‘Ready’, ‘Down’, ‘Dropped’.
-
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ReplicaInfo class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ReplicaInfo
constructor
A new instance of ReplicaInfo.
Constructor Details
#initialize ⇒ ReplicaInfo
Returns a new instance of ReplicaInfo.
20 21 22 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 20 def initialize @ServiceKind = "ReplicaInfo" end |
Instance Attribute Details
#address ⇒ String
Returns The address the replica is listening on.
40 41 42 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 40 def address @address end |
#health_state ⇒ HealthState
as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’
34 35 36 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 34 def health_state @health_state end |
#last_in_build_duration_in_seconds ⇒ String
Returns The last in build duration of the replica in seconds.
43 44 45 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 43 def last_in_build_duration_in_seconds @last_in_build_duration_in_seconds end |
#node_name ⇒ String
Returns The name of a Service Fabric node.
37 38 39 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 37 def node_name @node_name end |
#replica_status ⇒ ReplicaStatus
values include: ‘Invalid’, ‘InBuild’, ‘Standby’, ‘Ready’, ‘Down’, ‘Dropped’
29 30 31 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 29 def replica_status @replica_status end |
#ServiceKind ⇒ Object
Returns the value of attribute ServiceKind.
24 25 26 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 24 def ServiceKind @ServiceKind end |
Class Method Details
.mapper ⇒ Object
Mapper for ReplicaInfo class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/replica_info.rb', line 50 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ReplicaInfo', type: { name: 'Composite', polymorphic_discriminator: 'ServiceKind', uber_parent: 'ReplicaInfo', class_name: 'ReplicaInfo', 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' } } } } } end |