ObjectReference
fastagency.studio.models.base.ObjectReference #
Bases: BaseModel
check_type #
check_type() -> ObjectReference
create classmethod #
create(uuid: UUID) -> ObjectReference
Factory method to create a new instance of the class.
This method is used to create a new instance of the class with the given UUID. It is exactly the same as calling ObjectReference(uuid=uuid), but without type checking failing because of the missing type and name arguments.
| PARAMETER | DESCRIPTION |
|---|---|
uuid | The unique identifier of the object TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
ObjectReference | The new instance of the class TYPE: |
Source code in fastagency/studio/models/base.py
get_data_model classmethod #
Get the data class for the reference.
This method returns the data class that is associated with the reference class.
| RETURNS | DESCRIPTION |
|---|---|
Type[Model] | Type[BM]: The data class for the reference |
| RAISES | DESCRIPTION |
|---|---|
ValueError | If the data class is not set |