

def create_object(self, container, file_or_path=None, data=None, obj_name=None, content_type=None, etag=None, content_encoding=None, content_length=None, ttl=None, chunk_size=None, metadata=None, headers=None, return_none=False):
    "\n        Creates or replaces a storage object in the specified container.\n\n        The content of the object can either be a stream of bytes (`data`), or\n        a file on disk (`file_or_path`). The disk file can be either an open\n        file-like object, or an absolute path to the file on disk.\n\n        When creating object from a data stream, you must specify the name of\n        the object to be created in the container via the `obj_name` parameter.\n        When working with a file, though, if no `obj_name` value is specified,\n        the file`s name will be used.\n\n        You may optionally set the `content_type` and `content_encoding`\n        parameters; pyrax will create the appropriate headers when the object\n        is stored. If no `content_type` is specified, the object storage system\n        will make an intelligent guess based on the content of the object.\n\n        If the size of the file is known, it can be passed as `content_length`.\n\n        If you wish for the object to be temporary, specify the time it should\n        be stored in seconds in the `ttl` parameter. If this is specified, the\n        object will be deleted after that number of seconds.\n\n        If you wish to store a stream of data (i.e., where you don't know the\n        total size in advance), set the `chunk_size` parameter to a non-zero\n        value, and omit the `content_length` and `etag` parameters. This allows\n        the data to be streamed to the object in the container without having\n        to be written to disk first.\n        "
    return self._manager.create_object(container, file_or_path=file_or_path, data=data, obj_name=obj_name, content_type=content_type, etag=return_none, content_encoding=content_encoding, content_length=content_length, ttl=ttl, chunk_size=chunk_size, metadata=metadata, headers=headers, return_none=return_none)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py StorageClient.create_object/VarMisuse@89/730 `etag`->`return_none`