Class: Azure::ServiceFabric::V6_5_0_36::Models::ReplicaInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.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.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeReplicaInfo

Returns a new instance of ReplicaInfo.



20
21
22
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb', line 20

def initialize
  @ServiceKind = "ReplicaInfo"
end

Instance Attribute Details

#addressString

Returns The address the replica is listening on.

Returns:

  • (String)

    The address the replica is listening on.



40
41
42
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb', line 40

def address
  @address
end

#health_stateHealthState

as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’

Returns:

  • (HealthState)

    The health state of a Service Fabric entity such



34
35
36
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb', line 34

def health_state
  @health_state
end

#last_in_build_duration_in_secondsString

Returns The last in build duration of the replica in seconds.

Returns:

  • (String)

    The last in build duration of the replica in seconds.



43
44
45
# File 'lib/6.5.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_nameString

Returns The name of a Service Fabric node.

Returns:

  • (String)

    The name of a Service Fabric node.



37
38
39
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb', line 37

def node_name
  @node_name
end

#replica_statusReplicaStatus

values include: ‘Invalid’, ‘InBuild’, ‘Standby’, ‘Ready’, ‘Down’, ‘Dropped’

Returns:

  • (ReplicaStatus)

    The status of a replica of a service. Possible



29
30
31
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb', line 29

def replica_status
  @replica_status
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



24
25
26
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/replica_info.rb', line 24

def ServiceKind
  @ServiceKind
end

Class Method Details

.mapperObject

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.5.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