grai_source_looker
adapters

build_grai_metadata

@multimethod
def build_grai_metadata(current: Any, desired: Any) -> None

Arguments:

current: desired:

Returns:

build_grai_metadata_from_dashboard

@build_grai_metadata.register
def build_grai_metadata_from_dashboard(current: Dashboard,
                                       version: Literal["v1"] = "v1"
                                       ) -> TableMetadata

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_grai_metadata_from_query

@build_grai_metadata.register
def build_grai_metadata_from_query(current: Query,
                                   version: Literal["v1"] = "v1"
                                   ) -> ColumnMetadata

Arguments:

current (Query):

  • version Literal["v1"], optional - (Default value = "v1")

Returns:

build_grai_metadata_from_explore

@build_grai_metadata.register
def build_grai_metadata_from_explore(current: Explore,
                                     version: Literal["v1"] = "v1"
                                     ) -> TableMetadata

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_grai_metadata_from_dimension

@build_grai_metadata.register
def build_grai_metadata_from_dimension(current: Dimension,
                                       version: Literal["v1"] = "v1"
                                       ) -> ColumnMetadata

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_grai_metadata_from_edge

@build_grai_metadata.register
def build_grai_metadata_from_edge(current: Edge,
                                  version: Literal["v1"] = "v1"
                                  ) -> BaseEdgeMetadataV1

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_app_metadata

@multimethod
def build_app_metadata(current: Any, desired: Any) -> None

Arguments:

current: desired:

Returns:

build_metadata_from_dashboard

@build_app_metadata.register
def build_metadata_from_dashboard(current: Dashboard,
                                  version: Literal["v1"] = "v1") -> Dict

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata_from_query

@build_app_metadata.register
def build_metadata_from_query(current: Query,
                              version: Literal["v1"] = "v1") -> Dict

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata_from_explore

@build_app_metadata.register
def build_metadata_from_explore(current: Explore,
                                version: Literal["v1"] = "v1") -> Dict

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata_from_dimension

@build_app_metadata.register
def build_metadata_from_dimension(current: Dimension,
                                  version: Literal["v1"] = "v1") -> Dict

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata_from_edge

@build_app_metadata.register
def build_metadata_from_edge(current: Edge,
                             version: Literal["v1"] = "v1") -> Dict

Arguments:

current:

  • version - (Default value = "v1")

Returns:

build_metadata

def build_metadata(obj, version)

Arguments:

obj: version:

Returns:

adapt_to_client

@multimethod
def adapt_to_client(current: Any, desired: Any)

Arguments:

current: desired:

Returns:

adapt_dashboard_to_client

@adapt_to_client.register
def adapt_dashboard_to_client(current: Dashboard, source: SourceSpec,
                              version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_query_to_client

@adapt_to_client.register
def adapt_query_to_client(current: Query, source: SourceSpec,
                          version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_explore_to_client

@adapt_to_client.register
def adapt_explore_to_client(current: Explore, source: SourceSpec,
                            version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_dimension_to_client

@adapt_to_client.register
def adapt_dimension_to_client(current: Dimension, source: SourceSpec,
                              version: Literal["v1"]) -> SourcedNodeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

make_name

def make_name(node1: ID, node2: ID) -> str

Arguments:

node1: node2:

Returns:

adapt_edge_to_client

@adapt_to_client.register
def adapt_edge_to_client(current: Edge, source: SourceSpec,
                         version: Literal["v1"]) -> SourcedEdgeV1

Arguments:

current: source:

  • version - (Default value = "v1")

Returns:

adapt_list_to_client

@adapt_to_client.register
def adapt_list_to_client(
        objs: List, source: SourceSpec,
        version: Literal["v1"]) -> List[Union[SourcedNodeV1, SourcedEdgeV1]]

Arguments:

objs: source: version:

Returns: