def update_publisher(self, publisher, publisher_name):
        """UpdatePublisher.
        [Preview API]
        :param :class:`<Publisher> <azure.devops.v5_1.gallery.models.Publisher>` publisher:
        :param str publisher_name:
        :rtype: :class:`<Publisher> <azure.devops.v5_1.gallery.models.Publisher>`
        """
        route_values = {}
        if publisher_name is not None:
            route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str')
        content = self._serialize.body(publisher, 'Publisher')
        response = self._send(http_method='PUT',
                              location_id='4ddec66a-e4f6-4f5d-999e-9e77710d7ff4',
                              version='5.1-preview.1',
                              route_values=route_values,
                              content=content)
        return self._deserialize('Publisher', response)
UpdatePublisher.
        [Preview API]
        :param :class:`<Publisher> <azure.devops.v5_1.gallery.models.Publisher>` publisher:
        :param str publisher_name:
        :rtype: :class:`<Publisher> <azure.devops.v5_1.gallery.models.Publisher>`