Skip to content

flywheel.models.session_modify

SessionModify

Bases: object

age property writable

Gets the age of this SessionModify.

Returns:

Type Description
int

The age of this SessionModify

info property writable

Gets the info of this SessionModify.

Returns:

Type Description
dict(str, object)

The info of this SessionModify

label property writable

Gets the label of this SessionModify.

Returns:

Type Description
str

The label of this SessionModify

operator property writable

Gets the operator of this SessionModify.

Returns:

Type Description
str

The operator of this SessionModify

permissions property writable

Gets the permissions of this SessionModify.

Returns:

Type Description
list[RolePermission]

The permissions of this SessionModify

project property writable

Gets the project of this SessionModify.

Returns:

Type Description
str

The project of this SessionModify

project_has_template property writable

Gets the project_has_template of this SessionModify.

Returns:

Type Description
bool

The project_has_template of this SessionModify

subject property writable

Gets the subject of this SessionModify.

Returns:

Type Description
union[str,SessionEmbeddedSubject]

The subject of this SessionModify

tags property writable

Gets the tags of this SessionModify.

Returns:

Type Description
list[str]

The tags of this SessionModify

timestamp property writable

Gets the timestamp of this SessionModify.

Returns:

Type Description
datetime

The timestamp of this SessionModify

timezone property writable

Gets the timezone of this SessionModify.

Returns:

Type Description
str

The timezone of this SessionModify

weight property writable

Gets the weight of this SessionModify.

Returns:

Type Description
float

The weight of this SessionModify

__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__(timestamp=None, project=None, subject=None, timezone=None, label=None, info=None, tags=None, permissions=None, age=None, weight=None, operator=None, project_has_template=False)

SessionModify - a model defined in Swagger

Parameters:

Name Type Description Default
timestamp (datetime, optional)

, defaults to None

None
project (str, optional)

, defaults to None

None
subject (union[str, SessionEmbeddedSubject], optional)

, defaults to None

None
timezone (str, optional)

, defaults to None

None
label (str, optional)

, defaults to None

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

, defaults to None

None
tags (list[str], optional)

, defaults to None

None
permissions (list[RolePermission], optional)

, defaults to None

None
age (int, optional)

, defaults to None

None
weight (float, optional)

, defaults to None

None
operator (str, optional)

, defaults to None

None
project_has_template (bool, optional)

, defaults to False

False

__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