Class: Azure::ServiceFabric::V6_3_0_9::Models::NamedPartitionInformation

Inherits:
PartitionInformation show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/named_partition_information.rb

Overview

Describes the partition information for the name as a string that is based on partition schemes.

Instance Attribute Summary collapse

Attributes inherited from PartitionInformation

#id

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNamedPartitionInformation

Returns a new instance of NamedPartitionInformation.



17
18
19
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/named_partition_information.rb', line 17

def initialize
  @ServicePartitionKind = "Named"
end

Instance Attribute Details

#nameString

Returns Name of the partition.

Returns:

  • (String)

    Name of the partition.



24
25
26
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/named_partition_information.rb', line 24

def name
  @name
end

#ServicePartitionKindObject

Returns the value of attribute ServicePartitionKind.



21
22
23
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/named_partition_information.rb', line 21

def ServicePartitionKind
  @ServicePartitionKind
end

Class Method Details

.mapperObject

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



31
32
33
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
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/named_partition_information.rb', line 31

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