acryl-datahub-cloud 0.3.9rc6__py3-none-any.whl → 0.3.9rc8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of acryl-datahub-cloud might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acryl-datahub-cloud",
3
- "version": "0.3.9rc6",
3
+ "version": "0.3.9rc8",
4
4
  "install_requires": [
5
5
  "avro-gen3==0.7.16",
6
6
  "acryl-datahub"
@@ -10,7 +10,7 @@ from pydantic import BaseModel
10
10
  from acryl_datahub_cloud.elasticsearch.graph_service import BaseModelRow
11
11
  from datahub.emitter.mcp import MetadataChangeProposalWrapper
12
12
  from datahub.ingestion.graph.client import DataHubGraph
13
- from datahub.ingestion.graph.filters import SearchFilterRule
13
+ from datahub.ingestion.graph.filters import RawSearchFilterRule
14
14
  from datahub.metadata.schema_classes import (
15
15
  DomainPropertiesClass,
16
16
  FormAssociationClass,
@@ -149,7 +149,7 @@ class DataHubFormReportingData(FormData):
149
149
  )
150
150
  )
151
151
 
152
- def get_form_existence_or_filters(self) -> List[SearchFilterRule]:
152
+ def get_form_existence_or_filters(self) -> List[RawSearchFilterRule]:
153
153
  """
154
154
  Datasets must either have completedForms or incompleteForms assigned to
155
155
  them
@@ -10,7 +10,7 @@
10
10
 
11
11
  # This file contains classes corresponding to entity URNs.
12
12
 
13
- from typing import ClassVar, List, Optional, Type, TYPE_CHECKING, Union
13
+ from typing import ClassVar, List, Optional, Type, TYPE_CHECKING, Union, Literal
14
14
 
15
15
  import functools
16
16
  from deprecated.sphinx import deprecated as _sphinx_deprecated
@@ -25,7 +25,7 @@ if TYPE_CHECKING:
25
25
  from datahub.metadata.schema_classes import DataProductKeyClass
26
26
 
27
27
  class DataProductUrn(_SpecificUrn):
28
- ENTITY_TYPE: ClassVar[str] = "dataProduct"
28
+ ENTITY_TYPE: ClassVar[Literal["dataProduct"]] = "dataProduct"
29
29
  _URN_PARTS: ClassVar[int] = 1
30
30
 
31
31
  def __init__(self, id: Union["DataProductUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -81,7 +81,7 @@ if TYPE_CHECKING:
81
81
  from datahub.metadata.schema_classes import StructuredPropertyKeyClass
82
82
 
83
83
  class StructuredPropertyUrn(_SpecificUrn):
84
- ENTITY_TYPE: ClassVar[str] = "structuredProperty"
84
+ ENTITY_TYPE: ClassVar[Literal["structuredProperty"]] = "structuredProperty"
85
85
  _URN_PARTS: ClassVar[int] = 1
86
86
 
87
87
  def __init__(self, id: Union["StructuredPropertyUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -137,7 +137,7 @@ if TYPE_CHECKING:
137
137
  from datahub.metadata.schema_classes import EntityTypeKeyClass
138
138
 
139
139
  class EntityTypeUrn(_SpecificUrn):
140
- ENTITY_TYPE: ClassVar[str] = "entityType"
140
+ ENTITY_TYPE: ClassVar[Literal["entityType"]] = "entityType"
141
141
  _URN_PARTS: ClassVar[int] = 1
142
142
 
143
143
  def __init__(self, id: Union["EntityTypeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -193,7 +193,7 @@ if TYPE_CHECKING:
193
193
  from datahub.metadata.schema_classes import PlatformResourceKeyClass
194
194
 
195
195
  class PlatformResourceUrn(_SpecificUrn):
196
- ENTITY_TYPE: ClassVar[str] = "platformResource"
196
+ ENTITY_TYPE: ClassVar[Literal["platformResource"]] = "platformResource"
197
197
  _URN_PARTS: ClassVar[int] = 1
198
198
 
199
199
  def __init__(self, id: Union["PlatformResourceUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -249,7 +249,7 @@ if TYPE_CHECKING:
249
249
  from datahub.metadata.schema_classes import BusinessAttributeKeyClass
250
250
 
251
251
  class BusinessAttributeUrn(_SpecificUrn):
252
- ENTITY_TYPE: ClassVar[str] = "businessAttribute"
252
+ ENTITY_TYPE: ClassVar[Literal["businessAttribute"]] = "businessAttribute"
253
253
  _URN_PARTS: ClassVar[int] = 1
254
254
 
255
255
  def __init__(self, id: Union["BusinessAttributeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -305,7 +305,7 @@ if TYPE_CHECKING:
305
305
  from datahub.metadata.schema_classes import DataTypeKeyClass
306
306
 
307
307
  class DataTypeUrn(_SpecificUrn):
308
- ENTITY_TYPE: ClassVar[str] = "dataType"
308
+ ENTITY_TYPE: ClassVar[Literal["dataType"]] = "dataType"
309
309
  _URN_PARTS: ClassVar[int] = 1
310
310
 
311
311
  def __init__(self, id: Union["DataTypeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -361,7 +361,7 @@ if TYPE_CHECKING:
361
361
  from datahub.metadata.schema_classes import InviteTokenKeyClass
362
362
 
363
363
  class InviteTokenUrn(_SpecificUrn):
364
- ENTITY_TYPE: ClassVar[str] = "inviteToken"
364
+ ENTITY_TYPE: ClassVar[Literal["inviteToken"]] = "inviteToken"
365
365
  _URN_PARTS: ClassVar[int] = 1
366
366
 
367
367
  def __init__(self, id: Union["InviteTokenUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -417,7 +417,7 @@ if TYPE_CHECKING:
417
417
  from datahub.metadata.schema_classes import AssertionKeyClass
418
418
 
419
419
  class AssertionUrn(_SpecificUrn):
420
- ENTITY_TYPE: ClassVar[str] = "assertion"
420
+ ENTITY_TYPE: ClassVar[Literal["assertion"]] = "assertion"
421
421
  _URN_PARTS: ClassVar[int] = 1
422
422
 
423
423
  def __init__(self, assertion_id: Union["AssertionUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -473,7 +473,7 @@ if TYPE_CHECKING:
473
473
  from datahub.metadata.schema_classes import SchemaFieldKeyClass
474
474
 
475
475
  class SchemaFieldUrn(_SpecificUrn):
476
- ENTITY_TYPE: ClassVar[str] = "schemaField"
476
+ ENTITY_TYPE: ClassVar[Literal["schemaField"]] = "schemaField"
477
477
  _URN_PARTS: ClassVar[int] = 2
478
478
 
479
479
  def __init__(self, parent: Union["Urn", str], field_path: str, *, _allow_coercion: bool = True) -> None:
@@ -534,7 +534,7 @@ if TYPE_CHECKING:
534
534
  from datahub.metadata.schema_classes import CorpGroupKeyClass
535
535
 
536
536
  class CorpGroupUrn(_SpecificUrn):
537
- ENTITY_TYPE: ClassVar[str] = "corpGroup"
537
+ ENTITY_TYPE: ClassVar[Literal["corpGroup"]] = "corpGroup"
538
538
  _URN_PARTS: ClassVar[int] = 1
539
539
 
540
540
  def __init__(self, name: Union["CorpGroupUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -595,7 +595,7 @@ if TYPE_CHECKING:
595
595
  from datahub.metadata.schema_classes import RoleKeyClass
596
596
 
597
597
  class RoleUrn(_SpecificUrn):
598
- ENTITY_TYPE: ClassVar[str] = "role"
598
+ ENTITY_TYPE: ClassVar[Literal["role"]] = "role"
599
599
  _URN_PARTS: ClassVar[int] = 1
600
600
 
601
601
  def __init__(self, id: Union["RoleUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -651,7 +651,7 @@ if TYPE_CHECKING:
651
651
  from datahub.metadata.schema_classes import DataProcessInstanceKeyClass
652
652
 
653
653
  class DataProcessInstanceUrn(_SpecificUrn):
654
- ENTITY_TYPE: ClassVar[str] = "dataProcessInstance"
654
+ ENTITY_TYPE: ClassVar[Literal["dataProcessInstance"]] = "dataProcessInstance"
655
655
  _URN_PARTS: ClassVar[int] = 1
656
656
 
657
657
  def __init__(self, id: Union["DataProcessInstanceUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -716,7 +716,7 @@ if TYPE_CHECKING:
716
716
  from datahub.metadata.schema_classes import DataHubSecretKeyClass
717
717
 
718
718
  class DataHubSecretUrn(_SpecificUrn):
719
- ENTITY_TYPE: ClassVar[str] = "dataHubSecret"
719
+ ENTITY_TYPE: ClassVar[Literal["dataHubSecret"]] = "dataHubSecret"
720
720
  _URN_PARTS: ClassVar[int] = 1
721
721
 
722
722
  def __init__(self, id: Union["DataHubSecretUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -772,7 +772,7 @@ if TYPE_CHECKING:
772
772
  from datahub.metadata.schema_classes import DataHubPersonaKeyClass
773
773
 
774
774
  class DataHubPersonaUrn(_SpecificUrn):
775
- ENTITY_TYPE: ClassVar[str] = "dataHubPersona"
775
+ ENTITY_TYPE: ClassVar[Literal["dataHubPersona"]] = "dataHubPersona"
776
776
  _URN_PARTS: ClassVar[int] = 1
777
777
 
778
778
  def __init__(self, id: Union["DataHubPersonaUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -828,7 +828,7 @@ if TYPE_CHECKING:
828
828
  from datahub.metadata.schema_classes import MLFeatureTableKeyClass
829
829
 
830
830
  class MlFeatureTableUrn(_SpecificUrn):
831
- ENTITY_TYPE: ClassVar[str] = "mlFeatureTable"
831
+ ENTITY_TYPE: ClassVar[Literal["mlFeatureTable"]] = "mlFeatureTable"
832
832
  _URN_PARTS: ClassVar[int] = 2
833
833
 
834
834
  def __init__(self, platform: Union["DataPlatformUrn", str], name: str, *, _allow_coercion: bool = True) -> None:
@@ -882,7 +882,7 @@ if TYPE_CHECKING:
882
882
  from datahub.metadata.schema_classes import GlossaryTermKeyClass
883
883
 
884
884
  class GlossaryTermUrn(_SpecificUrn):
885
- ENTITY_TYPE: ClassVar[str] = "glossaryTerm"
885
+ ENTITY_TYPE: ClassVar[Literal["glossaryTerm"]] = "glossaryTerm"
886
886
  _URN_PARTS: ClassVar[int] = 1
887
887
 
888
888
  def __init__(self, name: Union["GlossaryTermUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -938,7 +938,7 @@ if TYPE_CHECKING:
938
938
  from datahub.metadata.schema_classes import RecommendationModuleKeyClass
939
939
 
940
940
  class RecommendationModuleUrn(_SpecificUrn):
941
- ENTITY_TYPE: ClassVar[str] = "recommendationModule"
941
+ ENTITY_TYPE: ClassVar[Literal["recommendationModule"]] = "recommendationModule"
942
942
  _URN_PARTS: ClassVar[int] = 2
943
943
 
944
944
  def __init__(self, module_id: str, identifier: str, *, _allow_coercion: bool = True) -> None:
@@ -992,7 +992,7 @@ if TYPE_CHECKING:
992
992
  from datahub.metadata.schema_classes import PostKeyClass
993
993
 
994
994
  class PostUrn(_SpecificUrn):
995
- ENTITY_TYPE: ClassVar[str] = "post"
995
+ ENTITY_TYPE: ClassVar[Literal["post"]] = "post"
996
996
  _URN_PARTS: ClassVar[int] = 1
997
997
 
998
998
  def __init__(self, id: Union["PostUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1048,7 +1048,7 @@ if TYPE_CHECKING:
1048
1048
  from datahub.metadata.schema_classes import MLPrimaryKeyKeyClass
1049
1049
 
1050
1050
  class MlPrimaryKeyUrn(_SpecificUrn):
1051
- ENTITY_TYPE: ClassVar[str] = "mlPrimaryKey"
1051
+ ENTITY_TYPE: ClassVar[Literal["mlPrimaryKey"]] = "mlPrimaryKey"
1052
1052
  _URN_PARTS: ClassVar[int] = 2
1053
1053
 
1054
1054
  def __init__(self, feature_namespace: str, name: str, *, _allow_coercion: bool = True) -> None:
@@ -1102,7 +1102,7 @@ if TYPE_CHECKING:
1102
1102
  from datahub.metadata.schema_classes import DataPlatformInstanceKeyClass
1103
1103
 
1104
1104
  class DataPlatformInstanceUrn(_SpecificUrn):
1105
- ENTITY_TYPE: ClassVar[str] = "dataPlatformInstance"
1105
+ ENTITY_TYPE: ClassVar[Literal["dataPlatformInstance"]] = "dataPlatformInstance"
1106
1106
  _URN_PARTS: ClassVar[int] = 2
1107
1107
 
1108
1108
  def __init__(self, platform: Union["DataPlatformUrn", str], instance: str, *, _allow_coercion: bool = True) -> None:
@@ -1156,7 +1156,7 @@ if TYPE_CHECKING:
1156
1156
  from datahub.metadata.schema_classes import DataHubMetricCubeKeyClass
1157
1157
 
1158
1158
  class DataHubMetricCubeUrn(_SpecificUrn):
1159
- ENTITY_TYPE: ClassVar[str] = "dataHubMetricCube"
1159
+ ENTITY_TYPE: ClassVar[Literal["dataHubMetricCube"]] = "dataHubMetricCube"
1160
1160
  _URN_PARTS: ClassVar[int] = 1
1161
1161
 
1162
1162
  def __init__(self, id: Union["DataHubMetricCubeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1212,7 +1212,7 @@ if TYPE_CHECKING:
1212
1212
  from datahub.metadata.schema_classes import QueryKeyClass
1213
1213
 
1214
1214
  class QueryUrn(_SpecificUrn):
1215
- ENTITY_TYPE: ClassVar[str] = "query"
1215
+ ENTITY_TYPE: ClassVar[Literal["query"]] = "query"
1216
1216
  _URN_PARTS: ClassVar[int] = 1
1217
1217
 
1218
1218
  def __init__(self, id: Union["QueryUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1268,7 +1268,7 @@ if TYPE_CHECKING:
1268
1268
  from datahub.metadata.schema_classes import DatasetKeyClass
1269
1269
 
1270
1270
  class DatasetUrn(_SpecificUrn):
1271
- ENTITY_TYPE: ClassVar[str] = "dataset"
1271
+ ENTITY_TYPE: ClassVar[Literal["dataset"]] = "dataset"
1272
1272
  _URN_PARTS: ClassVar[int] = 3
1273
1273
 
1274
1274
  def __init__(self, platform: Union["DataPlatformUrn", str], name: str, env: str = "PROD", *, _allow_coercion: bool = True) -> None:
@@ -1360,7 +1360,7 @@ if TYPE_CHECKING:
1360
1360
  from datahub.metadata.schema_classes import ExecutionRequestKeyClass
1361
1361
 
1362
1362
  class DataHubExecutionRequestUrn(_SpecificUrn):
1363
- ENTITY_TYPE: ClassVar[str] = "dataHubExecutionRequest"
1363
+ ENTITY_TYPE: ClassVar[Literal["dataHubExecutionRequest"]] = "dataHubExecutionRequest"
1364
1364
  _URN_PARTS: ClassVar[int] = 1
1365
1365
 
1366
1366
  def __init__(self, id: Union["DataHubExecutionRequestUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1416,7 +1416,7 @@ if TYPE_CHECKING:
1416
1416
  from datahub.metadata.schema_classes import ChartKeyClass
1417
1417
 
1418
1418
  class ChartUrn(_SpecificUrn):
1419
- ENTITY_TYPE: ClassVar[str] = "chart"
1419
+ ENTITY_TYPE: ClassVar[Literal["chart"]] = "chart"
1420
1420
  _URN_PARTS: ClassVar[int] = 2
1421
1421
 
1422
1422
  def __init__(self, dashboard_tool: str, chart_id: str, *, _allow_coercion: bool = True) -> None:
@@ -1470,7 +1470,7 @@ if TYPE_CHECKING:
1470
1470
  from datahub.metadata.schema_classes import MLModelGroupKeyClass
1471
1471
 
1472
1472
  class MlModelGroupUrn(_SpecificUrn):
1473
- ENTITY_TYPE: ClassVar[str] = "mlModelGroup"
1473
+ ENTITY_TYPE: ClassVar[Literal["mlModelGroup"]] = "mlModelGroup"
1474
1474
  _URN_PARTS: ClassVar[int] = 3
1475
1475
 
1476
1476
  def __init__(self, platform: Union["DataPlatformUrn", str], name: str, env: str = "PROD", *, _allow_coercion: bool = True) -> None:
@@ -1533,7 +1533,7 @@ if TYPE_CHECKING:
1533
1533
  from datahub.metadata.schema_classes import SubscriptionKeyClass
1534
1534
 
1535
1535
  class SubscriptionUrn(_SpecificUrn):
1536
- ENTITY_TYPE: ClassVar[str] = "subscription"
1536
+ ENTITY_TYPE: ClassVar[Literal["subscription"]] = "subscription"
1537
1537
  _URN_PARTS: ClassVar[int] = 1
1538
1538
 
1539
1539
  def __init__(self, id: Union["SubscriptionUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1589,7 +1589,7 @@ if TYPE_CHECKING:
1589
1589
  from datahub.metadata.schema_classes import AnomalyKeyClass
1590
1590
 
1591
1591
  class AnomalyUrn(_SpecificUrn):
1592
- ENTITY_TYPE: ClassVar[str] = "anomaly"
1592
+ ENTITY_TYPE: ClassVar[Literal["anomaly"]] = "anomaly"
1593
1593
  _URN_PARTS: ClassVar[int] = 1
1594
1594
 
1595
1595
  def __init__(self, id: Union["AnomalyUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1645,7 +1645,7 @@ if TYPE_CHECKING:
1645
1645
  from datahub.metadata.schema_classes import RemoteExecutorPoolKeyClass
1646
1646
 
1647
1647
  class DataHubRemoteExecutorPoolUrn(_SpecificUrn):
1648
- ENTITY_TYPE: ClassVar[str] = "dataHubRemoteExecutorPool"
1648
+ ENTITY_TYPE: ClassVar[Literal["dataHubRemoteExecutorPool"]] = "dataHubRemoteExecutorPool"
1649
1649
  _URN_PARTS: ClassVar[int] = 1
1650
1650
 
1651
1651
  def __init__(self, id: Union["DataHubRemoteExecutorPoolUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1701,7 +1701,7 @@ if TYPE_CHECKING:
1701
1701
  from datahub.metadata.schema_classes import DataJobKeyClass
1702
1702
 
1703
1703
  class DataJobUrn(_SpecificUrn):
1704
- ENTITY_TYPE: ClassVar[str] = "dataJob"
1704
+ ENTITY_TYPE: ClassVar[Literal["dataJob"]] = "dataJob"
1705
1705
  _URN_PARTS: ClassVar[int] = 2
1706
1706
 
1707
1707
  def __init__(self, flow: Union["DataFlowUrn", str], job_id: str, *, _allow_coercion: bool = True) -> None:
@@ -1773,7 +1773,7 @@ if TYPE_CHECKING:
1773
1773
  from datahub.metadata.schema_classes import DomainKeyClass
1774
1774
 
1775
1775
  class DomainUrn(_SpecificUrn):
1776
- ENTITY_TYPE: ClassVar[str] = "domain"
1776
+ ENTITY_TYPE: ClassVar[Literal["domain"]] = "domain"
1777
1777
  _URN_PARTS: ClassVar[int] = 1
1778
1778
 
1779
1779
  def __init__(self, id: Union["DomainUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1834,7 +1834,7 @@ if TYPE_CHECKING:
1834
1834
  from datahub.metadata.schema_classes import ERModelRelationshipKeyClass
1835
1835
 
1836
1836
  class ErModelRelationshipUrn(_SpecificUrn):
1837
- ENTITY_TYPE: ClassVar[str] = "erModelRelationship"
1837
+ ENTITY_TYPE: ClassVar[Literal["erModelRelationship"]] = "erModelRelationship"
1838
1838
  _URN_PARTS: ClassVar[int] = 1
1839
1839
 
1840
1840
  def __init__(self, id: Union["ErModelRelationshipUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1890,7 +1890,7 @@ if TYPE_CHECKING:
1890
1890
  from datahub.metadata.schema_classes import DataHubRoleKeyClass
1891
1891
 
1892
1892
  class DataHubRoleUrn(_SpecificUrn):
1893
- ENTITY_TYPE: ClassVar[str] = "dataHubRole"
1893
+ ENTITY_TYPE: ClassVar[Literal["dataHubRole"]] = "dataHubRole"
1894
1894
  _URN_PARTS: ClassVar[int] = 1
1895
1895
 
1896
1896
  def __init__(self, id: Union["DataHubRoleUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -1946,7 +1946,7 @@ if TYPE_CHECKING:
1946
1946
  from datahub.metadata.schema_classes import FormKeyClass
1947
1947
 
1948
1948
  class FormUrn(_SpecificUrn):
1949
- ENTITY_TYPE: ClassVar[str] = "form"
1949
+ ENTITY_TYPE: ClassVar[Literal["form"]] = "form"
1950
1950
  _URN_PARTS: ClassVar[int] = 1
1951
1951
 
1952
1952
  def __init__(self, id: Union["FormUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2002,7 +2002,7 @@ if TYPE_CHECKING:
2002
2002
  from datahub.metadata.schema_classes import DataHubAccessTokenKeyClass
2003
2003
 
2004
2004
  class DataHubAccessTokenUrn(_SpecificUrn):
2005
- ENTITY_TYPE: ClassVar[str] = "dataHubAccessToken"
2005
+ ENTITY_TYPE: ClassVar[Literal["dataHubAccessToken"]] = "dataHubAccessToken"
2006
2006
  _URN_PARTS: ClassVar[int] = 1
2007
2007
 
2008
2008
  def __init__(self, id: Union["DataHubAccessTokenUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2058,7 +2058,7 @@ if TYPE_CHECKING:
2058
2058
  from datahub.metadata.schema_classes import DataHubActionKeyClass
2059
2059
 
2060
2060
  class DataHubActionUrn(_SpecificUrn):
2061
- ENTITY_TYPE: ClassVar[str] = "dataHubAction"
2061
+ ENTITY_TYPE: ClassVar[Literal["dataHubAction"]] = "dataHubAction"
2062
2062
  _URN_PARTS: ClassVar[int] = 1
2063
2063
 
2064
2064
  def __init__(self, id: Union["DataHubActionUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2114,7 +2114,7 @@ if TYPE_CHECKING:
2114
2114
  from datahub.metadata.schema_classes import DataPlatformKeyClass
2115
2115
 
2116
2116
  class DataPlatformUrn(_SpecificUrn):
2117
- ENTITY_TYPE: ClassVar[str] = "dataPlatform"
2117
+ ENTITY_TYPE: ClassVar[Literal["dataPlatform"]] = "dataPlatform"
2118
2118
  _URN_PARTS: ClassVar[int] = 1
2119
2119
 
2120
2120
  def __init__(self, platform_name: Union["DataPlatformUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2175,7 +2175,7 @@ if TYPE_CHECKING:
2175
2175
  from datahub.metadata.schema_classes import ContainerKeyClass
2176
2176
 
2177
2177
  class ContainerUrn(_SpecificUrn):
2178
- ENTITY_TYPE: ClassVar[str] = "container"
2178
+ ENTITY_TYPE: ClassVar[Literal["container"]] = "container"
2179
2179
  _URN_PARTS: ClassVar[int] = 1
2180
2180
 
2181
2181
  def __init__(self, guid: Union["ContainerUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2231,7 +2231,7 @@ if TYPE_CHECKING:
2231
2231
  from datahub.metadata.schema_classes import TagKeyClass
2232
2232
 
2233
2233
  class TagUrn(_SpecificUrn):
2234
- ENTITY_TYPE: ClassVar[str] = "tag"
2234
+ ENTITY_TYPE: ClassVar[Literal["tag"]] = "tag"
2235
2235
  _URN_PARTS: ClassVar[int] = 1
2236
2236
 
2237
2237
  def __init__(self, name: Union["TagUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2292,7 +2292,7 @@ if TYPE_CHECKING:
2292
2292
  from datahub.metadata.schema_classes import DataHubPolicyKeyClass
2293
2293
 
2294
2294
  class DataHubPolicyUrn(_SpecificUrn):
2295
- ENTITY_TYPE: ClassVar[str] = "dataHubPolicy"
2295
+ ENTITY_TYPE: ClassVar[Literal["dataHubPolicy"]] = "dataHubPolicy"
2296
2296
  _URN_PARTS: ClassVar[int] = 1
2297
2297
 
2298
2298
  def __init__(self, id: Union["DataHubPolicyUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2348,7 +2348,7 @@ if TYPE_CHECKING:
2348
2348
  from datahub.metadata.schema_classes import ConstraintKeyClass
2349
2349
 
2350
2350
  class ConstraintUrn(_SpecificUrn):
2351
- ENTITY_TYPE: ClassVar[str] = "constraint"
2351
+ ENTITY_TYPE: ClassVar[Literal["constraint"]] = "constraint"
2352
2352
  _URN_PARTS: ClassVar[int] = 1
2353
2353
 
2354
2354
  def __init__(self, id: Union["ConstraintUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2404,7 +2404,7 @@ if TYPE_CHECKING:
2404
2404
  from datahub.metadata.schema_classes import GlossaryNodeKeyClass
2405
2405
 
2406
2406
  class GlossaryNodeUrn(_SpecificUrn):
2407
- ENTITY_TYPE: ClassVar[str] = "glossaryNode"
2407
+ ENTITY_TYPE: ClassVar[Literal["glossaryNode"]] = "glossaryNode"
2408
2408
  _URN_PARTS: ClassVar[int] = 1
2409
2409
 
2410
2410
  def __init__(self, name: Union["GlossaryNodeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2460,7 +2460,7 @@ if TYPE_CHECKING:
2460
2460
  from datahub.metadata.schema_classes import DataProcessKeyClass
2461
2461
 
2462
2462
  class DataProcessUrn(_SpecificUrn):
2463
- ENTITY_TYPE: ClassVar[str] = "dataProcess"
2463
+ ENTITY_TYPE: ClassVar[Literal["dataProcess"]] = "dataProcess"
2464
2464
  _URN_PARTS: ClassVar[int] = 3
2465
2465
 
2466
2466
  def __init__(self, name: str, orchestrator: str, env: str = "PROD", *, _allow_coercion: bool = True) -> None:
@@ -2523,7 +2523,7 @@ if TYPE_CHECKING:
2523
2523
  from datahub.metadata.schema_classes import DataHubStepStateKeyClass
2524
2524
 
2525
2525
  class DataHubStepStateUrn(_SpecificUrn):
2526
- ENTITY_TYPE: ClassVar[str] = "dataHubStepState"
2526
+ ENTITY_TYPE: ClassVar[Literal["dataHubStepState"]] = "dataHubStepState"
2527
2527
  _URN_PARTS: ClassVar[int] = 1
2528
2528
 
2529
2529
  def __init__(self, id: Union["DataHubStepStateUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2579,7 +2579,7 @@ if TYPE_CHECKING:
2579
2579
  from datahub.metadata.schema_classes import NotebookKeyClass
2580
2580
 
2581
2581
  class NotebookUrn(_SpecificUrn):
2582
- ENTITY_TYPE: ClassVar[str] = "notebook"
2582
+ ENTITY_TYPE: ClassVar[Literal["notebook"]] = "notebook"
2583
2583
  _URN_PARTS: ClassVar[int] = 2
2584
2584
 
2585
2585
  def __init__(self, notebook_tool: str, notebook_id: str, *, _allow_coercion: bool = True) -> None:
@@ -2641,7 +2641,7 @@ if TYPE_CHECKING:
2641
2641
  from datahub.metadata.schema_classes import MLFeatureKeyClass
2642
2642
 
2643
2643
  class MlFeatureUrn(_SpecificUrn):
2644
- ENTITY_TYPE: ClassVar[str] = "mlFeature"
2644
+ ENTITY_TYPE: ClassVar[Literal["mlFeature"]] = "mlFeature"
2645
2645
  _URN_PARTS: ClassVar[int] = 2
2646
2646
 
2647
2647
  def __init__(self, feature_namespace: str, name: str, *, _allow_coercion: bool = True) -> None:
@@ -2695,7 +2695,7 @@ if TYPE_CHECKING:
2695
2695
  from datahub.metadata.schema_classes import DataHubUpgradeKeyClass
2696
2696
 
2697
2697
  class DataHubUpgradeUrn(_SpecificUrn):
2698
- ENTITY_TYPE: ClassVar[str] = "dataHubUpgrade"
2698
+ ENTITY_TYPE: ClassVar[Literal["dataHubUpgrade"]] = "dataHubUpgrade"
2699
2699
  _URN_PARTS: ClassVar[int] = 1
2700
2700
 
2701
2701
  def __init__(self, id: Union["DataHubUpgradeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2751,7 +2751,7 @@ if TYPE_CHECKING:
2751
2751
  from datahub.metadata.schema_classes import DashboardKeyClass
2752
2752
 
2753
2753
  class DashboardUrn(_SpecificUrn):
2754
- ENTITY_TYPE: ClassVar[str] = "dashboard"
2754
+ ENTITY_TYPE: ClassVar[Literal["dashboard"]] = "dashboard"
2755
2755
  _URN_PARTS: ClassVar[int] = 2
2756
2756
 
2757
2757
  def __init__(self, dashboard_tool: str, dashboard_id: str, *, _allow_coercion: bool = True) -> None:
@@ -2805,7 +2805,7 @@ if TYPE_CHECKING:
2805
2805
  from datahub.metadata.schema_classes import MLModelKeyClass
2806
2806
 
2807
2807
  class MlModelUrn(_SpecificUrn):
2808
- ENTITY_TYPE: ClassVar[str] = "mlModel"
2808
+ ENTITY_TYPE: ClassVar[Literal["mlModel"]] = "mlModel"
2809
2809
  _URN_PARTS: ClassVar[int] = 3
2810
2810
 
2811
2811
  def __init__(self, platform: Union["DataPlatformUrn", str], name: str, env: str = "PROD", *, _allow_coercion: bool = True) -> None:
@@ -2868,7 +2868,7 @@ if TYPE_CHECKING:
2868
2868
  from datahub.metadata.schema_classes import IncidentKeyClass
2869
2869
 
2870
2870
  class IncidentUrn(_SpecificUrn):
2871
- ENTITY_TYPE: ClassVar[str] = "incident"
2871
+ ENTITY_TYPE: ClassVar[Literal["incident"]] = "incident"
2872
2872
  _URN_PARTS: ClassVar[int] = 1
2873
2873
 
2874
2874
  def __init__(self, id: Union["IncidentUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2924,7 +2924,7 @@ if TYPE_CHECKING:
2924
2924
  from datahub.metadata.schema_classes import GlobalSettingsKeyClass
2925
2925
 
2926
2926
  class GlobalSettingsUrn(_SpecificUrn):
2927
- ENTITY_TYPE: ClassVar[str] = "globalSettings"
2927
+ ENTITY_TYPE: ClassVar[Literal["globalSettings"]] = "globalSettings"
2928
2928
  _URN_PARTS: ClassVar[int] = 1
2929
2929
 
2930
2930
  def __init__(self, id: Union["GlobalSettingsUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -2980,7 +2980,7 @@ if TYPE_CHECKING:
2980
2980
  from datahub.metadata.schema_classes import DataHubViewKeyClass
2981
2981
 
2982
2982
  class DataHubViewUrn(_SpecificUrn):
2983
- ENTITY_TYPE: ClassVar[str] = "dataHubView"
2983
+ ENTITY_TYPE: ClassVar[Literal["dataHubView"]] = "dataHubView"
2984
2984
  _URN_PARTS: ClassVar[int] = 1
2985
2985
 
2986
2986
  def __init__(self, id: Union["DataHubViewUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3036,7 +3036,7 @@ if TYPE_CHECKING:
3036
3036
  from datahub.metadata.schema_classes import DataHubRetentionKeyClass
3037
3037
 
3038
3038
  class DataHubRetentionUrn(_SpecificUrn):
3039
- ENTITY_TYPE: ClassVar[str] = "dataHubRetention"
3039
+ ENTITY_TYPE: ClassVar[Literal["dataHubRetention"]] = "dataHubRetention"
3040
3040
  _URN_PARTS: ClassVar[int] = 2
3041
3041
 
3042
3042
  def __init__(self, entity_name: str, aspect_name: str, *, _allow_coercion: bool = True) -> None:
@@ -3090,7 +3090,7 @@ if TYPE_CHECKING:
3090
3090
  from datahub.metadata.schema_classes import OwnershipTypeKeyClass
3091
3091
 
3092
3092
  class OwnershipTypeUrn(_SpecificUrn):
3093
- ENTITY_TYPE: ClassVar[str] = "ownershipType"
3093
+ ENTITY_TYPE: ClassVar[Literal["ownershipType"]] = "ownershipType"
3094
3094
  _URN_PARTS: ClassVar[int] = 1
3095
3095
 
3096
3096
  def __init__(self, id: Union["OwnershipTypeUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3146,7 +3146,7 @@ if TYPE_CHECKING:
3146
3146
  from datahub.metadata.schema_classes import ActionRequestKeyClass
3147
3147
 
3148
3148
  class ActionRequestUrn(_SpecificUrn):
3149
- ENTITY_TYPE: ClassVar[str] = "actionRequest"
3149
+ ENTITY_TYPE: ClassVar[Literal["actionRequest"]] = "actionRequest"
3150
3150
  _URN_PARTS: ClassVar[int] = 1
3151
3151
 
3152
3152
  def __init__(self, id: Union["ActionRequestUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3202,7 +3202,7 @@ if TYPE_CHECKING:
3202
3202
  from datahub.metadata.schema_classes import RemoteExecutorGlobalConfigKeyClass
3203
3203
 
3204
3204
  class DataHubRemoteExecutorGlobalConfigUrn(_SpecificUrn):
3205
- ENTITY_TYPE: ClassVar[str] = "dataHubRemoteExecutorGlobalConfig"
3205
+ ENTITY_TYPE: ClassVar[Literal["dataHubRemoteExecutorGlobalConfig"]] = "dataHubRemoteExecutorGlobalConfig"
3206
3206
  _URN_PARTS: ClassVar[int] = 1
3207
3207
 
3208
3208
  def __init__(self, id: Union["DataHubRemoteExecutorGlobalConfigUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3258,7 +3258,7 @@ if TYPE_CHECKING:
3258
3258
  from datahub.metadata.schema_classes import DataFlowKeyClass
3259
3259
 
3260
3260
  class DataFlowUrn(_SpecificUrn):
3261
- ENTITY_TYPE: ClassVar[str] = "dataFlow"
3261
+ ENTITY_TYPE: ClassVar[Literal["dataFlow"]] = "dataFlow"
3262
3262
  _URN_PARTS: ClassVar[int] = 3
3263
3263
 
3264
3264
  def __init__(self, orchestrator: str, flow_id: str, cluster: str, *, _allow_coercion: bool = True) -> None:
@@ -3347,7 +3347,7 @@ if TYPE_CHECKING:
3347
3347
  from datahub.metadata.schema_classes import DataContractKeyClass
3348
3348
 
3349
3349
  class DataContractUrn(_SpecificUrn):
3350
- ENTITY_TYPE: ClassVar[str] = "dataContract"
3350
+ ENTITY_TYPE: ClassVar[Literal["dataContract"]] = "dataContract"
3351
3351
  _URN_PARTS: ClassVar[int] = 1
3352
3352
 
3353
3353
  def __init__(self, id: Union["DataContractUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3403,7 +3403,7 @@ if TYPE_CHECKING:
3403
3403
  from datahub.metadata.schema_classes import DataHubConnectionKeyClass
3404
3404
 
3405
3405
  class DataHubConnectionUrn(_SpecificUrn):
3406
- ENTITY_TYPE: ClassVar[str] = "dataHubConnection"
3406
+ ENTITY_TYPE: ClassVar[Literal["dataHubConnection"]] = "dataHubConnection"
3407
3407
  _URN_PARTS: ClassVar[int] = 1
3408
3408
 
3409
3409
  def __init__(self, id: Union["DataHubConnectionUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3459,7 +3459,7 @@ if TYPE_CHECKING:
3459
3459
  from datahub.metadata.schema_classes import RemoteExecutorKeyClass
3460
3460
 
3461
3461
  class DataHubRemoteExecutorUrn(_SpecificUrn):
3462
- ENTITY_TYPE: ClassVar[str] = "dataHubRemoteExecutor"
3462
+ ENTITY_TYPE: ClassVar[Literal["dataHubRemoteExecutor"]] = "dataHubRemoteExecutor"
3463
3463
  _URN_PARTS: ClassVar[int] = 1
3464
3464
 
3465
3465
  def __init__(self, id: Union["DataHubRemoteExecutorUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3515,7 +3515,7 @@ if TYPE_CHECKING:
3515
3515
  from datahub.metadata.schema_classes import MonitorKeyClass
3516
3516
 
3517
3517
  class MonitorUrn(_SpecificUrn):
3518
- ENTITY_TYPE: ClassVar[str] = "monitor"
3518
+ ENTITY_TYPE: ClassVar[Literal["monitor"]] = "monitor"
3519
3519
  _URN_PARTS: ClassVar[int] = 2
3520
3520
 
3521
3521
  def __init__(self, entity: Union["DatasetUrn", str], id: str, *, _allow_coercion: bool = True) -> None:
@@ -3576,7 +3576,7 @@ if TYPE_CHECKING:
3576
3576
  from datahub.metadata.schema_classes import CorpUserKeyClass
3577
3577
 
3578
3578
  class CorpUserUrn(_SpecificUrn):
3579
- ENTITY_TYPE: ClassVar[str] = "corpuser"
3579
+ ENTITY_TYPE: ClassVar[Literal["corpuser"]] = "corpuser"
3580
3580
  _URN_PARTS: ClassVar[int] = 1
3581
3581
 
3582
3582
  def __init__(self, username: Union["CorpUserUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3637,7 +3637,7 @@ if TYPE_CHECKING:
3637
3637
  from datahub.metadata.schema_classes import VersionSetKeyClass
3638
3638
 
3639
3639
  class VersionSetUrn(_SpecificUrn):
3640
- ENTITY_TYPE: ClassVar[str] = "versionSet"
3640
+ ENTITY_TYPE: ClassVar[Literal["versionSet"]] = "versionSet"
3641
3641
  _URN_PARTS: ClassVar[int] = 2
3642
3642
 
3643
3643
  def __init__(self, id: str, entity_type: str, *, _allow_coercion: bool = True) -> None:
@@ -3691,7 +3691,7 @@ if TYPE_CHECKING:
3691
3691
  from datahub.metadata.schema_classes import TestKeyClass
3692
3692
 
3693
3693
  class TestUrn(_SpecificUrn):
3694
- ENTITY_TYPE: ClassVar[str] = "test"
3694
+ ENTITY_TYPE: ClassVar[Literal["test"]] = "test"
3695
3695
  _URN_PARTS: ClassVar[int] = 1
3696
3696
 
3697
3697
  def __init__(self, id: Union["TestUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3747,7 +3747,7 @@ if TYPE_CHECKING:
3747
3747
  from datahub.metadata.schema_classes import DataHubIngestionSourceKeyClass
3748
3748
 
3749
3749
  class DataHubIngestionSourceUrn(_SpecificUrn):
3750
- ENTITY_TYPE: ClassVar[str] = "dataHubIngestionSource"
3750
+ ENTITY_TYPE: ClassVar[Literal["dataHubIngestionSource"]] = "dataHubIngestionSource"
3751
3751
  _URN_PARTS: ClassVar[int] = 1
3752
3752
 
3753
3753
  def __init__(self, id: Union["DataHubIngestionSourceUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3803,7 +3803,7 @@ if TYPE_CHECKING:
3803
3803
  from datahub.metadata.schema_classes import MLModelDeploymentKeyClass
3804
3804
 
3805
3805
  class MlModelDeploymentUrn(_SpecificUrn):
3806
- ENTITY_TYPE: ClassVar[str] = "mlModelDeployment"
3806
+ ENTITY_TYPE: ClassVar[Literal["mlModelDeployment"]] = "mlModelDeployment"
3807
3807
  _URN_PARTS: ClassVar[int] = 3
3808
3808
 
3809
3809
  def __init__(self, platform: Union["DataPlatformUrn", str], name: str, env: str = "PROD", *, _allow_coercion: bool = True) -> None:
@@ -3866,7 +3866,7 @@ if TYPE_CHECKING:
3866
3866
  from datahub.metadata.schema_classes import LinkPreviewKeyClass
3867
3867
 
3868
3868
  class LinkPreviewUrn(_SpecificUrn):
3869
- ENTITY_TYPE: ClassVar[str] = "linkPreview"
3869
+ ENTITY_TYPE: ClassVar[Literal["linkPreview"]] = "linkPreview"
3870
3870
  _URN_PARTS: ClassVar[int] = 1
3871
3871
 
3872
3872
  def __init__(self, id: Union["LinkPreviewUrn", str], *, _allow_coercion: bool = True) -> None:
@@ -3922,7 +3922,7 @@ if TYPE_CHECKING:
3922
3922
  from datahub.metadata.schema_classes import TelemetryKeyClass
3923
3923
 
3924
3924
  class TelemetryUrn(_SpecificUrn):
3925
- ENTITY_TYPE: ClassVar[str] = "telemetry"
3925
+ ENTITY_TYPE: ClassVar[Literal["telemetry"]] = "telemetry"
3926
3926
  _URN_PARTS: ClassVar[int] = 1
3927
3927
 
3928
3928
  def __init__(self, name: Union["TelemetryUrn", str], *, _allow_coercion: bool = True) -> None: