Partager via


ScriptParameter Class

Definition

An parameter that the script will accept

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameterTypeConverter))]
public class ScriptParameter : Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptParameter
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ScriptParameterTypeConverter))>]
type ScriptParameter = class
    interface IScriptParameter
    interface IJsonSerializable
Public Class ScriptParameter
Implements IScriptParameter
Inheritance
ScriptParameter
Attributes
Implements

Constructors

ScriptParameter()

Creates an new ScriptParameter instance.

Properties

Description

User friendly description of the parameter

Name

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

Optional

Is this parameter required or optional

Type

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

Visibility

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ScriptParameter.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ScriptParameter.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptParameter.

FromJsonString(String)

Creates a new instance of ScriptParameter, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ScriptParameter into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to