Skip to content

flywheel.models.job_executor_info

JobExecutorInfo

Bases: object

cpu_cores property writable

Gets the cpu_cores of this JobExecutorInfo.

The number of CPU cores

Returns:

Type Description
int

The cpu_cores of this JobExecutorInfo

disk_bytes property writable

Gets the disk_bytes of this JobExecutorInfo.

The size of the hard disk on the system, in bytes

Returns:

Type Description
int

The disk_bytes of this JobExecutorInfo

gpu property writable

Gets the gpu of this JobExecutorInfo.

Whether or not a GPU is available

Returns:

Type Description
bool

The gpu of this JobExecutorInfo

host property writable

Gets the host of this JobExecutorInfo.

The hostname or (more likely) IP address of the engine instance

Returns:

Type Description
str

The host of this JobExecutorInfo

instance_type property writable

Gets the instance_type of this JobExecutorInfo.

A free form string describing the instance type

Returns:

Type Description
str

The instance_type of this JobExecutorInfo

memory_bytes property writable

Gets the memory_bytes of this JobExecutorInfo.

The amount of memory on the system, in bytes

Returns:

Type Description
int

The memory_bytes of this JobExecutorInfo

name property writable

Gets the name of this JobExecutorInfo.

A machine or instance name, possibly a FQDN

Returns:

Type Description
str

The name of this JobExecutorInfo

swap_bytes property writable

Gets the swap_bytes of this JobExecutorInfo.

The available swap space, in bytes

Returns:

Type Description
int

The swap_bytes of this JobExecutorInfo

__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)

JobExecutorInfo - a model defined in Swagger

Parameters:

Name Type Description Default
name (str, optional)

A machine or instance name, possibly a FQDN, defaults to None

None
host (str, optional)

The hostname or (more likely) IP address of the engine instance, defaults to None

None
instance_type (str, optional)

A free form string describing the instance type, defaults to None

None
cpu_cores (int, optional)

The number of CPU cores, defaults to None

None
gpu (bool, optional)

Whether or not a GPU is available, defaults to None

None
memory_bytes (int, optional)

The amount of memory on the system, in bytes, defaults to None

None
disk_bytes (int, optional)

The size of the hard disk on the system, in bytes, defaults to None

None
swap_bytes (int, optional)

The available swap space, in bytes, 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