| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Collections.Generic; |
| | 10 | |
|
| | 11 | | namespace Azure.ResourceManager.Compute.Models |
| | 12 | | { |
| | 13 | | /// <summary> Capture Virtual Machine parameters. </summary> |
| | 14 | | public partial class RunCommandInput |
| | 15 | | { |
| | 16 | | /// <summary> Initializes a new instance of RunCommandInput. </summary> |
| | 17 | | /// <param name="commandId"> The run command id. </param> |
| 4 | 18 | | public RunCommandInput(string commandId) |
| | 19 | | { |
| 4 | 20 | | if (commandId == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(commandId)); |
| | 23 | | } |
| | 24 | |
|
| 4 | 25 | | CommandId = commandId; |
| 4 | 26 | | } |
| | 27 | |
|
| | 28 | | /// <summary> Initializes a new instance of RunCommandInput. </summary> |
| | 29 | | /// <param name="commandId"> The run command id. </param> |
| | 30 | | /// <param name="script"> Optional. The script to be executed. When this value is given, the given script will |
| | 31 | | /// <param name="parameters"> The run command parameters. </param> |
| 0 | 32 | | internal RunCommandInput(string commandId, IList<string> script, IList<RunCommandInputParameter> parameters) |
| | 33 | | { |
| 0 | 34 | | CommandId = commandId; |
| 0 | 35 | | Script = script; |
| 0 | 36 | | Parameters = parameters; |
| 0 | 37 | | } |
| | 38 | |
|
| | 39 | | /// <summary> The run command id. </summary> |
| 8 | 40 | | public string CommandId { get; } |
| | 41 | | /// <summary> Optional. The script to be executed. When this value is given, the given script will override the |
| 0 | 42 | | public IList<string> Script { get; set; } |
| | 43 | | /// <summary> The run command parameters. </summary> |
| 0 | 44 | | public IList<RunCommandInputParameter> Parameters { get; set; } |
| | 45 | | } |
| | 46 | | } |