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

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

Known subclasses: lp.code.interfaces.webservice.IGitRef

IGitRef methods that require launchpad.Edit permission.
Method getGrants Get the access grants specific to this reference.
Method setGrants Set the access grants specific to this reference.
Method checkPermissions Check a person's permissions on this reference.
@export_read_operation()
@operation_for_version('devel')
def getGrants():
Get the access grants specific to this reference.

Other grants may apply via wildcard rules.

@operation_parameters(List(_('Grants'), InlineObject(Interface), _(dedent(' The new list of grants for this reference. For example::\n\n [\n {\n "grantee_type": "Repository owner",\n "can_create": true,\n "can_push": true,\n "can_force_push": true\n },\n {\n "grantee_type": "Person",\n "grantee_link": "/~example-person",\n "can_push": true\n }\n ]'))))
@call_with(REQUEST_USER)
@export_write_operation()
@operation_for_version('devel')
def setGrants(grants, user):
Set the access grants specific to this reference.

Other grants may apply via wildcard rules.

@operation_parameters(Reference(_('Person to check'), IPerson))
@export_read_operation()
@operation_for_version('devel')
def checkPermissions(person):
Check a person's permissions on this reference.
ParameterspersonAn IPerson to check.
ReturnsA list of zero or more of "create", "push", and "force-push", indicating the requested person's effective permissions on this reference.
API Documentation for Launchpad, generated by pydoctor at 2019-05-22 00:00:12.