nvflare.dashboard.application.models module

class Capacity(**kwargs)[source]

Bases: Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

asdict()[source]
capacity
created_at
id
query: t.ClassVar[Query]

A SQLAlchemy query for a model. Equivalent to db.session.query(Model). Can be customized per-model by overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.

updated_at
class Client(**kwargs)[source]

Bases: CommonMixin, Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

approval_state
asdict()[source]
capacity
capacity_id
created_at
creator_id
description
download_count
id
name
organization
organization_id
query: t.ClassVar[Query]

A SQLAlchemy query for a model. Equivalent to db.session.query(Model). Can be customized per-model by overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.

updated_at
class CommonMixin[source]

Bases: object

asdict()[source]
created_at = Column(None, DateTime(), table=None, nullable=False, default=CallableColumnDefault(<function datetime.utcnow>))
description = Column(None, String(length=512), table=None, default=ScalarElementColumnDefault(''))
id = Column(None, Integer(), table=None, primary_key=True, nullable=False)
name = Column(None, String(length=512), table=None, default=ScalarElementColumnDefault(''))
updated_at = Column(None, DateTime(), table=None, onupdate=CallableColumnDefault(<function datetime.utcnow>), default=CallableColumnDefault(<function datetime.utcnow>))
class Organization(**kwargs)[source]

Bases: CommonMixin, Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

asdict()[source]
created_at
description
id
name
updated_at
class Project(**kwargs)[source]

Bases: Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

app_location
asdict()[source]
description
end_date
frozen
ha_mode
id
overseer
public
query: t.ClassVar[Query]

A SQLAlchemy query for a model. Equivalent to db.session.query(Model). Can be customized per-model by overriding query_class.

Warning

The query interface is considered legacy in SQLAlchemy. Prefer using session.execute(select()) instead.

root_cert
root_key
server1
server2
short_name
starting_date
title
class Role(**kwargs)[source]

Bases: CommonMixin, Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

created_at
description
id
name
updated_at
class User(**kwargs)[source]

Bases: CommonMixin, Model

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

approval_state
asdict()[source]
created_at
description
download_count
email
id
name
organization
organization_id
password_hash
role
role_id
updated_at