# 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::V7_0_0_42 module Models # # Runtime information of a container instance. # class ContainerInstanceView include MsRestAzure # @return [Integer] The number of times the container has been restarted. attr_accessor :restart_count # @return [ContainerState] Current container instance state. attr_accessor :current_state # @return [ContainerState] Previous container instance state. attr_accessor :previous_state # @return [Array] The events of this container instance. attr_accessor :events # # Mapper for ContainerInstanceView class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ContainerInstanceView', type: { name: 'Composite', class_name: 'ContainerInstanceView', model_properties: { restart_count: { client_side_validation: true, required: false, serialized_name: 'restartCount', type: { name: 'Number' } }, current_state: { client_side_validation: true, required: false, serialized_name: 'currentState', type: { name: 'Composite', class_name: 'ContainerState' } }, previous_state: { client_side_validation: true, required: false, serialized_name: 'previousState', type: { name: 'Composite', class_name: 'ContainerState' } }, events: { client_side_validation: true, required: false, serialized_name: 'events', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ContainerEventElementType', type: { name: 'Composite', class_name: 'ContainerEvent' } } } } } } } end end end end