code: public static nsconfig diff(nitro_service client, nsconfig resource) throws Exception {
  		nsconfig diffresource = new nsconfig();
  		diffresource.config1 = resource.config1;
  		diffresource.config2 = resource.config2;
  		diffresource.outtype = resource.outtype;
  		diffresource.template = resource.template;
  		diffresource.ignoredevicespecific = resource.ignoredevicespecific;
  		return (nsconfig)diffresource.perform_operationEx(client,"diff");
  	}
docs: Use this API to diff nsconfig.