Class: Azure::ServiceFabric::V6_3_0_9::Models::StatelessServicePartitionInfo

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

Overview

Information about a partition of a stateless Service Fabric service.

Instance Attribute Summary collapse

Attributes inherited from ServicePartitionInfo

#health_state, #partition_information, #partition_status

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStatelessServicePartitionInfo

Returns a new instance of StatelessServicePartitionInfo.



16
17
18
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_partition_info.rb', line 16

def initialize
  @ServiceKind = "Stateless"
end

Instance Attribute Details

#instance_countInteger

Returns Number of instances of this partition.

Returns:

  • (Integer)

    Number of instances of this partition.



23
24
25
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_partition_info.rb', line 23

def instance_count
  @instance_count
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



20
21
22
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateless_service_partition_info.rb', line 20

def ServiceKind
  @ServiceKind
end

Class Method Details

.mapperObject

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



30
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/6.3.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