pulumi/sdk
Aaron Friel 51ce3f24a7 [codegen/go] Improve optional params in invoke
As described in #8821, docs generated for helper functions can be incorrect because optional arguments to parameter objects are not correctly handled.

Previously, code would be generated like so:

```go
    policyDocument, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
      Statements: []iam.GetPolicyDocumentStatement{
        iam.GetPolicyDocumentStatement{
          Sid: "1",
          //...
```

However "Sid" is of type `*string`.

This four helper conversion functions, to handle the primitive types we lower from, and modifies codegen to recursively apply these functions inside of an invoke call.

In the new code generation, the above is instead rendered as:

```go
    policyDocument, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
      Statements: []iam.GetPolicyDocumentStatement{
        iam.GetPolicyDocumentStatement{
          Sid: pulumi.StringRef("1"),
          //...
```
2022-02-01 09:23:45 -08:00
..
dotnet [sdk/dotnet] Normalize provider providers merge (#8838) 2022-01-31 12:44:31 +01:00
go [codegen/go] Improve optional params in invoke 2022-02-01 09:23:45 -08:00
nodejs adjust link text in node sdk readme (#8816) 2022-01-28 16:45:55 -08:00
proto Make resource autonames determinstic (#8631) 2022-01-20 11:18:54 +00:00
python Remove sequence numbers from dynamic providers (#8849) 2022-01-27 20:34:12 +00:00
README.md Updating .NET references 2020-04-27 12:42:11 -07:00
go.mod Ensure tests/go.sum has been updated (#8835) 2022-01-26 13:45:18 +02:00
go.sum Ensure tests/go.sum has been updated (#8835) 2022-01-26 13:45:18 +02:00

README.md

Pulumi Language SDKs

This directory contains the Pulumi SDKs for all supported languages.

Please see the respective READMEs for information about installing and using these libraries:

The language providers work by implementing gRPC interfaces defined in proto/.