flywheel.models.executor_info
ExecutorInfo
Bases: object
cpu_cores property writable
Gets the cpu_cores of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
int | The cpu_cores of this ExecutorInfo |
disk_bytes property writable
Gets the disk_bytes of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
int | The disk_bytes of this ExecutorInfo |
gpu property writable
Gets the gpu of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
bool | The gpu of this ExecutorInfo |
host property writable
Gets the host of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
str | The host of this ExecutorInfo |
instance_type property writable
Gets the instance_type of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
str | The instance_type of this ExecutorInfo |
memory_bytes property writable
Gets the memory_bytes of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
int | The memory_bytes of this ExecutorInfo |
name property writable
Gets the name of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
str | The name of this ExecutorInfo |
swap_bytes property writable
Gets the swap_bytes of this ExecutorInfo.
Returns:
| Type | Description |
|---|---|
int | The swap_bytes of this ExecutorInfo |
__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__(name=None, host=None, instance_type=None, cpu_cores=None, gpu=None, memory_bytes=None, disk_bytes=None, swap_bytes=None)
ExecutorInfo - a model defined in Swagger
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name | (str, optional) | , defaults to None | None |
host | (str, optional) | , defaults to None | None |
instance_type | (str, optional) | , defaults to None | None |
cpu_cores | (int, optional) | , defaults to None | None |
gpu | (bool, optional) | , defaults to None | None |
memory_bytes | (int, optional) | , defaults to None | None |
disk_bytes | (int, optional) | , defaults to None | None |
swap_bytes | (int, 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