pulumi/pkg/resource
Pat Gavlin 2f0dba23ab
Fix resource-ref-as-ID marshaling. (#6125)
When marshaling a resource reference as its ID (i.e. when
opts.KeepResources is false, as it will be in the case of downlevel SDKs
and resource providers), we must take care to marshal/unmarshal an empty
ID as the unknown property value.

This includes the following changes to the resource ref APIs:

- Bifurcate resource reference creation into two methods: one for
  creating references to custom resources and one for creating
  references to component resources.
- Store the ID in a resource reference as a PropertyValue s.t. it can be
  computed.
- Add a helper method for retrieving the ID as a string + an indicator of
  whether or not the reference has an ID.

Fixes #5939.
2021-01-15 16:06:57 -08:00
..
analyzer Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
deploy Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
edit Protect against panic in finding go executable and finding resources (#5548) 2020-10-11 07:13:54 +01:00
graph Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
provider Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
stack Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00
testdata support jar files 2020-08-10 14:15:35 -07:00