pulumi/pkg/codegen/internal/test/testdata
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
..
aws-eks-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-fargate-pp [codegen/go] Improve optional params in invoke 2022-02-01 09:23:45 -08:00
aws-optionals-pp [codegen/go] Improve optional params in invoke 2022-02-01 09:23:45 -08:00
aws-resource-options-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-s3-folder-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-s3-logging-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-secret-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
aws-webserver-pp [codegen/go] Improve optional params in invoke 2022-02-01 09:23:45 -08:00
azure-native-nested-types [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
azure-native-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
azure-sa-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
cyclic-types Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
dash-named-schema Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
dashed-import-schema Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
different-enum Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
different-package-name-conflict [codegen/schema] Add package name allowlist (#8558) 2021-12-07 21:21:04 -08:00
external-node-compatibility [codegen/nodejs] Respect compat modes when referencing external types (#8850) 2022-01-28 13:28:55 -08:00
external-resource-schema [codegen/nodejs] Respect compat modes when referencing external types (#8850) 2022-01-28 13:28:55 -08:00
functions-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
hyphen-url Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
kubernetes-operator-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
kubernetes-pod-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
kubernetes-template-pp iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
naming-collisions Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
nested-module Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
nested-module-thirdparty Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
other-owned [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
output-funcs [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
output-funcs-aws-pp Programgen support for F.Invoke forms in .NET (#7949) (#8432) 2021-11-18 17:53:17 -05:00
output-funcs-edgeorder [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
output-funcs-tfbridge20 [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
plain-and-default Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
plain-object-defaults [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
plain-object-disable-defaults [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
plain-schema-gh6957 Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
provider-config-schema Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
random-pet-pp [programgen/go] Don't change imported resource names (#8353) 2021-11-04 09:28:48 -07:00
regress-8403 Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
regress-go-8664 Fix dangling type ref generated in pulumi-azuread (#8714) 2022-01-10 15:03:20 -05:00
regress-node-8110 Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
replace-on-change Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
resource-args-python Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
resource-args-python-case-insensitive Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
resource-property-overlap Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
schema [codegen/schema] forbid bad schema prefix (#8538) 2021-12-06 11:35:27 -08:00
simple-enum-schema Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
simple-methods-schema Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
simple-methods-schema-single-value-returns Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
simple-plain-schema Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
simple-plain-schema-with-root-package Generate scripts/install-pulumi-plugin.json (#8730) 2022-01-19 14:21:09 -08:00
simple-resource-schema [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
simple-resource-schema-custom-pypackage-name [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
simple-yaml-schema [codegen/dotnet] Allow generated SDKs to have a global namespace other then `Pulumi` (#8735) 2022-01-21 12:58:11 -08:00
third-party-package-pp Program codegen correctly handles foreign imports (#8861) 2022-01-31 21:48:32 +01:00
.gitignore 5758 for C#/.NET (#7899) 2021-10-18 18:18:15 -04:00
aws-native.json Fix invoke functions without args (#8805) 2022-01-24 20:59:06 +00:00
aws.json Programgen support for fnOutput forms in node (#7949) (#8434) 2021-11-17 15:27:50 -05:00
azure-native.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
azure.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
kubernetes.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
other.json Program codegen correctly handles foreign imports (#8861) 2022-01-31 21:48:32 +01:00
random.json iwahbe/7802/compile program generator test output (#8036) 2021-09-29 11:33:57 -07:00
types.json [codegen/schema] forbid bad schema prefix (#8538) 2021-12-06 11:35:27 -08:00