Skip to content

flywheel.models.base_compute

BaseCompute

Bases: object

config_class property writable

Gets the config_class of this BaseCompute.

Returns:

Type Description
str

The config_class of this BaseCompute

config_type property writable

Gets the config_type of this BaseCompute.

Returns:

Type Description
str

The config_type of this BaseCompute

disk_size property writable

Gets the disk_size of this BaseCompute.

Returns:

Type Description
int

The disk_size of this BaseCompute

machine_type property writable

Gets the machine_type of this BaseCompute.

Returns:

Type Description
str

The machine_type of this BaseCompute

max_compute property writable

Gets the max_compute of this BaseCompute.

Returns:

Type Description
int

The max_compute of this BaseCompute

preemptible property writable

Gets the preemptible of this BaseCompute.

Returns:

Type Description
bool

The preemptible of this BaseCompute

queue_threshold property writable

Gets the queue_threshold of this BaseCompute.

Returns:

Type Description
int

The queue_threshold of this BaseCompute

region property writable

Gets the region of this BaseCompute.

Returns:

Type Description
str

The region of this BaseCompute

swap_size property writable

Gets the swap_size of this BaseCompute.

Returns:

Type Description
str

The swap_size of this BaseCompute

tags property writable

Gets the tags of this BaseCompute.

Returns:

Type Description
dict(str, object)

The tags of this BaseCompute

zone property writable

Gets the zone of this BaseCompute.

Returns:

Type Description
str

The zone of this BaseCompute

__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__(queue_threshold=None, max_compute=None, machine_type=None, disk_size=None, swap_size='30G', preemptible=None, zone=None, region=None, tags=None, config_type=None, config_class='compute')

BaseCompute - a model defined in Swagger

Parameters:

Name Type Description Default
queue_threshold (int, optional)

, defaults to None

None
max_compute (int, optional)

, defaults to None

None
machine_type (str, optional)

, defaults to None

None
disk_size (int, optional)

, defaults to None

None
swap_size (str, optional)

, defaults to '30G'

'30G'
preemptible (bool, optional)

, defaults to None

None
zone (str, optional)

, defaults to None

None
region (str, optional)

, defaults to None

None
tags (dict(str, object), optional)

, defaults to None

None
config_type (str, optional)

, defaults to None

None
config_class (str, optional)

, defaults to 'compute'

'compute'

__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