class Azure::ServiceFabric::V6_4_0_36::Models::StatefulServicePartitionInfo

Information about a partition of a stateful Service Fabric service..

Attributes

ServiceKind[RW]
last_quorum_loss_duration[RW]

@return [Duration] The duration for which this partition was in quorum loss. If the partition is currently in quorum loss, it returns the duration since it has been in that state. This field is using ISO8601 format for specifying the duration.

min_replica_set_size[RW]

@return [Integer] The minimum replica set size as a number.

primary_epoch[RW]

@return [Epoch] An Epoch is a configuration number for the partition as a whole. When the configuration of the replica set changes, for example when the Primary replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica.

target_replica_set_size[RW]

@return [Integer] The target replica set size as a number.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_partition_info.rb, line 46
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateful',
    type: {
      name: 'Composite',
      class_name: 'StatefulServicePartitionInfo',
      model_properties: {
        health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthState',
          type: {
            name: 'String'
          }
        },
        partition_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionStatus',
          type: {
            name: 'String'
          }
        },
        partition_information: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionInformation',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'ServicePartitionKind',
            uber_parent: 'PartitionInformation',
            class_name: 'PartitionInformation'
          }
        },
        ServiceKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ServiceKind',
          type: {
            name: 'String'
          }
        },
        target_replica_set_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'TargetReplicaSetSize',
          type: {
            name: 'Number'
          }
        },
        min_replica_set_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MinReplicaSetSize',
          type: {
            name: 'Number'
          }
        },
        last_quorum_loss_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'LastQuorumLossDuration',
          type: {
            name: 'TimeSpan'
          }
        },
        primary_epoch: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PrimaryEpoch',
          type: {
            name: 'Composite',
            class_name: 'Epoch'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.4.0.36/generated/azure_service_fabric/models/stateful_service_partition_info.rb, line 16
def initialize
  @ServiceKind = "Stateful"
end