Class FlowActionAuth0
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
[JsonConverter(typeof(FlowActionAuth0.JsonConverter))]
[Serializable]
public class FlowActionAuth0
- Inheritance
-
FlowActionAuth0
- 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
AsFlowActionAuth0CreateUser()
Returns the value as a FlowActionAuth0CreateUser if Type is 'flowActionAuth0CreateUser', otherwise throws an exception.
public FlowActionAuth0CreateUser AsFlowActionAuth0CreateUser()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0CreateUser'.
AsFlowActionAuth0GetUser()
Returns the value as a FlowActionAuth0GetUser if Type is 'flowActionAuth0GetUser', otherwise throws an exception.
public FlowActionAuth0GetUser AsFlowActionAuth0GetUser()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0GetUser'.
AsFlowActionAuth0MakeCall()
Returns the value as a FlowActionAuth0MakeCall if Type is 'flowActionAuth0MakeCall', otherwise throws an exception.
public FlowActionAuth0MakeCall AsFlowActionAuth0MakeCall()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0MakeCall'.
AsFlowActionAuth0SendEmail()
Returns the value as a FlowActionAuth0SendEmail if Type is 'flowActionAuth0SendEmail', otherwise throws an exception.
public FlowActionAuth0SendEmail AsFlowActionAuth0SendEmail()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0SendEmail'.
AsFlowActionAuth0SendRequest()
Returns the value as a FlowActionAuth0SendRequest if Type is 'flowActionAuth0SendRequest', otherwise throws an exception.
public FlowActionAuth0SendRequest AsFlowActionAuth0SendRequest()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0SendRequest'.
AsFlowActionAuth0SendSms()
Returns the value as a FlowActionAuth0SendSms if Type is 'flowActionAuth0SendSms', otherwise throws an exception.
public FlowActionAuth0SendSms AsFlowActionAuth0SendSms()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0SendSms'.
AsFlowActionAuth0UpdateUser()
Returns the value as a FlowActionAuth0UpdateUser if Type is 'flowActionAuth0UpdateUser', otherwise throws an exception.
public FlowActionAuth0UpdateUser AsFlowActionAuth0UpdateUser()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'flowActionAuth0UpdateUser'.
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.
FromFlowActionAuth0CreateUser(FlowActionAuth0CreateUser)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0CreateUser value.
public static FlowActionAuth0 FromFlowActionAuth0CreateUser(FlowActionAuth0CreateUser value)
Parameters
Returns
FromFlowActionAuth0GetUser(FlowActionAuth0GetUser)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0GetUser value.
public static FlowActionAuth0 FromFlowActionAuth0GetUser(FlowActionAuth0GetUser value)
Parameters
valueFlowActionAuth0GetUser
Returns
FromFlowActionAuth0MakeCall(FlowActionAuth0MakeCall)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0MakeCall value.
public static FlowActionAuth0 FromFlowActionAuth0MakeCall(FlowActionAuth0MakeCall value)
Parameters
valueFlowActionAuth0MakeCall
Returns
FromFlowActionAuth0SendEmail(FlowActionAuth0SendEmail)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0SendEmail value.
public static FlowActionAuth0 FromFlowActionAuth0SendEmail(FlowActionAuth0SendEmail value)
Parameters
valueFlowActionAuth0SendEmail
Returns
FromFlowActionAuth0SendRequest(FlowActionAuth0SendRequest)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0SendRequest value.
public static FlowActionAuth0 FromFlowActionAuth0SendRequest(FlowActionAuth0SendRequest value)
Parameters
Returns
FromFlowActionAuth0SendSms(FlowActionAuth0SendSms)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0SendSms value.
public static FlowActionAuth0 FromFlowActionAuth0SendSms(FlowActionAuth0SendSms value)
Parameters
valueFlowActionAuth0SendSms
Returns
FromFlowActionAuth0UpdateUser(FlowActionAuth0UpdateUser)
Factory method to create a union from a Auth0.ManagementApi.FlowActionAuth0UpdateUser value.
public static FlowActionAuth0 FromFlowActionAuth0UpdateUser(FlowActionAuth0UpdateUser value)
Parameters
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsFlowActionAuth0CreateUser()
Returns true if Type is "flowActionAuth0CreateUser"
public bool IsFlowActionAuth0CreateUser()
Returns
IsFlowActionAuth0GetUser()
Returns true if Type is "flowActionAuth0GetUser"
public bool IsFlowActionAuth0GetUser()
Returns
IsFlowActionAuth0MakeCall()
Returns true if Type is "flowActionAuth0MakeCall"
public bool IsFlowActionAuth0MakeCall()
Returns
IsFlowActionAuth0SendEmail()
Returns true if Type is "flowActionAuth0SendEmail"
public bool IsFlowActionAuth0SendEmail()
Returns
IsFlowActionAuth0SendRequest()
Returns true if Type is "flowActionAuth0SendRequest"
public bool IsFlowActionAuth0SendRequest()
Returns
IsFlowActionAuth0SendSms()
Returns true if Type is "flowActionAuth0SendSms"
public bool IsFlowActionAuth0SendSms()
Returns
IsFlowActionAuth0UpdateUser()
Returns true if Type is "flowActionAuth0UpdateUser"
public bool IsFlowActionAuth0UpdateUser()
Returns
Match<T>(Func<FlowActionAuth0CreateUser, T>, Func<FlowActionAuth0GetUser, T>, Func<FlowActionAuth0UpdateUser, T>, Func<FlowActionAuth0SendRequest, T>, Func<FlowActionAuth0SendEmail, T>, Func<FlowActionAuth0SendSms, T>, Func<FlowActionAuth0MakeCall, T>)
public T Match<T>(Func<FlowActionAuth0CreateUser, T> onFlowActionAuth0CreateUser, Func<FlowActionAuth0GetUser, T> onFlowActionAuth0GetUser, Func<FlowActionAuth0UpdateUser, T> onFlowActionAuth0UpdateUser, Func<FlowActionAuth0SendRequest, T> onFlowActionAuth0SendRequest, Func<FlowActionAuth0SendEmail, T> onFlowActionAuth0SendEmail, Func<FlowActionAuth0SendSms, T> onFlowActionAuth0SendSms, Func<FlowActionAuth0MakeCall, T> onFlowActionAuth0MakeCall)
Parameters
onFlowActionAuth0CreateUserFunc<FlowActionAuth0CreateUser, T>onFlowActionAuth0GetUserFunc<FlowActionAuth0GetUser, T>onFlowActionAuth0UpdateUserFunc<FlowActionAuth0UpdateUser, T>onFlowActionAuth0SendRequestFunc<FlowActionAuth0SendRequest, T>onFlowActionAuth0SendEmailFunc<FlowActionAuth0SendEmail, T>onFlowActionAuth0SendSmsFunc<FlowActionAuth0SendSms, T>onFlowActionAuth0MakeCallFunc<FlowActionAuth0MakeCall, 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.
TryGetFlowActionAuth0CreateUser(out FlowActionAuth0CreateUser?)
Attempts to cast the value to a FlowActionAuth0CreateUser and returns true if successful.
public bool TryGetFlowActionAuth0CreateUser(out FlowActionAuth0CreateUser? value)
Parameters
Returns
TryGetFlowActionAuth0GetUser(out FlowActionAuth0GetUser?)
Attempts to cast the value to a FlowActionAuth0GetUser and returns true if successful.
public bool TryGetFlowActionAuth0GetUser(out FlowActionAuth0GetUser? value)
Parameters
valueFlowActionAuth0GetUser
Returns
TryGetFlowActionAuth0MakeCall(out FlowActionAuth0MakeCall?)
Attempts to cast the value to a FlowActionAuth0MakeCall and returns true if successful.
public bool TryGetFlowActionAuth0MakeCall(out FlowActionAuth0MakeCall? value)
Parameters
valueFlowActionAuth0MakeCall
Returns
TryGetFlowActionAuth0SendEmail(out FlowActionAuth0SendEmail?)
Attempts to cast the value to a FlowActionAuth0SendEmail and returns true if successful.
public bool TryGetFlowActionAuth0SendEmail(out FlowActionAuth0SendEmail? value)
Parameters
valueFlowActionAuth0SendEmail
Returns
TryGetFlowActionAuth0SendRequest(out FlowActionAuth0SendRequest?)
Attempts to cast the value to a FlowActionAuth0SendRequest and returns true if successful.
public bool TryGetFlowActionAuth0SendRequest(out FlowActionAuth0SendRequest? value)
Parameters
Returns
TryGetFlowActionAuth0SendSms(out FlowActionAuth0SendSms?)
Attempts to cast the value to a FlowActionAuth0SendSms and returns true if successful.
public bool TryGetFlowActionAuth0SendSms(out FlowActionAuth0SendSms? value)
Parameters
valueFlowActionAuth0SendSms
Returns
TryGetFlowActionAuth0UpdateUser(out FlowActionAuth0UpdateUser?)
Attempts to cast the value to a FlowActionAuth0UpdateUser and returns true if successful.
public bool TryGetFlowActionAuth0UpdateUser(out FlowActionAuth0UpdateUser? value)
Parameters
Returns
Visit(Action<FlowActionAuth0CreateUser>, Action<FlowActionAuth0GetUser>, Action<FlowActionAuth0UpdateUser>, Action<FlowActionAuth0SendRequest>, Action<FlowActionAuth0SendEmail>, Action<FlowActionAuth0SendSms>, Action<FlowActionAuth0MakeCall>)
public void Visit(Action<FlowActionAuth0CreateUser> onFlowActionAuth0CreateUser, Action<FlowActionAuth0GetUser> onFlowActionAuth0GetUser, Action<FlowActionAuth0UpdateUser> onFlowActionAuth0UpdateUser, Action<FlowActionAuth0SendRequest> onFlowActionAuth0SendRequest, Action<FlowActionAuth0SendEmail> onFlowActionAuth0SendEmail, Action<FlowActionAuth0SendSms> onFlowActionAuth0SendSms, Action<FlowActionAuth0MakeCall> onFlowActionAuth0MakeCall)
Parameters
onFlowActionAuth0CreateUserAction<FlowActionAuth0CreateUser>onFlowActionAuth0GetUserAction<FlowActionAuth0GetUser>onFlowActionAuth0UpdateUserAction<FlowActionAuth0UpdateUser>onFlowActionAuth0SendRequestAction<FlowActionAuth0SendRequest>onFlowActionAuth0SendEmailAction<FlowActionAuth0SendEmail>onFlowActionAuth0SendSmsAction<FlowActionAuth0SendSms>onFlowActionAuth0MakeCallAction<FlowActionAuth0MakeCall>
Operators
implicit operator FlowActionAuth0(FlowActionAuth0CreateUser)
public static implicit operator FlowActionAuth0(FlowActionAuth0CreateUser value)
Parameters
Returns
implicit operator FlowActionAuth0(FlowActionAuth0GetUser)
public static implicit operator FlowActionAuth0(FlowActionAuth0GetUser value)
Parameters
valueFlowActionAuth0GetUser
Returns
implicit operator FlowActionAuth0(FlowActionAuth0MakeCall)
public static implicit operator FlowActionAuth0(FlowActionAuth0MakeCall value)
Parameters
valueFlowActionAuth0MakeCall
Returns
implicit operator FlowActionAuth0(FlowActionAuth0SendEmail)
public static implicit operator FlowActionAuth0(FlowActionAuth0SendEmail value)
Parameters
valueFlowActionAuth0SendEmail
Returns
implicit operator FlowActionAuth0(FlowActionAuth0SendRequest)
public static implicit operator FlowActionAuth0(FlowActionAuth0SendRequest value)
Parameters
Returns
implicit operator FlowActionAuth0(FlowActionAuth0SendSms)
public static implicit operator FlowActionAuth0(FlowActionAuth0SendSms value)
Parameters
valueFlowActionAuth0SendSms
Returns
implicit operator FlowActionAuth0(FlowActionAuth0UpdateUser)
public static implicit operator FlowActionAuth0(FlowActionAuth0UpdateUser value)