Dela via


DevCenterModelFactory.EnvironmentDefinitionParameter Method

Definition

Initializes a new instance of EnvironmentDefinitionParameter.

public static Azure.Developer.DevCenter.Models.EnvironmentDefinitionParameter EnvironmentDefinitionParameter (string id = default, string name = default, string description = default, string defaultValue = default, Azure.Developer.DevCenter.Models.EnvironmentDefinitionParameterType parameterType = default, bool? readOnly = default, bool required = false, System.Collections.Generic.IEnumerable<string> allowed = default);
static member EnvironmentDefinitionParameter : string * string * string * string * Azure.Developer.DevCenter.Models.EnvironmentDefinitionParameterType * Nullable<bool> * bool * seq<string> -> Azure.Developer.DevCenter.Models.EnvironmentDefinitionParameter
Public Shared Function EnvironmentDefinitionParameter (Optional id As String = Nothing, Optional name As String = Nothing, Optional description As String = Nothing, Optional defaultValue As String = Nothing, Optional parameterType As EnvironmentDefinitionParameterType = Nothing, Optional readOnly As Nullable(Of Boolean) = Nothing, Optional required As Boolean = false, Optional allowed As IEnumerable(Of String) = Nothing) As EnvironmentDefinitionParameter

Parameters

id
String

Unique ID of the parameter.

name
String

Display name of the parameter.

description
String

Description of the parameter.

defaultValue
String

Default value of the parameter.

parameterType
EnvironmentDefinitionParameterType

A string of one of the basic JSON types (number, integer, array, object, boolean, string)

readOnly
Nullable<Boolean>

Whether or not this parameter is read-only. If true, default should have a value.

required
Boolean

Whether or not this parameter is required.

allowed
IEnumerable<String>

An array of allowed values.

Returns

A new EnvironmentDefinitionParameter instance for mocking.

Applies to