| | | 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 | | |
| | | 10 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | | 11 | | { |
| | | 12 | | /// <summary> Custom script action to run on HDI ondemand cluster once it's up. </summary> |
| | | 13 | | public partial class ScriptAction |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of ScriptAction. </summary> |
| | | 16 | | /// <param name="name"> The user provided name of the script action. </param> |
| | | 17 | | /// <param name="uri"> The URI for the script action. </param> |
| | | 18 | | /// <param name="roles"> The node types on which the script action should be executed. </param> |
| | | 19 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="uri"/> is null. </except |
| | 0 | 20 | | public ScriptAction(string name, string uri, HdiNodeTypes roles) |
| | | 21 | | { |
| | 0 | 22 | | if (name == null) |
| | | 23 | | { |
| | 0 | 24 | | throw new ArgumentNullException(nameof(name)); |
| | | 25 | | } |
| | 0 | 26 | | if (uri == null) |
| | | 27 | | { |
| | 0 | 28 | | throw new ArgumentNullException(nameof(uri)); |
| | | 29 | | } |
| | | 30 | | |
| | 0 | 31 | | Name = name; |
| | 0 | 32 | | Uri = uri; |
| | 0 | 33 | | Roles = roles; |
| | 0 | 34 | | } |
| | | 35 | | |
| | | 36 | | /// <summary> Initializes a new instance of ScriptAction. </summary> |
| | | 37 | | /// <param name="name"> The user provided name of the script action. </param> |
| | | 38 | | /// <param name="uri"> The URI for the script action. </param> |
| | | 39 | | /// <param name="roles"> The node types on which the script action should be executed. </param> |
| | | 40 | | /// <param name="parameters"> The parameters for the script action. </param> |
| | 0 | 41 | | internal ScriptAction(string name, string uri, HdiNodeTypes roles, string parameters) |
| | | 42 | | { |
| | 0 | 43 | | Name = name; |
| | 0 | 44 | | Uri = uri; |
| | 0 | 45 | | Roles = roles; |
| | 0 | 46 | | Parameters = parameters; |
| | 0 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> The user provided name of the script action. </summary> |
| | 0 | 50 | | public string Name { get; set; } |
| | | 51 | | /// <summary> The URI for the script action. </summary> |
| | 0 | 52 | | public string Uri { get; set; } |
| | | 53 | | /// <summary> The node types on which the script action should be executed. </summary> |
| | 0 | 54 | | public HdiNodeTypes Roles { get; set; } |
| | | 55 | | /// <summary> The parameters for the script action. </summary> |
| | 0 | 56 | | public string Parameters { get; set; } |
| | | 57 | | } |
| | | 58 | | } |