qunicorn_core.db.models.provider module

class qunicorn_core.db.models.provider.ProviderDataclass(name, with_token, qprov_id=None)

Bases: DbModel

Dataclass for storing Providers

Attributes:

id (int): The id of a provider. (set by the database) name (str): Name of the cloud service. with_token (bool): If authentication is needed and can be done by passing a token this attribute is true. supported_languages (List[str]): The programming languages that are supported by this provider.

(WARNING: Cannot be set in constructor!)

devices: Mapped[List[DeviceDataclass]]
classmethod get_by_name(name: str)

Returns all providers matching the given name

id: Mapped[int]
name: Mapped[str]
qprov_id: Mapped[UUID | None]
supported_languages: AssociationProxy[List[str]] = ColumnAssociationProxyInstance(AssociationProxy('_supported_languages', 'language'))
with_token: Mapped[bool]