public SoyValue computeForJava()

in java/com/google/cloud/deploymentmanager/autogen/SoyFunctions.java [441:455]


    public SoyValue computeForJava(List<SoyValue> args) {
      String tierName = args.get(0).stringValue();
      List<VmTierSpec> tierList;
      try {
        tierList = extractTierList(args.get(1));
      } catch (IllegalArgumentException e) {
        throw new IllegalArgumentException("Unexpected 2nd arg type for findVmTier function", e);
      }
      for (VmTierSpec tier : tierList) {
        if (tierName.equals(tier.getName())) {
          return SoyValueConverter.INSTANCE.convert(tier).resolve();
        }
      }
      throw new RuntimeException("Unable to locate tier with name " + tierName);
    }