code: public ManagedCloudSdk newManagedSdk()
        throws UnsupportedOsException, BadCloudSdkVersionException {
      if (Strings.isNullOrEmpty(version)) {
        return ManagedCloudSdk.newManagedSdk();
      } else {
        return ManagedCloudSdk.newManagedSdk(new Version(version));
      }
    }
docs: Build a new ManagedCloudSdk from a given version.