Class: Azure::ServiceFabric::V6_3_0_9::Models::StatelessServiceInstanceHealthState

Inherits:
ReplicaHealthState show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_instance_health_state.rb

Overview

Represents the health state of the stateless service instance, which contains the instance ID and the aggregated health state.

Instance Attribute Summary collapse

Attributes inherited from ReplicaHealthState

#partition_id

Attributes inherited from EntityHealthState

#aggregated_health_state

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStatelessServiceInstanceHealthState

Returns a new instance of StatelessServiceInstanceHealthState.



17
18
19
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_instance_health_state.rb', line 17

def initialize
  @ServiceKind = "Stateless"
end

Instance Attribute Details

#replica_idString

field is called ReplicaId.

Returns:

  • (String)

    Id of the stateless service instance on the wire this



25
26
27
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_instance_health_state.rb', line 25

def replica_id
  @replica_id
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



21
22
23
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_instance_health_state.rb', line 21

def ServiceKind
  @ServiceKind
end

Class Method Details

.mapperObject

Mapper for StatelessServiceInstanceHealthState class as Ruby Hash. This will be used for serialization/deserialization.



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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_instance_health_state.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateless',
    type: {
      name: 'Composite',
      class_name: 'StatelessServiceInstanceHealthState',
      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'
          }
        },
        ServiceKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ServiceKind',
          type: {
            name: 'String'
          }
        },
        replica_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end