Class: Azure::ContainerInstance::Mgmt::V2019_12_01::Models::ContainerState

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb

Overview

The container instance state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#detail_statusString

state.

Returns:

  • (String)

    The human-readable status of the container instance



32
33
34
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb', line 32

def detail_status
  @detail_status
end

#exit_codeInteger

from the ‘docker run` command.

Returns:

  • (Integer)

    The container instance exit codes correspond to those



24
25
26
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb', line 24

def exit_code
  @exit_code
end

#finish_timeDateTime

finished.

Returns:

  • (DateTime)

    The date-time when the container instance state



28
29
30
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb', line 28

def finish_time
  @finish_time
end

#start_timeDateTime

started.

Returns:

  • (DateTime)

    The date-time when the container instance state



20
21
22
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb', line 20

def start_time
  @start_time
end

#stateString

Returns The state of the container instance.

Returns:

  • (String)

    The state of the container instance.



16
17
18
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb', line 16

def state
  @state
end

Class Method Details

.mapperObject

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



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/container_state.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ContainerState',
    type: {
      name: 'Composite',
      class_name: 'ContainerState',
      model_properties: {
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        exit_code: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'exitCode',
          type: {
            name: 'Number'
          }
        },
        finish_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'finishTime',
          type: {
            name: 'DateTime'
          }
        },
        detail_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'detailStatus',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end