def _set_body(
        self,
        content: Optional[ContentType] = None,
        data: Optional[Dict[str, Any]] = None,
        files: Optional[FilesType] = None,
        json: Any = None,
    ) -> MutableMapping[str, str]:
        """Sets the body of the request, and returns the default headers.

        :param content: Content you want in your request body.
        :type content: str or bytes or iterable[bytes] or asynciterable[bytes]
        :param dict data: Form data you want in your request body.
        :param dict files: Files you want to in your request body.
        :param any json: A JSON serializable object.
        :return: The default headers for the request
        :rtype: MutableMapping[str, str]
        """
        default_headers: MutableMapping[str, str] = {}
        if data is not None and not isinstance(data, dict):
            # should we warn?
            content = data
        if content is not None:
            default_headers, self._data = set_content_body(content)
            return default_headers
        if json is not None:
            default_headers, self._data = set_json_body(json)
            return default_headers
        if files:
            default_headers, self._files = set_multipart_body(files)
        if data:
            default_headers, self._data = set_urlencoded_body(data, has_files=bool(files))
        return default_headers
Sets the body of the request, and returns the default headers.

        :param content: Content you want in your request body.
        :type content: str or bytes or iterable[bytes] or asynciterable[bytes]
        :param dict data: Form data you want in your request body.
        :param dict files: Files you want to in your request body.
        :param any json: A JSON serializable object.
        :return: The default headers for the request
        :rtype: MutableMapping[str, str]
        
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/azure/core/rest/_rest_py3.py