Class: Azure::ServiceFabric::V6_3_0_9::Models::ServicePartitionInfo

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

Overview

Information about a partition of a Service Fabric service.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServicePartitionInfo

Returns a new instance of ServicePartitionInfo.



19
20
21
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_partition_info.rb', line 19

def initialize
  @ServiceKind = "ServicePartitionInfo"
end

Instance Attribute Details

#health_stateHealthState

as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’

Returns:

  • (HealthState)

    The health state of a Service Fabric entity such



28
29
30
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_partition_info.rb', line 28

def health_state
  @health_state
end

#partition_informationPartitionInformation

identity, partitioning scheme and keys supported by it.

Returns:



37
38
39
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_partition_info.rb', line 37

def partition_information
  @partition_information
end

#partition_statusServicePartitionStatus

service partition. Possible values include: ‘Invalid’, ‘Ready’, ‘NotReady’, ‘InQuorumLoss’, ‘Reconfiguring’, ‘Deleting’

Returns:



33
34
35
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/service_partition_info.rb', line 33

def partition_status
  @partition_status
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



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

def ServiceKind
  @ServiceKind
end

Class Method Details

.mapperObject

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



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/service_partition_info.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServicePartitionInfo',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'ServiceKind',
      uber_parent: 'ServicePartitionInfo',
      class_name: 'ServicePartitionInfo',
      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'
          }
        }
      }
    }
  }
end