ambitious-teacher-91498
11/02/2023, 6:17 AMcurved-planet-99787
11/03/2023, 4:46 PMDataHubPolicySnapshotClass
This allows you to define custom policies programmatically.
Happy to provide some more details, if needed 🙂worried-solstice-95319
11/07/2023, 12:32 AMDataHubPolicySnapshotClass? Did you use the rest emitter to create a metadata change event?curved-planet-99787
11/07/2023, 7:45 AMmce = MetadataChangeEventClass(
proposedSnapshot=DataHubPolicySnapshotClass(
urn=f"urn:li:dataHubPolicy:{policy.name}",
aspects=[
DataHubPolicyInfoClass(
actors=DataHubActorFilterClass(
allGroups=policy.all_groups,
allUsers=policy.all_users,
resourceOwners=policy.resource_owners,
users=policy.users,
groups=policy.groups,
),
description=policy.description,
displayName=policy.display_name,
editable=policy.editable,
privileges=policy.privileges,
state=policy.state,
type=policy.type,
)
],
)
)
The creation of the request is then done via: emitter.emit(item=mcp) where emitter is an instance of DatahubRestEmitterworried-solstice-95319
11/08/2023, 6:15 PMhappy-lifeguard-83798
11/10/2023, 11:00 AM(DataHubPolicySnapshotClass) detail infomation? @curved-planet-99787curved-planet-99787
11/13/2023, 1:13 PM