-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ScriptExecutionParameterDetails.cs
44 lines (37 loc) · 1.9 KB
/
ScriptExecutionParameterDetails.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.Avs.Models
{
/// <summary>
/// The arguments passed in to the execution
/// Please note <see cref="ScriptExecutionParameterDetails"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="PSCredentialExecutionParameterDetails"/>, <see cref="ScriptSecureStringExecutionParameterDetails"/> and <see cref="ScriptStringExecutionParameterDetails"/>.
/// </summary>
public abstract partial class ScriptExecutionParameterDetails
{
/// <summary> Initializes a new instance of ScriptExecutionParameterDetails. </summary>
/// <param name="name"> The parameter name. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
protected ScriptExecutionParameterDetails(string name)
{
Argument.AssertNotNull(name, nameof(name));
Name = name;
}
/// <summary> Initializes a new instance of ScriptExecutionParameterDetails. </summary>
/// <param name="name"> The parameter name. </param>
/// <param name="parameterType"> The type of execution parameter. </param>
internal ScriptExecutionParameterDetails(string name, ScriptExecutionParameterType parameterType)
{
Name = name;
ParameterType = parameterType;
}
/// <summary> The parameter name. </summary>
public string Name { get; set; }
/// <summary> The type of execution parameter. </summary>
internal ScriptExecutionParameterType ParameterType { get; set; }
}
}