flywheel.models.gear_rule
GearRule
Bases: object
all property writable
Gets the all of this GearRule.
Returns:
| Type | Description |
|---|---|
list[GearRuleCondition] | The all of this GearRule |
any property writable
Gets the any of this GearRule.
Returns:
| Type | Description |
|---|---|
list[GearRuleCondition] | The any of this GearRule |
auto_update property writable
Gets the auto_update of this GearRule.
Returns:
| Type | Description |
|---|---|
bool | The auto_update of this GearRule |
compute_provider_id property writable
Gets the compute_provider_id of this GearRule.
Returns:
| Type | Description |
|---|---|
str | The compute_provider_id of this GearRule |
config property writable
Gets the config of this GearRule.
Returns:
| Type | Description |
|---|---|
dict(str, object) | The config of this GearRule |
created property writable
Gets the created of this GearRule.
Returns:
| Type | Description |
|---|---|
datetime | The created of this GearRule |
disabled property writable
Gets the disabled of this GearRule.
Returns:
| Type | Description |
|---|---|
bool | The disabled of this GearRule |
fixed_inputs property writable
Gets the fixed_inputs of this GearRule.
Returns:
| Type | Description |
|---|---|
list[FixedFileVersionInput] | The fixed_inputs of this GearRule |
gear_id property writable
Gets the gear_id of this GearRule.
Returns:
| Type | Description |
|---|---|
str | The gear_id of this GearRule |
id property writable
Gets the id of this GearRule.
Returns:
| Type | Description |
|---|---|
str | The id of this GearRule |
last_modified_by property writable
Gets the last_modified_by of this GearRule.
Returns:
| Type | Description |
|---|---|
Origin | The last_modified_by of this GearRule |
modified property writable
Gets the modified of this GearRule.
Returns:
| Type | Description |
|---|---|
datetime | The modified of this GearRule |
name property writable
Gets the name of this GearRule.
Returns:
| Type | Description |
|---|---|
str | The name of this GearRule |
priority property writable
Gets the priority of this GearRule.
Returns:
| Type | Description |
|---|---|
JobPriority | The priority of this GearRule |
project_id property writable
Gets the project_id of this GearRule.
Returns:
| Type | Description |
|---|---|
union[str,str] | The project_id of this GearRule |
revision property writable
Gets the revision of this GearRule.
Returns:
| Type | Description |
|---|---|
int | The revision of this GearRule |
role_id property writable
Gets the role_id of this GearRule.
Returns:
| Type | Description |
|---|---|
str | The role_id of this GearRule |
tags property writable
Gets the tags of this GearRule.
Tags to be applied to jobs created when this gear rule triggers
Returns:
| Type | Description |
|---|---|
list[str] | The tags of this GearRule |
triggering_input property writable
Gets the triggering_input of this GearRule.
Returns:
| Type | Description |
|---|---|
str | The triggering_input of this GearRule |
__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__(id=None, project_id=None, gear_id=None, role_id=None, name=None, config=None, fixed_inputs=None, priority=None, auto_update=False, revision=1, any=None, all=None, _not=None, created=None, modified=None, disabled=False, compute_provider_id=None, last_modified_by=None, triggering_input=None, tags=None)
GearRule - a model defined in Swagger
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id | (str, optional) | , defaults to None | None |
project_id | (union[str, str], optional) | , defaults to None | None |
gear_id | (str, optional) | , defaults to None | None |
role_id | (str, optional) | , defaults to None | None |
name | (str, optional) | , defaults to None | None |
config | (dict(str, object), optional) | , defaults to None | None |
fixed_inputs | (list[FixedFileVersionInput], optional) | , defaults to None | None |
priority | (JobPriority, optional) | , defaults to None | None |
auto_update | (bool, optional) | , defaults to False | False |
revision | (int, optional) | , defaults to 1 | 1 |
any | (list[GearRuleCondition], optional) | , defaults to None | None |
all | (list[GearRuleCondition], optional) | , defaults to None | None |
_not | (list[GearRuleCondition], optional) | , defaults to None | None |
created | (datetime, optional) | , defaults to None | None |
modified | (datetime, optional) | , defaults to None | None |
disabled | (bool, optional) | , defaults to False | False |
compute_provider_id | (str, optional) | , defaults to None | None |
last_modified_by | (Origin, optional) | , defaults to None | None |
triggering_input | (str, optional) | , defaults to None | None |
tags | (list[str], optional) | Tags to be applied to jobs created when this gear rule triggers, 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