-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
PSCredentialExecutionParameterDetails.cs
43 lines (36 loc) · 1.71 KB
/
PSCredentialExecutionParameterDetails.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
// 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> a powershell credential object. </summary>
public partial class PSCredentialExecutionParameterDetails : ScriptExecutionParameterDetails
{
/// <summary> Initializes a new instance of PSCredentialExecutionParameterDetails. </summary>
/// <param name="name"> The parameter name. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception>
public PSCredentialExecutionParameterDetails(string name) : base(name)
{
Argument.AssertNotNull(name, nameof(name));
ParameterType = ScriptExecutionParameterType.Credential;
}
/// <summary> Initializes a new instance of PSCredentialExecutionParameterDetails. </summary>
/// <param name="name"> The parameter name. </param>
/// <param name="parameterType"> The type of execution parameter. </param>
/// <param name="username"> username for login. </param>
/// <param name="password"> password for login. </param>
internal PSCredentialExecutionParameterDetails(string name, ScriptExecutionParameterType parameterType, string username, string password) : base(name, parameterType)
{
Username = username;
Password = password;
ParameterType = parameterType;
}
/// <summary> username for login. </summary>
public string Username { get; set; }
/// <summary> password for login. </summary>
public string Password { get; set; }
}
}