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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsConnectionUpstreamAlias()
Returns the value as a ConnectionUpstreamAlias if Type is 'connectionUpstreamAlias', otherwise throws an exception.
public ConnectionUpstreamAlias AsConnectionUpstreamAlias()
Returns
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
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
objobjectThe 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
valueConnectionUpstreamAlias
Returns
FromConnectionUpstreamValue(ConnectionUpstreamValue)
Factory method to create a union from a Auth0.ManagementApi.ConnectionUpstreamValue value.
public static ConnectionUpstreamAdditionalProperties FromConnectionUpstreamValue(ConnectionUpstreamValue value)
Parameters
valueConnectionUpstreamValue
Returns
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
IsConnectionUpstreamValue()
Returns true if Type is "connectionUpstreamValue"
public bool IsConnectionUpstreamValue()
Returns
Match<T>(Func<ConnectionUpstreamAlias, T>, Func<ConnectionUpstreamValue, T>)
public T Match<T>(Func<ConnectionUpstreamAlias, T> onConnectionUpstreamAlias, Func<ConnectionUpstreamValue, T> onConnectionUpstreamValue)
Parameters
onConnectionUpstreamAliasFunc<ConnectionUpstreamAlias, T>onConnectionUpstreamValueFunc<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
valueConnectionUpstreamAlias
Returns
TryGetConnectionUpstreamValue(out ConnectionUpstreamValue?)
Attempts to cast the value to a ConnectionUpstreamValue and returns true if successful.
public bool TryGetConnectionUpstreamValue(out ConnectionUpstreamValue? value)
Parameters
valueConnectionUpstreamValue
Returns
Visit(Action<ConnectionUpstreamAlias>, Action<ConnectionUpstreamValue>)
public void Visit(Action<ConnectionUpstreamAlias> onConnectionUpstreamAlias, Action<ConnectionUpstreamValue> onConnectionUpstreamValue)
Parameters
onConnectionUpstreamAliasAction<ConnectionUpstreamAlias>onConnectionUpstreamValueAction<ConnectionUpstreamValue>
Operators
implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamAlias)
public static implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamAlias value)
Parameters
valueConnectionUpstreamAlias
Returns
implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamValue)
public static implicit operator ConnectionUpstreamAdditionalProperties(ConnectionUpstreamValue value)
Parameters
valueConnectionUpstreamValue