code: def update_installed_extension(self, extension):
          
          content = self._serialize.body(extension, 'InstalledExtension')
          response = self._send(http_method='PATCH',
                                location_id='275424d0-c844-4fe2-bda6-04933a1357d8',
                                version='5.0-preview.1',
                                content=content)
          return self._deserialize('InstalledExtension', response)
docs: UpdateInstalledExtension.
          [Preview API] Update an installed extension. Typically this API is used to enable or disable an extension.
          :param :class:`<InstalledExtension> <azure.devops.v5_0.extension_management.models.InstalledExtension>` extension:
          :rtype: :class:`<InstalledExtension> <azure.devops.v5_0.extension_management.models.InstalledExtension>`