From 32dcaa58d661f2fcaff03474d1a5c5a412a54b09 Mon Sep 17 00:00:00 2001 From: Fraser Waters Date: Thu, 14 Apr 2022 10:59:46 +0100 Subject: [PATCH] Monitor.Invoke and Provider.Invoke take different arguments (#9323) --- CHANGELOG_PENDING.md | 3 + .../deploy/deploytest/resourcemonitor.go | 2 +- pkg/resource/deploy/source.go | 2 +- pkg/resource/deploy/source_eval.go | 8 +- pkg/resource/deploy/source_query.go | 11 +- pkg/resource/deploy/source_query_test.go | 2 +- .../Pulumi/Deployment/Deployment_Invoke.cs | 2 +- sdk/dotnet/Pulumi/Deployment/GrpcMonitor.cs | 12 +- sdk/dotnet/Pulumi/Deployment/IMonitor.cs | 8 +- sdk/dotnet/Pulumi/Testing/MockMonitor.cs | 4 +- .../common/resource/plugin/provider_plugin.go | 10 +- sdk/go/pulumi/context.go | 4 +- sdk/go/pulumi/mocks.go | 6 +- sdk/go/pulumi/resource_test.go | 4 +- .../cmd/pulumi-language-nodejs/proxy.go | 6 +- sdk/nodejs/proto/provider_pb.js | 122 +------ sdk/nodejs/proto/resource_grpc_pb.js | 34 +- sdk/nodejs/proto/resource_pb.js | 323 ++++++++++++++++++ sdk/nodejs/runtime/invoke.ts | 3 +- sdk/nodejs/runtime/resource.ts | 2 +- sdk/proto/go/provider.pb.go | 278 +++++++-------- sdk/proto/go/resource.pb.go | 241 ++++++++----- sdk/proto/provider.proto | 10 +- sdk/proto/resource.proto | 13 +- sdk/python/lib/pulumi/runtime/invoke.py | 4 +- .../lib/pulumi/runtime/proto/provider_pb2.py | 212 ++++-------- .../lib/pulumi/runtime/proto/resource_pb2.py | 154 ++++++++- .../pulumi/runtime/proto/resource_pb2_grpc.py | 8 +- sdk/python/lib/pulumi/runtime/resource.py | 2 +- 29 files changed, 917 insertions(+), 573 deletions(-) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 5ecddce92580..baa6d79c69fb 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,3 +1,6 @@ ### Improvements +- [cli] Split invoke request protobufs, as monitors and providers take different arguments. + [#9323](https://github.com/pulumi/pulumi/pull/9323) + ### Bug Fixes diff --git a/pkg/resource/deploy/deploytest/resourcemonitor.go b/pkg/resource/deploy/deploytest/resourcemonitor.go index 199385efd96b..ab3524e968ed 100644 --- a/pkg/resource/deploy/deploytest/resourcemonitor.go +++ b/pkg/resource/deploy/deploytest/resourcemonitor.go @@ -284,7 +284,7 @@ func (rm *ResourceMonitor) Invoke(tok tokens.ModuleMember, inputs resource.Prope } // submit request - resp, err := rm.resmon.Invoke(context.Background(), &pulumirpc.InvokeRequest{ + resp, err := rm.resmon.Invoke(context.Background(), &pulumirpc.ResourceInvokeRequest{ Tok: string(tok), Provider: provider, Args: ins, diff --git a/pkg/resource/deploy/source.go b/pkg/resource/deploy/source.go index fb9123f1a556..173c29331e1b 100644 --- a/pkg/resource/deploy/source.go +++ b/pkg/resource/deploy/source.go @@ -62,7 +62,7 @@ type SourceResourceMonitor interface { Address() string Cancel() error - Invoke(ctx context.Context, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error) + Invoke(ctx context.Context, req *pulumirpc.ResourceInvokeRequest) (*pulumirpc.InvokeResponse, error) Call(ctx context.Context, req *pulumirpc.CallRequest) (*pulumirpc.CallResponse, error) ReadResource(ctx context.Context, req *pulumirpc.ReadResourceRequest) (*pulumirpc.ReadResourceResponse, error) diff --git a/pkg/resource/deploy/source_eval.go b/pkg/resource/deploy/source_eval.go index d2f9930714d9..d22d2694c338 100644 --- a/pkg/resource/deploy/source_eval.go +++ b/pkg/resource/deploy/source_eval.go @@ -634,7 +634,7 @@ func (rm *resmon) SupportsFeature(ctx context.Context, } // Invoke performs an invocation of a member located in a resource provider. -func (rm *resmon) Invoke(ctx context.Context, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error) { +func (rm *resmon) Invoke(ctx context.Context, req *pulumirpc.ResourceInvokeRequest) (*pulumirpc.InvokeResponse, error) { // Fetch the token and load up the resource provider if necessary. tok := tokens.ModuleMember(req.GetTok()) providerReq, err := parseProviderRequest(tok.Package(), req.GetVersion(), req.GetPluginDownloadURL()) @@ -668,7 +668,7 @@ func (rm *resmon) Invoke(ctx context.Context, req *pulumirpc.InvokeRequest) (*pu mret, err := plugin.MarshalProperties(ret, plugin.MarshalOptions{ Label: label, KeepUnknowns: true, - KeepResources: true, + KeepResources: req.GetAcceptResources(), }) if err != nil { return nil, fmt.Errorf("failed to marshal %v return: %w", tok, err) @@ -770,7 +770,7 @@ func (rm *resmon) Call(ctx context.Context, req *pulumirpc.CallRequest) (*pulumi } func (rm *resmon) StreamInvoke( - req *pulumirpc.InvokeRequest, stream pulumirpc.ResourceMonitor_StreamInvokeServer) error { + req *pulumirpc.ResourceInvokeRequest, stream pulumirpc.ResourceMonitor_StreamInvokeServer) error { tok := tokens.ModuleMember(req.GetTok()) label := fmt.Sprintf("ResourceMonitor.StreamInvoke(%s)", tok) @@ -1320,7 +1320,7 @@ func decorateResourceSpans(span opentracing.Span, method string, req, resp inter switch method { case "/pulumirpc.ResourceMonitor/Invoke": - span.SetTag("pulumi-decorator", req.(*pulumirpc.InvokeRequest).Tok) + span.SetTag("pulumi-decorator", req.(*pulumirpc.ResourceInvokeRequest).Tok) case "/pulumirpc.ResourceMonitor/ReadResource": span.SetTag("pulumi-decorator", req.(*pulumirpc.ReadResourceRequest).Type) case "/pulumirpc.ResourceMonitor/RegisterResource": diff --git a/pkg/resource/deploy/source_query.go b/pkg/resource/deploy/source_query.go index f302c7f7e919..0deae6b083a2 100644 --- a/pkg/resource/deploy/source_query.go +++ b/pkg/resource/deploy/source_query.go @@ -321,7 +321,9 @@ func (rm *queryResmon) Cancel() error { } // Invoke performs an invocation of a member located in a resource provider. -func (rm *queryResmon) Invoke(ctx context.Context, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error) { +func (rm *queryResmon) Invoke( + ctx context.Context, req *pulumirpc.ResourceInvokeRequest) (*pulumirpc.InvokeResponse, error) { + tok := tokens.ModuleMember(req.GetTok()) label := fmt.Sprintf("QueryResourceMonitor.Invoke(%s)", tok) @@ -372,7 +374,7 @@ func (rm *queryResmon) Invoke(ctx context.Context, req *pulumirpc.InvokeRequest) } func (rm *queryResmon) StreamInvoke( - req *pulumirpc.InvokeRequest, stream pulumirpc.ResourceMonitor_StreamInvokeServer) error { + req *pulumirpc.ResourceInvokeRequest, stream pulumirpc.ResourceMonitor_StreamInvokeServer) error { tok := tokens.ModuleMember(req.GetTok()) label := fmt.Sprintf("QueryResourceMonitor.StreamInvoke(%s)", tok) @@ -396,7 +398,10 @@ func (rm *queryResmon) StreamInvoke( // streaming operation completes! logging.V(5).Infof("QueryResourceMonitor.StreamInvoke received: tok=%v #args=%v", tok, len(args)) failures, err := prov.StreamInvoke(tok, args, func(event resource.PropertyMap) error { - mret, err := plugin.MarshalProperties(event, plugin.MarshalOptions{Label: label, KeepUnknowns: true}) + mret, err := plugin.MarshalProperties(event, plugin.MarshalOptions{Label: label, + KeepUnknowns: true, + KeepResources: req.GetAcceptResources(), + }) if err != nil { return fmt.Errorf("failed to marshal return: %w", err) } diff --git a/pkg/resource/deploy/source_query_test.go b/pkg/resource/deploy/source_query_test.go index 2d49eb0739dc..cfa8291c5a92 100644 --- a/pkg/resource/deploy/source_query_test.go +++ b/pkg/resource/deploy/source_query_test.go @@ -184,7 +184,7 @@ func (rm *mockQueryResmon) Cancel() error { return nil } func (rm *mockQueryResmon) Invoke(ctx context.Context, - req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error) { + req *pulumirpc.ResourceInvokeRequest) (*pulumirpc.InvokeResponse, error) { panic("not implemented") } diff --git a/sdk/dotnet/Pulumi/Deployment/Deployment_Invoke.cs b/sdk/dotnet/Pulumi/Deployment/Deployment_Invoke.cs index ccb9e34977d7..6e806391040c 100644 --- a/sdk/dotnet/Pulumi/Deployment/Deployment_Invoke.cs +++ b/sdk/dotnet/Pulumi/Deployment/Deployment_Invoke.cs @@ -105,7 +105,7 @@ private async Task InvokeRawAsync(string token, Serializati var provider = await ProviderResource.RegisterAsync(GetProvider(token, options)).ConfigureAwait(false); - var result = await this.Monitor.InvokeAsync(new InvokeRequest + var result = await this.Monitor.InvokeAsync(new ResourceInvokeRequest { Tok = token, Provider = provider ?? "", diff --git a/sdk/dotnet/Pulumi/Deployment/GrpcMonitor.cs b/sdk/dotnet/Pulumi/Deployment/GrpcMonitor.cs index aeb1c7f472bb..529b2dece2db 100644 --- a/sdk/dotnet/Pulumi/Deployment/GrpcMonitor.cs +++ b/sdk/dotnet/Pulumi/Deployment/GrpcMonitor.cs @@ -29,7 +29,7 @@ public GrpcMonitor(string monitorAddress) // A channel already exists for this address this._client = new ResourceMonitor.ResourceMonitorClient(monitorChannel); } - else + else { lock (_channelsLock) { @@ -38,7 +38,7 @@ public GrpcMonitor(string monitorAddress) // A channel already exists for this address this._client = new ResourceMonitor.ResourceMonitorClient(monitorChannel); } - else + else { // Inititialize the monitor channel once for this monitor address var channel = GrpcChannel.ForAddress(new Uri($"http://{monitorAddress}"), new GrpcChannelOptions @@ -54,22 +54,22 @@ public GrpcMonitor(string monitorAddress) } } } - + public async Task SupportsFeatureAsync(SupportsFeatureRequest request) => await this._client.SupportsFeatureAsync(request); - public async Task InvokeAsync(InvokeRequest request) + public async Task InvokeAsync(ResourceInvokeRequest request) => await this._client.InvokeAsync(request); public async Task CallAsync(CallRequest request) => await this._client.CallAsync(request); - + public async Task ReadResourceAsync(Resource resource, ReadResourceRequest request) => await this._client.ReadResourceAsync(request); public async Task RegisterResourceAsync(Resource resource, RegisterResourceRequest request) => await this._client.RegisterResourceAsync(request); - + public async Task RegisterResourceOutputsAsync(RegisterResourceOutputsRequest request) => await this._client.RegisterResourceOutputsAsync(request); } diff --git a/sdk/dotnet/Pulumi/Deployment/IMonitor.cs b/sdk/dotnet/Pulumi/Deployment/IMonitor.cs index 12214e1fbf83..87c125f84301 100644 --- a/sdk/dotnet/Pulumi/Deployment/IMonitor.cs +++ b/sdk/dotnet/Pulumi/Deployment/IMonitor.cs @@ -9,14 +9,14 @@ internal interface IMonitor { Task SupportsFeatureAsync(SupportsFeatureRequest request); - Task InvokeAsync(InvokeRequest request); + Task InvokeAsync(ResourceInvokeRequest request); Task CallAsync(CallRequest request); - + Task ReadResourceAsync(Resource resource, ReadResourceRequest request); - + Task RegisterResourceAsync(Resource resource, RegisterResourceRequest request); - + Task RegisterResourceOutputsAsync(RegisterResourceOutputsRequest request); } } diff --git a/sdk/dotnet/Pulumi/Testing/MockMonitor.cs b/sdk/dotnet/Pulumi/Testing/MockMonitor.cs index 1522a4311640..deab5c26f07a 100644 --- a/sdk/dotnet/Pulumi/Testing/MockMonitor.cs +++ b/sdk/dotnet/Pulumi/Testing/MockMonitor.cs @@ -30,7 +30,7 @@ public Task SupportsFeatureAsync(SupportsFeatureRequest return Task.FromResult(new SupportsFeatureResponse { HasSupport = hasSupport }); } - public async Task InvokeAsync(InvokeRequest request) + public async Task InvokeAsync(ResourceInvokeRequest request) { var args = ToDictionary(request.Args); @@ -47,7 +47,7 @@ public async Task InvokeAsync(InvokeRequest request) } return new InvokeResponse { Return = await SerializeAsync(registeredResource).ConfigureAwait(false) }; } - + var result = await _mocks.CallAsync(new MockCallArgs { Token = request.Tok, diff --git a/sdk/go/common/resource/plugin/provider_plugin.go b/sdk/go/common/resource/plugin/provider_plugin.go index 38b5a0f893d3..48cb6e5ba2c8 100644 --- a/sdk/go/common/resource/plugin/provider_plugin.go +++ b/sdk/go/common/resource/plugin/provider_plugin.go @@ -1221,9 +1221,8 @@ func (p *provider) Invoke(tok tokens.ModuleMember, args resource.PropertyMap) (r } resp, err := client.Invoke(p.requestContext(), &pulumirpc.InvokeRequest{ - Tok: string(tok), - Args: margs, - AcceptResources: p.acceptResources, + Tok: string(tok), + Args: margs, }) if err != nil { rpcError := rpcerror.Convert(err) @@ -1286,9 +1285,8 @@ func (p *provider) StreamInvoke( streamClient, err := client.StreamInvoke( p.requestContext(), &pulumirpc.InvokeRequest{ - Tok: string(tok), - Args: margs, - AcceptResources: p.acceptResources, + Tok: string(tok), + Args: margs, }) if err != nil { rpcError := rpcerror.Convert(err) diff --git a/sdk/go/pulumi/context.go b/sdk/go/pulumi/context.go index c0ef31de79be..5ad94315e871 100644 --- a/sdk/go/pulumi/context.go +++ b/sdk/go/pulumi/context.go @@ -282,7 +282,7 @@ func (ctx *Context) Invoke(tok string, args interface{}, result interface{}, opt // Now, invoke the RPC to the provider synchronously. logging.V(9).Infof("Invoke(%s, #args=%d): RPC call being made synchronously", tok, len(resolvedArgsMap)) - resp, err := ctx.monitor.Invoke(ctx.ctx, &pulumirpc.InvokeRequest{ + resp, err := ctx.monitor.Invoke(ctx.ctx, &pulumirpc.ResourceInvokeRequest{ Tok: tok, Args: rpcArgs, Provider: providerRef, @@ -699,7 +699,7 @@ func (ctx *Context) getResource(urn string) (*pulumirpc.RegisterResourceResponse tok := "pulumi:pulumi:getResource" logging.V(9).Infof("Invoke(%s, #args=%d): RPC call being made synchronously", tok, len(resolvedArgsMap)) - resp, err := ctx.monitor.Invoke(ctx.ctx, &pulumirpc.InvokeRequest{ + resp, err := ctx.monitor.Invoke(ctx.ctx, &pulumirpc.ResourceInvokeRequest{ Tok: "pulumi:pulumi:getResource", Args: rpcArgs, }) diff --git a/sdk/go/pulumi/mocks.go b/sdk/go/pulumi/mocks.go index 2bb04fd94bcb..fc9c549b239e 100644 --- a/sdk/go/pulumi/mocks.go +++ b/sdk/go/pulumi/mocks.go @@ -88,7 +88,7 @@ func (m *mockMonitor) SupportsFeature(ctx context.Context, in *pulumirpc.Support }, nil } -func (m *mockMonitor) Invoke(ctx context.Context, in *pulumirpc.InvokeRequest, +func (m *mockMonitor) Invoke(ctx context.Context, in *pulumirpc.ResourceInvokeRequest, opts ...grpc.CallOption) (*pulumirpc.InvokeResponse, error) { args, err := plugin.UnmarshalProperties(in.GetArgs(), plugin.MarshalOptions{ @@ -128,7 +128,7 @@ func (m *mockMonitor) Invoke(ctx context.Context, in *pulumirpc.InvokeRequest, result, err := plugin.MarshalProperties(resultV, plugin.MarshalOptions{ KeepSecrets: true, - KeepResources: true, + KeepResources: in.GetAcceptResources(), }) if err != nil { return nil, err @@ -139,7 +139,7 @@ func (m *mockMonitor) Invoke(ctx context.Context, in *pulumirpc.InvokeRequest, }, nil } -func (m *mockMonitor) StreamInvoke(ctx context.Context, in *pulumirpc.InvokeRequest, +func (m *mockMonitor) StreamInvoke(ctx context.Context, in *pulumirpc.ResourceInvokeRequest, opts ...grpc.CallOption) (pulumirpc.ResourceMonitor_StreamInvokeClient, error) { panic("not implemented") diff --git a/sdk/go/pulumi/resource_test.go b/sdk/go/pulumi/resource_test.go index 3cdb41f97d4f..4adf0ea6a7f3 100644 --- a/sdk/go/pulumi/resource_test.go +++ b/sdk/go/pulumi/resource_test.go @@ -549,13 +549,13 @@ func (i *interceptingResourceMonitor) SupportsFeature(ctx context.Context, } func (i *interceptingResourceMonitor) Invoke(ctx context.Context, - in *pulumirpc.InvokeRequest, + in *pulumirpc.ResourceInvokeRequest, opts ...grpc.CallOption) (*pulumirpc.InvokeResponse, error) { return i.inner.Invoke(ctx, in, opts...) } func (i *interceptingResourceMonitor) StreamInvoke(ctx context.Context, - in *pulumirpc.InvokeRequest, + in *pulumirpc.ResourceInvokeRequest, opts ...grpc.CallOption) (pulumirpc.ResourceMonitor_StreamInvokeClient, error) { return i.inner.StreamInvoke(ctx, in, opts...) } diff --git a/sdk/nodejs/cmd/pulumi-language-nodejs/proxy.go b/sdk/nodejs/cmd/pulumi-language-nodejs/proxy.go index 6b1325a3817d..440d4f6f1db6 100644 --- a/sdk/nodejs/cmd/pulumi-language-nodejs/proxy.go +++ b/sdk/nodejs/cmd/pulumi-language-nodejs/proxy.go @@ -101,7 +101,7 @@ func servePipes(ctx context.Context, pipes pipes, target pulumirpc.ResourceMonit // decode and dispatch the request logging.V(10).Infof("Sync invoke: Unmarshalling request") - var req pulumirpc.InvokeRequest + var req pulumirpc.ResourceInvokeRequest if err := pbcodec.Unmarshal(reqBytes, &req); err != nil { logging.V(10).Infof("Sync invoke: Received error reading full from pipe: %s\n", err) return err @@ -187,12 +187,12 @@ type monitorProxy struct { } func (p *monitorProxy) Invoke( - ctx context.Context, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error) { + ctx context.Context, req *pulumirpc.ResourceInvokeRequest) (*pulumirpc.InvokeResponse, error) { return p.target.Invoke(ctx, req) } func (p *monitorProxy) StreamInvoke( - req *pulumirpc.InvokeRequest, server pulumirpc.ResourceMonitor_StreamInvokeServer) error { + req *pulumirpc.ResourceInvokeRequest, server pulumirpc.ResourceMonitor_StreamInvokeServer) error { client, err := p.target.StreamInvoke(context.Background(), req) if err != nil { diff --git a/sdk/nodejs/proto/provider_pb.js b/sdk/nodejs/proto/provider_pb.js index 29443d9747c8..84d5085f4240 100644 --- a/sdk/nodejs/proto/provider_pb.js +++ b/sdk/nodejs/proto/provider_pb.js @@ -1757,11 +1757,7 @@ proto.pulumirpc.InvokeRequest.prototype.toObject = function(opt_includeInstance) proto.pulumirpc.InvokeRequest.toObject = function(includeInstance, msg) { var f, obj = { tok: jspb.Message.getFieldWithDefault(msg, 1, ""), - args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), - provider: jspb.Message.getFieldWithDefault(msg, 3, ""), - version: jspb.Message.getFieldWithDefault(msg, 4, ""), - acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 6, "") + args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f) }; if (includeInstance) { @@ -1807,22 +1803,6 @@ proto.pulumirpc.InvokeRequest.deserializeBinaryFromReader = function(msg, reader reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setArgs(value); break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setProvider(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAcceptresources(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setPlugindownloadurl(value); - break; default: reader.skipField(); break; @@ -1867,34 +1847,6 @@ proto.pulumirpc.InvokeRequest.serializeBinaryToWriter = function(message, writer google_protobuf_struct_pb.Struct.serializeBinaryToWriter ); } - f = message.getProvider(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getAcceptresources(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPlugindownloadurl(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } }; @@ -1953,78 +1905,6 @@ proto.pulumirpc.InvokeRequest.prototype.hasArgs = function() { }; -/** - * optional string provider = 3; - * @return {string} - */ -proto.pulumirpc.InvokeRequest.prototype.getProvider = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.pulumirpc.InvokeRequest} returns this - */ -proto.pulumirpc.InvokeRequest.prototype.setProvider = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string version = 4; - * @return {string} - */ -proto.pulumirpc.InvokeRequest.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.pulumirpc.InvokeRequest} returns this - */ -proto.pulumirpc.InvokeRequest.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool acceptResources = 5; - * @return {boolean} - */ -proto.pulumirpc.InvokeRequest.prototype.getAcceptresources = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.pulumirpc.InvokeRequest} returns this - */ -proto.pulumirpc.InvokeRequest.prototype.setAcceptresources = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional string pluginDownloadURL = 6; - * @return {string} - */ -proto.pulumirpc.InvokeRequest.prototype.getPlugindownloadurl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.pulumirpc.InvokeRequest} returns this - */ -proto.pulumirpc.InvokeRequest.prototype.setPlugindownloadurl = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - /** * List of repeated fields within this message type. diff --git a/sdk/nodejs/proto/resource_grpc_pb.js b/sdk/nodejs/proto/resource_grpc_pb.js index b93bd624e2df..19005b4a6967 100644 --- a/sdk/nodejs/proto/resource_grpc_pb.js +++ b/sdk/nodejs/proto/resource_grpc_pb.js @@ -55,17 +55,6 @@ function deserialize_pulumirpc_CallResponse(buffer_arg) { return provider_pb.CallResponse.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_pulumirpc_InvokeRequest(arg) { - if (!(arg instanceof provider_pb.InvokeRequest)) { - throw new Error('Expected argument of type pulumirpc.InvokeRequest'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_pulumirpc_InvokeRequest(buffer_arg) { - return provider_pb.InvokeRequest.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_pulumirpc_InvokeResponse(arg) { if (!(arg instanceof provider_pb.InvokeResponse)) { throw new Error('Expected argument of type pulumirpc.InvokeResponse'); @@ -132,6 +121,17 @@ function deserialize_pulumirpc_RegisterResourceResponse(buffer_arg) { return resource_pb.RegisterResourceResponse.deserializeBinary(new Uint8Array(buffer_arg)); } +function serialize_pulumirpc_ResourceInvokeRequest(arg) { + if (!(arg instanceof resource_pb.ResourceInvokeRequest)) { + throw new Error('Expected argument of type pulumirpc.ResourceInvokeRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_pulumirpc_ResourceInvokeRequest(buffer_arg) { + return resource_pb.ResourceInvokeRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + function serialize_pulumirpc_SupportsFeatureRequest(arg) { if (!(arg instanceof resource_pb.SupportsFeatureRequest)) { throw new Error('Expected argument of type pulumirpc.SupportsFeatureRequest'); @@ -172,10 +172,10 @@ var ResourceMonitorService = exports.ResourceMonitorService = { path: '/pulumirpc.ResourceMonitor/Invoke', requestStream: false, responseStream: false, - requestType: provider_pb.InvokeRequest, + requestType: resource_pb.ResourceInvokeRequest, responseType: provider_pb.InvokeResponse, - requestSerialize: serialize_pulumirpc_InvokeRequest, - requestDeserialize: deserialize_pulumirpc_InvokeRequest, + requestSerialize: serialize_pulumirpc_ResourceInvokeRequest, + requestDeserialize: deserialize_pulumirpc_ResourceInvokeRequest, responseSerialize: serialize_pulumirpc_InvokeResponse, responseDeserialize: deserialize_pulumirpc_InvokeResponse, }, @@ -183,10 +183,10 @@ var ResourceMonitorService = exports.ResourceMonitorService = { path: '/pulumirpc.ResourceMonitor/StreamInvoke', requestStream: false, responseStream: true, - requestType: provider_pb.InvokeRequest, + requestType: resource_pb.ResourceInvokeRequest, responseType: provider_pb.InvokeResponse, - requestSerialize: serialize_pulumirpc_InvokeRequest, - requestDeserialize: deserialize_pulumirpc_InvokeRequest, + requestSerialize: serialize_pulumirpc_ResourceInvokeRequest, + requestDeserialize: deserialize_pulumirpc_ResourceInvokeRequest, responseSerialize: serialize_pulumirpc_InvokeResponse, responseDeserialize: deserialize_pulumirpc_InvokeResponse, }, diff --git a/sdk/nodejs/proto/resource_pb.js b/sdk/nodejs/proto/resource_pb.js index 8e37b1275a39..bdc773fb380b 100644 --- a/sdk/nodejs/proto/resource_pb.js +++ b/sdk/nodejs/proto/resource_pb.js @@ -26,6 +26,7 @@ goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.CustomTimeouts', null goog.exportSymbol('proto.pulumirpc.RegisterResourceRequest.PropertyDependencies', null, global); goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse', null, global); goog.exportSymbol('proto.pulumirpc.RegisterResourceResponse.PropertyDependencies', null, global); +goog.exportSymbol('proto.pulumirpc.ResourceInvokeRequest', null, global); goog.exportSymbol('proto.pulumirpc.SupportsFeatureRequest', null, global); goog.exportSymbol('proto.pulumirpc.SupportsFeatureResponse', null, global); /** @@ -238,6 +239,27 @@ if (goog.DEBUG && !COMPILED) { */ proto.pulumirpc.RegisterResourceOutputsRequest.displayName = 'proto.pulumirpc.RegisterResourceOutputsRequest'; } +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.pulumirpc.ResourceInvokeRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.pulumirpc.ResourceInvokeRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.pulumirpc.ResourceInvokeRequest.displayName = 'proto.pulumirpc.ResourceInvokeRequest'; +} @@ -3267,4 +3289,305 @@ proto.pulumirpc.RegisterResourceOutputsRequest.prototype.hasOutputs = function() }; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.toObject = function(opt_includeInstance) { + return proto.pulumirpc.ResourceInvokeRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.pulumirpc.ResourceInvokeRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pulumirpc.ResourceInvokeRequest.toObject = function(includeInstance, msg) { + var f, obj = { + tok: jspb.Message.getFieldWithDefault(msg, 1, ""), + args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f), + provider: jspb.Message.getFieldWithDefault(msg, 3, ""), + version: jspb.Message.getFieldWithDefault(msg, 4, ""), + acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), + plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 6, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.pulumirpc.ResourceInvokeRequest} + */ +proto.pulumirpc.ResourceInvokeRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.pulumirpc.ResourceInvokeRequest; + return proto.pulumirpc.ResourceInvokeRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.pulumirpc.ResourceInvokeRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.pulumirpc.ResourceInvokeRequest} + */ +proto.pulumirpc.ResourceInvokeRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setTok(value); + break; + case 2: + var value = new google_protobuf_struct_pb.Struct; + reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); + msg.setArgs(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setProvider(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setVersion(value); + break; + case 5: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setAcceptresources(value); + break; + case 6: + var value = /** @type {string} */ (reader.readString()); + msg.setPlugindownloadurl(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.pulumirpc.ResourceInvokeRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.pulumirpc.ResourceInvokeRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.pulumirpc.ResourceInvokeRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTok(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getArgs(); + if (f != null) { + writer.writeMessage( + 2, + f, + google_protobuf_struct_pb.Struct.serializeBinaryToWriter + ); + } + f = message.getProvider(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getVersion(); + if (f.length > 0) { + writer.writeString( + 4, + f + ); + } + f = message.getAcceptresources(); + if (f) { + writer.writeBool( + 5, + f + ); + } + f = message.getPlugindownloadurl(); + if (f.length > 0) { + writer.writeString( + 6, + f + ); + } +}; + + +/** + * optional string tok = 1; + * @return {string} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.getTok = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.setTok = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional google.protobuf.Struct args = 2; + * @return {?proto.google.protobuf.Struct} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.getArgs = function() { + return /** @type{?proto.google.protobuf.Struct} */ ( + jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2)); +}; + + +/** + * @param {?proto.google.protobuf.Struct|undefined} value + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this +*/ +proto.pulumirpc.ResourceInvokeRequest.prototype.setArgs = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.clearArgs = function() { + return this.setArgs(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.hasArgs = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string provider = 3; + * @return {string} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.getProvider = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.setProvider = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional string version = 4; + * @return {string} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.getVersion = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.setVersion = function(value) { + return jspb.Message.setProto3StringField(this, 4, value); +}; + + +/** + * optional bool acceptResources = 5; + * @return {boolean} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.getAcceptresources = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.setAcceptresources = function(value) { + return jspb.Message.setProto3BooleanField(this, 5, value); +}; + + +/** + * optional string pluginDownloadURL = 6; + * @return {string} + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.getPlugindownloadurl = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); +}; + + +/** + * @param {string} value + * @return {!proto.pulumirpc.ResourceInvokeRequest} returns this + */ +proto.pulumirpc.ResourceInvokeRequest.prototype.setPlugindownloadurl = function(value) { + return jspb.Message.setProto3StringField(this, 6, value); +}; + + goog.object.extend(exports, proto.pulumirpc); diff --git a/sdk/nodejs/runtime/invoke.ts b/sdk/nodejs/runtime/invoke.ts index 5e81da2b0812..ee5ba80d2877 100644 --- a/sdk/nodejs/runtime/invoke.ts +++ b/sdk/nodejs/runtime/invoke.ts @@ -37,6 +37,7 @@ import { PushableAsyncIterable } from "./asyncIterableUtil"; const gstruct = require("google-protobuf/google/protobuf/struct_pb.js"); const providerproto = require("../proto/provider_pb.js"); +const resourceproto = require("../proto/resource_pb.js"); /** * `invoke` dynamically invokes the function, `tok`, which is offered by a provider plugin. `invoke` @@ -198,7 +199,7 @@ function createInvokeRequest(tok: string, serialized: any, provider: string | un const obj = gstruct.Struct.fromJavaScript(serialized); - const req = new providerproto.InvokeRequest(); + const req = new resourceproto.ResourceInvokeRequest(); req.setTok(tok); req.setArgs(obj); req.setProvider(provider); diff --git a/sdk/nodejs/runtime/resource.ts b/sdk/nodejs/runtime/resource.ts index 92cf94471e09..5059729b4147 100644 --- a/sdk/nodejs/runtime/resource.ts +++ b/sdk/nodejs/runtime/resource.ts @@ -111,7 +111,7 @@ export function getResource(res: Resource, props: Inputs, custom: boolean, urn: debuggablePromise(resopAsync.then(async (resop) => { const inputs = await serializeProperties(label, { urn }); - const req = new providerproto.InvokeRequest(); + const req = new resproto.ResourceInvokeRequest(); req.setTok("pulumi:pulumi:getResource"); req.setArgs(gstruct.Struct.fromJavaScript(inputs)); req.setProvider(""); diff --git a/sdk/proto/go/provider.pb.go b/sdk/proto/go/provider.pb.go index d67348283479..8b728d7f2d73 100644 --- a/sdk/proto/go/provider.pb.go +++ b/sdk/proto/go/provider.pb.go @@ -385,10 +385,6 @@ func (m *ConfigureErrorMissingKeys_MissingKey) GetDescription() string { type InvokeRequest struct { Tok string `protobuf:"bytes,1,opt,name=tok,proto3" json:"tok,omitempty"` Args *_struct.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` - Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - AcceptResources bool `protobuf:"varint,5,opt,name=acceptResources,proto3" json:"acceptResources,omitempty"` - PluginDownloadURL string `protobuf:"bytes,6,opt,name=pluginDownloadURL,proto3" json:"pluginDownloadURL,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -433,34 +429,6 @@ func (m *InvokeRequest) GetArgs() *_struct.Struct { return nil } -func (m *InvokeRequest) GetProvider() string { - if m != nil { - return m.Provider - } - return "" -} - -func (m *InvokeRequest) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *InvokeRequest) GetAcceptResources() bool { - if m != nil { - return m.AcceptResources - } - return false -} - -func (m *InvokeRequest) GetPluginDownloadURL() string { - if m != nil { - return m.PluginDownloadURL - } - return "" -} - type InvokeResponse struct { Return *_struct.Struct `protobuf:"bytes,1,opt,name=return,proto3" json:"return,omitempty"` Failures []*CheckFailure `protobuf:"bytes,2,rep,name=failures,proto3" json:"failures,omitempty"` @@ -1995,129 +1963,129 @@ func init() { func init() { proto.RegisterFile("provider.proto", fileDescriptor_c6a9f3c02af3d1c8) } var fileDescriptor_c6a9f3c02af3d1c8 = []byte{ - // 1947 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x73, 0x1b, 0x49, - 0x15, 0xf7, 0xe8, 0xcb, 0xd2, 0xd3, 0x47, 0xe4,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, 0xc5, 0xd9, 0xa2, 0xd5, 0x32, 0xce, 0x36, 0x9a, 0x4c, 0xe3, 0x6c, - 0xb3, 0x2f, 0xe3, 0xa8, 0xd5, 0x44, 0x7f, 0x65, 0x08, 0x30, 0x5a, 0xae, 0xfe, 0x66, 0x2e, 0xdb, - 0x46, 0xb3, 0x98, 0x5e, 0x64, 0x21, 0x28, 0x6a, 0xc9, 0x62, 0x08, 0x1a, 0xd5, 0x7f, 0x31, 0x04, - 0xcd, 0xf2, 0x63, 0xaf, 0xa1, 0x47, 0x50, 0xdb, 0x77, 0x43, 0x0f, 0x33, 0xd7, 0x17, 0x9e, 0x76, - 0x89, 0x16, 0x5f, 0x42, 0xfb, 0x19, 0xa6, 0xc7, 0xfc, 0xeb, 0xf5, 0x30, 0x9c, 0x44, 0x4b, 0x45, - 0x7c, 0x57, 0x7f, 0xf6, 0x65, 0xec, 0xf6, 0xda, 0x9b, 0x1a, 0x67, 0x7c, 0xf0, 0x9f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x9c, 0xb7, 0x22, 0x0e, 0x52, 0x1b, 0x00, 0x00, + // 1948 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcd, 0x73, 0xdc, 0x48, + 0x15, 0xb7, 0xe6, 0xcb, 0x33, 0x6f, 0x3e, 0x32, 0x6e, 0x16, 0x5b, 0x3b, 0x9b, 0x83, 0x4b, 0x6c, + 0x81, 0x49, 0x76, 0x27, 0xc1, 0x39, 0x40, 0x52, 0xd9, 0xca, 0x3a, 0x9e, 0x71, 0xd6, 0x24, 0x71, + 0x8c, 0xbc, 0xe6, 0xe3, 0x94, 0x55, 0x34, 0x3d, 0x13, 0x61, 0x8d, 0xa4, 0x6d, 0xb5, 0x9c, 0xf2, + 0x9d, 0x03, 0x55, 0x54, 0x71, 0xa5, 0x38, 0x51, 0xc5, 0x19, 0x8a, 0x2a, 0xf8,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x66, 0x97, 0xf3, 0x14, 0x17, + 0x98, 0x9c, 0x88, 0x84, 0xbf, 0xc4, 0x2e, 0x35, 0x1b, 0x42, 0x8e, 0x24, 0x59, 0xba, 0xc6, 0xd4, + 0x71, 0xcf, 0xcc, 0x75, 0x91, 0xae, 0x9c, 0x40, 0x8f, 0xa0, 0xe1, 0xf2, 0xc0, 0x35, 0x9b, 0xdc, + 0x42, 0x6b, 0x89, 0x85, 0x22, 0xba, 0x85, 0x61, 0x72, 0x07, 0xba, 0x03, 0x7d, 0x31, 0x12, 0xb9, + 0xcb, 0xf3, 0xa2, 0xb5, 0x5d, 0xdd, 0x69, 0xd9, 0x85, 0x79, 0x56, 0x44, 0x27, 0xe4, 0xc2, 0x4e, + 0x02, 0x13, 0x78, 0xee, 0x49, 0x8a, 0x63, 0xe2, 0x10, 0xc7, 0xf7, 0xb1, 0x6f, 0xb6, 0x79, 0x31, + 0xce, 0x68, 0x96, 0xe0, 0xf3, 0x30, 0xf0, 0x68, 0x48, 0xc6, 0xc1, 0x24, 0x0a, 0xbd, 0x80, 0x9a, + 0x1d, 0xae, 0x7b, 0x7e, 0x7a, 0x70, 0x07, 0x3e, 0xd8, 0x23, 0xb3, 0x64, 0x8e, 0x03, 0xaa, 0x21, + 0x8e, 0xa0, 0x96, 0x90, 0x40, 0x64, 0x6b, 0xcb, 0xe6, 0xe3, 0x41, 0xc8, 0x79, 0x0b, 0xee, 0x2a, + 0x29, 0x70, 0x7b, 0x6a, 0x81, 0xbb, 0xd4, 0xf9, 0x85, 0x93, 0x95, 0x6a, 0x38, 0x78, 0x08, 0x6d, + 0x05, 0xbd, 0x6b, 0x15, 0xd2, 0xff, 0x54, 0xa0, 0x23, 0x8e, 0xba, 0x69, 0x3a, 0xbd, 0x06, 0x24, + 0x46, 0x5a, 0x34, 0x57, 0x8a, 0xd5, 0x4b, 0x39, 0x65, 0x68, 0x17, 0x76, 0x08, 0xc7, 0x97, 0x88, + 0xd2, 0xf2, 0xb5, 0xba, 0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1a, 0x7a, 0x04, 0x8d, 0x7d, 0x27, 0x70, 0x31, 0x73, 0x7d, 0xe9, + 0x69, 0x97, 0x68, 0xf1, 0x39, 0x74, 0x9f, 0x61, 0x7a, 0xcc, 0xbf, 0x5e, 0x0f, 0x83, 0x69, 0xb8, + 0x54, 0xc4, 0xb7, 0xd5, 0x67, 0x5f, 0xc6, 0x6e, 0xad, 0xbd, 0x69, 0x70, 0xc6, 0x07, 0xff, 0x0d, + 0x00, 0x00, 0xff, 0xff, 0xa1, 0xe6, 0xba, 0xa0, 0x01, 0x1b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/sdk/proto/go/resource.pb.go b/sdk/proto/go/resource.pb.go index a2304f352c01..b1a8497487c6 100644 --- a/sdk/proto/go/resource.pb.go +++ b/sdk/proto/go/resource.pb.go @@ -797,6 +797,85 @@ func (m *RegisterResourceOutputsRequest) GetOutputs() *_struct.Struct { return nil } +type ResourceInvokeRequest struct { + Tok string `protobuf:"bytes,1,opt,name=tok,proto3" json:"tok,omitempty"` + Args *_struct.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` + Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` + AcceptResources bool `protobuf:"varint,5,opt,name=acceptResources,proto3" json:"acceptResources,omitempty"` + PluginDownloadURL string `protobuf:"bytes,6,opt,name=pluginDownloadURL,proto3" json:"pluginDownloadURL,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResourceInvokeRequest) Reset() { *m = ResourceInvokeRequest{} } +func (m *ResourceInvokeRequest) String() string { return proto.CompactTextString(m) } +func (*ResourceInvokeRequest) ProtoMessage() {} +func (*ResourceInvokeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d1b72f771c35e3b8, []int{7} +} + +func (m *ResourceInvokeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResourceInvokeRequest.Unmarshal(m, b) +} +func (m *ResourceInvokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResourceInvokeRequest.Marshal(b, m, deterministic) +} +func (m *ResourceInvokeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceInvokeRequest.Merge(m, src) +} +func (m *ResourceInvokeRequest) XXX_Size() int { + return xxx_messageInfo_ResourceInvokeRequest.Size(m) +} +func (m *ResourceInvokeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceInvokeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceInvokeRequest proto.InternalMessageInfo + +func (m *ResourceInvokeRequest) GetTok() string { + if m != nil { + return m.Tok + } + return "" +} + +func (m *ResourceInvokeRequest) GetArgs() *_struct.Struct { + if m != nil { + return m.Args + } + return nil +} + +func (m *ResourceInvokeRequest) GetProvider() string { + if m != nil { + return m.Provider + } + return "" +} + +func (m *ResourceInvokeRequest) GetVersion() string { + if m != nil { + return m.Version + } + return "" +} + +func (m *ResourceInvokeRequest) GetAcceptResources() bool { + if m != nil { + return m.AcceptResources + } + return false +} + +func (m *ResourceInvokeRequest) GetPluginDownloadURL() string { + if m != nil { + return m.PluginDownloadURL + } + return "" +} + func init() { proto.RegisterType((*SupportsFeatureRequest)(nil), "pulumirpc.SupportsFeatureRequest") proto.RegisterType((*SupportsFeatureResponse)(nil), "pulumirpc.SupportsFeatureResponse") @@ -811,79 +890,83 @@ func init() { proto.RegisterMapType((map[string]*RegisterResourceResponse_PropertyDependencies)(nil), "pulumirpc.RegisterResourceResponse.PropertyDependenciesEntry") proto.RegisterType((*RegisterResourceResponse_PropertyDependencies)(nil), "pulumirpc.RegisterResourceResponse.PropertyDependencies") proto.RegisterType((*RegisterResourceOutputsRequest)(nil), "pulumirpc.RegisterResourceOutputsRequest") + proto.RegisterType((*ResourceInvokeRequest)(nil), "pulumirpc.ResourceInvokeRequest") } func init() { proto.RegisterFile("resource.proto", fileDescriptor_d1b72f771c35e3b8) } var fileDescriptor_d1b72f771c35e3b8 = []byte{ - // 1058 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0xff, 0x6f, 0xdb, 0x44, - 0x14, 0x6f, 0x92, 0x2e, 0x4d, 0x5e, 0xdb, 0xb4, 0xbb, 0x76, 0xc9, 0xd5, 0xa0, 0x52, 0x0c, 0x42, - 0x61, 0x42, 0xe9, 0x5a, 0x90, 0xd6, 0xa1, 0x01, 0x12, 0xed, 0x40, 0x93, 0x18, 0x1d, 0x2e, 0x20, - 0x40, 0x02, 0xe9, 0x1a, 0xbf, 0x66, 0xa6, 0x8e, 0xcf, 0xbb, 0x3b, 0x17, 0xe5, 0x37, 0xf8, 0x5b, - 0xf8, 0x4f, 0x10, 0x3f, 0xf1, 0x57, 0xa1, 0xbb, 0xb3, 0x33, 0x3b, 0x76, 0xda, 0x74, 0xfb, 0xed, - 0xde, 0xd7, 0xf3, 0x7b, 0xef, 0x73, 0x9f, 0x3b, 0x43, 0x47, 0xa0, 0xe4, 0x89, 0x18, 0xe2, 0x20, - 0x16, 0x5c, 0x71, 0xd2, 0x8e, 0x93, 0x30, 0x19, 0x07, 0x22, 0x1e, 0x3a, 0x6f, 0x8d, 0x38, 0x1f, - 0x85, 0xb8, 0x6f, 0x0c, 0xe7, 0xc9, 0xc5, 0x3e, 0x8e, 0x63, 0x35, 0xb1, 0x7e, 0xce, 0xdb, 0xb3, - 0x46, 0xa9, 0x44, 0x32, 0x54, 0xa9, 0xb5, 0x13, 0x0b, 0x7e, 0x15, 0xf8, 0x28, 0xac, 0xec, 0xf6, - 0xa1, 0x7b, 0x96, 0xc4, 0x31, 0x17, 0x4a, 0x7e, 0x85, 0x4c, 0x25, 0x02, 0x3d, 0x7c, 0x99, 0xa0, - 0x54, 0xa4, 0x03, 0xf5, 0xc0, 0xa7, 0xb5, 0xbd, 0x5a, 0xbf, 0xed, 0xd5, 0x03, 0xdf, 0x7d, 0x04, - 0xbd, 0x92, 0xa7, 0x8c, 0x79, 0x24, 0x91, 0xec, 0x02, 0xbc, 0x60, 0x32, 0xb5, 0x9a, 0x90, 0x96, - 0x97, 0xd3, 0xb8, 0xff, 0x35, 0x60, 0xcb, 0x43, 0xe6, 0x7b, 0x69, 0x45, 0x73, 0xb6, 0x20, 0x04, - 0x96, 0xd5, 0x24, 0x46, 0x5a, 0x37, 0x1a, 0xb3, 0xd6, 0xba, 0x88, 0x8d, 0x91, 0x36, 0xac, 0x4e, - 0xaf, 0x49, 0x17, 0x9a, 0x31, 0x13, 0x18, 0x29, 0xba, 0x6c, 0xb4, 0xa9, 0x44, 0x1e, 0x02, 0xc4, - 0x82, 0xc7, 0x28, 0x54, 0x80, 0x92, 0xde, 0xd9, 0xab, 0xf5, 0x57, 0x0f, 0x7b, 0x03, 0xdb, 0x8f, - 0x41, 0xd6, 0x8f, 0xc1, 0x99, 0xe9, 0x87, 0x97, 0x73, 0x25, 0x2e, 0xac, 0xf9, 0x18, 0x63, 0xe4, - 0x63, 0x34, 0xd4, 0xa1, 0xcd, 0xbd, 0x46, 0xbf, 0xed, 0x15, 0x74, 0xc4, 0x81, 0x56, 0xd6, 0x3b, - 0xba, 0x62, 0xb6, 0x9d, 0xca, 0x84, 0xc2, 0xca, 0x15, 0x0a, 0x19, 0xf0, 0x88, 0xb6, 0x8c, 0x29, - 0x13, 0xc9, 0xfb, 0xb0, 0xce, 0x86, 0x43, 0x8c, 0xd5, 0x19, 0x0e, 0x05, 0x2a, 0x49, 0xdb, 0xa6, - 0x3b, 0x45, 0x25, 0x39, 0x82, 0x1e, 0xf3, 0xfd, 0x40, 0x05, 0x3c, 0x62, 0xa1, 0x55, 0x9e, 0x26, - 0x2a, 0x4e, 0x94, 0xa4, 0x60, 0x3e, 0x65, 0x9e, 0x59, 0xef, 0xcc, 0xc2, 0x80, 0x49, 0x94, 0x74, - 0xd5, 0x78, 0x66, 0x22, 0xe9, 0xc3, 0x86, 0xdd, 0x24, 0xeb, 0xba, 0xa4, 0x6b, 0x66, 0xef, 0x59, - 0x35, 0xf9, 0x08, 0xee, 0xc6, 0x61, 0x32, 0x0a, 0xa2, 0x13, 0xfe, 0x47, 0x14, 0x72, 0xe6, 0xff, - 0xe0, 0x7d, 0x43, 0xd7, 0x4d, 0x1d, 0x65, 0x83, 0xcb, 0x60, 0xbb, 0x38, 0xcb, 0x14, 0x04, 0x9b, - 0xd0, 0x48, 0x44, 0x94, 0x4e, 0x53, 0x2f, 0x67, 0xc6, 0x51, 0x5f, 0x78, 0x1c, 0xee, 0xdf, 0xab, - 0xd0, 0xf3, 0x70, 0x14, 0x48, 0x85, 0x62, 0x16, 0x33, 0x19, 0x46, 0x6a, 0x15, 0x18, 0xa9, 0x57, - 0x62, 0xa4, 0x51, 0xc0, 0x48, 0x17, 0x9a, 0xc3, 0x44, 0x2a, 0x3e, 0x36, 0xd8, 0x69, 0x79, 0xa9, - 0x44, 0xf6, 0xa1, 0xc9, 0xcf, 0x7f, 0xc7, 0xa1, 0xba, 0x09, 0x37, 0xa9, 0x9b, 0xee, 0xbc, 0x36, - 0xe9, 0x88, 0xa6, 0xc9, 0x94, 0x89, 0x25, 0x34, 0xad, 0xdc, 0x80, 0xa6, 0xd6, 0x0c, 0x9a, 0x62, - 0xd8, 0x4e, 0x9b, 0x31, 0x39, 0xc9, 0xe7, 0x69, 0xef, 0x35, 0xfa, 0xab, 0x87, 0x8f, 0x07, 0x53, - 0x22, 0x18, 0xcc, 0x69, 0xd2, 0xe0, 0x79, 0x45, 0xf8, 0x93, 0x48, 0x89, 0x89, 0x57, 0x99, 0x99, - 0x3c, 0x80, 0x2d, 0x1f, 0x43, 0x54, 0xf8, 0x25, 0x5e, 0x70, 0x7d, 0xb0, 0xe3, 0x90, 0x0d, 0x91, - 0x82, 0xa9, 0xab, 0xca, 0x94, 0x47, 0xfc, 0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0xa5, 0x9e, 0xf9, 0x1d, 0xfe, 0xbb, 0x0c, 0x1b, 0x59, 0xfe, 0x67, 0x3c, 0x0a, 0x14, - 0x17, 0xe4, 0x17, 0xd8, 0x98, 0x79, 0x50, 0x92, 0x77, 0x73, 0x25, 0x55, 0x3f, 0x4b, 0x1d, 0xf7, - 0x3a, 0x17, 0x5b, 0xb4, 0xbb, 0x44, 0xbe, 0x80, 0xe6, 0xd3, 0xe8, 0x8a, 0x5f, 0x22, 0xa1, 0x39, - 0x7f, 0xab, 0xca, 0x32, 0xed, 0x54, 0x58, 0xa6, 0x09, 0xbe, 0x86, 0xb5, 0x33, 0x25, 0x90, 0x8d, - 0xdf, 0x28, 0xcd, 0x83, 0x1a, 0x79, 0x04, 0xcb, 0xc7, 0x2c, 0x0c, 0x49, 0x37, 0xe7, 0xa6, 0x15, - 0x59, 0x78, 0xaf, 0xa4, 0x9f, 0x7e, 0xc3, 0x77, 0xb0, 0x96, 0x7f, 0x69, 0x91, 0xdd, 0xc2, 0xc0, - 0x4b, 0xcf, 0x69, 0xe7, 0x9d, 0xb9, 0xf6, 0x69, 0xca, 0x5f, 0x61, 0x73, 0x76, 0xdc, 0xc4, 0xbd, - 0x99, 0x49, 0x9c, 0xf7, 0x16, 0xc0, 0x9a, 0xbb, 0x44, 0x7e, 0x2b, 0xbf, 0xdb, 0xb2, 0x0b, 0xf9, - 0xc3, 0x6b, 0x32, 0x14, 0x11, 0xe7, 0x74, 0x4b, 0x70, 0x7a, 0xa2, 0xff, 0x6f, 0xdc, 0xa5, 0xf3, - 0xa6, 0xd1, 0x7c, 0xfc, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x4f, 0xf5, 0x90, 0x1c, 0x0d, - 0x00, 0x00, + // 1110 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0x1b, 0x45, + 0x14, 0xae, 0x7f, 0xea, 0xd8, 0x27, 0xa9, 0x93, 0x4e, 0x13, 0x7b, 0xb2, 0xa0, 0x10, 0x16, 0x84, + 0x4c, 0x41, 0x4e, 0x13, 0x90, 0x9a, 0xa2, 0xc2, 0x05, 0x49, 0x41, 0x95, 0x28, 0x29, 0x1b, 0x40, + 0x80, 0x04, 0xd2, 0xc4, 0x7b, 0xe2, 0x2e, 0x59, 0xef, 0x6c, 0x67, 0x67, 0x83, 0x7c, 0x07, 0xcf, + 0xc2, 0x9b, 0x70, 0xc9, 0x35, 0x8f, 0xc0, 0x83, 0xa0, 0x99, 0xd9, 0x71, 0x77, 0xbd, 0xeb, 0xc4, + 0xa9, 0xb8, 0xdb, 0xf3, 0x3b, 0x33, 0xe7, 0x7c, 0xe7, 0x9b, 0x59, 0xe8, 0x0a, 0x4c, 0x78, 0x2a, + 0x46, 0x38, 0x8c, 0x05, 0x97, 0x9c, 0x74, 0xe2, 0x34, 0x4c, 0x27, 0x81, 0x88, 0x47, 0xce, 0x1b, + 0x63, 0xce, 0xc7, 0x21, 0xee, 0x69, 0xc3, 0x59, 0x7a, 0xbe, 0x87, 0x93, 0x58, 0x4e, 0x8d, 0x9f, + 0xf3, 0xe6, 0xbc, 0x31, 0x91, 0x22, 0x1d, 0xc9, 0xcc, 0xda, 0x8d, 0x05, 0xbf, 0x0c, 0x7c, 0x14, + 0x46, 0x76, 0x07, 0xd0, 0x3b, 0x4d, 0xe3, 0x98, 0x0b, 0x99, 0x7c, 0x81, 0x4c, 0xa6, 0x02, 0x3d, + 0x7c, 0x99, 0x62, 0x22, 0x49, 0x17, 0xea, 0x81, 0x4f, 0x6b, 0xbb, 0xb5, 0x41, 0xc7, 0xab, 0x07, + 0xbe, 0xfb, 0x08, 0xfa, 0x25, 0xcf, 0x24, 0xe6, 0x51, 0x82, 0x64, 0x07, 0xe0, 0x05, 0x4b, 0x32, + 0xab, 0x0e, 0x69, 0x7b, 0x39, 0x8d, 0xfb, 0x77, 0x03, 0xee, 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imports to suppress errors if they are not otherwise used. @@ -899,8 +982,8 @@ const _ = grpc.SupportPackageIsVersion6 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ResourceMonitorClient interface { SupportsFeature(ctx context.Context, in *SupportsFeatureRequest, opts ...grpc.CallOption) (*SupportsFeatureResponse, error) - Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) - StreamInvoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (ResourceMonitor_StreamInvokeClient, error) + Invoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) + StreamInvoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (ResourceMonitor_StreamInvokeClient, error) Call(ctx context.Context, in *CallRequest, opts ...grpc.CallOption) (*CallResponse, error) ReadResource(ctx context.Context, in *ReadResourceRequest, opts ...grpc.CallOption) (*ReadResourceResponse, error) RegisterResource(ctx context.Context, in *RegisterResourceRequest, opts ...grpc.CallOption) (*RegisterResourceResponse, error) @@ -924,7 +1007,7 @@ func (c *resourceMonitorClient) SupportsFeature(ctx context.Context, in *Support return out, nil } -func (c *resourceMonitorClient) Invoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) { +func (c *resourceMonitorClient) Invoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (*InvokeResponse, error) { out := new(InvokeResponse) err := c.cc.Invoke(ctx, "/pulumirpc.ResourceMonitor/Invoke", in, out, opts...) if err != nil { @@ -933,7 +1016,7 @@ func (c *resourceMonitorClient) Invoke(ctx context.Context, in *InvokeRequest, o return out, nil } -func (c *resourceMonitorClient) StreamInvoke(ctx context.Context, in *InvokeRequest, opts ...grpc.CallOption) (ResourceMonitor_StreamInvokeClient, error) { +func (c *resourceMonitorClient) StreamInvoke(ctx context.Context, in *ResourceInvokeRequest, opts ...grpc.CallOption) (ResourceMonitor_StreamInvokeClient, error) { stream, err := c.cc.NewStream(ctx, &_ResourceMonitor_serviceDesc.Streams[0], "/pulumirpc.ResourceMonitor/StreamInvoke", opts...) if err != nil { return nil, err @@ -1004,8 +1087,8 @@ func (c *resourceMonitorClient) RegisterResourceOutputs(ctx context.Context, in // ResourceMonitorServer is the server API for ResourceMonitor service. type ResourceMonitorServer interface { SupportsFeature(context.Context, *SupportsFeatureRequest) (*SupportsFeatureResponse, error) - Invoke(context.Context, *InvokeRequest) (*InvokeResponse, error) - StreamInvoke(*InvokeRequest, ResourceMonitor_StreamInvokeServer) error + Invoke(context.Context, *ResourceInvokeRequest) (*InvokeResponse, error) + StreamInvoke(*ResourceInvokeRequest, ResourceMonitor_StreamInvokeServer) error Call(context.Context, *CallRequest) (*CallResponse, error) ReadResource(context.Context, *ReadResourceRequest) (*ReadResourceResponse, error) RegisterResource(context.Context, *RegisterResourceRequest) (*RegisterResourceResponse, error) @@ -1019,10 +1102,10 @@ type UnimplementedResourceMonitorServer struct { func (*UnimplementedResourceMonitorServer) SupportsFeature(ctx context.Context, req *SupportsFeatureRequest) (*SupportsFeatureResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SupportsFeature not implemented") } -func (*UnimplementedResourceMonitorServer) Invoke(ctx context.Context, req *InvokeRequest) (*InvokeResponse, error) { +func (*UnimplementedResourceMonitorServer) Invoke(ctx context.Context, req *ResourceInvokeRequest) (*InvokeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Invoke not implemented") } -func (*UnimplementedResourceMonitorServer) StreamInvoke(req *InvokeRequest, srv ResourceMonitor_StreamInvokeServer) error { +func (*UnimplementedResourceMonitorServer) StreamInvoke(req *ResourceInvokeRequest, srv ResourceMonitor_StreamInvokeServer) error { return status.Errorf(codes.Unimplemented, "method StreamInvoke not implemented") } func (*UnimplementedResourceMonitorServer) Call(ctx context.Context, req *CallRequest) (*CallResponse, error) { @@ -1061,7 +1144,7 @@ func _ResourceMonitor_SupportsFeature_Handler(srv interface{}, ctx context.Conte } func _ResourceMonitor_Invoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InvokeRequest) + in := new(ResourceInvokeRequest) if err := dec(in); err != nil { return nil, err } @@ -1073,13 +1156,13 @@ func _ResourceMonitor_Invoke_Handler(srv interface{}, ctx context.Context, dec f FullMethod: "/pulumirpc.ResourceMonitor/Invoke", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ResourceMonitorServer).Invoke(ctx, req.(*InvokeRequest)) + return srv.(ResourceMonitorServer).Invoke(ctx, req.(*ResourceInvokeRequest)) } return interceptor(ctx, in, info, handler) } func _ResourceMonitor_StreamInvoke_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(InvokeRequest) + m := new(ResourceInvokeRequest) if err := stream.RecvMsg(m); err != nil { return err } diff --git a/sdk/proto/provider.proto b/sdk/proto/provider.proto index 90d737230733..9ce591628510 100644 --- a/sdk/proto/provider.proto +++ b/sdk/proto/provider.proto @@ -106,10 +106,12 @@ message ConfigureErrorMissingKeys { message InvokeRequest { string tok = 1; // the function token to invoke. google.protobuf.Struct args = 2; // the arguments for the function invocation. - string provider = 3; // an optional reference to the provider version to use for this invoke. - string version = 4; // the version of the provider to use when servicing this request. - bool acceptResources = 5; // when true operations should return resource references as strongly typed. - string pluginDownloadURL = 6; // an optional reference to the provider url to use for this invoke. + + // We used to send ResourceInvokeRequest for both provider invokes and monitor invokes, despite them being + // different. We've now split them but need to make sure we don't confuse any old plugins/monitors making + // sure those fields don't get reused. + reserved 3 to 6; + reserved "provider", "version", "acceptResources", "pluginDownloadURL"; } message InvokeResponse { diff --git a/sdk/proto/resource.proto b/sdk/proto/resource.proto index 0655b5256269..66f3ba14777b 100644 --- a/sdk/proto/resource.proto +++ b/sdk/proto/resource.proto @@ -23,8 +23,8 @@ package pulumirpc; // ResourceMonitor is the interface a source uses to talk back to the planning monitor orchestrating the execution. service ResourceMonitor { rpc SupportsFeature(SupportsFeatureRequest) returns (SupportsFeatureResponse) {} - rpc Invoke(InvokeRequest) returns (InvokeResponse) {} - rpc StreamInvoke(InvokeRequest) returns (stream InvokeResponse) {} + rpc Invoke(ResourceInvokeRequest) returns (InvokeResponse) {} + rpc StreamInvoke(ResourceInvokeRequest) returns (stream InvokeResponse) {} rpc Call(CallRequest) returns (CallResponse) {} rpc ReadResource(ReadResourceRequest) returns (ReadResourceResponse) {} rpc RegisterResource(RegisterResourceRequest) returns (RegisterResourceResponse) {} @@ -131,3 +131,12 @@ message RegisterResourceOutputsRequest { string urn = 1; // the URN for the resource to attach output properties to. google.protobuf.Struct outputs = 2; // additional output properties to add to the existing resource. } + +message ResourceInvokeRequest { + string tok = 1; // the function token to invoke. + google.protobuf.Struct args = 2; // the arguments for the function invocation. + string provider = 3; // an optional reference to the provider version to use for this invoke. + string version = 4; // the version of the provider to use when servicing this request. + bool acceptResources = 5; // when true operations should return resource references as strongly typed. + string pluginDownloadURL = 6; // an optional reference to the provider url to use for this invoke. +} diff --git a/sdk/python/lib/pulumi/runtime/invoke.py b/sdk/python/lib/pulumi/runtime/invoke.py index 70e354d52c26..5ce2e2b6bced 100644 --- a/sdk/python/lib/pulumi/runtime/invoke.py +++ b/sdk/python/lib/pulumi/runtime/invoke.py @@ -21,7 +21,7 @@ from .. import log from .. import _types from ..invoke import InvokeOptions -from ..runtime.proto import provider_pb2 +from ..runtime.proto import provider_pb2, resource_pb2 from . import rpc from .rpc_manager import RPC_MANAGER from .settings import get_monitor, grpc_error_to_exception, handle_grpc_error @@ -111,7 +111,7 @@ async def do_invoke(): os.getenv("PULUMI_DISABLE_RESOURCE_REFERENCES", "").upper() in {"TRUE", "1"} ) log.debug(f"Invoking function prepared: tok={tok}") - req = provider_pb2.InvokeRequest( + req = resource_pb2.ResourceInvokeRequest( tok=tok, args=inputs, provider=provider_ref, diff --git a/sdk/python/lib/pulumi/runtime/proto/provider_pb2.py b/sdk/python/lib/pulumi/runtime/proto/provider_pb2.py index aebd2aefe918..3e458fb19bab 100644 --- a/sdk/python/lib/pulumi/runtime/proto/provider_pb2.py +++ b/sdk/python/lib/pulumi/runtime/proto/provider_pb2.py @@ -22,7 +22,7 @@ package="pulumirpc", syntax="proto3", serialized_options=None, - serialized_pb=b'\n\x0eprovider.proto\x12\tpulumirpc\x1a\x0cplugin.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto"#\n\x10GetSchemaRequest\x12\x0f\n\x07version\x18\x01 \x01(\x05"#\n\x11GetSchemaResponse\x12\x0e\n\x06schema\x18\x01 \x01(\t"\xda\x01\n\x10\x43onfigureRequest\x12=\n\tvariables\x18\x01 \x03(\x0b\x32*.pulumirpc.ConfigureRequest.VariablesEntry\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\racceptSecrets\x18\x03 \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x04 \x01(\x08\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"s\n\x11\x43onfigureResponse\x12\x15\n\racceptSecrets\x18\x01 \x01(\x08\x12\x17\n\x0fsupportsPreview\x18\x02 \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x03 \x01(\x08\x12\x15\n\racceptOutputs\x18\x04 \x01(\x08"\x92\x01\n\x19\x43onfigureErrorMissingKeys\x12\x44\n\x0bmissingKeys\x18\x01 \x03(\x0b\x32/.pulumirpc.ConfigureErrorMissingKeys.MissingKey\x1a/\n\nMissingKey\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t"\x9a\x01\n\rInvokeRequest\x12\x0b\n\x03tok\x18\x01 \x01(\t\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08provider\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x05 \x01(\x08\x12\x19\n\x11pluginDownloadURL\x18\x06 \x01(\t"d\n\x0eInvokeResponse\x12\'\n\x06return\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32\x17.pulumirpc.CheckFailure"\xa8\x04\n\x0b\x43\x61llRequest\x12\x0b\n\x03tok\x18\x01 \x01(\t\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x44\n\x0f\x61rgDependencies\x18\x03 \x03(\x0b\x32+.pulumirpc.CallRequest.ArgDependenciesEntry\x12\x10\n\x08provider\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\x19\n\x11pluginDownloadURL\x18\r \x01(\t\x12\x0f\n\x07project\x18\x06 \x01(\t\x12\r\n\x05stack\x18\x07 \x01(\t\x12\x32\n\x06\x63onfig\x18\x08 \x03(\x0b\x32".pulumirpc.CallRequest.ConfigEntry\x12\x18\n\x10\x63onfigSecretKeys\x18\t \x03(\t\x12\x0e\n\x06\x64ryRun\x18\n \x01(\x08\x12\x10\n\x08parallel\x18\x0b \x01(\x05\x12\x17\n\x0fmonitorEndpoint\x18\x0c \x01(\t\x1a$\n\x14\x41rgumentDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a\x63\n\x14\x41rgDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.pulumirpc.CallRequest.ArgumentDependencies:\x02\x38\x01\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xba\x02\n\x0c\x43\x61llResponse\x12\'\n\x06return\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12K\n\x12returnDependencies\x18\x02 \x03(\x0b\x32/.pulumirpc.CallResponse.ReturnDependenciesEntry\x12)\n\x08\x66\x61ilures\x18\x03 \x03(\x0b\x32\x17.pulumirpc.CheckFailure\x1a"\n\x12ReturnDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a\x65\n\x17ReturnDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.pulumirpc.CallResponse.ReturnDependencies:\x02\x38\x01"\x81\x01\n\x0c\x43heckRequest\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12%\n\x04olds\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\x04news\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x16\n\x0esequenceNumber\x18\x04 \x01(\x05"c\n\rCheckResponse\x12\'\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32\x17.pulumirpc.CheckFailure"0\n\x0c\x43heckFailure\x12\x10\n\x08property\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t"\x8b\x01\n\x0b\x44iffRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12%\n\x04olds\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\x04news\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\rignoreChanges\x18\x05 \x03(\t"\xaf\x01\n\x0cPropertyDiff\x12*\n\x04kind\x18\x01 \x01(\x0e\x32\x1c.pulumirpc.PropertyDiff.Kind\x12\x11\n\tinputDiff\x18\x02 \x01(\x08"`\n\x04Kind\x12\x07\n\x03\x41\x44\x44\x10\x00\x12\x0f\n\x0b\x41\x44\x44_REPLACE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x12\n\x0e\x44\x45LETE_REPLACE\x10\x03\x12\n\n\x06UPDATE\x10\x04\x12\x12\n\x0eUPDATE_REPLACE\x10\x05"\xfa\x02\n\x0c\x44iffResponse\x12\x10\n\x08replaces\x18\x01 \x03(\t\x12\x0f\n\x07stables\x18\x02 \x03(\t\x12\x1b\n\x13\x64\x65leteBeforeReplace\x18\x03 \x01(\x08\x12\x34\n\x07\x63hanges\x18\x04 \x01(\x0e\x32#.pulumirpc.DiffResponse.DiffChanges\x12\r\n\x05\x64iffs\x18\x05 \x03(\t\x12?\n\x0c\x64\x65tailedDiff\x18\x06 \x03(\x0b\x32).pulumirpc.DiffResponse.DetailedDiffEntry\x12\x17\n\x0fhasDetailedDiff\x18\x07 \x01(\x08\x1aL\n\x11\x44\x65tailedDiffEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.pulumirpc.PropertyDiff:\x02\x38\x01"=\n\x0b\x44iffChanges\x12\x10\n\x0c\x44IFF_UNKNOWN\x10\x00\x12\r\n\tDIFF_NONE\x10\x01\x12\r\n\tDIFF_SOME\x10\x02"k\n\rCreateRequest\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x0f\n\x07preview\x18\x04 \x01(\x08"I\n\x0e\x43reateResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct"|\n\x0bReadRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\'\n\x06inputs\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct"p\n\x0cReadResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\'\n\x06inputs\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct"\xaf\x01\n\rUpdateRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12%\n\x04olds\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\x04news\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\x12\x15\n\rignoreChanges\x18\x06 \x03(\t\x12\x0f\n\x07preview\x18\x07 \x01(\x08"=\n\x0eUpdateResponse\x12+\n\nproperties\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct"f\n\rDeleteRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07timeout\x18\x04 \x01(\x01"\xce\x05\n\x10\x43onstructRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\r\n\x05stack\x18\x02 \x01(\t\x12\x37\n\x06\x63onfig\x18\x03 \x03(\x0b\x32\'.pulumirpc.ConstructRequest.ConfigEntry\x12\x0e\n\x06\x64ryRun\x18\x04 \x01(\x08\x12\x10\n\x08parallel\x18\x05 \x01(\x05\x12\x17\n\x0fmonitorEndpoint\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x07 \x01(\t\x12\x0c\n\x04name\x18\x08 \x01(\t\x12\x0e\n\x06parent\x18\t \x01(\t\x12\'\n\x06inputs\x18\n \x01(\x0b\x32\x17.google.protobuf.Struct\x12M\n\x11inputDependencies\x18\x0b \x03(\x0b\x32\x32.pulumirpc.ConstructRequest.InputDependenciesEntry\x12\x0f\n\x07protect\x18\x0c \x01(\x08\x12=\n\tproviders\x18\r \x03(\x0b\x32*.pulumirpc.ConstructRequest.ProvidersEntry\x12\x0f\n\x07\x61liases\x18\x0e \x03(\t\x12\x14\n\x0c\x64\x65pendencies\x18\x0f \x03(\t\x12\x18\n\x10\x63onfigSecretKeys\x18\x10 \x03(\t\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aj\n\x16InputDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.pulumirpc.ConstructRequest.PropertyDependencies:\x02\x38\x01\x1a\x30\n\x0eProvidersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xab\x02\n\x11\x43onstructResponse\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12&\n\x05state\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12N\n\x11stateDependencies\x18\x03 \x03(\x0b\x32\x33.pulumirpc.ConstructResponse.StateDependenciesEntry\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1ak\n\x16StateDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.pulumirpc.ConstructResponse.PropertyDependencies:\x02\x38\x01"\x8c\x01\n\x17\x45rrorResourceInitFailed\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07reasons\x18\x03 \x03(\t\x12\'\n\x06inputs\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct2\xac\x08\n\x10ResourceProvider\x12H\n\tGetSchema\x12\x1b.pulumirpc.GetSchemaRequest\x1a\x1c.pulumirpc.GetSchemaResponse"\x00\x12\x42\n\x0b\x43heckConfig\x12\x17.pulumirpc.CheckRequest\x1a\x18.pulumirpc.CheckResponse"\x00\x12?\n\nDiffConfig\x12\x16.pulumirpc.DiffRequest\x1a\x17.pulumirpc.DiffResponse"\x00\x12H\n\tConfigure\x12\x1b.pulumirpc.ConfigureRequest\x1a\x1c.pulumirpc.ConfigureResponse"\x00\x12?\n\x06Invoke\x12\x18.pulumirpc.InvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x12G\n\x0cStreamInvoke\x12\x18.pulumirpc.InvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x30\x01\x12\x39\n\x04\x43\x61ll\x12\x16.pulumirpc.CallRequest\x1a\x17.pulumirpc.CallResponse"\x00\x12<\n\x05\x43heck\x12\x17.pulumirpc.CheckRequest\x1a\x18.pulumirpc.CheckResponse"\x00\x12\x39\n\x04\x44iff\x12\x16.pulumirpc.DiffRequest\x1a\x17.pulumirpc.DiffResponse"\x00\x12?\n\x06\x43reate\x12\x18.pulumirpc.CreateRequest\x1a\x19.pulumirpc.CreateResponse"\x00\x12\x39\n\x04Read\x12\x16.pulumirpc.ReadRequest\x1a\x17.pulumirpc.ReadResponse"\x00\x12?\n\x06Update\x12\x18.pulumirpc.UpdateRequest\x1a\x19.pulumirpc.UpdateResponse"\x00\x12<\n\x06\x44\x65lete\x12\x18.pulumirpc.DeleteRequest\x1a\x16.google.protobuf.Empty"\x00\x12H\n\tConstruct\x12\x1b.pulumirpc.ConstructRequest\x1a\x1c.pulumirpc.ConstructResponse"\x00\x12:\n\x06\x43\x61ncel\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty"\x00\x12@\n\rGetPluginInfo\x12\x16.google.protobuf.Empty\x1a\x15.pulumirpc.PluginInfo"\x00\x62\x06proto3', + serialized_pb=b'\n\x0eprovider.proto\x12\tpulumirpc\x1a\x0cplugin.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto"#\n\x10GetSchemaRequest\x12\x0f\n\x07version\x18\x01 \x01(\x05"#\n\x11GetSchemaResponse\x12\x0e\n\x06schema\x18\x01 \x01(\t"\xda\x01\n\x10\x43onfigureRequest\x12=\n\tvariables\x18\x01 \x03(\x0b\x32*.pulumirpc.ConfigureRequest.VariablesEntry\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\racceptSecrets\x18\x03 \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x04 \x01(\x08\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"s\n\x11\x43onfigureResponse\x12\x15\n\racceptSecrets\x18\x01 \x01(\x08\x12\x17\n\x0fsupportsPreview\x18\x02 \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x03 \x01(\x08\x12\x15\n\racceptOutputs\x18\x04 \x01(\x08"\x92\x01\n\x19\x43onfigureErrorMissingKeys\x12\x44\n\x0bmissingKeys\x18\x01 \x03(\x0b\x32/.pulumirpc.ConfigureErrorMissingKeys.MissingKey\x1a/\n\nMissingKey\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t"\x80\x01\n\rInvokeRequest\x12\x0b\n\x03tok\x18\x01 \x01(\t\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructJ\x04\x08\x03\x10\x07R\x08providerR\x07versionR\x0f\x61\x63\x63\x65ptResourcesR\x11pluginDownloadURL"d\n\x0eInvokeResponse\x12\'\n\x06return\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32\x17.pulumirpc.CheckFailure"\xa8\x04\n\x0b\x43\x61llRequest\x12\x0b\n\x03tok\x18\x01 \x01(\t\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x44\n\x0f\x61rgDependencies\x18\x03 \x03(\x0b\x32+.pulumirpc.CallRequest.ArgDependenciesEntry\x12\x10\n\x08provider\x18\x04 \x01(\t\x12\x0f\n\x07version\x18\x05 \x01(\t\x12\x19\n\x11pluginDownloadURL\x18\r \x01(\t\x12\x0f\n\x07project\x18\x06 \x01(\t\x12\r\n\x05stack\x18\x07 \x01(\t\x12\x32\n\x06\x63onfig\x18\x08 \x03(\x0b\x32".pulumirpc.CallRequest.ConfigEntry\x12\x18\n\x10\x63onfigSecretKeys\x18\t \x03(\t\x12\x0e\n\x06\x64ryRun\x18\n \x01(\x08\x12\x10\n\x08parallel\x18\x0b \x01(\x05\x12\x17\n\x0fmonitorEndpoint\x18\x0c \x01(\t\x1a$\n\x14\x41rgumentDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a\x63\n\x14\x41rgDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.pulumirpc.CallRequest.ArgumentDependencies:\x02\x38\x01\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xba\x02\n\x0c\x43\x61llResponse\x12\'\n\x06return\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12K\n\x12returnDependencies\x18\x02 \x03(\x0b\x32/.pulumirpc.CallResponse.ReturnDependenciesEntry\x12)\n\x08\x66\x61ilures\x18\x03 \x03(\x0b\x32\x17.pulumirpc.CheckFailure\x1a"\n\x12ReturnDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a\x65\n\x17ReturnDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.pulumirpc.CallResponse.ReturnDependencies:\x02\x38\x01"\x81\x01\n\x0c\x43heckRequest\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12%\n\x04olds\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\x04news\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x16\n\x0esequenceNumber\x18\x04 \x01(\x05"c\n\rCheckResponse\x12\'\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08\x66\x61ilures\x18\x02 \x03(\x0b\x32\x17.pulumirpc.CheckFailure"0\n\x0c\x43heckFailure\x12\x10\n\x08property\x18\x01 \x01(\t\x12\x0e\n\x06reason\x18\x02 \x01(\t"\x8b\x01\n\x0b\x44iffRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12%\n\x04olds\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\x04news\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\rignoreChanges\x18\x05 \x03(\t"\xaf\x01\n\x0cPropertyDiff\x12*\n\x04kind\x18\x01 \x01(\x0e\x32\x1c.pulumirpc.PropertyDiff.Kind\x12\x11\n\tinputDiff\x18\x02 \x01(\x08"`\n\x04Kind\x12\x07\n\x03\x41\x44\x44\x10\x00\x12\x0f\n\x0b\x41\x44\x44_REPLACE\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x12\x12\n\x0e\x44\x45LETE_REPLACE\x10\x03\x12\n\n\x06UPDATE\x10\x04\x12\x12\n\x0eUPDATE_REPLACE\x10\x05"\xfa\x02\n\x0c\x44iffResponse\x12\x10\n\x08replaces\x18\x01 \x03(\t\x12\x0f\n\x07stables\x18\x02 \x03(\t\x12\x1b\n\x13\x64\x65leteBeforeReplace\x18\x03 \x01(\x08\x12\x34\n\x07\x63hanges\x18\x04 \x01(\x0e\x32#.pulumirpc.DiffResponse.DiffChanges\x12\r\n\x05\x64iffs\x18\x05 \x03(\t\x12?\n\x0c\x64\x65tailedDiff\x18\x06 \x03(\x0b\x32).pulumirpc.DiffResponse.DetailedDiffEntry\x12\x17\n\x0fhasDetailedDiff\x18\x07 \x01(\x08\x1aL\n\x11\x44\x65tailedDiffEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.pulumirpc.PropertyDiff:\x02\x38\x01"=\n\x0b\x44iffChanges\x12\x10\n\x0c\x44IFF_UNKNOWN\x10\x00\x12\r\n\tDIFF_NONE\x10\x01\x12\r\n\tDIFF_SOME\x10\x02"k\n\rCreateRequest\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x0f\n\x07preview\x18\x04 \x01(\x08"I\n\x0e\x43reateResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct"|\n\x0bReadRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\'\n\x06inputs\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct"p\n\x0cReadResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\'\n\x06inputs\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct"\xaf\x01\n\rUpdateRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12%\n\x04olds\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\x04news\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\x12\x15\n\rignoreChanges\x18\x06 \x03(\t\x12\x0f\n\x07preview\x18\x07 \x01(\x08"=\n\x0eUpdateResponse\x12+\n\nproperties\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct"f\n\rDeleteRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03urn\x18\x02 \x01(\t\x12+\n\nproperties\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07timeout\x18\x04 \x01(\x01"\xce\x05\n\x10\x43onstructRequest\x12\x0f\n\x07project\x18\x01 \x01(\t\x12\r\n\x05stack\x18\x02 \x01(\t\x12\x37\n\x06\x63onfig\x18\x03 \x03(\x0b\x32\'.pulumirpc.ConstructRequest.ConfigEntry\x12\x0e\n\x06\x64ryRun\x18\x04 \x01(\x08\x12\x10\n\x08parallel\x18\x05 \x01(\x05\x12\x17\n\x0fmonitorEndpoint\x18\x06 \x01(\t\x12\x0c\n\x04type\x18\x07 \x01(\t\x12\x0c\n\x04name\x18\x08 \x01(\t\x12\x0e\n\x06parent\x18\t \x01(\t\x12\'\n\x06inputs\x18\n \x01(\x0b\x32\x17.google.protobuf.Struct\x12M\n\x11inputDependencies\x18\x0b \x03(\x0b\x32\x32.pulumirpc.ConstructRequest.InputDependenciesEntry\x12\x0f\n\x07protect\x18\x0c \x01(\x08\x12=\n\tproviders\x18\r \x03(\x0b\x32*.pulumirpc.ConstructRequest.ProvidersEntry\x12\x0f\n\x07\x61liases\x18\x0e \x03(\t\x12\x14\n\x0c\x64\x65pendencies\x18\x0f \x03(\t\x12\x18\n\x10\x63onfigSecretKeys\x18\x10 \x03(\t\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aj\n\x16InputDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.pulumirpc.ConstructRequest.PropertyDependencies:\x02\x38\x01\x1a\x30\n\x0eProvidersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xab\x02\n\x11\x43onstructResponse\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12&\n\x05state\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12N\n\x11stateDependencies\x18\x03 \x03(\x0b\x32\x33.pulumirpc.ConstructResponse.StateDependenciesEntry\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1ak\n\x16StateDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.pulumirpc.ConstructResponse.PropertyDependencies:\x02\x38\x01"\x8c\x01\n\x17\x45rrorResourceInitFailed\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07reasons\x18\x03 \x03(\t\x12\'\n\x06inputs\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct2\xac\x08\n\x10ResourceProvider\x12H\n\tGetSchema\x12\x1b.pulumirpc.GetSchemaRequest\x1a\x1c.pulumirpc.GetSchemaResponse"\x00\x12\x42\n\x0b\x43heckConfig\x12\x17.pulumirpc.CheckRequest\x1a\x18.pulumirpc.CheckResponse"\x00\x12?\n\nDiffConfig\x12\x16.pulumirpc.DiffRequest\x1a\x17.pulumirpc.DiffResponse"\x00\x12H\n\tConfigure\x12\x1b.pulumirpc.ConfigureRequest\x1a\x1c.pulumirpc.ConfigureResponse"\x00\x12?\n\x06Invoke\x12\x18.pulumirpc.InvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x12G\n\x0cStreamInvoke\x12\x18.pulumirpc.InvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x30\x01\x12\x39\n\x04\x43\x61ll\x12\x16.pulumirpc.CallRequest\x1a\x17.pulumirpc.CallResponse"\x00\x12<\n\x05\x43heck\x12\x17.pulumirpc.CheckRequest\x1a\x18.pulumirpc.CheckResponse"\x00\x12\x39\n\x04\x44iff\x12\x16.pulumirpc.DiffRequest\x1a\x17.pulumirpc.DiffResponse"\x00\x12?\n\x06\x43reate\x12\x18.pulumirpc.CreateRequest\x1a\x19.pulumirpc.CreateResponse"\x00\x12\x39\n\x04Read\x12\x16.pulumirpc.ReadRequest\x1a\x17.pulumirpc.ReadResponse"\x00\x12?\n\x06Update\x12\x18.pulumirpc.UpdateRequest\x1a\x19.pulumirpc.UpdateResponse"\x00\x12<\n\x06\x44\x65lete\x12\x18.pulumirpc.DeleteRequest\x1a\x16.google.protobuf.Empty"\x00\x12H\n\tConstruct\x12\x1b.pulumirpc.ConstructRequest\x1a\x1c.pulumirpc.ConstructResponse"\x00\x12:\n\x06\x43\x61ncel\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty"\x00\x12@\n\rGetPluginInfo\x12\x16.google.protobuf.Empty\x1a\x15.pulumirpc.PluginInfo"\x00\x62\x06proto3', dependencies=[ plugin__pb2.DESCRIPTOR, google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, @@ -58,8 +58,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2299, - serialized_end=2395, + serialized_start=2273, + serialized_end=2369, ) _sym_db.RegisterEnumDescriptor(_PROPERTYDIFF_KIND) @@ -81,8 +81,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2715, - serialized_end=2776, + serialized_start=2689, + serialized_end=2750, ) _sym_db.RegisterEnumDescriptor(_DIFFRESPONSE_DIFFCHANGES) @@ -549,78 +549,6 @@ serialized_options=None, file=DESCRIPTOR, ), - _descriptor.FieldDescriptor( - name="provider", - full_name="pulumirpc.InvokeRequest.provider", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="version", - full_name="pulumirpc.InvokeRequest.version", - index=3, - number=4, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="acceptResources", - full_name="pulumirpc.InvokeRequest.acceptResources", - index=4, - number=5, - type=8, - cpp_type=7, - label=1, - has_default_value=False, - default_value=False, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="pluginDownloadURL", - full_name="pulumirpc.InvokeRequest.pluginDownloadURL", - index=5, - number=6, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=b"".decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), ], extensions=[], nested_types=[], @@ -631,7 +559,7 @@ extension_ranges=[], oneofs=[], serialized_start=664, - serialized_end=818, + serialized_end=792, ) @@ -687,8 +615,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=820, - serialized_end=920, + serialized_start=794, + serialized_end=894, ) @@ -726,8 +654,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1291, - serialized_end=1327, + serialized_start=1265, + serialized_end=1301, ) _CALLREQUEST_ARGDEPENDENCIESENTRY = _descriptor.Descriptor( @@ -782,8 +710,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1329, - serialized_end=1428, + serialized_start=1303, + serialized_end=1402, ) _CALLREQUEST_CONFIGENTRY = _descriptor.Descriptor( @@ -838,8 +766,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1430, - serialized_end=1475, + serialized_start=1404, + serialized_end=1449, ) _CALLREQUEST = _descriptor.Descriptor( @@ -1096,8 +1024,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=923, - serialized_end=1475, + serialized_start=897, + serialized_end=1449, ) @@ -1135,8 +1063,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1655, - serialized_end=1689, + serialized_start=1629, + serialized_end=1663, ) _CALLRESPONSE_RETURNDEPENDENCIESENTRY = _descriptor.Descriptor( @@ -1191,8 +1119,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1691, - serialized_end=1792, + serialized_start=1665, + serialized_end=1766, ) _CALLRESPONSE = _descriptor.Descriptor( @@ -1268,8 +1196,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1478, - serialized_end=1792, + serialized_start=1452, + serialized_end=1766, ) @@ -1361,8 +1289,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1795, - serialized_end=1924, + serialized_start=1769, + serialized_end=1898, ) @@ -1418,8 +1346,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1926, - serialized_end=2025, + serialized_start=1900, + serialized_end=1999, ) @@ -1475,8 +1403,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2027, - serialized_end=2075, + serialized_start=2001, + serialized_end=2049, ) @@ -1586,8 +1514,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2078, - serialized_end=2217, + serialized_start=2052, + serialized_end=2191, ) @@ -1645,8 +1573,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2220, - serialized_end=2395, + serialized_start=2194, + serialized_end=2369, ) @@ -1702,8 +1630,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2637, - serialized_end=2713, + serialized_start=2611, + serialized_end=2687, ) _DIFFRESPONSE = _descriptor.Descriptor( @@ -1852,8 +1780,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2398, - serialized_end=2776, + serialized_start=2372, + serialized_end=2750, ) @@ -1945,8 +1873,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2778, - serialized_end=2885, + serialized_start=2752, + serialized_end=2859, ) @@ -2002,8 +1930,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2887, - serialized_end=2960, + serialized_start=2861, + serialized_end=2934, ) @@ -2095,8 +2023,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2962, - serialized_end=3086, + serialized_start=2936, + serialized_end=3060, ) @@ -2170,8 +2098,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3088, - serialized_end=3200, + serialized_start=3062, + serialized_end=3174, ) @@ -2317,8 +2245,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3203, - serialized_end=3378, + serialized_start=3177, + serialized_end=3352, ) @@ -2356,8 +2284,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3380, - serialized_end=3441, + serialized_start=3354, + serialized_end=3415, ) @@ -2449,8 +2377,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3443, - serialized_end=3545, + serialized_start=3417, + serialized_end=3519, ) @@ -2488,8 +2416,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4025, - serialized_end=4061, + serialized_start=3999, + serialized_end=4035, ) _CONSTRUCTREQUEST_CONFIGENTRY = _descriptor.Descriptor( @@ -2544,8 +2472,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1430, - serialized_end=1475, + serialized_start=1404, + serialized_end=1449, ) _CONSTRUCTREQUEST_INPUTDEPENDENCIESENTRY = _descriptor.Descriptor( @@ -2600,8 +2528,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4110, - serialized_end=4216, + serialized_start=4084, + serialized_end=4190, ) _CONSTRUCTREQUEST_PROVIDERSENTRY = _descriptor.Descriptor( @@ -2656,8 +2584,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4218, - serialized_end=4266, + serialized_start=4192, + serialized_end=4240, ) _CONSTRUCTREQUEST = _descriptor.Descriptor( @@ -2969,8 +2897,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3548, - serialized_end=4266, + serialized_start=3522, + serialized_end=4240, ) @@ -3008,8 +2936,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4025, - serialized_end=4061, + serialized_start=3999, + serialized_end=4035, ) _CONSTRUCTRESPONSE_STATEDEPENDENCIESENTRY = _descriptor.Descriptor( @@ -3064,8 +2992,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4461, - serialized_end=4568, + serialized_start=4435, + serialized_end=4542, ) _CONSTRUCTRESPONSE = _descriptor.Descriptor( @@ -3141,8 +3069,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4269, - serialized_end=4568, + serialized_start=4243, + serialized_end=4542, ) @@ -3234,8 +3162,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4571, - serialized_end=4711, + serialized_start=4545, + serialized_end=4685, ) _CONFIGUREREQUEST_VARIABLESENTRY.containing_type = _CONFIGUREREQUEST @@ -3831,8 +3759,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=4714, - serialized_end=5782, + serialized_start=4688, + serialized_end=5756, methods=[ _descriptor.MethodDescriptor( name="GetSchema", diff --git a/sdk/python/lib/pulumi/runtime/proto/resource_pb2.py b/sdk/python/lib/pulumi/runtime/proto/resource_pb2.py index 9e86366aac57..899847b82208 100644 --- a/sdk/python/lib/pulumi/runtime/proto/resource_pb2.py +++ b/sdk/python/lib/pulumi/runtime/proto/resource_pb2.py @@ -22,7 +22,7 @@ package="pulumirpc", syntax="proto3", serialized_options=None, - serialized_pb=b'\n\x0eresource.proto\x12\tpulumirpc\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x0eprovider.proto"$\n\x16SupportsFeatureRequest\x12\n\n\x02id\x18\x01 \x01(\t"-\n\x17SupportsFeatureResponse\x12\x12\n\nhasSupport\x18\x01 \x01(\x08"\xb0\x02\n\x13ReadResourceRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12+\n\nproperties\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x0c\x64\x65pendencies\x18\x06 \x03(\t\x12\x10\n\x08provider\x18\x07 \x01(\t\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\racceptSecrets\x18\t \x01(\x08\x12\x1f\n\x17\x61\x64\x64itionalSecretOutputs\x18\n \x03(\t\x12\x0f\n\x07\x61liases\x18\x0b \x03(\t\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x0c \x01(\x08\x12\x19\n\x11pluginDownloadURL\x18\r \x01(\t"P\n\x14ReadResourceResponse\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct"\x8d\x08\n\x17RegisterResourceRequest\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06parent\x18\x03 \x01(\t\x12\x0e\n\x06\x63ustom\x18\x04 \x01(\x08\x12\'\n\x06object\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07protect\x18\x06 \x01(\x08\x12\x14\n\x0c\x64\x65pendencies\x18\x07 \x03(\t\x12\x10\n\x08provider\x18\x08 \x01(\t\x12Z\n\x14propertyDependencies\x18\t \x03(\x0b\x32<.pulumirpc.RegisterResourceRequest.PropertyDependenciesEntry\x12\x1b\n\x13\x64\x65leteBeforeReplace\x18\n \x01(\x08\x12\x0f\n\x07version\x18\x0b \x01(\t\x12\x15\n\rignoreChanges\x18\x0c \x03(\t\x12\x15\n\racceptSecrets\x18\r \x01(\x08\x12\x1f\n\x17\x61\x64\x64itionalSecretOutputs\x18\x0e \x03(\t\x12\x0f\n\x07\x61liases\x18\x0f \x03(\t\x12\x10\n\x08importId\x18\x10 \x01(\t\x12I\n\x0e\x63ustomTimeouts\x18\x11 \x01(\x0b\x32\x31.pulumirpc.RegisterResourceRequest.CustomTimeouts\x12"\n\x1a\x64\x65leteBeforeReplaceDefined\x18\x12 \x01(\x08\x12\x1d\n\x15supportsPartialValues\x18\x13 \x01(\x08\x12\x0e\n\x06remote\x18\x14 \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x15 \x01(\x08\x12\x44\n\tproviders\x18\x16 \x03(\x0b\x32\x31.pulumirpc.RegisterResourceRequest.ProvidersEntry\x12\x18\n\x10replaceOnChanges\x18\x17 \x03(\t\x12\x19\n\x11pluginDownloadURL\x18\x18 \x01(\t\x12\x16\n\x0eretainOnDelete\x18\x19 \x01(\x08\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a@\n\x0e\x43ustomTimeouts\x12\x0e\n\x06\x63reate\x18\x01 \x01(\t\x12\x0e\n\x06update\x18\x02 \x01(\t\x12\x0e\n\x06\x64\x65lete\x18\x03 \x01(\t\x1at\n\x19PropertyDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.pulumirpc.RegisterResourceRequest.PropertyDependencies:\x02\x38\x01\x1a\x30\n\x0eProvidersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xf7\x02\n\x18RegisterResourceResponse\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\'\n\x06object\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0e\n\x06stable\x18\x04 \x01(\x08\x12\x0f\n\x07stables\x18\x05 \x03(\t\x12[\n\x14propertyDependencies\x18\x06 \x03(\x0b\x32=.pulumirpc.RegisterResourceResponse.PropertyDependenciesEntry\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1au\n\x19PropertyDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.pulumirpc.RegisterResourceResponse.PropertyDependencies:\x02\x38\x01"W\n\x1eRegisterResourceOutputsRequest\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12(\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct2\xc4\x04\n\x0fResourceMonitor\x12Z\n\x0fSupportsFeature\x12!.pulumirpc.SupportsFeatureRequest\x1a".pulumirpc.SupportsFeatureResponse"\x00\x12?\n\x06Invoke\x12\x18.pulumirpc.InvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x12G\n\x0cStreamInvoke\x12\x18.pulumirpc.InvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x30\x01\x12\x39\n\x04\x43\x61ll\x12\x16.pulumirpc.CallRequest\x1a\x17.pulumirpc.CallResponse"\x00\x12Q\n\x0cReadResource\x12\x1e.pulumirpc.ReadResourceRequest\x1a\x1f.pulumirpc.ReadResourceResponse"\x00\x12]\n\x10RegisterResource\x12".pulumirpc.RegisterResourceRequest\x1a#.pulumirpc.RegisterResourceResponse"\x00\x12^\n\x17RegisterResourceOutputs\x12).pulumirpc.RegisterResourceOutputsRequest\x1a\x16.google.protobuf.Empty"\x00\x62\x06proto3', + serialized_pb=b'\n\x0eresource.proto\x12\tpulumirpc\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x0eprovider.proto"$\n\x16SupportsFeatureRequest\x12\n\n\x02id\x18\x01 \x01(\t"-\n\x17SupportsFeatureResponse\x12\x12\n\nhasSupport\x18\x01 \x01(\x08"\xb0\x02\n\x13ReadResourceRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12+\n\nproperties\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x14\n\x0c\x64\x65pendencies\x18\x06 \x03(\t\x12\x10\n\x08provider\x18\x07 \x01(\t\x12\x0f\n\x07version\x18\x08 \x01(\t\x12\x15\n\racceptSecrets\x18\t \x01(\x08\x12\x1f\n\x17\x61\x64\x64itionalSecretOutputs\x18\n \x03(\t\x12\x0f\n\x07\x61liases\x18\x0b \x03(\t\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x0c \x01(\x08\x12\x19\n\x11pluginDownloadURL\x18\r \x01(\t"P\n\x14ReadResourceResponse\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12+\n\nproperties\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct"\x8d\x08\n\x17RegisterResourceRequest\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06parent\x18\x03 \x01(\t\x12\x0e\n\x06\x63ustom\x18\x04 \x01(\x08\x12\'\n\x06object\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0f\n\x07protect\x18\x06 \x01(\x08\x12\x14\n\x0c\x64\x65pendencies\x18\x07 \x03(\t\x12\x10\n\x08provider\x18\x08 \x01(\t\x12Z\n\x14propertyDependencies\x18\t \x03(\x0b\x32<.pulumirpc.RegisterResourceRequest.PropertyDependenciesEntry\x12\x1b\n\x13\x64\x65leteBeforeReplace\x18\n \x01(\x08\x12\x0f\n\x07version\x18\x0b \x01(\t\x12\x15\n\rignoreChanges\x18\x0c \x03(\t\x12\x15\n\racceptSecrets\x18\r \x01(\x08\x12\x1f\n\x17\x61\x64\x64itionalSecretOutputs\x18\x0e \x03(\t\x12\x0f\n\x07\x61liases\x18\x0f \x03(\t\x12\x10\n\x08importId\x18\x10 \x01(\t\x12I\n\x0e\x63ustomTimeouts\x18\x11 \x01(\x0b\x32\x31.pulumirpc.RegisterResourceRequest.CustomTimeouts\x12"\n\x1a\x64\x65leteBeforeReplaceDefined\x18\x12 \x01(\x08\x12\x1d\n\x15supportsPartialValues\x18\x13 \x01(\x08\x12\x0e\n\x06remote\x18\x14 \x01(\x08\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x15 \x01(\x08\x12\x44\n\tproviders\x18\x16 \x03(\x0b\x32\x31.pulumirpc.RegisterResourceRequest.ProvidersEntry\x12\x18\n\x10replaceOnChanges\x18\x17 \x03(\t\x12\x19\n\x11pluginDownloadURL\x18\x18 \x01(\t\x12\x16\n\x0eretainOnDelete\x18\x19 \x01(\x08\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1a@\n\x0e\x43ustomTimeouts\x12\x0e\n\x06\x63reate\x18\x01 \x01(\t\x12\x0e\n\x06update\x18\x02 \x01(\t\x12\x0e\n\x06\x64\x65lete\x18\x03 \x01(\t\x1at\n\x19PropertyDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x46\n\x05value\x18\x02 \x01(\x0b\x32\x37.pulumirpc.RegisterResourceRequest.PropertyDependencies:\x02\x38\x01\x1a\x30\n\x0eProvidersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xf7\x02\n\x18RegisterResourceResponse\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\'\n\x06object\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0e\n\x06stable\x18\x04 \x01(\x08\x12\x0f\n\x07stables\x18\x05 \x03(\t\x12[\n\x14propertyDependencies\x18\x06 \x03(\x0b\x32=.pulumirpc.RegisterResourceResponse.PropertyDependenciesEntry\x1a$\n\x14PropertyDependencies\x12\x0c\n\x04urns\x18\x01 \x03(\t\x1au\n\x19PropertyDependenciesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.pulumirpc.RegisterResourceResponse.PropertyDependencies:\x02\x38\x01"W\n\x1eRegisterResourceOutputsRequest\x12\x0b\n\x03urn\x18\x01 \x01(\t\x12(\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct"\xa2\x01\n\x15ResourceInvokeRequest\x12\x0b\n\x03tok\x18\x01 \x01(\t\x12%\n\x04\x61rgs\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x10\n\x08provider\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x12\x17\n\x0f\x61\x63\x63\x65ptResources\x18\x05 \x01(\x08\x12\x19\n\x11pluginDownloadURL\x18\x06 \x01(\t2\xd4\x04\n\x0fResourceMonitor\x12Z\n\x0fSupportsFeature\x12!.pulumirpc.SupportsFeatureRequest\x1a".pulumirpc.SupportsFeatureResponse"\x00\x12G\n\x06Invoke\x12 .pulumirpc.ResourceInvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x12O\n\x0cStreamInvoke\x12 .pulumirpc.ResourceInvokeRequest\x1a\x19.pulumirpc.InvokeResponse"\x00\x30\x01\x12\x39\n\x04\x43\x61ll\x12\x16.pulumirpc.CallRequest\x1a\x17.pulumirpc.CallResponse"\x00\x12Q\n\x0cReadResource\x12\x1e.pulumirpc.ReadResourceRequest\x1a\x1f.pulumirpc.ReadResourceResponse"\x00\x12]\n\x10RegisterResource\x12".pulumirpc.RegisterResourceRequest\x1a#.pulumirpc.RegisterResourceResponse"\x00\x12^\n\x17RegisterResourceOutputs\x12).pulumirpc.RegisterResourceOutputsRequest\x1a\x16.google.protobuf.Empty"\x00\x62\x06proto3', dependencies=[ google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, google_dot_protobuf_dot_struct__pb2.DESCRIPTOR, @@ -1403,6 +1403,135 @@ serialized_end=2083, ) + +_RESOURCEINVOKEREQUEST = _descriptor.Descriptor( + name="ResourceInvokeRequest", + full_name="pulumirpc.ResourceInvokeRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="tok", + full_name="pulumirpc.ResourceInvokeRequest.tok", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="args", + full_name="pulumirpc.ResourceInvokeRequest.args", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="provider", + full_name="pulumirpc.ResourceInvokeRequest.provider", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="version", + full_name="pulumirpc.ResourceInvokeRequest.version", + index=3, + number=4, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="acceptResources", + full_name="pulumirpc.ResourceInvokeRequest.acceptResources", + index=4, + number=5, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="pluginDownloadURL", + full_name="pulumirpc.ResourceInvokeRequest.pluginDownloadURL", + index=5, + number=6, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=b"".decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=2086, + serialized_end=2248, +) + _READRESOURCEREQUEST.fields_by_name[ "properties" ].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT @@ -1448,6 +1577,9 @@ _REGISTERRESOURCEOUTPUTSREQUEST.fields_by_name[ "outputs" ].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_RESOURCEINVOKEREQUEST.fields_by_name[ + "args" +].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT DESCRIPTOR.message_types_by_name["SupportsFeatureRequest"] = _SUPPORTSFEATUREREQUEST DESCRIPTOR.message_types_by_name["SupportsFeatureResponse"] = _SUPPORTSFEATURERESPONSE DESCRIPTOR.message_types_by_name["ReadResourceRequest"] = _READRESOURCEREQUEST @@ -1457,6 +1589,7 @@ DESCRIPTOR.message_types_by_name[ "RegisterResourceOutputsRequest" ] = _REGISTERRESOURCEOUTPUTSREQUEST +DESCRIPTOR.message_types_by_name["ResourceInvokeRequest"] = _RESOURCEINVOKEREQUEST _sym_db.RegisterFileDescriptor(DESCRIPTOR) SupportsFeatureRequest = _reflection.GeneratedProtocolMessageType( @@ -1596,6 +1729,17 @@ ) _sym_db.RegisterMessage(RegisterResourceOutputsRequest) +ResourceInvokeRequest = _reflection.GeneratedProtocolMessageType( + "ResourceInvokeRequest", + (_message.Message,), + { + "DESCRIPTOR": _RESOURCEINVOKEREQUEST, + "__module__": "resource_pb2" + # @@protoc_insertion_point(class_scope:pulumirpc.ResourceInvokeRequest) + }, +) +_sym_db.RegisterMessage(ResourceInvokeRequest) + _REGISTERRESOURCEREQUEST_PROPERTYDEPENDENCIESENTRY._options = None _REGISTERRESOURCEREQUEST_PROVIDERSENTRY._options = None @@ -1607,8 +1751,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=2086, - serialized_end=2666, + serialized_start=2251, + serialized_end=2847, methods=[ _descriptor.MethodDescriptor( name="SupportsFeature", @@ -1624,7 +1768,7 @@ full_name="pulumirpc.ResourceMonitor.Invoke", index=1, containing_service=None, - input_type=provider__pb2._INVOKEREQUEST, + input_type=_RESOURCEINVOKEREQUEST, output_type=provider__pb2._INVOKERESPONSE, serialized_options=None, ), @@ -1633,7 +1777,7 @@ full_name="pulumirpc.ResourceMonitor.StreamInvoke", index=2, containing_service=None, - input_type=provider__pb2._INVOKEREQUEST, + input_type=_RESOURCEINVOKEREQUEST, output_type=provider__pb2._INVOKERESPONSE, serialized_options=None, ), diff --git a/sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py b/sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py index 25c77dda7a2d..4c1b8b90f776 100644 --- a/sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py +++ b/sdk/python/lib/pulumi/runtime/proto/resource_pb2_grpc.py @@ -22,12 +22,12 @@ def __init__(self, channel): ) self.Invoke = channel.unary_unary( "/pulumirpc.ResourceMonitor/Invoke", - request_serializer=provider__pb2.InvokeRequest.SerializeToString, + request_serializer=resource__pb2.ResourceInvokeRequest.SerializeToString, response_deserializer=provider__pb2.InvokeResponse.FromString, ) self.StreamInvoke = channel.unary_stream( "/pulumirpc.ResourceMonitor/StreamInvoke", - request_serializer=provider__pb2.InvokeRequest.SerializeToString, + request_serializer=resource__pb2.ResourceInvokeRequest.SerializeToString, response_deserializer=provider__pb2.InvokeResponse.FromString, ) self.Call = channel.unary_unary( @@ -114,12 +114,12 @@ def add_ResourceMonitorServicer_to_server(servicer, server): ), "Invoke": grpc.unary_unary_rpc_method_handler( servicer.Invoke, - request_deserializer=provider__pb2.InvokeRequest.FromString, + request_deserializer=resource__pb2.ResourceInvokeRequest.FromString, response_serializer=provider__pb2.InvokeResponse.SerializeToString, ), "StreamInvoke": grpc.unary_stream_rpc_method_handler( servicer.StreamInvoke, - request_deserializer=provider__pb2.InvokeRequest.FromString, + request_deserializer=resource__pb2.ResourceInvokeRequest.FromString, response_serializer=provider__pb2.InvokeResponse.SerializeToString, ), "Call": grpc.unary_unary_rpc_method_handler( diff --git a/sdk/python/lib/pulumi/runtime/resource.py b/sdk/python/lib/pulumi/runtime/resource.py index f2f9228b2191..d2cac574caea 100644 --- a/sdk/python/lib/pulumi/runtime/resource.py +++ b/sdk/python/lib/pulumi/runtime/resource.py @@ -243,7 +243,7 @@ async def do_get(): monitor = settings.get_monitor() inputs = await rpc.serialize_properties({"urn": urn}, {}) - req = provider_pb2.InvokeRequest( + req = resource_pb2.ResourceInvokeRequest( tok="pulumi:pulumi:getResource", args=inputs, provider="", version="" )