Table of Contents

Class LogStreamSinkPatch

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

AsLogStreamDatadogSink()

Returns the value as a LogStreamDatadogSink if Type is 'logStreamDatadogSink', otherwise throws an exception.

public LogStreamDatadogSink AsLogStreamDatadogSink()

Returns

LogStreamDatadogSink

Exceptions

ManagementException

Thrown when Type is not 'logStreamDatadogSink'.

AsLogStreamHttpSink()

Returns the value as a LogStreamHttpSink if Type is 'logStreamHttpSink', otherwise throws an exception.

public LogStreamHttpSink AsLogStreamHttpSink()

Returns

LogStreamHttpSink

Exceptions

ManagementException

Thrown when Type is not 'logStreamHttpSink'.

AsLogStreamMixpanelSinkPatch()

Returns the value as a LogStreamMixpanelSinkPatch if Type is 'logStreamMixpanelSinkPatch', otherwise throws an exception.

public LogStreamMixpanelSinkPatch AsLogStreamMixpanelSinkPatch()

Returns

LogStreamMixpanelSinkPatch

Exceptions

ManagementException

Thrown when Type is not 'logStreamMixpanelSinkPatch'.

AsLogStreamSegmentSink()

Returns the value as a LogStreamSegmentSink if Type is 'logStreamSegmentSink', otherwise throws an exception.

public LogStreamSegmentSink AsLogStreamSegmentSink()

Returns

LogStreamSegmentSink

Exceptions

ManagementException

Thrown when Type is not 'logStreamSegmentSink'.

AsLogStreamSplunkSink()

Returns the value as a LogStreamSplunkSink if Type is 'logStreamSplunkSink', otherwise throws an exception.

public LogStreamSplunkSink AsLogStreamSplunkSink()

Returns

LogStreamSplunkSink

Exceptions

ManagementException

Thrown when Type is not 'logStreamSplunkSink'.

AsLogStreamSumoSink()

Returns the value as a LogStreamSumoSink if Type is 'logStreamSumoSink', otherwise throws an exception.

public LogStreamSumoSink AsLogStreamSumoSink()

Returns

LogStreamSumoSink

Exceptions

ManagementException

Thrown when Type is not 'logStreamSumoSink'.

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.

FromLogStreamDatadogSink(LogStreamDatadogSink)

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

public static LogStreamSinkPatch FromLogStreamDatadogSink(LogStreamDatadogSink value)

Parameters

value LogStreamDatadogSink

Returns

LogStreamSinkPatch

FromLogStreamHttpSink(LogStreamHttpSink)

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

public static LogStreamSinkPatch FromLogStreamHttpSink(LogStreamHttpSink value)

Parameters

value LogStreamHttpSink

Returns

LogStreamSinkPatch

FromLogStreamMixpanelSinkPatch(LogStreamMixpanelSinkPatch)

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

public static LogStreamSinkPatch FromLogStreamMixpanelSinkPatch(LogStreamMixpanelSinkPatch value)

Parameters

value LogStreamMixpanelSinkPatch

Returns

LogStreamSinkPatch

FromLogStreamSegmentSink(LogStreamSegmentSink)

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

public static LogStreamSinkPatch FromLogStreamSegmentSink(LogStreamSegmentSink value)

Parameters

value LogStreamSegmentSink

Returns

LogStreamSinkPatch

FromLogStreamSplunkSink(LogStreamSplunkSink)

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

public static LogStreamSinkPatch FromLogStreamSplunkSink(LogStreamSplunkSink value)

Parameters

value LogStreamSplunkSink

Returns

LogStreamSinkPatch

FromLogStreamSumoSink(LogStreamSumoSink)

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

public static LogStreamSinkPatch FromLogStreamSumoSink(LogStreamSumoSink value)

Parameters

value LogStreamSumoSink

Returns

LogStreamSinkPatch

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsLogStreamDatadogSink()

Returns true if Type is "logStreamDatadogSink"

public bool IsLogStreamDatadogSink()

Returns

bool

IsLogStreamHttpSink()

Returns true if Type is "logStreamHttpSink"

public bool IsLogStreamHttpSink()

Returns

bool

IsLogStreamMixpanelSinkPatch()

Returns true if Type is "logStreamMixpanelSinkPatch"

public bool IsLogStreamMixpanelSinkPatch()

Returns

bool

IsLogStreamSegmentSink()

Returns true if Type is "logStreamSegmentSink"

public bool IsLogStreamSegmentSink()

Returns

bool

IsLogStreamSplunkSink()

Returns true if Type is "logStreamSplunkSink"

public bool IsLogStreamSplunkSink()

Returns

bool

IsLogStreamSumoSink()

Returns true if Type is "logStreamSumoSink"

public bool IsLogStreamSumoSink()

Returns

bool

Match<T>(Func<LogStreamHttpSink, T>, Func<LogStreamDatadogSink, T>, Func<LogStreamSplunkSink, T>, Func<LogStreamSumoSink, T>, Func<LogStreamSegmentSink, T>, Func<LogStreamMixpanelSinkPatch, T>)

