Udostępnij za pośrednictwem


ArmAvsModelFactory.ScriptParameter Method

Definition

Initializes a new instance of ScriptParameter.

public static Azure.ResourceManager.Avs.Models.ScriptParameter ScriptParameter (Azure.ResourceManager.Avs.Models.ScriptParameterType? parameterType = default, string name = default, string description = default, Azure.ResourceManager.Avs.Models.ParameterVisibilityStatus? visibility = default, Azure.ResourceManager.Avs.Models.ParameterOptionalityStatus? optional = default);
static member ScriptParameter : Nullable<Azure.ResourceManager.Avs.Models.ScriptParameterType> * string * string * Nullable<Azure.ResourceManager.Avs.Models.ParameterVisibilityStatus> * Nullable<Azure.ResourceManager.Avs.Models.ParameterOptionalityStatus> -> Azure.ResourceManager.Avs.Models.ScriptParameter
Public Shared Function ScriptParameter (Optional parameterType As Nullable(Of ScriptParameterType) = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional visibility As Nullable(Of ParameterVisibilityStatus) = Nothing, Optional optional As Nullable(Of ParameterOptionalityStatus) = Nothing) As ScriptParameter

Parameters

parameterType
Nullable<ScriptParameterType>

The type of parameter the script is expecting. psCredential is a PSCredentialObject

name
String

The parameter name that the script will expect a parameter value for.

description
String

User friendly description of the parameter.

visibility
Nullable<ParameterVisibilityStatus>

Should this parameter be visible to arm and passed in the parameters argument when executing

optional
Nullable<ParameterOptionalityStatus>

Is this parameter required or optional.

Returns

A new ScriptParameter instance for mocking.

Applies to