class Azure::ServiceFabric::V6_3_0_9::Models::PartitionEvent

Represents the base for all Partition Events.

Attributes

Kind[RW]
partition_id[RW]

@return An internal ID used by Service Fabric to uniquely identify a partition. This is a randomly generated GUID when the service was created. The partition ID is unique and does not change for the lifetime of the service. If the same service was deleted and recreated the IDs of its partitions would be different.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.3.0.9/generated/azure_service_fabric/models/partition_event.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartitionEvent',
    type: {
      name: 'Composite',
      class_name: 'PartitionEvent',
      model_properties: {
        event_instance_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'EventInstanceId',
          type: {
            name: 'String'
          }
        },
        time_stamp: {
          client_side_validation: true,
          required: true,
          serialized_name: 'TimeStamp',
          type: {
            name: 'DateTime'
          }
        },
        has_correlated_events: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HasCorrelatedEvents',
          type: {
            name: 'Boolean'
          }
        },
        Kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Kind',
          type: {
            name: 'String'
          }
        },
        partition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.3.0.9/generated/azure_service_fabric/models/partition_event.rb, line 16
def initialize
  @Kind = "PartitionEvent"
end