Table of Contents

Class FlowActionGoogleSheetsAddRowParamsSheetId

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

AsInt()

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

public int AsInt()

Returns

int

Exceptions

ManagementException

Thrown when Type is not 'int'.

AsString()

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

public string AsString()

Returns

string

Exceptions

ManagementException

Thrown when Type is not 'string'.

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.

FromInt(int)

Factory method to create a union from a int value.

public static FlowActionGoogleSheetsAddRowParamsSheetId FromInt(int value)

Parameters

value int

Returns

FlowActionGoogleSheetsAddRowParamsSheetId

FromString(string)

Factory method to create a union from a string value.

public static FlowActionGoogleSheetsAddRowParamsSheetId FromString(string value)

Parameters

value string

Returns

FlowActionGoogleSheetsAddRowParamsSheetId

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsInt()

Returns true if Type is "int"

public bool IsInt()

Returns

bool

IsString()

Returns true if Type is "string"

public bool IsString()

Returns

bool

Match<T>(Func<int, T>, Func<string, T>)

public T Match<T>(Func<int, T> onInt, Func<string, T> onString)

Parameters

onInt Func<int, T>
onString Func<string, 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.

TryGetInt(out int?)

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

public bool TryGetInt(out int? value)

Parameters

value int?

Returns

bool

TryGetString(out string?)

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

public bool TryGetString(out string? value)

Parameters

value string

Returns

bool

Visit(Action<int>, Action<string>)

public void Visit(Action<int> onInt, Action<string> onString)

Parameters

onInt Action<int>
onString Action<string>

Operators

implicit operator FlowActionGoogleSheetsAddRowParamsSheetId(int)

public static implicit operator FlowActionGoogleSheetsAddRowParamsSheetId(int value)

Parameters

value int

Returns

FlowActionGoogleSheetsAddRowParamsSheetId

implicit operator FlowActionGoogleSheetsAddRowParamsSheetId(string)

public static implicit operator FlowActionGoogleSheetsAddRowParamsSheetId(string value)

Parameters

value string

Returns

FlowActionGoogleSheetsAddRowParamsSheetId