pulumi/sdk/go/common/resource/plugin
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.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
analyzer_plugin.go Support publishing Python policy packs (#4644) 2020-05-22 15:01:15 -07:00
check.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
config_source.go Respect provider config secretness. (#5742) 2020-11-12 12:18:12 -08:00
context.go Respect provider config secretness. (#5742) 2020-11-12 12:18:12 -08:00
host.go Add support for provider-side preview. (#5443) 2020-10-09 13:13:55 -07:00
host_server.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
langruntime.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
langruntime_plugin.go Revise host mode. (#5317) 2020-09-14 17:40:17 -07:00
plugin.go Implement GetRequiredPlugins for Python (#5787) 2020-12-03 19:22:16 -08:00
provider.go gRPC bridge: fix unknowns in `Update` previews (#6006) 2020-12-23 13:25:48 -08:00
provider_plugin.go gRPC bridge: fix unknowns in `Update` previews (#6006) 2020-12-23 13:25:48 -08:00
provider_plugin_test.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
provider_server.go gRPC bridge: fix unknowns in `Update` previews (#6006) 2020-12-23 13:25:48 -08:00
rpc.go Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00
rpc_test.go Fix resource-ref-as-ID marshaling. (#6125) 2021-01-15 16:06:57 -08:00