Table of Contents

Class Input

Namespace
Styra.Opa.OpenApi.Models.Components
Assembly
Styra.Opa.dll

Arbitrary JSON used within your policies by accessing input

[JsonConverter(typeof(Input.InputConverter))]
public class Input
Inheritance
Input
Inherited Members

Constructors

Input(InputType)

public Input(InputType type)

Parameters

type InputType

Properties

ArrayOfAny

public List<object>? ArrayOfAny { get; set; }

Property Value

List<object>

Boolean

public bool? Boolean { get; set; }

Property Value

bool?

MapOfAny

public Dictionary<string, object>? MapOfAny { get; set; }

Property Value

Dictionary<string, object>

Number

public double? Number { get; set; }

Property Value

double?

Str

public string? Str { get; set; }

Property Value

string

Type

public InputType Type { get; set; }

Property Value

InputType

Methods

CreateArrayOfAny(List<object>)

public static Input CreateArrayOfAny(List<object> arrayOfAny)

Parameters

arrayOfAny List<object>

Returns

Input

CreateBoolean(bool)

public static Input CreateBoolean(bool boolean)

Parameters

boolean bool

Returns

Input

CreateMapOfAny(Dictionary<string, object>)

public static Input CreateMapOfAny(Dictionary<string, object> mapOfAny)

Parameters

mapOfAny Dictionary<string, object>

Returns

Input

CreateNull()

public static Input CreateNull()

Returns

Input

CreateNumber(double)

public static Input CreateNumber(double number)

Parameters

number double

Returns

Input

CreateStr(string)

public static Input CreateStr(string str)

Parameters

str string

Returns

Input