-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Output-based function calls in generated code #393
Comments
I've realized that this also applies to examples like DigitalOcean, which is already integrated. e.g. For a full example there is these two in DigitalOcean Java:
Thus, not specific to Cockroach. I would note, that the Pulumi documentation about this is out-of-date, not that it says "// Output-based functions aren't available in Java yet" when Java is selected - which seems to have been fixed. Thus my summary is this is a missing feature. Not sure what the difficulty is. |
Yeah, those kind of breaking changes are tough. In my case, I'm new to Kotlin, so perhaps I'm missing how this can be done easily, so if I have some Output
and this works, but of course is a different style then everything else. I've been unable to figure out a way to call the simple-input Kotlin functions given the Output. So if there is any easy way for that to be written concisely, great, otherwise, for me at least, the Output-based version would be quite useful. Or perhaps it means that a wrapped |
OrganizationsFunctions.getActiveFolderPlain(
com.pulumi.gcp.organizations.inputs.GetActiveFolderPlainArgs.builder()
.displayName("displayName")
.parent("parent")
.build()
)
OrganizationsFunctions.getActiveFolder(
com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs.builder()
.displayName("displayName")
.displayName(Output.of("displayName")) // alternatively
.parent("parent")
.parent(Output.of("parent")) // alternatively
.build()
) |
@kylepl Apologies for the confusion in my previous comment, I get the issue now. We have quite limited resources right now, but I'll put this at the top of my to-do list 😊 |
Thanks for investigating! And yep, no rush on my side. I realize I've created a lot of requests, just surfacing them. :) |
While waiting on #389, I've managed to get the Kotlin version building locally, and can use it (mainly) reasonably.
One thing I've noticed though, is for functions, there is only the "PlainArgs" versions, not the "Args" version which is output-based.
e.g. for
getConnectionString
(see the schema) all that is generated is:while I'm expecting one that takes in
GetConnectionStringArgsBuilder
as well.When I inspect the generated Java that the Kotlin is wrapping, I do see
GetConnectionStringArgs
, in addition toGetConnectionStringPlainArgs
.Now it's possible I've misconfigured something, so not trying to waste too much time - just checking if this is a known issue or has an obvious mis-configuration on my part.
The text was updated successfully, but these errors were encountered: