Table of Contents

Class ErrorsGetResponse

Namespace
Auth0.ManagementApi.Jobs
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(ErrorsGetResponse.JsonConverter))]
[Serializable]
public class ErrorsGetResponse
Inheritance
ErrorsGetResponse
Inherited Members
Extension Methods

Properties

Type

Type discriminator

[JsonIgnore]
public string Type { get; }

Property Value

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsGetJobGenericErrorResponseContent()

Returns the value as a GetJobGenericErrorResponseContent if Type is 'getJobGenericErrorResponseContent', otherwise throws an exception.

public GetJobGenericErrorResponseContent AsGetJobGenericErrorResponseContent()

Returns

GetJobGenericErrorResponseContent

Exceptions

ManagementException

Thrown when Type is not 'getJobGenericErrorResponseContent'.

AsListOfGetJobErrorResponseContent()

public IEnumerable<GetJobErrorResponseContent> AsListOfGetJobErrorResponseContent()

Returns

IEnumerable<GetJobErrorResponseContent>

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromGetJobGenericErrorResponseContent(GetJobGenericErrorResponseContent)

Factory method to create a union from a Auth0.ManagementApi.GetJobGenericErrorResponseContent value.

public static ErrorsGetResponse FromGetJobGenericErrorResponseContent(GetJobGenericErrorResponseContent value)

Parameters

value GetJobGenericErrorResponseContent

Returns

ErrorsGetResponse

FromListOfGetJobErrorResponseContent(IEnumerable<GetJobErrorResponseContent>)

public static ErrorsGetResponse FromListOfGetJobErrorResponseContent(IEnumerable<GetJobErrorResponseContent> value)

Parameters

value IEnumerable<GetJobErrorResponseContent>

Returns

ErrorsGetResponse

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsGetJobGenericErrorResponseContent()

Returns true if Type is "getJobGenericErrorResponseContent"

public bool IsGetJobGenericErrorResponseContent()

Returns

bool

IsListOfGetJobErrorResponseContent()

Returns true if Type is "list"

public bool IsListOfGetJobErrorResponseContent()

Returns

bool

Match<T>(Func<IEnumerable<GetJobErrorResponseContent>, T>, Func<GetJobGenericErrorResponseContent, T>)

public T Match<T>(Func<IEnumerable<GetJobErrorResponseContent>, T> onListOfGetJobErrorResponseContent, Func<GetJobGenericErrorResponseContent, T> onGetJobGenericErrorResponseContent)

Parameters

onListOfGetJobErrorResponseContent Func<IEnumerable<GetJobErrorResponseContent>, T>
onGetJobGenericErrorResponseContent Func<GetJobGenericErrorResponseContent, T>

Returns

T

Type Parameters

T

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetGetJobGenericErrorResponseContent(out GetJobGenericErrorResponseContent?)

Attempts to cast the value to a GetJobGenericErrorResponseContent and returns true if successful.

public bool TryGetGetJobGenericErrorResponseContent(out GetJobGenericErrorResponseContent? value)

Parameters

value GetJobGenericErrorResponseContent

Returns

bool

TryGetListOfGetJobErrorResponseContent(out IEnumerable<GetJobErrorResponseContent>?)

public bool TryGetListOfGetJobErrorResponseContent(out IEnumerable<GetJobErrorResponseContent>? value)

Parameters

value IEnumerable<GetJobErrorResponseContent>

Returns

bool

Visit(Action<IEnumerable<GetJobErrorResponseContent>>, Action<GetJobGenericErrorResponseContent>)

public void Visit(Action<IEnumerable<GetJobErrorResponseContent>> onListOfGetJobErrorResponseContent, Action<GetJobGenericErrorResponseContent> onGetJobGenericErrorResponseContent)

Parameters

onListOfGetJobErrorResponseContent Action<IEnumerable<GetJobErrorResponseContent>>
onGetJobGenericErrorResponseContent Action<GetJobGenericErrorResponseContent>

Operators

implicit operator ErrorsGetResponse(GetJobGenericErrorResponseContent)

public static implicit operator ErrorsGetResponse(GetJobGenericErrorResponseContent value)

Parameters

value GetJobGenericErrorResponseContent

Returns

ErrorsGetResponse