class Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineRunCommandScriptSource

Describes the script sources for run command.

Attributes

command_id[RW]

@return [String] Specifies a commandId of predefined built-in script.

script[RW]

@return [String] Specifies the script content to be executed on the VM.

script_uri[RW]

@return [String] Specifies the script download location.

Private Class Methods

mapper() click to toggle source

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

# 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