Class: Azure::ServiceFabric::V6_5_0_36::Models::SingletonPartitionSchemeDescription

Inherits:
PartitionSchemeDescription show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/singleton_partition_scheme_description.rb

Overview

Describes the partition scheme of a singleton-partitioned, or non-partitioned service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSingletonPartitionSchemeDescription

Returns a new instance of SingletonPartitionSchemeDescription.



17
18
19
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/singleton_partition_scheme_description.rb', line 17

def initialize
  @PartitionScheme = "Singleton"
end

Instance Attribute Details

#PartitionSchemeObject

Returns the value of attribute PartitionScheme.



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

def PartitionScheme
  @PartitionScheme
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/singleton_partition_scheme_description.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Singleton',
    type: {
      name: 'Composite',
      class_name: 'SingletonPartitionSchemeDescription',
      model_properties: {
        PartitionScheme: {
          client_side_validation: true,
          required: true,
          serialized_name: 'PartitionScheme',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end