pulumi/changelog/pending
Zaid Ajaj 00b685606d
[docs] Implement Java constructor syntax examples (#15805)
# Description

This PR implements Java constructor syntax examples, rendering them into
the docs. It upgrades pulumi-java to 0.10.0 which includes features from
https://github.com/pulumi/pulumi-java/pull/1338

It also updates contructor syntax generator to emit an unbound variable
for resource-typed properties. We use the name of the resource as the
name of the variable:
```typescript
const example = new Resource("name", { pet: randomPet })
````
where `pet` is a property that is typed as `random.RandomPet` so it gets
assigned the (unbound) variable called `randomPet`

Previously we would skip emitting any code for resource-typed
properties. I think this gives better docs even though it doesn't
compile

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [x] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [x] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2024-03-28 00:03:58 +00:00
..
20231205--engine--fix-update-stack-outputs-only-on-successful-deployments.yaml Fix: Don't delete stack outputs on failed deployments (#15754) 2024-03-25 22:37:46 +00:00
20240312--docs--implement-constructor-syntax-examples-for-every-resource-in-typescript-python-csharp-and-go.yaml [docs] Emit example constructor syntax for resources in typescript, python, go and csharp (#15624) 2024-03-21 13:41:07 +00:00
20240315--engine--transform-functions-are-sent-output-values-with-property-dependency-information.yaml Send output values to transforms for dependency tracking (#15637) 2024-03-20 09:53:33 +00:00
20240317--cli-plugin--fix-installing-local-language-plugins-on-windows.yaml Append .exe when installing local language plugins (#15715) 2024-03-17 22:26:22 +00:00
20240318--engine--fix-a-panic-when-updating-provider-version-in-a-run-using-target.yaml Fix panic when changing untargetted provider versions (#15716) 2024-03-20 09:44:49 +00:00
20240319--engine--add-a-continue-on-error-flag-to-pulumi-destroy.yaml destroy: implement --continue-on-error (#15727) 2024-03-22 09:22:40 +00:00
20240320--engine--handle-that-assets-and-archives-can-be-returned-from-providers-without-content.yaml Asset and Archive can have missing contents (#15736) 2024-03-21 12:32:26 +00:00
20240320--sdk-go--fix-lookup-of-plugin-and-program-dependencies-when-using-go-workspaces.yaml Fix lookup module deps with go.work files (#15743) 2024-03-21 09:48:04 +00:00
20240320--sdk-python--improve-the-error-message-when-depends_on-is-passed-objects-of-the-wrong-type.yaml Type check depends_on is only passed Resource instances (#15737) 2024-03-25 18:51:21 +00:00
20240322--sdk-nodejs--make-function-serialization-work-with-typescript-4-and-5.yaml Make function serialization work on typescript 4 and 5 (#15761) 2024-03-27 10:03:57 +00:00
20240322--sdk-nodejs--reorganize-function-serialization-tests.yaml Reorganize closure tests to prepare for multiple typescript versions (#15753) 2024-03-25 13:19:17 +00:00
20240323--programgen-dotnet-go--fixes-emited-code-for-object-expressions-assigned-to-properties-of-type-any.yaml [program-gen/go,dotnet] Fixes emited code for object expressions assigned to properties of type Any (#15770) 2024-03-24 00:06:57 +00:00
20240323--sdk-go--property-map-is-now-keyed-by-string-not-mapkey.yaml Property map keys are just strings (#15767) 2024-03-25 17:26:41 +00:00
20240324--programgen-dotnet--fixed-generated-code-for-a-list-of-resources-used-in-resource-option-dependson.yaml [program-gen/csharp] Fixes generated code for a list of resources used in resource option DependsOn (#15773) 2024-03-25 15:34:54 +00:00
20240325--auto-go-nodejs-python--make-sure-to-read-complete-lines-before-trying-to-deserialize-them-as-engine-events.yaml revert readlines fix for nodejs (#15798) 2024-03-27 19:34:18 +00:00
20240325--engine--fix-the-engine-trying-to-delete-a-protected-resource-caught-in-a-replace-chain.yaml Check for protect in replace chains (#15776) 2024-03-25 20:07:36 +00:00
20240325--sdk-nodejs--export-automation-tag-tagmap-type.yaml Export automation.tag.TagMap type & @param tag fixes (#15774) 2024-03-25 14:33:15 +00:00
20240325--sdk-nodejs--move-mockpackage-tests-to-closure-integration-tests.yaml Move mockpackage tests to closure integration tests (#15757) 2024-03-26 11:38:01 +00:00
20240326--sdk-python--the-python-sdk-only-waits-for-pending-outputs-not-all-pending-asyncio-tasks.yaml Add a test and fix that we don't wait for tasks, just outputs (#15744) 2024-03-26 14:07:37 +00:00
20240326--sdkgen-docs--add-missing-newline-for-coming-soon.yaml Fix coming soon misrender (#15783) 2024-03-26 17:24:37 +00:00
20240327--auto-go-python--use-the-full-path-when-running-pulumi-from-a-custom-cli-install.yaml Use the full path when running pulumi from a custom CLI install (#15802) 2024-03-27 21:12:00 +00:00
20240327--docs--implement-java-constructor-syntax-examples.yaml [docs] Implement Java constructor syntax examples (#15805) 2024-03-28 00:03:58 +00:00
20240327--docs--implement-yaml-constructor-syntax-examples-in-the-docs.yaml [docs] Implement YAML constructor syntax examples (#15791) 2024-03-27 12:11:08 +00:00