def AddS3MarkerAclToObjectMetadata(object_metadata, acl_text):
  if not object_metadata.metadata:
    object_metadata.metadata = apitools_messages.Object.MetadataValue()
  if not object_metadata.metadata.additionalProperties:
    object_metadata.metadata.additionalProperties = []

  object_metadata.metadata.additionalProperties.append(
      apitools_messages.Object.MetadataValue.AdditionalProperty(
          key=S3_ACL_MARKER_GUID, value=acl_text))
Adds a GUID-marked S3 ACL to the object metadata.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/translation_helper.py/AddS3MarkerAclToObjectMetadata