File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2861,6 +2861,7 @@ def create_resumable_upload_session(
2861
2861
client = None ,
2862
2862
timeout = _DEFAULT_TIMEOUT ,
2863
2863
checksum = None ,
2864
+ predefined_acl = None ,
2864
2865
if_generation_match = None ,
2865
2866
if_generation_not_match = None ,
2866
2867
if_metageneration_match = None ,
@@ -2942,6 +2943,9 @@ def create_resumable_upload_session(
2942
2943
delete the uploaded object automatically. Supported values
2943
2944
are "md5", "crc32c" and None. The default is None.
2944
2945
2946
+ :type predefined_acl: str
2947
+ :param predefined_acl: (Optional) Predefined access control list
2948
+
2945
2949
:type if_generation_match: long
2946
2950
:param if_generation_match:
2947
2951
(Optional) See :ref:`using-if-generation-match`
@@ -3015,7 +3019,7 @@ def create_resumable_upload_session(
3015
3019
content_type ,
3016
3020
size ,
3017
3021
None ,
3018
- predefined_acl = None ,
3022
+ predefined_acl = predefined_acl ,
3019
3023
if_generation_match = if_generation_match ,
3020
3024
if_generation_not_match = if_generation_not_match ,
3021
3025
if_metageneration_match = if_metageneration_match ,
Original file line number Diff line number Diff line change @@ -3572,6 +3572,7 @@ def _create_resumable_upload_session_helper(
3572
3572
origin = None ,
3573
3573
side_effect = None ,
3574
3574
timeout = None ,
3575
+ predefined_acl = None ,
3575
3576
if_generation_match = None ,
3576
3577
if_generation_not_match = None ,
3577
3578
if_metageneration_match = None ,
@@ -3611,6 +3612,7 @@ def _create_resumable_upload_session_helper(
3611
3612
size = size ,
3612
3613
origin = origin ,
3613
3614
client = client ,
3615
+ predefined_acl = predefined_acl ,
3614
3616
if_generation_match = if_generation_match ,
3615
3617
if_generation_not_match = if_generation_not_match ,
3616
3618
if_metageneration_match = if_metageneration_match ,
@@ -3672,6 +3674,9 @@ def test_create_resumable_upload_session_with_custom_timeout(self):
3672
3674
def test_create_resumable_upload_session_with_origin (self ):
3673
3675
self ._create_resumable_upload_session_helper (origin = "http://google.com" )
3674
3676
3677
+ def test_create_resumable_upload_session_with_predefined_acl (self ):
3678
+ self ._create_resumable_upload_session_helper (predefined_acl = "private" )
3679
+
3675
3680
def test_create_resumable_upload_session_with_generation_match (self ):
3676
3681
self ._create_resumable_upload_session_helper (
3677
3682
if_generation_match = 123456 , if_metageneration_match = 2
You can’t perform that action at this time.
0 commit comments