Class: Azure::ServiceFabric::V6_5_0_36::Models::PartitionInformation

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/partition_information.rb

Overview

Information about the partition identity, partitioning scheme and keys supported by it.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePartitionInformation

Returns a new instance of PartitionInformation.



21
22
23
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/partition_information.rb', line 21

def initialize
  @ServicePartitionKind = "PartitionInformation"
end

Instance Attribute Details

#idObject

partition. This is a randomly generated GUID when the service was created. The partition ID is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be different.

Returns:

  • An internal ID used by Service Fabric to uniquely identify a



32
33
34
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/partition_information.rb', line 32

def id
  @id
end

#ServicePartitionKindObject

Returns the value of attribute ServicePartitionKind.



25
26
27
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/partition_information.rb', line 25

def ServicePartitionKind
  @ServicePartitionKind
end

Class Method Details

.mapperObject

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



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/partition_information.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartitionInformation',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'ServicePartitionKind',
      uber_parent: 'PartitionInformation',
      class_name: 'PartitionInformation',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Id',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end