@@ -3572,6 +3572,7 @@ def _create_resumable_upload_session_helper(
35723572 origin = None ,
35733573 side_effect = None ,
35743574 timeout = None ,
3575+ predefined_acl = None ,
35753576 if_generation_match = None ,
35763577 if_generation_not_match = None ,
35773578 if_metageneration_match = None ,
@@ -3611,6 +3612,7 @@ def _create_resumable_upload_session_helper(
36113612 size = size ,
36123613 origin = origin ,
36133614 client = client ,
3615+ predefined_acl = predefined_acl ,
36143616 if_generation_match = if_generation_match ,
36153617 if_generation_not_match = if_generation_not_match ,
36163618 if_metageneration_match = if_metageneration_match ,
@@ -3629,6 +3631,9 @@ def _create_resumable_upload_session_helper(
36293631 )
36303632
36313633 qs_params = [("uploadType" , "resumable" )]
3634+ if predefined_acl is not None :
3635+ qs_params .append (("predefinedAcl" , predefined_acl ))
3636+
36323637 if if_generation_match is not None :
36333638 qs_params .append (("ifGenerationMatch" , if_generation_match ))
36343639
@@ -3672,6 +3677,9 @@ def test_create_resumable_upload_session_with_custom_timeout(self):
36723677 def test_create_resumable_upload_session_with_origin (self ):
36733678 self ._create_resumable_upload_session_helper (origin = "http://google.com" )
36743679
3680+ def test_create_resumable_upload_session_with_predefined_acl (self ):
3681+ self ._create_resumable_upload_session_helper (predefined_acl = "private" )
3682+
36753683 def test_create_resumable_upload_session_with_generation_match (self ):
36763684 self ._create_resumable_upload_session_helper (
36773685 if_generation_match = 123456 , if_metageneration_match = 2
0 commit comments