code: public static inventory get(nitro_service client, inventory resource) throws Exception
  	{
  		resource.validate("get");
  		return ((inventory[]) resource.get_resources(client))[0];
  	}
docs: Use this operation to start inventory of a given device. All devices if device IP Address is not specified..