Skip to content

flywheel.models.device

Device

Bases: object

disabled property writable

Gets the disabled of this Device.

Returns:

Type Description
bool

The disabled of this Device

errors property writable

Gets the errors of this Device.

Returns:

Type Description
list[str]

The errors of this Device

id property writable

Gets the id of this Device.

Returns:

Type Description
str

The id of this Device

info property writable

Gets the info of this Device.

Returns:

Type Description
CommonInfo

The info of this Device

interval property writable

Gets the interval of this Device.

Returns:

Type Description
int

The interval of this Device

label property writable

Gets the label of this Device.

Returns:

Type Description
str

The label of this Device

last_seen property writable

Gets the last_seen of this Device.

Returns:

Type Description
datetime

The last_seen of this Device

name property writable

Gets the name of this Device.

Returns:

Type Description
str

The name of this Device

storage_config property writable

Gets the storage_config of this Device.

Returns:

Type Description
object

The storage_config of this Device

type property writable

Gets the type of this Device.

Returns:

Type Description
str

The type of this Device

version property writable

Gets the version of this Device.

Returns:

Type Description
str

The version of this Device

__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, last_seen=None, label=None, type=None, storage_config=None, disabled=None, version=None, name=None, interval=None, errors=None, info=None)

Device - a model defined in Swagger

Parameters:

Name Type Description Default
id (str, optional)

, defaults to None

None
last_seen (datetime, optional)

, defaults to None

None
label (str, optional)

, defaults to None

None
type (str, optional)

, defaults to None

None
storage_config (object, optional)

, defaults to None

None
disabled (bool, optional)

, defaults to None

None
version (str, optional)

, defaults to None

None
name (str, optional)

, defaults to None

None
interval (int, optional)

, defaults to None

None
errors (list[str], optional)

, defaults to None

None
info (CommonInfo, 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