module role_policy_mixin
Mixin class containing Role and Policy specific methods
To be used by OpenMetadata class
class OMetaRolePolicyMixin
OpenMetadata API methods related to Roles and Policies.
To be inherited by OpenMetadata
method patch_policy_rule
Given a Policy ID, JSON PATCH the rule (add or remove).
Args entity_id: ID of the role to be patched rule: The rule to add or remove operation: The operation to perform, either "add" or "remove" Returns Updated Entity
method patch_role_policy
Given a Role ID, JSON PATCH the policies.
Args entity_id: ID of the role to be patched policy_id: ID of the policy to be added or removed operation: Operation to be performed. Either 'add' or 'remove' Returns Updated Entity