collibra-connector 1.0.15__py3-none-any.whl → 1.0.17__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.
- collibra_connector/api/Utils.py +12 -2
- {collibra_connector-1.0.15.dist-info → collibra_connector-1.0.17.dist-info}/METADATA +1 -1
- {collibra_connector-1.0.15.dist-info → collibra_connector-1.0.17.dist-info}/RECORD +6 -6
- {collibra_connector-1.0.15.dist-info → collibra_connector-1.0.17.dist-info}/WHEEL +0 -0
- {collibra_connector-1.0.15.dist-info → collibra_connector-1.0.17.dist-info}/licenses/LICENSE +0 -0
- {collibra_connector-1.0.15.dist-info → collibra_connector-1.0.17.dist-info}/top_level.txt +0 -0
collibra_connector/api/Utils.py
CHANGED
|
@@ -28,6 +28,7 @@ class Utils(BaseAPI):
|
|
|
28
28
|
"Community": {},
|
|
29
29
|
"Domain": {},
|
|
30
30
|
"DomainType": {},
|
|
31
|
+
"WorkflowDefinition": {},
|
|
31
32
|
}
|
|
32
33
|
try:
|
|
33
34
|
# Get Asset Type UUIDs
|
|
@@ -51,7 +52,7 @@ class Utils(BaseAPI):
|
|
|
51
52
|
resource_roles_response = self._get(url=resource_roles_url)
|
|
52
53
|
resource_roles_data = self._handle_response(resource_roles_response)
|
|
53
54
|
for resource_role in resource_roles_data["results"]:
|
|
54
|
-
metadata["
|
|
55
|
+
metadata["Responsibility"][resource_role["name"]] = resource_role["id"]
|
|
55
56
|
|
|
56
57
|
# Get Status UUIDs
|
|
57
58
|
statuses_url = f"{self.__base_api}/statuses"
|
|
@@ -95,7 +96,16 @@ class Utils(BaseAPI):
|
|
|
95
96
|
for domain_type in domain_types_data["results"]:
|
|
96
97
|
metadata["DomainType"][domain_type["name"]] = domain_type["id"]
|
|
97
98
|
|
|
98
|
-
|
|
99
|
+
# Get Workflow Definition UUIDs
|
|
100
|
+
workflow_definitions_url = f"{self.__base_api}/workflowDefinitions"
|
|
101
|
+
workfow_definitions_response = self._get(
|
|
102
|
+
workflow_definitions_url
|
|
103
|
+
)
|
|
104
|
+
workfow_definitions_response.raise_for_status()
|
|
105
|
+
workflow_definitions_data = workfow_definitions_response.json()
|
|
106
|
+
for workflow_definition in workflow_definitions_data["results"]:
|
|
107
|
+
metadata["WorkflowDefinition"][workflow_definition["name"]] = workflow_definition["id"]
|
|
108
|
+
logger.info("Collibra UUIDS fetched successfully")
|
|
99
109
|
return metadata
|
|
100
110
|
|
|
101
111
|
except (KeyError, ValueError, AttributeError) as e:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: collibra-connector
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.17
|
|
4
4
|
Summary: An UNOFFICIAL standard Python connector for the Collibra Data Governance Center API.
|
|
5
5
|
Author-email: Raül Dalgamonni <rauldalgamonnialonso@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://github.com/rauldaal/collibra-python-connector
|
|
@@ -11,11 +11,11 @@ collibra_connector/api/OutputModule.py,sha256=97TzIbeoC5V63x5fi5fEcGfviUydwKwJC3
|
|
|
11
11
|
collibra_connector/api/Relation.py,sha256=Hw0PlAQrU2Zv-RAbvHZhZpZb2_m6uDWngx2ySwo_mv0,8079
|
|
12
12
|
collibra_connector/api/Responsibility.py,sha256=PJu1Pe1u8mKzgpGGjzHtZNfRTfpgWWbaQn5bSifZOMo,14123
|
|
13
13
|
collibra_connector/api/User.py,sha256=rUfnR0x_vnIk8h2SJ0RITpC4nKPw-e3-zwKIK8ZEuKc,7776
|
|
14
|
-
collibra_connector/api/Utils.py,sha256=
|
|
14
|
+
collibra_connector/api/Utils.py,sha256=bsfLmAULI7ZuRr6GiAK7JU4xvuLPBTthQfqyvHnzcC4,5266
|
|
15
15
|
collibra_connector/api/Workflow.py,sha256=rsD9mPut69eEy35TNGf2mUKTrgWUmoakgnsXa85XzNY,10417
|
|
16
16
|
collibra_connector/api/__init__.py,sha256=yBJcKzcRraE-UYbBviisbdvQ1asFBnud5Vo1oJcCv_w,491
|
|
17
|
-
collibra_connector-1.0.
|
|
18
|
-
collibra_connector-1.0.
|
|
19
|
-
collibra_connector-1.0.
|
|
20
|
-
collibra_connector-1.0.
|
|
21
|
-
collibra_connector-1.0.
|
|
17
|
+
collibra_connector-1.0.17.dist-info/licenses/LICENSE,sha256=6KmWWtAu_q58gerPlrnkgsmGM2l8j6Wc_VL0y4S_ip4,1079
|
|
18
|
+
collibra_connector-1.0.17.dist-info/METADATA,sha256=u04SnmcfHrKFNvk-x14NEPyEdTIKnEDFg3H5jhjWMFM,4081
|
|
19
|
+
collibra_connector-1.0.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
collibra_connector-1.0.17.dist-info/top_level.txt,sha256=Vs-kR64zf__ebL2j3_AEx7rhO6xkwgmHUFRzxlQPgTQ,19
|
|
21
|
+
collibra_connector-1.0.17.dist-info/RECORD,,
|
|
File without changes
|
{collibra_connector-1.0.15.dist-info → collibra_connector-1.0.17.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|