#NEWLINE# def set_acl( self , acl_or_str , key_name = '' , headers = None , version_id = None ) : #NEWLINE# #INDENT# "sets or changes a bucket's acl. We include a version_id argument\n           to support a polymorphic interface for callers, however, \n           version_id is not relevant for Google Cloud Storage buckets \n           and is therefore ignored here." #NEWLINE# if isinstance ( acl_or_str , Policy ) : #NEWLINE# #INDENT# raise InvalidAclError ( 'Attempt to set S3 Policy on GS ACL' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( acl_or_str , ACL ) : #NEWLINE# #INDENT# self . set_xml_acl ( acl_or_str . to_xml ( ) , key_name , headers = headers ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . set_canned_acl ( acl_or_str , key_name , headers = headers )