grai_schemas
v1
source

SourceSpec Objects

class SourceSpec(GraiBaseModel)

Class definition of SourceSpec

Attributes:

  • id - An optional UUID of the source.
  • name - The name of the source.
  • workspace - The workspace the source belongs to.

DataSourceMixin Objects

class DataSourceMixin(GraiBaseModel)

Class definition of DataSourceMixin

Attributes:

  • data_source - The data source which created this object.

DataSourcesMixin Objects

class DataSourcesMixin(GraiBaseModel)

Class definition of DataSourcesMixin

Attributes:

  • data_sources - The data sources which created this object.

SourceV1 Objects

class SourceV1(GraiBaseModel)

Class definition of SourceV1

Attributes:

  • type - A string indicating the type of the object. In this case it is "Source".
  • version - The version of the object e.g. "v1".
  • spec - The specification of the object.

from_spec

@classmethod
def from_spec(cls, spec: Union[dict, SourceSpec]) -> "SourceV1"

Arguments:

  • spec - The specification of the object.

Returns: