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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsGetJobGenericErrorResponseContent()
Returns the value as a GetJobGenericErrorResponseContent if Type is 'getJobGenericErrorResponseContent', otherwise throws an exception.
public GetJobGenericErrorResponseContent AsGetJobGenericErrorResponseContent()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'getJobGenericErrorResponseContent'.
AsListOfGetJobErrorResponseContent()
Returns the value as a IEnumerable<T> if Type is 'list', otherwise throws an exception.
public IEnumerable<GetJobErrorResponseContent> AsListOfGetJobErrorResponseContent()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'list'.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe 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 GetJobGenericErrorResponseContent value.
public static ErrorsGetResponse FromGetJobGenericErrorResponseContent(GetJobGenericErrorResponseContent value)
Parameters
Returns
FromListOfGetJobErrorResponseContent(IEnumerable<GetJobErrorResponseContent>)
Factory method to create a union from a IEnumerable<T> value.
public static ErrorsGetResponse FromListOfGetJobErrorResponseContent(IEnumerable<GetJobErrorResponseContent> value)
Parameters
Returns
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
IsListOfGetJobErrorResponseContent()
Returns true if Type is "list"
public bool IsListOfGetJobErrorResponseContent()
Returns
Match<T>(Func<IEnumerable<GetJobErrorResponseContent>, T>, Func<GetJobGenericErrorResponseContent, T>)
public T Match<T>(Func<IEnumerable<GetJobErrorResponseContent>, T> onListOfGetJobErrorResponseContent, Func<GetJobGenericErrorResponseContent, T> onGetJobGenericErrorResponseContent)
Parameters
onListOfGetJobErrorResponseContentFunc<IEnumerable<GetJobErrorResponseContent>, T>onGetJobGenericErrorResponseContentFunc<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
Returns
TryGetListOfGetJobErrorResponseContent(out IEnumerable<GetJobErrorResponseContent>?)
Attempts to cast the value to a IEnumerable<T> and returns true if successful.
public bool TryGetListOfGetJobErrorResponseContent(out IEnumerable<GetJobErrorResponseContent>? value)
Parameters
Returns
Visit(Action<IEnumerable<GetJobErrorResponseContent>>, Action<GetJobGenericErrorResponseContent>)
public void Visit(Action<IEnumerable<GetJobErrorResponseContent>> onListOfGetJobErrorResponseContent, Action<GetJobGenericErrorResponseContent> onGetJobGenericErrorResponseContent)
Parameters
onListOfGetJobErrorResponseContentAction<IEnumerable<GetJobErrorResponseContent>>onGetJobGenericErrorResponseContentAction<GetJobGenericErrorResponseContent>
Operators
implicit operator ErrorsGetResponse(GetJobGenericErrorResponseContent)
public static implicit operator ErrorsGetResponse(GetJobGenericErrorResponseContent value)