Class: Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineRunCommandScriptSource

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

Overview

Describes the script sources for run command.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#command_idString

Returns Specifies a commandId of predefined built-in script.

Returns:

  • (String)

    Specifies a commandId of predefined built-in script.



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

def command_id
  @command_id
end

#scriptString

Returns Specifies the script content to be executed on the VM.

Returns:

  • (String)

    Specifies the script content to be executed on the VM.



16
17
18
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_script_source.rb', line 16

def script
  @script
end

#script_uriString

Returns Specifies the script download location.

Returns:

  • (String)

    Specifies the script download location.



19
20
21
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_script_source.rb', line 19

def script_uri
  @script_uri
end

Class Method Details

.mapperObject

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



29
30
31
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
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_run_command_script_source.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineRunCommandScriptSource',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineRunCommandScriptSource',
      model_properties: {
        script: {
          client_side_validation: true,
          required: false,
          serialized_name: 'script',
          type: {
            name: 'String'
          }
        },
        script_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'scriptUri',
          type: {
            name: 'String'
          }
        },
        command_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'commandId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end