class Azure::ContainerInstance::Mgmt::V2017_10_01_preview::Models::ContainerPropertiesInstanceView

The instance view of the container instance. Only valid in response.

Attributes

current_state[RW]

@return [ContainerState] Current container instance state.

events[RW]

@return [Array<Event>] The events of the container instance.

previous_state[RW]

@return [ContainerState] Previous container instance state.

restart_count[RW]

@return [Integer] The number of times that the container instance has been restarted.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContainerProperties_instanceView',
    type: {
      name: 'Composite',
      class_name: 'ContainerPropertiesInstanceView',
      model_properties: {
        restart_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'restartCount',
          type: {
            name: 'Number'
          }
        },
        current_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'currentState',
          type: {
            name: 'Composite',
            class_name: 'ContainerState'
          }
        },
        previous_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'previousState',
          type: {
            name: 'Composite',
            class_name: 'ContainerState'
          }
        },
        events: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'events',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EventElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Event'
                }
            }
          }
        }
      }
    }
  }
end