Skip to content

flywheel.models.auth_session_output

AuthSessionOutput

Bases: object

is_device property writable

Gets the is_device of this AuthSessionOutput.

Returns:

Type Description
bool

The is_device of this AuthSessionOutput

origin property writable

Gets the origin of this AuthSessionOutput.

Returns:

Type Description
Origin

The origin of this AuthSessionOutput

roles property writable

Gets the roles of this AuthSessionOutput.

Returns:

Type Description
list[RoleType]

The roles of this AuthSessionOutput

user_id property writable

Gets the user_id of this AuthSessionOutput.

Returns:

Type Description
str

The user_id of this AuthSessionOutput

user_is_admin property writable

Gets the user_is_admin of this AuthSessionOutput.

Returns:

Type Description
bool

The user_is_admin of this AuthSessionOutput

__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__(origin=None, user_id=None, user_is_admin=None, is_device=None, roles=None)

AuthSessionOutput - a model defined in Swagger

Parameters:

Name Type Description Default
origin (Origin, optional)

, defaults to None

None
user_id (str, optional)

, defaults to None

None
user_is_admin (bool, optional)

, defaults to None

None
is_device (bool, optional)

, defaults to None

None
roles (list[RoleType], 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