Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/api/client.py
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | def snapshot_get_latest(self, origin, allowed_statuses=None): | ||||
}) | }) | ||||
def snapshot_count_branches(self, snapshot_id): | def snapshot_count_branches(self, snapshot_id): | ||||
return self.post('snapshot/count_branches', { | return self.post('snapshot/count_branches', { | ||||
'snapshot_id': snapshot_id | 'snapshot_id': snapshot_id | ||||
}) | }) | ||||
def snapshot_get_branches(self, snapshot_id, branches_from=b'', | def snapshot_get_branches(self, snapshot_id, branches_from=b'', | ||||
branches_count=None, target_types=None): | branches_count=1000, target_types=None): | ||||
return self.post('snapshot/get_branches', { | return self.post('snapshot/get_branches', { | ||||
'snapshot_id': snapshot_id, | 'snapshot_id': snapshot_id, | ||||
'branches_from': branches_from, | 'branches_from': branches_from, | ||||
'branches_count': branches_count, | 'branches_count': branches_count, | ||||
'target_types': target_types | 'target_types': target_types | ||||
}) | }) | ||||
def origin_get(self, origin): | def origin_get(self, origin): | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |