Sha256: ddb8d3262eba04f376978e432ef973b67fe918e88573f76ce7909d3a83cbbba2

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ServiceFabric::V6_5_0_36
  module Models
    #
    # Represents a base class for stateful service replica or stateless service
    # instance health state.
    #
    class ReplicaHealthState < EntityHealthState

      include MsRestAzure


      def initialize
        @ServiceKind = "ReplicaHealthState"
      end

      attr_accessor :ServiceKind

      # @return The ID of the partition to which this replica belongs.
      attr_accessor :partition_id


      #
      # Mapper for ReplicaHealthState class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_service_fabric-0.18.1 lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state.rb
azure_service_fabric-0.18.0 lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state.rb
azure_service_fabric-0.17.2 lib/6.5.0.36/generated/azure_service_fabric/models/replica_health_state.rb