def share_extension_with_host(self, publisher_name, extension_name, host_type, host_name):
        """ShareExtensionWithHost.
        [Preview API]
        :param str publisher_name:
        :param str extension_name:
        :param str host_type:
        :param str host_name:
        """
        route_values = {}
        if publisher_name is not None:
            route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str')
        if extension_name is not None:
            route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str')
        if host_type is not None:
            route_values['hostType'] = self._serialize.url('host_type', host_type, 'str')
        if host_name is not None:
            route_values['hostName'] = self._serialize.url('host_name', host_name, 'str')
        self._send(http_method='POST',
                   location_id='328a3af8-d124-46e9-9483-01690cd415b9',
                   version='5.0-preview.1',
                   route_values=route_values)
ShareExtensionWithHost.
        [Preview API]
        :param str publisher_name:
        :param str extension_name:
        :param str host_type:
        :param str host_name: