Class: Azure::ServiceFabric::V6_2_0_9::Models::NamedPartitionSchemeDescription

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

Overview

Describes the named partition scheme of the service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNamedPartitionSchemeDescription

Returns a new instance of NamedPartitionSchemeDescription.



16
17
18
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/named_partition_scheme_description.rb', line 16

def initialize
  @PartitionScheme = "Named"
end

Instance Attribute Details

#countInteger

Returns The number of partitions.

Returns:

  • (Integer)

    The number of partitions.



23
24
25
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/named_partition_scheme_description.rb', line 23

def count
  @count
end

#namesArray<String>

parameter, for the names of the partitions.

Returns:

  • (Array<String>)

    Array of size specified by the ‘Count’



27
28
29
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/named_partition_scheme_description.rb', line 27

def names
  @names
end

#PartitionSchemeObject

Returns the value of attribute PartitionScheme.



20
21
22
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/named_partition_scheme_description.rb', line 20

def PartitionScheme
  @PartitionScheme
end

Class Method Details

.mapperObject

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



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/named_partition_scheme_description.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Named',
    type: {
      name: 'Composite',
      class_name: 'NamedPartitionSchemeDescription',
      model_properties: {
        PartitionScheme: {
          client_side_validation: true,
          required: true,
          serialized_name: 'PartitionScheme',
          type: {
            name: 'String'
          }
        },
        count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Count',
          type: {
            name: 'Number'
          }
        },
        names: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Names',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end