l.r.i.a.IAccessArtifactGrantSource(Interface) : interface documentation

Part of lp.registry.interfaces.accesspolicy View In Hierarchy

No interface docstring
Method grant Create `IAccessArtifactGrant`s.
Method find Return the specified `IAccessArtifactGrant`s if they exist.
Method findByArtifact Return IAccessArtifactGrant objects for the artifacts.
Method revokeByArtifact Delete IAccessArtifactGrant objects for the artifacts.
def grant(grants):
Create `IAccessArtifactGrant`s.

:param grants: a collection of
    (`IAccessArtifact`, grantee `IPerson`, grantor `IPerson`) triples
    to grant.
def find(grants):
Return the specified `IAccessArtifactGrant`s if they exist.

:param grants: a collection of (`IAccessArtifact`, grantee `IPerson`)
    pairs.
def findByArtifact(artifacts, grantees=None):
Return IAccessArtifactGrant objects for the artifacts.
Parametersartifactsthe artifacts for which to find any grants.
granteesfind grants for the specified grantees only, else find all grants.
def revokeByArtifact(artifacts, grantees=None):
Delete IAccessArtifactGrant objects for the artifacts.
Parametersartifactsthe artifacts to which revoke access.
granteesrevoke access for the specified grantees only, else delete all grants.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.