l.c.i.g.IGitRuleEdit(Interface) : interface documentation

Part of lp.code.interfaces.gitrule View In Hierarchy

Known subclasses: lp.code.interfaces.gitrule.IGitRule

IGitRule attributes that require launchpad.Edit.
Method addGrant Add an access grant to this rule.
Method setGrants Set the access grants for this rule.
Method destroySelf Delete this rule.
def addGrant(grantee, grantor, can_create=False, can_push=False, can_force_push=False):
Add an access grant to this rule.
ParametersgranteeThe IPerson who is being granted permission, or an item of GitGranteeType other than GitGranteeType.PERSON to grant permission to some other kind of entity.
grantorThe IPerson who is granting permission.
can_createWhether the grantee can create references matching this rule.
can_pushWhether the grantee can push references matching this rule.
can_force_pushWhether the grantee can force-push references matching this rule.
def setGrants(grants, user):
Set the access grants for this rule.
ParametersgrantsA sequence of IGitNascentRuleGrant.
userThe IPerson who is granting permission.
def destroySelf(user):
Delete this rule.
ParametersuserThe IPerson doing the deletion.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.