Class: Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineRunCommandInstanceView

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb

Overview

The instance view of a virtual machine run command.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#end_timeDateTime

Returns Script end time.

Returns:

  • (DateTime)

    Script end time.



37
38
39
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 37

def end_time
  @end_time
end

#errorString

Returns Script error stream.

Returns:

  • (String)

    Script error stream.



31
32
33
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 31

def error
  @error
end

#execution_messageString

messages.

Returns:

  • (String)

    Communicate script configuration errors or execution



22
23
24
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 22

def execution_message
  @execution_message
end

#execution_stateExecutionState

include: 'Unknown', 'Pending', 'Running', 'Failed', 'Succeeded', 'TimedOut', 'Canceled'

Returns:



18
19
20
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 18

def execution_state
  @execution_state
end

#exit_codeInteger

Returns Exit code returned from script execution.

Returns:

  • (Integer)

    Exit code returned from script execution.



25
26
27
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 25

def exit_code
  @exit_code
end

#outputString

Returns Script output stream.

Returns:

  • (String)

    Script output stream.



28
29
30
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 28

def output
  @output
end

#start_timeDateTime

Returns Script start time.

Returns:

  • (DateTime)

    Script start time.



34
35
36
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 34

def start_time
  @start_time
end

#statusesArray<InstanceViewStatus>

Returns The resource status information.

Returns:



40
41
42
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 40

def statuses
  @statuses
end

Class Method Details

.mapperObject

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



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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_instance_view.rb', line 47

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineRunCommandInstanceView',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineRunCommandInstanceView',
      model_properties: {
        execution_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'executionState',
          type: {
            name: 'String'
          }
        },
        execution_message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'executionMessage',
          type: {
            name: 'String'
          }
        },
        exit_code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exitCode',
          type: {
            name: 'Number'
          }
        },
        output: {
          client_side_validation: true,
          required: false,
          serialized_name: 'output',
          type: {
            name: 'String'
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'error',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'endTime',
          type: {
            name: 'DateTime'
          }
        },
        statuses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'statuses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'InstanceViewStatusElementType',
                type: {
                  name: 'Composite',
                  class_name: 'InstanceViewStatus'
                }
            }
          }
        }
      }
    }
  }
end