Table of Contents

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

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsEventStreamWebhookBasicAuth()

Returns the value as a EventStreamWebhookBasicAuth if Type is 'eventStreamWebhookBasicAuth', otherwise throws an exception.

public EventStreamWebhookBasicAuth AsEventStreamWebhookBasicAuth()

Returns

EventStreamWebhookBasicAuth

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

EventStreamWebhookBearerAuth

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

EventStreamWebhookCustomHeaderAuth

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

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.

FromEventStreamWebhookBasicAuth(EventStreamWebhookBasicAuth)

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

public static EventStreamWebhookAuthorizationResponse FromEventStreamWebhookBasicAuth(EventStreamWebhookBasicAuth value)

Parameters

value EventStreamWebhookBasicAuth

Returns

EventStreamWebhookAuthorizationResponse

FromEventStreamWebhookBearerAuth(EventStreamWebhookBearerAuth)

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

public static EventStreamWebhookAuthorizationResponse FromEventStreamWebhookBearerAuth(EventStreamWebhookBearerAuth value)

Parameters

value EventStreamWebhookBearerAuth

Returns

EventStreamWebhookAuthorizationResponse

FromEventStreamWebhookCustomHeaderAuth(EventStreamWebhookCustomHeaderAuth)

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

public static EventStreamWebhookAuthorizationResponse FromEventStreamWebhookCustomHeaderAuth(EventStreamWebhookCustomHeaderAuth value)

Parameters

value EventStreamWebhookCustomHeaderAuth

Returns

EventStreamWebhookAuthorizationResponse

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

bool

IsEventStreamWebhookBearerAuth()

Returns true if Type is "eventStreamWebhookBearerAuth"

public bool IsEventStreamWebhookBearerAuth()

Returns

bool

IsEventStreamWebhookCustomHeaderAuth()

Returns true if Type is "eventStreamWebhookCustomHeaderAuth"

public bool IsEventStreamWebhookCustomHeaderAuth()

Returns

bool

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

onEventStreamWebhookBasicAuth Func<EventStreamWebhookBasicAuth, T>
onEventStreamWebhookBearerAuth Func<EventStreamWebhookBearerAuth, T>
onEventStreamWebhookCustomHeaderAuth Func<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

value EventStreamWebhookBasicAuth

Returns

bool

TryGetEventStreamWebhookBearerAuth(out EventStreamWebhookBearerAuth?)

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

public bool TryGetEventStreamWebhookBearerAuth(out EventStreamWebhookBearerAuth? value)

Parameters

value EventStreamWebhookBearerAuth

Returns

bool

TryGetEventStreamWebhookCustomHeaderAuth(out EventStreamWebhookCustomHeaderAuth?)

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

public bool TryGetEventStreamWebhookCustomHeaderAuth(out EventStreamWebhookCustomHeaderAuth? value)

Parameters

value EventStreamWebhookCustomHeaderAuth

Returns

bool

Visit(Action<EventStreamWebhookBasicAuth>, Action<EventStreamWebhookBearerAuth>, Action<EventStreamWebhookCustomHeaderAuth>)

public void Visit(Action<EventStreamWebhookBasicAuth> onEventStreamWebhookBasicAuth, Action<EventStreamWebhookBearerAuth> onEventStreamWebhookBearerAuth, Action<EventStreamWebhookCustomHeaderAuth> onEventStreamWebhookCustomHeaderAuth)

Parameters

onEventStreamWebhookBasicAuth Action<EventStreamWebhookBasicAuth>
onEventStreamWebhookBearerAuth Action<EventStreamWebhookBearerAuth>
onEventStreamWebhookCustomHeaderAuth Action<EventStreamWebhookCustomHeaderAuth>

Operators

implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBasicAuth)

public static implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBasicAuth value)

Parameters

value EventStreamWebhookBasicAuth

Returns

EventStreamWebhookAuthorizationResponse

implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBearerAuth)

public static implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookBearerAuth value)

Parameters

value EventStreamWebhookBearerAuth

Returns

EventStreamWebhookAuthorizationResponse

implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookCustomHeaderAuth)

public static implicit operator EventStreamWebhookAuthorizationResponse(EventStreamWebhookCustomHeaderAuth value)

Parameters

value EventStreamWebhookCustomHeaderAuth

Returns

EventStreamWebhookAuthorizationResponse