class Azure::ContainerInstance::Mgmt::V2019_12_01::Models::InitContainerPropertiesDefinitionInstanceView

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

Attributes

current_state[RW]

@return [ContainerState] The current state of the init container.

events[RW]

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

previous_state[RW]

@return [ContainerState] The previous state of the init container.

restart_count[RW]

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

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-12-01/generated/azure_mgmt_container_instance/models/init_container_properties_definition_instance_view.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'InitContainerPropertiesDefinition_instanceView',
    type: {
      name: 'Composite',
      class_name: 'InitContainerPropertiesDefinitionInstanceView',
      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