code: def edit(self, resource):
          
          schema = self.EDIT_SCHEMA
          json = self.service.encode(schema, resource)
  
          schema = self.GET_SCHEMA
          resp = self.service.edit(self.base, resource.id, json)
          return self.service.decode(schema, resp)
docs: Edit a config.
  
          :param resource: :class:`configs.Config <configs.Config>` object
          :return: :class:`configs.Config <configs.Config>` object
          :rtype: configs.Config