# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ServiceFabric::V6_2_0_9 module Models # # Represents the base for all Partition Events. # class PartitionEvent < FabricEvent include MsRestAzure def initialize @Kind = "PartitionEvent" end attr_accessor :Kind # @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. attr_accessor :partition_id # # Mapper for PartitionEvent class as Ruby Hash. # This will be used for serialization/deserialization. # 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 end end end