acryl-datahub-cloud 0.3.13rc3__py3-none-any.whl → 0.3.13rc4__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.

Files changed (33) hide show
  1. acryl_datahub_cloud/_codegen_config.json +1 -1
  2. acryl_datahub_cloud/metadata/_urns/urn_defs.py +56 -0
  3. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/actionworkflow/__init__.py +53 -0
  4. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/assertion/__init__.py +0 -2
  5. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/metadata/key/__init__.py +2 -0
  6. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/module/__init__.py +0 -4
  7. acryl_datahub_cloud/metadata/schema.avsc +732 -291
  8. acryl_datahub_cloud/metadata/schema_classes.py +1077 -280
  9. acryl_datahub_cloud/metadata/schemas/ActionRequestInfo.avsc +136 -1
  10. acryl_datahub_cloud/metadata/schemas/ActionWorkflowInfo.avsc +683 -0
  11. acryl_datahub_cloud/metadata/schemas/ActionWorkflowKey.avsc +21 -0
  12. acryl_datahub_cloud/metadata/schemas/AssertionAnalyticsRunEvent.avsc +0 -46
  13. acryl_datahub_cloud/metadata/schemas/AssertionInfo.avsc +0 -25
  14. acryl_datahub_cloud/metadata/schemas/AssertionRunEvent.avsc +0 -25
  15. acryl_datahub_cloud/metadata/schemas/CorpUserSettings.avsc +1 -10
  16. acryl_datahub_cloud/metadata/schemas/DataHubPageModuleProperties.avsc +7 -88
  17. acryl_datahub_cloud/metadata/schemas/DatasetKey.avsc +0 -1
  18. acryl_datahub_cloud/metadata/schemas/GlobalSettingsInfo.avsc +0 -9
  19. acryl_datahub_cloud/metadata/schemas/MetadataChangeEvent.avsc +136 -19
  20. acryl_datahub_cloud/metadata/schemas/MetadataChangeLog.avsc +44 -62
  21. acryl_datahub_cloud/metadata/schemas/MetadataChangeProposal.avsc +0 -61
  22. acryl_datahub_cloud/metadata/schemas/MonitorInfo.avsc +0 -25
  23. acryl_datahub_cloud/metadata/schemas/NotificationRequest.avsc +4 -0
  24. acryl_datahub_cloud/metadata/schemas/QuerySubjects.avsc +12 -1
  25. acryl_datahub_cloud/metadata/schemas/SchemaFieldKey.avsc +0 -1
  26. acryl_datahub_cloud/metadata/schemas/SystemMetadata.avsc +0 -61
  27. {acryl_datahub_cloud-0.3.13rc3.dist-info → acryl_datahub_cloud-0.3.13rc4.dist-info}/METADATA +52 -52
  28. {acryl_datahub_cloud-0.3.13rc3.dist-info → acryl_datahub_cloud-0.3.13rc4.dist-info}/RECORD +31 -30
  29. acryl_datahub_cloud/metadata/com/linkedin/pegasus2avro/logical/__init__.py +0 -15
  30. acryl_datahub_cloud/metadata/schemas/LogicalParent.avsc +0 -140
  31. {acryl_datahub_cloud-0.3.13rc3.dist-info → acryl_datahub_cloud-0.3.13rc4.dist-info}/WHEEL +0 -0
  32. {acryl_datahub_cloud-0.3.13rc3.dist-info → acryl_datahub_cloud-0.3.13rc4.dist-info}/entry_points.txt +0 -0
  33. {acryl_datahub_cloud-0.3.13rc3.dist-info → acryl_datahub_cloud-0.3.13rc4.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acryl-datahub-cloud",
3
- "version": "0.3.13rc3",
3
+ "version": "0.3.13rc4",
4
4
  "install_requires": [
5
5
  "avro-gen3==0.7.16",
6
6
  "acryl-datahub"
@@ -1816,6 +1816,62 @@ class VersionSetUrn(_SpecificUrn):
1816
1816
  def entity_type(self) -> str:
1817
1817
  return self._entity_ids[1]
1818
1818
 
1819
+ if TYPE_CHECKING:
1820
+ from datahub.metadata.schema_classes import ActionWorkflowKeyClass
1821
+
1822
+ class ActionWorkflowUrn(_SpecificUrn):
1823
+ ENTITY_TYPE: ClassVar[Literal["actionWorkflow"]] = "actionWorkflow"
1824
+ _URN_PARTS: ClassVar[int] = 1
1825
+
1826
+ def __init__(self, id: Union["ActionWorkflowUrn", str], *, _allow_coercion: bool = True) -> None:
1827
+ if _allow_coercion:
1828
+ # Field coercion logic (if any is required).
1829
+ if isinstance(id, str):
1830
+ if id.startswith('urn:li:'):
1831
+ try:
1832
+ id = ActionWorkflowUrn.from_string(id)
1833
+ except InvalidUrnError:
1834
+ raise InvalidUrnError(f'Expecting a ActionWorkflowUrn but got {id}')
1835
+ else:
1836
+ id = UrnEncoder.encode_string(id)
1837
+
1838
+ # Validation logic.
1839
+ if not id:
1840
+ raise InvalidUrnError("ActionWorkflowUrn id cannot be empty")
1841
+ if isinstance(id, ActionWorkflowUrn):
1842
+ id = id.id
1843
+ elif isinstance(id, Urn):
1844
+ raise InvalidUrnError(f'Expecting a ActionWorkflowUrn but got {id}')
1845
+ if UrnEncoder.contains_reserved_char(id):
1846
+ raise InvalidUrnError(f'ActionWorkflowUrn id contains reserved characters')
1847
+
1848
+ super().__init__(self.ENTITY_TYPE, [id])
1849
+
1850
+ @classmethod
1851
+ def _parse_ids(cls, entity_ids: List[str]) -> "ActionWorkflowUrn":
1852
+ if len(entity_ids) != cls._URN_PARTS:
1853
+ raise InvalidUrnError(f"ActionWorkflowUrn should have {cls._URN_PARTS} parts, got {len(entity_ids)}: {entity_ids}")
1854
+ return cls(id=entity_ids[0], _allow_coercion=False)
1855
+
1856
+ @classmethod
1857
+ def underlying_key_aspect_type(cls) -> Type["ActionWorkflowKeyClass"]:
1858
+ from datahub.metadata.schema_classes import ActionWorkflowKeyClass
1859
+
1860
+ return ActionWorkflowKeyClass
1861
+
1862
+ def to_key_aspect(self) -> "ActionWorkflowKeyClass":
1863
+ from datahub.metadata.schema_classes import ActionWorkflowKeyClass
1864
+
1865
+ return ActionWorkflowKeyClass(id=self.id)
1866
+
1867
+ @classmethod
1868
+ def from_key_aspect(cls, key_aspect: "ActionWorkflowKeyClass") -> "ActionWorkflowUrn":
1869
+ return cls(id=key_aspect.id)
1870
+
1871
+ @property
1872
+ def id(self) -> str:
1873
+ return self._entity_ids[0]
1874
+
1819
1875
  if TYPE_CHECKING:
1820
1876
  from datahub.metadata.schema_classes import ChartKeyClass
1821
1877
 
@@ -0,0 +1,53 @@
1
+ # mypy: ignore-errors
2
+ # flake8: noqa
3
+
4
+ # This file is autogenerated by /metadata-ingestion/scripts/avro_codegen.py
5
+ # Do not modify manually!
6
+
7
+ # pylint: skip-file
8
+ # fmt: off
9
+ # isort: skip_file
10
+ from .....schema_classes import ActionWorkflowCategoryClass
11
+ from .....schema_classes import ActionWorkflowEntrypointClass
12
+ from .....schema_classes import ActionWorkflowEntrypointTypeClass
13
+ from .....schema_classes import ActionWorkflowFieldClass
14
+ from .....schema_classes import ActionWorkflowFieldConditionClass
15
+ from .....schema_classes import ActionWorkflowFieldConditionTypeClass
16
+ from .....schema_classes import ActionWorkflowFormClass
17
+ from .....schema_classes import ActionWorkflowFormRequestClass
18
+ from .....schema_classes import ActionWorkflowFormRequestFieldClass
19
+ from .....schema_classes import ActionWorkflowInfoClass
20
+ from .....schema_classes import ActionWorkflowRequestAccessClass
21
+ from .....schema_classes import ActionWorkflowRequestStepStateClass
22
+ from .....schema_classes import ActionWorkflowSingleFieldValueConditionClass
23
+ from .....schema_classes import ActionWorkflowStepClass
24
+ from .....schema_classes import ActionWorkflowStepActorsClass
25
+ from .....schema_classes import ActionWorkflowStepDynamicAssignmentClass
26
+ from .....schema_classes import ActionWorkflowStepDynamicAssignmentTypeClass
27
+ from .....schema_classes import ActionWorkflowStepTypeClass
28
+ from .....schema_classes import ActionWorkflowTriggerClass
29
+ from .....schema_classes import ActionWorkflowTriggerTypeClass
30
+
31
+
32
+ ActionWorkflowCategory = ActionWorkflowCategoryClass
33
+ ActionWorkflowEntrypoint = ActionWorkflowEntrypointClass
34
+ ActionWorkflowEntrypointType = ActionWorkflowEntrypointTypeClass
35
+ ActionWorkflowField = ActionWorkflowFieldClass
36
+ ActionWorkflowFieldCondition = ActionWorkflowFieldConditionClass
37
+ ActionWorkflowFieldConditionType = ActionWorkflowFieldConditionTypeClass
38
+ ActionWorkflowForm = ActionWorkflowFormClass
39
+ ActionWorkflowFormRequest = ActionWorkflowFormRequestClass
40
+ ActionWorkflowFormRequestField = ActionWorkflowFormRequestFieldClass
41
+ ActionWorkflowInfo = ActionWorkflowInfoClass
42
+ ActionWorkflowRequestAccess = ActionWorkflowRequestAccessClass
43
+ ActionWorkflowRequestStepState = ActionWorkflowRequestStepStateClass
44
+ ActionWorkflowSingleFieldValueCondition = ActionWorkflowSingleFieldValueConditionClass
45
+ ActionWorkflowStep = ActionWorkflowStepClass
46
+ ActionWorkflowStepActors = ActionWorkflowStepActorsClass
47
+ ActionWorkflowStepDynamicAssignment = ActionWorkflowStepDynamicAssignmentClass
48
+ ActionWorkflowStepDynamicAssignmentType = ActionWorkflowStepDynamicAssignmentTypeClass
49
+ ActionWorkflowStepType = ActionWorkflowStepTypeClass
50
+ ActionWorkflowTrigger = ActionWorkflowTriggerClass
51
+ ActionWorkflowTriggerType = ActionWorkflowTriggerTypeClass
52
+
53
+ # fmt: on
@@ -21,7 +21,6 @@ from .....schema_classes import AssertionInferenceDetailsClass
21
21
  from .....schema_classes import AssertionInfoClass
22
22
  from .....schema_classes import AssertionMetricClass
23
23
  from .....schema_classes import AssertionMonitorSensitivityClass
24
- from .....schema_classes import AssertionNoteClass
25
24
  from .....schema_classes import AssertionResultClass
26
25
  from .....schema_classes import AssertionResultErrorClass
27
26
  from .....schema_classes import AssertionResultErrorTypeClass
@@ -88,7 +87,6 @@ AssertionInferenceDetails = AssertionInferenceDetailsClass
88
87
  AssertionInfo = AssertionInfoClass
89
88
  AssertionMetric = AssertionMetricClass
90
89
  AssertionMonitorSensitivity = AssertionMonitorSensitivityClass
91
- AssertionNote = AssertionNoteClass
92
90
  AssertionResult = AssertionResultClass
93
91
  AssertionResultError = AssertionResultErrorClass
94
92
  AssertionResultErrorType = AssertionResultErrorTypeClass
@@ -8,6 +8,7 @@
8
8
  # fmt: off
9
9
  # isort: skip_file
10
10
  from ......schema_classes import ActionRequestKeyClass
11
+ from ......schema_classes import ActionWorkflowKeyClass
11
12
  from ......schema_classes import AnomalyKeyClass
12
13
  from ......schema_classes import AssertionKeyClass
13
14
  from ......schema_classes import ChartKeyClass
@@ -77,6 +78,7 @@ from ......schema_classes import VersionSetKeyClass
77
78
 
78
79
 
79
80
  ActionRequestKey = ActionRequestKeyClass
81
+ ActionWorkflowKey = ActionWorkflowKeyClass
80
82
  AnomalyKey = AnomalyKeyClass
81
83
  AssertionKey = AssertionKeyClass
82
84
  ChartKey = ChartKeyClass
@@ -7,23 +7,19 @@
7
7
  # pylint: skip-file
8
8
  # fmt: off
9
9
  # isort: skip_file
10
- from .....schema_classes import AssetCollectionModuleParamsClass
11
10
  from .....schema_classes import DataHubPageModuleParamsClass
12
11
  from .....schema_classes import DataHubPageModulePropertiesClass
13
12
  from .....schema_classes import DataHubPageModuleTypeClass
14
13
  from .....schema_classes import DataHubPageModuleVisibilityClass
15
- from .....schema_classes import HierarchyModuleParamsClass
16
14
  from .....schema_classes import LinkModuleParamsClass
17
15
  from .....schema_classes import PageModuleScopeClass
18
16
  from .....schema_classes import RichTextModuleParamsClass
19
17
 
20
18
 
21
- AssetCollectionModuleParams = AssetCollectionModuleParamsClass
22
19
  DataHubPageModuleParams = DataHubPageModuleParamsClass
23
20
  DataHubPageModuleProperties = DataHubPageModulePropertiesClass
24
21
  DataHubPageModuleType = DataHubPageModuleTypeClass
25
22
  DataHubPageModuleVisibility = DataHubPageModuleVisibilityClass
26
- HierarchyModuleParams = HierarchyModuleParamsClass
27
23
  LinkModuleParams = LinkModuleParamsClass
28
24
  PageModuleScope = PageModuleScopeClass
29
25
  RichTextModuleParams = RichTextModuleParamsClass