public T Match<T>(Func<LogStreamHttpSink, T> onLogStreamHttpSink, Func<LogStreamDatadogSink, T> onLogStreamDatadogSink, Func<LogStreamSplunkSink, T> onLogStreamSplunkSink, Func<LogStreamSumoSink, T> onLogStreamSumoSink, Func<LogStreamSegmentSink, T> onLogStreamSegmentSink, Func<LogStreamMixpanelSinkPatch, T> onLogStreamMixpanelSinkPatch)

Parameters

onLogStreamHttpSink Func<LogStreamHttpSink, T>
onLogStreamDatadogSink Func<LogStreamDatadogSink, T>
onLogStreamSplunkSink Func<LogStreamSplunkSink, T>
onLogStreamSumoSink Func<LogStreamSumoSink, T>
onLogStreamSegmentSink Func<LogStreamSegmentSink, T>
onLogStreamMixpanelSinkPatch Func<LogStreamMixpanelSinkPatch, 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.

TryGetLogStreamDatadogSink(out LogStreamDatadogSink?)

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

public bool TryGetLogStreamDatadogSink(out LogStreamDatadogSink? value)

Parameters

value LogStreamDatadogSink

Returns

bool

TryGetLogStreamHttpSink(out LogStreamHttpSink?)

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

public bool TryGetLogStreamHttpSink(out LogStreamHttpSink? value)

Parameters

value LogStreamHttpSink

Returns

bool

TryGetLogStreamMixpanelSinkPatch(out LogStreamMixpanelSinkPatch?)

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

public bool TryGetLogStreamMixpanelSinkPatch(out LogStreamMixpanelSinkPatch? value)

Parameters

value LogStreamMixpanelSinkPatch

Returns

bool

TryGetLogStreamSegmentSink(out LogStreamSegmentSink?)

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

public bool TryGetLogStreamSegmentSink(out LogStreamSegmentSink? value)

Parameters

value LogStreamSegmentSink

Returns

bool

TryGetLogStreamSplunkSink(out LogStreamSplunkSink?)

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

public bool TryGetLogStreamSplunkSink(out LogStreamSplunkSink? value)

Parameters

value LogStreamSplunkSink

Returns

bool

TryGetLogStreamSumoSink(out LogStreamSumoSink?)

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

public bool TryGetLogStreamSumoSink(out LogStreamSumoSink? value)

Parameters

value LogStreamSumoSink

Returns

bool

Visit(Action<LogStreamHttpSink>, Action<LogStreamDatadogSink>, Action<LogStreamSplunkSink>, Action<LogStreamSumoSink>, Action<LogStreamSegmentSink>, Action<LogStreamMixpanelSinkPatch>)

public void Visit(Action<LogStreamHttpSink> onLogStreamHttpSink, Action<LogStreamDatadogSink> onLogStreamDatadogSink, Action<LogStreamSplunkSink> onLogStreamSplunkSink, Action<LogStreamSumoSink> onLogStreamSumoSink, Action<LogStreamSegmentSink> onLogStreamSegmentSink, Action<LogStreamMixpanelSinkPatch> onLogStreamMixpanelSinkPatch)

Parameters

onLogStreamHttpSink Action<LogStreamHttpSink>
onLogStreamDatadogSink Action<LogStreamDatadogSink>
onLogStreamSplunkSink Action<LogStreamSplunkSink>
onLogStreamSumoSink Action<LogStreamSumoSink>
onLogStreamSegmentSink Action<LogStreamSegmentSink>
onLogStreamMixpanelSinkPatch Action<LogStreamMixpanelSinkPatch>

Operators

implicit operator LogStreamSinkPatch(LogStreamDatadogSink)

public static implicit operator LogStreamSinkPatch(LogStreamDatadogSink value)

Parameters

value LogStreamDatadogSink

Returns

LogStreamSinkPatch

implicit operator LogStreamSinkPatch(LogStreamHttpSink)

public static implicit operator LogStreamSinkPatch(LogStreamHttpSink value)

Parameters

value LogStreamHttpSink

Returns

LogStreamSinkPatch

implicit operator LogStreamSinkPatch(LogStreamMixpanelSinkPatch)

public static implicit operator LogStreamSinkPatch(LogStreamMixpanelSinkPatch value)

Parameters

value LogStreamMixpanelSinkPatch

Returns

LogStreamSinkPatch

implicit operator LogStreamSinkPatch(LogStreamSegmentSink)

public static implicit operator LogStreamSinkPatch(LogStreamSegmentSink value)

Parameters

value LogStreamSegmentSink

Returns

LogStreamSinkPatch

implicit operator LogStreamSinkPatch(LogStreamSplunkSink)

public static implicit operator LogStreamSinkPatch(LogStreamSplunkSink value)

Parameters

value LogStreamSplunkSink

Returns

LogStreamSinkPatch

implicit operator LogStreamSinkPatch(LogStreamSumoSink)

public static implicit operator LogStreamSinkPatch(LogStreamSumoSink value)

Parameters

value LogStreamSumoSink

Returns

LogStreamSinkPatch