Class EventStreamWebhookAuthorizationResponse
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(EventStreamWebhookAuthorizationResponse.JsonConverter))]
[Serializable]
public class EventStreamWebhookAuthorizationResponse
- Inheritance
-
EventStreamWebhookAuthorizationResponse
- 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
AsEventStreamWebhookBasicAuth()
Returns the value as a EventStreamWebhookBasicAuth if Type is 'eventStreamWebhookBasicAuth', otherwise throws an exception.
public EventStreamWebhookBasicAuth AsEventStreamWebhookBasicAuth()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'eventStreamWebhookBasicAuth'.
AsEventStreamWebhookBearerAuth()
Returns the value as a EventStreamWebhookBearerAuth if Type is 'eventStreamWebhookBearerAuth', otherwise throws an exception.
public EventStreamWebhookBearerAuth AsEventStreamWebhookBearerAuth()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'eventStreamWebhookBearerAuth'.
AsEventStreamWebhookCustomHeaderAuth()
Returns the value as a EventStreamWebhookCustomHeaderAuth if Type is 'eventStreamWebhookCustomHeaderAuth', otherwise throws an exception.
public EventStreamWebhookCustomHeaderAuth AsEventStreamWebhookCustomHeaderAuth()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'eventStreamWebhookCustomHeaderAuth'.
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.
FromEventStreamWebhookBasicAuth(EventStreamWebhookBasicAuth)
Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookBasicAuth value.
public static EventStreamWebhookAuthorizationResponse FromEventStreamWebhookBasicAuth(EventStreamWebhookBasicAuth value)
Parameters
Returns
FromEventStreamWebhookBearerAuth(EventStreamWebhookBearerAuth)
Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookBearerAuth value.
public static EventStreamWebhookAuthorizationResponse FromEventStreamWebhookBearerAuth(EventStreamWebhookBearerAuth value)
Parameters
Returns
FromEventStreamWebhookCustomHeaderAuth(EventStreamWebhookCustomHeaderAuth)
Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookCustomHeaderAuth value.
public static EventStreamWebhookAuthorizationResponse FromEventStreamWebhookCustomHeaderAuth(EventStreamWebhookCustomHeaderAuth value)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsEventStreamWebhookBasicAuth()
Returns true if Type is "eventStreamWebhookBasicAuth"
public bool IsEventStreamWebhookBasicAuth()
Returns
IsEventStreamWebhookBearerAuth()
Returns true if Type is "eventStreamWebhookBearerAuth"
public bool IsEventStreamWebhookBearerAuth()
Returns
IsEventStreamWebhookCustomHeaderAuth()
Returns true if Type is "eventStreamWebhookCustomHeaderAuth"
public bool IsEventStreamWebhookCustomHeaderAuth()
Returns
Match<T>(Func<EventStreamWebhookBasicAuth, T>, Func<EventStreamWebhookBearerAuth, T>, Func<EventStreamWebhookCustomHeaderAuth, T>)
public T Match<T>(Func<EventStreamWebhookBasicAuth, T> onEventStreamWebhookBasicAuth, Func<EventStreamWebhookBearerAuth, T> onEventStreamWebhookBearerAuth, Func<EventStreamWebhookCustomHeaderAuth, T> onEventStreamWebhookCustomHeaderAuth)
Parameters
onEventStreamWebhookBasicAuthFunc<EventStreamWebhookBasicAuth, T>onEventStreamWebhookBearerAuthFunc<EventStreamWebhookBearerAuth, T>onEventStreamWebhookCustomHeaderAuthFunc<EventStreamWebhookCustomHeaderAuth, 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.
TryGetEventStreamWebhookBasicAuth(out EventStreamWebhookBasicAuth?)
Attempts to cast the value to a EventStreamWebhookBasicAuth and returns true if successful.
public bool TryGetEventStreamWebhookBasicAuth(out EventStreamWebhookBasicAuth? value)
Parameters
Returns
TryGetEventStreamWebhookBearerAuth(out EventStreamWebhookBearerAuth?)
Attempts to cast the value to a EventStreamWebhookBearerAuth and returns true if successful.
public bool TryGetEventStreamWebhookBearerAuth(out EventStreamWebhookBearerAuth? value)
Parameters
Returns
TryGetEventStreamWebhookCustomHeaderAuth(out EventStreamWebhookCustomHeaderAuth?)
Attempts to cast the value to a EventStreamWebhookCustomHeaderAuth and returns true if successful.
public bool TryGetEventStreamWebhookCustomHeaderAuth(out EventStreamWebhookCustomHeaderAuth? value)
Parameters
Returns
Visit(Action<EventStreamWebhookBasicAuth>, Action<EventStreamWebhookBearerAuth>, Action<EventStreamWebhookCustomHeaderAuth>)
public void Visit(Action<EventStreamWebhookBasicAuth> onEventStreamWebhookBasicAuth, Action<EventStreamWebhookBearerAuth> onEventStreamWebhookBearerAuth, Action<EventStreamWebhookCustomHeaderAuth> onEventStreamWebhookCustomHeaderAuth)
Parameters
onEventStreamWebhookBasicAuthAction<EventStreamWebhookBasicAuth>onEventStreamWebhookBearerAuthAction<EventStreamWebhookBearerAuth>onEventStreamWebhookCustomHeaderAuthAction<EventStreamWebhookCustomHeaderAuth>
Operators
implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBasicAuth)
public static implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBasicAuth value)
Parameters
Returns
implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBearerAuth)
public static implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBearerAuth value)
Parameters
Returns
implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookCustomHeaderAuth)
public static implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookCustomHeaderAuth value)