parameters: (cls, json_cors)
docstring: Translates CORS JSON to an apitools message.
  
      Args:
        json_cors: JSON string representing CORS configuration.
  
      Returns:
        List of apitools Bucket.CorsValueListEntry. An empty list represents
        no CORS configuration.
docstring_summary: Translates CORS JSON to an apitools message.
docstring_tokens: Translates CORS JSON to an apitools message .
function: def JsonCorsToMessageEntries(cls, json_cors):
      """Translates CORS JSON to an apitools message.
  
      Args:
        json_cors: JSON string representing CORS configuration.
  
      Returns:
        List of apitools Bucket.CorsValueListEntry. An empty list represents
        no CORS configuration.
      """
      try:
        deserialized_cors = json.loads(json_cors)
        cors = []
        for cors_entry in deserialized_cors:
          cors.append(encoding.DictToMessage(
              cors_entry, apitools_messages.Bucket.CorsValueListEntry))
        return cors
      except ValueError:
        CheckForXmlConfigurationAndRaise('CORS', json_cors)
function_tokens: def JsonCorsToMessageEntries ( cls , json_cors ) : try : deserialized_cors = json . loads ( json_cors ) cors = [ ] for cors_entry in deserialized_cors : cors . append ( encoding . DictToMessage ( cors_entry , apitools_messages . Bucket . CorsValueListEntry ) ) return cors except ValueError : CheckForXmlConfigurationAndRaise ( 'CORS' , json_cors )