@@ -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 ,
@@ -3629,6 +3631,9 @@ def _create_resumable_upload_session_helper(
3629
3631
)
3630
3632
3631
3633
qs_params = [("uploadType" , "resumable" )]
3634
+ if predefined_acl is not None :
3635
+ qs_params .append (("predefinedAcl" , predefined_acl ))
3636
+
3632
3637
if if_generation_match is not None :
3633
3638
qs_params .append (("ifGenerationMatch" , if_generation_match ))
3634
3639
@@ -3672,6 +3677,9 @@ def test_create_resumable_upload_session_with_custom_timeout(self):
3672
3677
def test_create_resumable_upload_session_with_origin (self ):
3673
3678
self ._create_resumable_upload_session_helper (origin = "http://google.com" )
3674
3679
3680
+ def test_create_resumable_upload_session_with_predefined_acl (self ):
3681
+ self ._create_resumable_upload_session_helper (predefined_acl = "private" )
3682
+
3675
3683
def test_create_resumable_upload_session_with_generation_match (self ):
3676
3684
self ._create_resumable_upload_session_helper (
3677
3685
if_generation_match = 123456 , if_metageneration_match = 2
0 commit comments