URNs
- class datahub.metadata.urns.AssertionUrn(assertion_id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
assertion_id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'assertion'
-
URN_PARTS:
ClassVar
[int
] = 1
- property assertion_id: str
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
AssertionKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.ChartUrn(dashboard_tool, chart_id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
dashboard_tool (
str
)chart_id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'chart'
-
URN_PARTS:
ClassVar
[int
] = 2
- property chart_id: str
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property dashboard_tool: str
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
ChartKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.ContainerUrn(guid, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
guid (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'container'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
ContainerKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property guid: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.CorpGroupUrn(name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'corpGroup'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_id(id)
Deprecated since version 0.12.0.2: Use the constructor instead
- Parameters:
id (
str
)- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
CorpGroupKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.CorpUserUrn(username, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
username (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'corpuser'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_id(id)
Deprecated since version 0.12.0.2: Use the constructor instead
- Parameters:
id (
str
)- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
CorpUserKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- property username: str
- class datahub.metadata.urns.DashboardUrn(dashboard_tool, dashboard_id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
dashboard_tool (
str
)dashboard_id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dashboard'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property dashboard_id: str
- property dashboard_tool: str
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DashboardKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataContractUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataContract'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataContractKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataFlowUrn(orchestrator, flow_id, cluster, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
orchestrator (
str
)flow_id (
str
)cluster (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataFlow'
-
URN_PARTS:
ClassVar
[int
] = 3
- property cluster: str
- classmethod create_from_ids(orchestrator, flow_id, env, platform_instance=None)
- Parameters:
orchestrator (
str
)flow_id (
str
)env (
str
)platform_instance (
Optional
[str
])
- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property flow_id: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataFlowKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- get_env()
Deprecated since version 0.12.0.2: Use .cluster instead
- Return type:
str
- get_flow_id()
Deprecated since version 0.12.0.2: Use .flow_id instead
- Return type:
str
- get_orchestrator_name()
Deprecated since version 0.12.0.2: Use .orchestrator instead
- Return type:
str
- property orchestrator: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataHubRoleUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataHubRole'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataHubRoleKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataHubViewUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataHubView'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataHubViewKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataJobUrn(flow, job_id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
flow (
str
)job_id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataJob'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_ids(data_flow_urn, job_id)
- Parameters:
data_flow_urn (
str
)job_id (
str
)
- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property flow: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataJobKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- get_data_flow_urn()
- Return type:
- get_job_id()
Deprecated since version 0.12.0.2: Use .job_id instead
- Return type:
str
- property job_id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataPlatformUrn(platform_name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
platform_name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataPlatform'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_id(id)
Deprecated since version 0.12.0.2: Use the constructor instead
- Parameters:
id (
str
)- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataPlatformKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property platform_name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataProcessInstanceUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataProcessInstance'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_id(id)
Deprecated since version 0.12.0.2: Use the constructor instead
- Parameters:
id (
str
)- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataProcessInstanceKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- get_dataprocessinstance_id()
Deprecated since version 0.12.0.2: Use .id instead
- Return type:
str
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataProcessUrn(name, orchestrator, env='PROD', *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
name (
str
)orchestrator (
str
)env (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataProcess'
-
URN_PARTS:
ClassVar
[int
] = 3
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property env: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataProcessKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- property orchestrator: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DataProductUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataProduct'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DataProductKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DatasetUrn(platform, name, env='PROD', *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
platform (
str
)name (
str
)env (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'dataset'
-
URN_PARTS:
ClassVar
[int
] = 3
- classmethod create_from_ids(platform_id, table_name, env, platform_instance=None)
- Parameters:
platform_id (
str
)table_name (
str
)env (
str
)platform_instance (
Optional
[str
])
- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property env: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DatasetKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- get_data_platform_urn()
- Return type:
- get_dataset_name()
Deprecated since version 0.12.0.2: Use .name instead
- Return type:
str
- get_env()
Deprecated since version 0.12.0.2: Use .env instead
- Return type:
str
- static get_simple_field_path_from_v2_field_path()
A helper function to extract simple . path notation from the v2 field path
Deprecated since version 0.12.0.2: Use the function from the field_paths module instead
- Parameters:
field_path (
str
)- Return type:
str
- property name: str
- property platform: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.DomainUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'domain'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_id(id)
Deprecated since version 0.12.0.2: Use the constructor instead
- Parameters:
id (
str
)- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
DomainKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.GlossaryNodeUrn(name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'glossaryNode'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
GlossaryNodeKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.GlossaryTermUrn(name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'glossaryTerm'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
GlossaryTermKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.MlFeatureTableUrn(platform, name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
platform (
str
)name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'mlFeatureTable'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
MLFeatureTableKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- property platform: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.MlFeatureUrn(feature_namespace, name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
feature_namespace (
str
)name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'mlFeature'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property feature_namespace: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
MLFeatureKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.MlModelDeploymentUrn(platform, name, env='PROD', *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
platform (
str
)name (
str
)env (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'mlModelDeployment'
-
URN_PARTS:
ClassVar
[int
] = 3
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property env: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
MLModelDeploymentKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- property platform: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.MlModelGroupUrn(platform, name, env='PROD', *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
platform (
str
)name (
str
)env (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'mlModelGroup'
-
URN_PARTS:
ClassVar
[int
] = 3
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property env: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
MLModelGroupKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- property platform: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.MlModelUrn(platform, name, env='PROD', *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
platform (
str
)name (
str
)env (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'mlModel'
-
URN_PARTS:
ClassVar
[int
] = 3
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property env: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
MLModelKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- property platform: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.MlPrimaryKeyUrn(feature_namespace, name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
feature_namespace (
str
)name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'mlPrimaryKey'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property feature_namespace: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
MLPrimaryKeyKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.NotebookUrn(notebook_tool, notebook_id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
notebook_tool (
str
)notebook_id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'notebook'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
NotebookKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- get_notebook_id()
Deprecated since version 0.12.0.2: Use .notebook_id instead
- Return type:
str
- get_platform_id()
Deprecated since version 0.12.0.2: Use .notebook_tool instead
- Return type:
str
- property notebook_id: str
- property notebook_tool: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.OwnershipTypeUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'ownershipType'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
OwnershipTypeKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.PostUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'post'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
PostKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.QueryUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'query'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
QueryKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.RoleUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'role'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
RoleKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.SchemaFieldUrn(parent, field_path, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
parent (
str
)field_path (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'schemaField'
-
URN_PARTS:
ClassVar
[int
] = 2
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- property field_path: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
SchemaFieldKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property parent: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.TagUrn(name, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
name (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'tag'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_id(id)
Deprecated since version 0.12.0.2: Use the constructor instead
- Parameters:
id (
str
)- Return type:
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
TagKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property name: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.TestUrn(id, *, _allow_coercion=True)
Bases:
_SpecificUrn
- Parameters:
id (
str
)_allow_coercion (
bool
)
-
ENTITY_TYPE:
ClassVar
[str
] = 'test'
-
URN_PARTS:
ClassVar
[int
] = 1
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_key_aspect(key_aspect)
- Parameters:
key_aspect (
TestKeyClass
)- Return type:
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- property id: str
- to_key_aspect()
- Return type:
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str
- class datahub.metadata.urns.Urn(entity_type, entity_id)
Bases:
object
URNs are globally unique identifiers used to refer to entities.
It will be in format of urn:li:<type>:<id> or urn:li:<type>:(<id1>,<id2>,…)
A note on encoding: certain characters, particularly commas and parentheses, are not allowed in string portions of the URN. However, these are allowed when the urn has another urn embedded within it. The main URN class ignores this possibility, and assumes that the user provides a valid URN string. However, the specific URN classes, such as DatasetUrn, will automatically encode these characters using url-encoding when the URN is created and _allow_coercion is enabled (the default). However, all from_string methods will try to preserve the string as-is, and will raise an error if the string is invalid.
- Parameters:
entity_type (
str
)entity_id (
List
[str
])
- classmethod create_from_string(urn_str)
- Parameters:
urn_str (
str
)- Return type:
TypeVar
(_UrnSelf
, bound= Urn)
- property entity_ids: List[str]
- property entity_type: str
- classmethod from_string(urn_str)
Creates an Urn from its string representation.
- Parameters:
urn_str (
str
) – The string representation of the Urn.- Return type:
TypeVar
(_UrnSelf
, bound= Urn)- Returns:
Urn of the given string representation.
- Raises:
InvalidUrnError – If the string representation is in invalid format.
- urn()
Get the string representation of the urn.
- Return type:
str
- urn_url_encoded()
- Return type:
str