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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsLogStreamDatadogSink()
Returns the value as a LogStreamDatadogSink if Type is 'logStreamDatadogSink', otherwise throws an exception.
public LogStreamDatadogSink AsLogStreamDatadogSink()
Returns
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
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
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
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
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
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
objobjectThe 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
valueLogStreamDatadogSink
Returns
FromLogStreamHttpSink(LogStreamHttpSink)
Factory method to create a union from a Auth0.ManagementApi.LogStreamHttpSink value.
public static LogStreamSinkPatch FromLogStreamHttpSink(LogStreamHttpSink value)
Parameters
valueLogStreamHttpSink
Returns
FromLogStreamMixpanelSinkPatch(LogStreamMixpanelSinkPatch)
Factory method to create a union from a Auth0.ManagementApi.LogStreamMixpanelSinkPatch value.
public static LogStreamSinkPatch FromLogStreamMixpanelSinkPatch(LogStreamMixpanelSinkPatch value)
Parameters
Returns
FromLogStreamSegmentSink(LogStreamSegmentSink)
Factory method to create a union from a Auth0.ManagementApi.LogStreamSegmentSink value.
public static LogStreamSinkPatch FromLogStreamSegmentSink(LogStreamSegmentSink value)
Parameters
valueLogStreamSegmentSink
Returns
FromLogStreamSplunkSink(LogStreamSplunkSink)
Factory method to create a union from a Auth0.ManagementApi.LogStreamSplunkSink value.
public static LogStreamSinkPatch FromLogStreamSplunkSink(LogStreamSplunkSink value)
Parameters
valueLogStreamSplunkSink
Returns
FromLogStreamSumoSink(LogStreamSumoSink)
Factory method to create a union from a Auth0.ManagementApi.LogStreamSumoSink value.
public static LogStreamSinkPatch FromLogStreamSumoSink(LogStreamSumoSink value)
Parameters
valueLogStreamSumoSink
Returns
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
IsLogStreamHttpSink()
Returns true if Type is "logStreamHttpSink"
public bool IsLogStreamHttpSink()
Returns
IsLogStreamMixpanelSinkPatch()
Returns true if Type is "logStreamMixpanelSinkPatch"
public bool IsLogStreamMixpanelSinkPatch()
Returns
IsLogStreamSegmentSink()
Returns true if Type is "logStreamSegmentSink"
public bool IsLogStreamSegmentSink()
Returns
IsLogStreamSplunkSink()
Returns true if Type is "logStreamSplunkSink"
public bool IsLogStreamSplunkSink()
Returns
IsLogStreamSumoSink()
Returns true if Type is "logStreamSumoSink"
public bool IsLogStreamSumoSink()
Returns
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
onLogStreamHttpSinkFunc<LogStreamHttpSink, T>onLogStreamDatadogSinkFunc<LogStreamDatadogSink, T>onLogStreamSplunkSinkFunc<LogStreamSplunkSink, T>onLogStreamSumoSinkFunc<LogStreamSumoSink, T>onLogStreamSegmentSinkFunc<LogStreamSegmentSink, T>onLogStreamMixpanelSinkPatchFunc<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
valueLogStreamDatadogSink
Returns
TryGetLogStreamHttpSink(out LogStreamHttpSink?)
Attempts to cast the value to a LogStreamHttpSink and returns true if successful.
public bool TryGetLogStreamHttpSink(out LogStreamHttpSink? value)
Parameters
valueLogStreamHttpSink
Returns
TryGetLogStreamMixpanelSinkPatch(out LogStreamMixpanelSinkPatch?)
Attempts to cast the value to a LogStreamMixpanelSinkPatch and returns true if successful.
public bool TryGetLogStreamMixpanelSinkPatch(out LogStreamMixpanelSinkPatch? value)
Parameters
Returns
TryGetLogStreamSegmentSink(out LogStreamSegmentSink?)
Attempts to cast the value to a LogStreamSegmentSink and returns true if successful.
public bool TryGetLogStreamSegmentSink(out LogStreamSegmentSink? value)
Parameters
valueLogStreamSegmentSink
Returns
TryGetLogStreamSplunkSink(out LogStreamSplunkSink?)
Attempts to cast the value to a LogStreamSplunkSink and returns true if successful.
public bool TryGetLogStreamSplunkSink(out LogStreamSplunkSink? value)
Parameters
valueLogStreamSplunkSink
Returns
TryGetLogStreamSumoSink(out LogStreamSumoSink?)
Attempts to cast the value to a LogStreamSumoSink and returns true if successful.
public bool TryGetLogStreamSumoSink(out LogStreamSumoSink? value)
Parameters
valueLogStreamSumoSink
Returns
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
onLogStreamHttpSinkAction<LogStreamHttpSink>onLogStreamDatadogSinkAction<LogStreamDatadogSink>onLogStreamSplunkSinkAction<LogStreamSplunkSink>onLogStreamSumoSinkAction<LogStreamSumoSink>onLogStreamSegmentSinkAction<LogStreamSegmentSink>onLogStreamMixpanelSinkPatchAction<LogStreamMixpanelSinkPatch>
Operators
implicit operator LogStreamSinkPatch(LogStreamDatadogSink)
public static implicit operator LogStreamSinkPatch(LogStreamDatadogSink value)
Parameters
valueLogStreamDatadogSink
Returns
implicit operator LogStreamSinkPatch(LogStreamHttpSink)
public static implicit operator LogStreamSinkPatch(LogStreamHttpSink value)
Parameters
valueLogStreamHttpSink
Returns
implicit operator LogStreamSinkPatch(LogStreamMixpanelSinkPatch)
public static implicit operator LogStreamSinkPatch(LogStreamMixpanelSinkPatch value)
Parameters
Returns
implicit operator LogStreamSinkPatch(LogStreamSegmentSink)
public static implicit operator LogStreamSinkPatch(LogStreamSegmentSink value)
Parameters
valueLogStreamSegmentSink
Returns
implicit operator LogStreamSinkPatch(LogStreamSplunkSink)
public static implicit operator LogStreamSinkPatch(LogStreamSplunkSink value)
Parameters
valueLogStreamSplunkSink
Returns
implicit operator LogStreamSinkPatch(LogStreamSumoSink)
public static implicit operator LogStreamSinkPatch(LogStreamSumoSink value)
Parameters
valueLogStreamSumoSink