Skip to content

flywheel.models.file_origin

FileOrigin

Bases: object

id property writable

Gets the id of this FileOrigin.

Database ID of joined name and method

Returns:

Type Description
str

The id of this FileOrigin

method property writable

Gets the method of this FileOrigin.

Method of file origin

Returns:

Type Description
str

The method of this FileOrigin

name property writable

Gets the name of this FileOrigin.

Name of device, user or job that originated the file

Returns:

Type Description
str

The name of this FileOrigin

type property writable

Gets the type of this FileOrigin.

Type of file origin (e.g. device, user, job)

Returns:

Type Description
str

The type of this FileOrigin

via property writable

Gets the via of this FileOrigin.

Returns:

Type Description
FileVia

The via of this FileOrigin

__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, method=None, type=None, name=None, via=None)

FileOrigin - a model defined in Swagger

Parameters:

Name Type Description Default
id (str, optional)

Database ID of joined name and method, defaults to None

None
method (str, optional)

Method of file origin, defaults to None

None
type (str, optional)

Type of file origin (e.g. device, user, job), defaults to None

None
name (str, optional)

Name of device, user or job that originated the file, defaults to None

None
via (FileVia, 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