class Azure::ServiceFabric::V6_2_0_9::Models::StatelessServicePartitionInfo

Information about a partition of a stateless Service Fabric service.

Attributes

ServiceKind[RW]
instance_count[RW]

@return [Integer] Number of instances of this partition.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.2.0.9/generated/azure_service_fabric/models/stateless_service_partition_info.rb, line 30
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateless',
    type: {
      name: 'Composite',
      class_name: 'StatelessServicePartitionInfo',
      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'
          }
        },
        instance_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'InstanceCount',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.2.0.9/generated/azure_service_fabric/models/stateless_service_partition_info.rb, line 16
def initialize
  @ServiceKind = "Stateless"
end