Class EventStreamDestinationPatch
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(EventStreamDestinationPatch.JsonConverter))]
[Serializable]
public class EventStreamDestinationPatch
- Inheritance
-
EventStreamDestinationPatch
- 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
AsEventStreamActionDestination()
Returns the value as a EventStreamActionDestination if Type is 'eventStreamActionDestination', otherwise throws an exception.
public EventStreamActionDestination AsEventStreamActionDestination()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'eventStreamActionDestination'.
AsEventStreamWebhookDestination()
Returns the value as a EventStreamWebhookDestination if Type is 'eventStreamWebhookDestination', otherwise throws an exception.
public EventStreamWebhookDestination AsEventStreamWebhookDestination()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'eventStreamWebhookDestination'.
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.
FromEventStreamActionDestination(EventStreamActionDestination)
Factory method to create a union from a Auth0.ManagementApi.EventStreamActionDestination value.
public static EventStreamDestinationPatch FromEventStreamActionDestination(EventStreamActionDestination value)
Parameters
Returns
FromEventStreamWebhookDestination(EventStreamWebhookDestination)
Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookDestination value.
public static EventStreamDestinationPatch FromEventStreamWebhookDestination(EventStreamWebhookDestination value)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsEventStreamActionDestination()
Returns true if Type is "eventStreamActionDestination"
public bool IsEventStreamActionDestination()
Returns
IsEventStreamWebhookDestination()
Returns true if Type is "eventStreamWebhookDestination"
public bool IsEventStreamWebhookDestination()
Returns
Match<T>(Func<EventStreamWebhookDestination, T>, Func<EventStreamActionDestination, T>)
public T Match<T>(Func<EventStreamWebhookDestination, T> onEventStreamWebhookDestination, Func<EventStreamActionDestination, T> onEventStreamActionDestination)
Parameters
onEventStreamWebhookDestinationFunc<EventStreamWebhookDestination, T>onEventStreamActionDestinationFunc<EventStreamActionDestination, 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.
TryGetEventStreamActionDestination(out EventStreamActionDestination?)
Attempts to cast the value to a EventStreamActionDestination and returns true if successful.
public bool TryGetEventStreamActionDestination(out EventStreamActionDestination? value)
Parameters
Returns
TryGetEventStreamWebhookDestination(out EventStreamWebhookDestination?)
Attempts to cast the value to a EventStreamWebhookDestination and returns true if successful.
public bool TryGetEventStreamWebhookDestination(out EventStreamWebhookDestination? value)
Parameters
Returns
Visit(Action<EventStreamWebhookDestination>, Action<EventStreamActionDestination>)
public void Visit(Action<EventStreamWebhookDestination> onEventStreamWebhookDestination, Action<EventStreamActionDestination> onEventStreamActionDestination)
Parameters
onEventStreamWebhookDestinationAction<EventStreamWebhookDestination>onEventStreamActionDestinationAction<EventStreamActionDestination>
Operators
implicit operator EventStreamDestinationPatch(EventStreamActionDestination)
public static implicit operator EventStreamDestinationPatch(EventStreamActionDestination value)
Parameters
Returns
implicit operator EventStreamDestinationPatch(EventStreamWebhookDestination)
public static implicit operator EventStreamDestinationPatch(EventStreamWebhookDestination value)