code: public static base_response update(nitro_service client, lbgroup resource) throws Exception {
  		lbgroup updateresource = new lbgroup();
  		updateresource.name = resource.name;
  		updateresource.persistencetype = resource.persistencetype;
  		updateresource.persistencebackup = resource.persistencebackup;
  		updateresource.backuppersistencetimeout = resource.backuppersistencetimeout;
  		updateresource.persistmask = resource.persistmask;
  		updateresource.cookiename = resource.cookiename;
  		updateresource.v6persistmasklen = resource.v6persistmasklen;
  		updateresource.cookiedomain = resource.cookiedomain;
  		updateresource.timeout = resource.timeout;
  		updateresource.rule = resource.rule;
  		return updateresource.update_resource(client);
  	}
docs: Use this API to update lbgroup.