class Azure::ServiceFabric::V6_5_0_36::Models::ServicePartitionInfo

Information about a partition of a Service Fabric service.

Attributes

ServiceKind[RW]
health_state[RW]

@return [HealthState] The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'

partition_information[RW]

@return [PartitionInformation] Information about the partition identity, partitioning scheme and keys supported by it.

partition_status[RW]

@return [ServicePartitionStatus] The status of the service fabric service partition. Possible values include: 'Invalid', 'Ready', 'NotReady', 'InQuorumLoss', 'Reconfiguring', 'Deleting'

Public Class Methods

mapper() click to toggle source

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

# File lib/6.5.0.36/generated/azure_service_fabric/models/service_partition_info.rb, line 44
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServicePartitionInfo',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'ServiceKind',
      uber_parent: 'ServicePartitionInfo',
      class_name: 'ServicePartitionInfo',
      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'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.5.0.36/generated/azure_service_fabric/models/service_partition_info.rb, line 19
def initialize
  @ServiceKind = "ServicePartitionInfo"
end