1.16.14

flytekit.models.core.condition

Directory

Classes

Class Description
BooleanExpression
ComparisonExpression
ConjunctionExpression
Operand

flytekit.models.core.condition.BooleanExpression

class BooleanExpression(
    conjunction,
    comparison,
)

Defines a boolean expression tree. It can be a simple or a conjunction expression. Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.

Parameter Type Description
conjunction
comparison

Properties

Property Type Description
comparison None Comparison expression or None if not set. :rtype: ComparisonExpression
conjunction None Conjunction expression or None if not set. :rtype: ConjunctionExpression
is_empty None

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.condition_pb2.BooleanExpression

flytekit.models.core.condition.ComparisonExpression

class ComparisonExpression(
    operator,
    left_value,
    right_value,
)

Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. Each expression results in a boolean result.

Parameter Type Description
operator
left_value
right_value

Properties

Property Type Description
is_empty None
left_value None Gets the left value for the comparison expression. :rtype: Operand
operator None Gets the operator representing this comparison expression. :rtype: ComparisonExpression.Operator
right_value None Gets the right value for the comparison expression. :rtype: Operand

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.condition_pb2.ComparisonExpression

flytekit.models.core.condition.ConjunctionExpression

class ConjunctionExpression(
    operator,
    left_expression,
    right_expression,
)

Defines a conjunction expression of two boolean expressions.

Parameter Type Description
operator
left_expression
right_expression

Properties

Property Type Description
is_empty None
left_expression None Gets the left value for the conjunction expression. :rtype: Operand
operator None Gets the operator representing this conjunction expression. :rtype: ConjunctionExpression.LogicalOperator
right_expression None Gets the right value for the conjunction expression. :rtype: Operand

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.condition_pb2.ConjunctionExpression

flytekit.models.core.condition.Operand

class Operand(
    primitive,
    var,
    scalar,
)

Defines an operand to a comparison expression.

Parameter Type Description
primitive
var
scalar

Properties

Property Type Description
is_empty None
primitive None :rtype: flytekit.models.literals.Primitive
scalar None :rtype: flytekit.models.literals.Scalar
var None :rtype: Text

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.condition_pb2.Operand