Skip to main content

Module clients.dai_engine.expression

Classes

BoolExpression

class BoolExpression

Assigned value must be a bool, no greater or less than comparison possible

Methods

EqualTo

def EqualTo(self, value: bool)

NotEqualTo

def NotEqualTo(self, value: enum.Enum)

Ancestors

Cpu

class Cpu

Assigned value must be an integer

Ancestors

CreateTime

class CreateTime

Assigned value must be datetime

Ancestors

Creator

class Creator

Expression is the base class used to compose filters.

Ancestors

DeleteTime

class DeleteTime

Assigned value must be datetime

Ancestors

DisplayName

class DisplayName

Assigned values must be strings

Ancestors

EnumExpression

class EnumExpression

Assigned value must be enum, no greater or less than comparison possible

Methods

EqualTo

def EqualTo(self, value: enum.Enum)

NotEqualTo

def NotEqualTo(self, value: enum.Enum)

Ancestors

Subclasses

Expression

FilterBuilder

class FilterBuilder

FilterBuilder is used to construct filter strings for fetching DAI engines or versions

Filter is composed by adding Expressions using WithFilter

Methods

Build

def Build(self)

Builds the filter string to be passed using the client API

Returns
Filter
the composed filter string

WithFilter

def WithFilter(self, expression: Expression)

Adds expression to the filter

Arguments

Expression: Any kind of expression

Returns

FilterBuilder

Gpu

class Gpu

Assigned value must be an integer

Ancestors

MaxIdleDuration

class MaxIdleDuration

Assigned values must be strings

Ancestors

MaxRunningDuration

class MaxRunningDuration

Assigned values must be strings

Ancestors

MemoryBytes

class MemoryBytes

Assigned value is a string representation of memory size

Ancestors

Name

class Name

Expression is the base class used to compose filters.

Ancestors

NumberExpression

class NumberExpression

Assigned value must be an integer

Methods

EqualTo

def EqualTo(self, value: int)

GreaterThan

def GreaterThan(self, value: int)

GreaterThanOrEqualTo

def GreaterThanOrEqualTo(self, value: int)

LessThan

def LessThan(self, value: int)

LessThanOrEqualTo

def LessThanOrEqualTo(self, value: int)

NotEqualTo

def NotEqualTo(self, value: int)

Ancestors

Subclasses

Op

class Op(value, names=None, *, module=None, qualname=None, type=None, start=1)

Op is an enum used for specifying logical operation to be performed with filter.

Class variables

var EQUAL
var GREATER
var GREATER_OR_EQUAL
var LESS
var LESS_OR_EQUAL
var NIL
var NOT_EQUAL

Ancestors

  • enum.Enum

QuantityExpression

class QuantityExpression

Assigned value is a string representation of memory size

Methods

EqualTo

def EqualTo(self, value: str)

GreaterThan

def GreaterThan(self, value: str)

GreaterThanOrEqualTo

def GreaterThanOrEqualTo(self, value: str)

LessThan

def LessThan(self, value: str)

LessThanOrEqualTo

def LessThanOrEqualTo(self, value: str)

NotEqualTo

def NotEqualTo(self, value: str)

Ancestors

Subclasses

QuotedStringExpression

class QuotedStringExpression

Expression is the base class used to compose filters.

Methods

EqualTo

def EqualTo(self, value: str)

GreaterThan

def GreaterThan(self, value: str)

GreaterThanOrEqualTo

def GreaterThanOrEqualTo(self, value: str)

LessThan

def LessThan(self, value: str)

LessThanOrEqualTo

def LessThanOrEqualTo(self, value: str)

NotEqualTo

def NotEqualTo(self, value: str)

Ancestors

Subclasses

Reconciling

class Reconciling

Expression is the base class used to compose filters.

Ancestors

ResumeTime

class ResumeTime

Assigned value must be datetime

Ancestors

State

class State

Assigned value must be enum, no greater or less than comparison possible

Ancestors

StorageBytes

class StorageBytes

Assigned value is a string representation of memory size

Ancestors

StringExpression

class StringExpression

Assigned values must be strings

Methods

EqualTo

def EqualTo(self, value: str)

GreaterThan

def GreaterThan(self, value: str)

GreaterThanOrEqualTo

def GreaterThanOrEqualTo(self, value: str)

LessThan

def LessThan(self, value: str)

LessThanOrEqualTo

def LessThanOrEqualTo(self, value: str)

NotEqualTo

def NotEqualTo(self, value: str)

Ancestors

Subclasses

TimeExpression

class TimeExpression

Assigned value must be datetime

Methods

EqualTo

def EqualTo(self, value: datetime.datetime)

GreaterThan

def GreaterThan(self, value: datetime.datetime)

GreaterThanOrEqualTo

def GreaterThanOrEqualTo(self, value: datetime.datetime)

LessThan

def LessThan(self, value: datetime.datetime)

LessThanOrEqualTo

def LessThanOrEqualTo(self, value: datetime.datetime)

NotEqualTo

def NotEqualTo(self, value: datetime.datetime)

Ancestors

Subclasses

Uid

class Uid

Expression is the base class used to compose filters.

Ancestors

UpdateTime

class UpdateTime

Assigned value must be datetime

Ancestors

Version

class Version

Assigned values must be strings

Ancestors


Feedback