Resources are serialized as their URN, ID, and package version. Each Pulumi package is expected to register itself with the SDK. The package will be invoked to construct appropriate instances of rehydrated resources. Packages are distinguished by their name and their version. This is the foundation of cross-process resources. Related to #2430. Co-authored-by: Mikhail Shilkov <github@mikhail.io> Co-authored-by: Luke Hoban <luke@pulumi.com> Co-authored-by: Levi Blackstone <levi@pulumi.com>
20 lines
641 B
C#
20 lines
641 B
C#
// Copyright 2016-2020, Pulumi Corporation
|
|
|
|
using System.Threading.Tasks;
|
|
using Pulumirpc;
|
|
|
|
namespace Pulumi
|
|
{
|
|
internal interface IMonitor
|
|
{
|
|
Task<SupportsFeatureResponse> SupportsFeatureAsync(SupportsFeatureRequest request);
|
|
|
|
Task<InvokeResponse> InvokeAsync(InvokeRequest request);
|
|
|
|
Task<ReadResourceResponse> ReadResourceAsync(Resource resource, ReadResourceRequest request);
|
|
|
|
Task<RegisterResourceResponse> RegisterResourceAsync(Resource resource, RegisterResourceRequest request);
|
|
|
|
Task RegisterResourceOutputsAsync(RegisterResourceOutputsRequest request);
|
|
}
|
|
}
|