Skip to content

flywheel.models.rule

Rule

Bases: object

all property writable

Gets the all of this Rule.

Returns:

Type Description
list[RuleAny]

The all of this Rule

any property writable

Gets the any of this Rule.

Returns:

Type Description
list[RuleAny]

The any of this Rule

auto_update property writable

Gets the auto_update of this Rule.

Returns:

Type Description
bool

The auto_update of this Rule

compute_provider_id property writable

Gets the compute_provider_id of this Rule.

Unique database ID

Returns:

Type Description
str

The compute_provider_id of this Rule

config property writable

Gets the config of this Rule.

Returns:

Type Description
object

The config of this Rule

disabled property writable

Gets the disabled of this Rule.

Returns:

Type Description
bool

The disabled of this Rule

fixed_inputs property writable

Gets the fixed_inputs of this Rule.

Returns:

Type Description
list[JobInputsArrayItem]

The fixed_inputs of this Rule

gear_id property writable

Gets the gear_id of this Rule.

Returns:

Type Description
str

The gear_id of this Rule

id property writable

Gets the id of this Rule.

Returns:

Type Description
str

The id of this Rule

name property writable

Gets the name of this Rule.

Returns:

Type Description
str

The name of this Rule

project_id property writable

Gets the project_id of this Rule.

Returns:

Type Description
str

The project_id of this Rule

__contains__(key)

Checks if the given value is a key in this object

__eq__(other)

Returns true if both objects are equal

__getitem__(key)

Returns the value of key

__init__(project_id=None, gear_id=None, name=None, config=None, fixed_inputs=None, auto_update=None, any=None, all=None, _not=None, disabled=None, compute_provider_id=None, id=None)

Rule - a model defined in Swagger

Parameters:

Name Type Description Default
project_id (str, optional)

, defaults to None

None
gear_id (str, optional)

, defaults to None

None
name (str, optional)

, defaults to None

None
config (object, optional)

, defaults to None

None
fixed_inputs (list[JobInputsArrayItem], optional)

, defaults to None

None
auto_update (bool, optional)

, defaults to None

None
any (list[RuleAny], optional)

, defaults to None

None
all (list[RuleAny], optional)

, defaults to None

None
_not (list[RuleAny], optional)

, defaults to None

None
disabled (bool, optional)

, defaults to None

None
compute_provider_id (str, optional)

Unique database ID, defaults to None

None
id (str, optional)

, defaults to None

None

__ne__(other)

Returns true if both objects are not equal

__repr__()

For print and pprint

__setitem__(key, value)

Sets the value of key

get(key, default=None)

Get the value of the provided json property, or default

items()

Returns the list of json property to value mapping

keys()

Returns the list of json properties in the object

positional_to_model(value) staticmethod

Converts a positional argument to a model value

return_value()

Unwraps return value from model

to_dict()

Returns the model properties as a dict

to_str()

Returns the string representation of the model

values()

Returns the list of values in the object