Class: Azure::ARM::Compute::Models::RunCommandInput

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/run_command_input.rb

Overview

Capture Virtual Machine parameters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#command_idString

Returns The run command id.

Returns:

  • (String)

    The run command id.



17
18
19
# File 'lib/generated/azure_mgmt_compute/models/run_command_input.rb', line 17

def command_id
  @command_id
end

#parametersArray<RunCommandInputParameter>

Returns The run command parameters.

Returns:



25
26
27
# File 'lib/generated/azure_mgmt_compute/models/run_command_input.rb', line 25

def parameters
  @parameters
end

#scriptArray<String>

value is given, the given script will override the default script of the command.

Returns:

  • (Array<String>)

    Optional. The script to be executed. When this



22
23
24
# File 'lib/generated/azure_mgmt_compute/models/run_command_input.rb', line 22

def script
  @script
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
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
# File 'lib/generated/azure_mgmt_compute/models/run_command_input.rb', line 32

def self.mapper()
  {
    required: false,
    serialized_name: 'RunCommandInput',
    type: {
      name: 'Composite',
      class_name: 'RunCommandInput',
      model_properties: {
        command_id: {
          required: true,
          serialized_name: 'commandId',
          type: {
            name: 'String'
          }
        },
        script: {
          required: false,
          serialized_name: 'script',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        parameters: {
          required: false,
          serialized_name: 'parameters',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'RunCommandInputParameterElementType',
                type: {
                  name: 'Composite',
                  class_name: 'RunCommandInputParameter'
                }
            }
          }
        }
      }
    }
  }
end