Table of Contents

Class Responses

Namespace
Styra.Opa.OpenApi.Models.Components
Assembly
Styra.Opa.dll
[JsonConverter(typeof(Responses.ResponsesConverter))]
public class Responses
Inheritance
Responses
Inherited Members

Constructors

Responses(ResponsesType)

public Responses(ResponsesType type)

Parameters

type ResponsesType

Properties

ServerErrorWithStatusCode

public ServerErrorWithStatusCode? ServerErrorWithStatusCode { get; set; }

Property Value

ServerErrorWithStatusCode

SuccessfulPolicyResponseWithStatusCode

public SuccessfulPolicyResponseWithStatusCode? SuccessfulPolicyResponseWithStatusCode { get; set; }

Property Value

SuccessfulPolicyResponseWithStatusCode

Type

public ResponsesType Type { get; set; }

Property Value

ResponsesType

Methods

CreateFiveHundred(ServerErrorWithStatusCode)

public static Responses CreateFiveHundred(ServerErrorWithStatusCode fiveHundred)

Parameters

fiveHundred ServerErrorWithStatusCode

Returns

Responses

CreateNull()

public static Responses CreateNull()

Returns

Responses

CreateTwoHundred(SuccessfulPolicyResponseWithStatusCode)

public static Responses CreateTwoHundred(SuccessfulPolicyResponseWithStatusCode twoHundred)

Parameters

twoHundred SuccessfulPolicyResponseWithStatusCode

Returns

Responses