acryl-datahub-cloud 0.3.13rc3__py3-none-any.whl → 0.3.13rc5__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.13rc3",
3
+ "version": "0.3.13rc5",
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
@@ -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