Table of Contents

Class ConnectionUpstreamAdditionalProperties

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(ConnectionUpstreamAdditionalProperties.JsonConverter))]
[Serializable]
public class ConnectionUpstreamAdditionalProperties
Inheritance
ConnectionUpstreamAdditionalProperties
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

AsConnectionUpstreamAlias()

Returns the value as a ConnectionUpstreamAlias if Type is 'connectionUpstreamAlias', otherwise throws an exception.

public ConnectionUpstreamAlias AsConnectionUpstreamAlias()

Returns

ConnectionUpstreamAlias

Exceptions

ManagementException

Thrown when Type is not 'connectionUpstreamAlias'.

AsConnectionUpstreamValue()

Returns the value as a ConnectionUpstreamValue if Type is 'connectionUpstreamValue', otherwise throws an exception.

public ConnectionUpstreamValue AsConnectionUpstreamValue()

Returns

ConnectionUpstreamValue

Exceptions

ManagementException

Thrown when Type is not 'connectionUpstreamValue'.

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.

FromConnectionUpstreamAlias(ConnectionUpstreamAlias)

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

public static ConnectionUpstreamAdditionalProperties FromConnectionUpstreamAlias(ConnectionUpstreamAlias value)

Parameters

value ConnectionUpstreamAlias

Returns

ConnectionUpstreamAdditionalProperties

FromConnectionUpstreamValue(ConnectionUpstreamValue)

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

public static ConnectionUpstreamAdditionalProperties FromConnectionUpstreamValue(ConnectionUpstreamValue value)

Parameters

value ConnectionUpstreamValue

Returns

ConnectionUpstreamAdditionalProperties

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsConnectionUpstreamAlias()

Returns true if Type is "connectionUpstreamAlias"

public bool IsConnectionUpstreamAlias()

Returns

bool

IsConnectionUpstreamValue()

Returns true if Type is "connectionUpstreamValue"

public bool IsConnectionUpstreamValue()

Returns

bool

Match<T>(Func<ConnectionUpstreamAlias, T>, Func<ConnectionUpstreamValue, T>)

public T Match<T>(Func<ConnectionUpstreamAlias, T> onConnectionUpstreamAlias, Func<ConnectionUpstreamValue, T> onConnectionUpstreamValue)

Parameters

onConnectionUpstreamAlias Func<ConnectionUpstreamAlias, T>
onConnectionUpstreamValue Func<ConnectionUpstreamValue, 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.

TryGetConnectionUpstreamAlias(out ConnectionUpstreamAlias?)

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

public bool TryGetConnectionUpstreamAlias(out ConnectionUpstreamAlias? value)

Parameters

value ConnectionUpstreamAlias

Returns

bool

TryGetConnectionUpstreamValue(out ConnectionUpstreamValue?)

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

public bool TryGetConnectionUpstreamValue(out ConnectionUpstreamValue? value)

Parameters

value ConnectionUpstreamValue

Returns

bool

Visit(Action<ConnectionUpstreamAlias>, Action<ConnectionUpstreamValue>)

public void Visit(Action<ConnectionUpstreamAlias> onConnectionUpstreamAlias, Action<ConnectionUpstreamValue> onConnectionUpstreamValue)

Parameters

onConnectionUpstreamAlias Action<ConnectionUpstreamAlias>
onConnectionUpstreamValue Action<ConnectionUpstreamValue>

Operators

implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamAlias)

public static implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamAlias value)

Parameters

value ConnectionUpstreamAlias

Returns

ConnectionUpstreamAdditionalProperties

implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamValue)

public static implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamValue value)

Parameters

value ConnectionUpstreamValue

Returns

ConnectionUpstreamAdditionalProperties