aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/resources')
-rw-r--r--pygithub3/resources/repos.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py
index de55b72..865f039 100644
--- a/pygithub3/resources/repos.py
+++ b/pygithub3/resources/repos.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
+from collections import OrderedDict
+
from .base import Resource
from .users import User
from .orgs import Org
@@ -100,3 +102,13 @@ class Branch(Resource):
def __str__(self):
return '<Branch (%s)>' % getattr(self, 'name', '')
+
+
+class Download(Resource):
+
+ def ball_to_upload(self):
+ return OrderedDict({
+ 'key': self.path, 'acl': self.acl, 'success_action_status': '201',
+ 'Filename': self.name, 'AWSAccessKeyId': self.accesskeyid,
+ 'Policy': self.policy, 'Signature': self.signature,
+ 'Content-Type': self.mime_type})