@pulumi/pulumi 3.206.0-alpha.xeafddcd → 3.207.0-alpha.x32235a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/automation/stack.d.ts +1 -0
- package/automation/stack.js +97 -41
- package/automation/stack.js.map +1 -1
- package/package.json +1 -1
- package/proto/events_grpc_pb.d.ts +44 -0
- package/proto/events_grpc_pb.js +68 -0
- package/proto/events_pb.d.ts +28 -0
- package/proto/events_pb.js +178 -0
- package/proto/provider_grpc_pb.js +1 -1
- package/proto/provider_pb.d.ts +11 -0
- package/proto/provider_pb.js +113 -4
- package/proto/resource_pb.d.ts +10 -0
- package/proto/resource_pb.js +101 -3
- package/resource.d.ts +4 -0
- package/resource.js +4 -1
- package/resource.js.map +1 -1
- package/runtime/callbacks.js +4 -0
- package/runtime/callbacks.js.map +1 -1
- package/runtime/mocks.js +1 -0
- package/runtime/mocks.js.map +1 -1
- package/runtime/resource.js +23 -0
- package/runtime/resource.js.map +1 -1
- package/runtime/settings.js +4 -1
- package/runtime/settings.js.map +1 -1
- package/runtime/state.js +1 -0
- package/runtime/state.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// source: pulumi/events.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global =
|
|
17
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
+
(typeof window !== 'undefined' && window) ||
|
|
19
|
+
(typeof global !== 'undefined' && global) ||
|
|
20
|
+
(typeof self !== 'undefined' && self) ||
|
|
21
|
+
(function () { return this; }).call(null) ||
|
|
22
|
+
Function('return this')();
|
|
23
|
+
|
|
24
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
|
+
goog.exportSymbol('proto.pulumirpc.EventRequest', null, global);
|
|
27
|
+
/**
|
|
28
|
+
* Generated by JsPbCodeGenerator.
|
|
29
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
30
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
31
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
32
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
33
|
+
* valid.
|
|
34
|
+
* @extends {jspb.Message}
|
|
35
|
+
* @constructor
|
|
36
|
+
*/
|
|
37
|
+
proto.pulumirpc.EventRequest = function(opt_data) {
|
|
38
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
39
|
+
};
|
|
40
|
+
goog.inherits(proto.pulumirpc.EventRequest, jspb.Message);
|
|
41
|
+
if (goog.DEBUG && !COMPILED) {
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
* @override
|
|
45
|
+
*/
|
|
46
|
+
proto.pulumirpc.EventRequest.displayName = 'proto.pulumirpc.EventRequest';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
52
|
+
/**
|
|
53
|
+
* Creates an object representation of this proto.
|
|
54
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
55
|
+
* Optional fields that are not set will be set to undefined.
|
|
56
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
57
|
+
* For the list of reserved names please see:
|
|
58
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
59
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
60
|
+
* JSPB instance for transitional soy proto support:
|
|
61
|
+
* http://goto/soy-param-migration
|
|
62
|
+
* @return {!Object}
|
|
63
|
+
*/
|
|
64
|
+
proto.pulumirpc.EventRequest.prototype.toObject = function(opt_includeInstance) {
|
|
65
|
+
return proto.pulumirpc.EventRequest.toObject(opt_includeInstance, this);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Static version of the {@see toObject} method.
|
|
71
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
72
|
+
* the JSPB instance for transitional soy proto support:
|
|
73
|
+
* http://goto/soy-param-migration
|
|
74
|
+
* @param {!proto.pulumirpc.EventRequest} msg The msg instance to transform.
|
|
75
|
+
* @return {!Object}
|
|
76
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
77
|
+
*/
|
|
78
|
+
proto.pulumirpc.EventRequest.toObject = function(includeInstance, msg) {
|
|
79
|
+
var f, obj = {
|
|
80
|
+
event: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
if (includeInstance) {
|
|
84
|
+
obj.$jspbMessageInstance = msg;
|
|
85
|
+
}
|
|
86
|
+
return obj;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Deserializes binary data (in protobuf wire format).
|
|
93
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
94
|
+
* @return {!proto.pulumirpc.EventRequest}
|
|
95
|
+
*/
|
|
96
|
+
proto.pulumirpc.EventRequest.deserializeBinary = function(bytes) {
|
|
97
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
98
|
+
var msg = new proto.pulumirpc.EventRequest;
|
|
99
|
+
return proto.pulumirpc.EventRequest.deserializeBinaryFromReader(msg, reader);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
105
|
+
* given reader into the given message object.
|
|
106
|
+
* @param {!proto.pulumirpc.EventRequest} msg The message object to deserialize into.
|
|
107
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
108
|
+
* @return {!proto.pulumirpc.EventRequest}
|
|
109
|
+
*/
|
|
110
|
+
proto.pulumirpc.EventRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
111
|
+
while (reader.nextField()) {
|
|
112
|
+
if (reader.isEndGroup()) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
var field = reader.getFieldNumber();
|
|
116
|
+
switch (field) {
|
|
117
|
+
case 1:
|
|
118
|
+
var value = /** @type {string} */ (reader.readString());
|
|
119
|
+
msg.setEvent(value);
|
|
120
|
+
break;
|
|
121
|
+
default:
|
|
122
|
+
reader.skipField();
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return msg;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
132
|
+
* @return {!Uint8Array}
|
|
133
|
+
*/
|
|
134
|
+
proto.pulumirpc.EventRequest.prototype.serializeBinary = function() {
|
|
135
|
+
var writer = new jspb.BinaryWriter();
|
|
136
|
+
proto.pulumirpc.EventRequest.serializeBinaryToWriter(this, writer);
|
|
137
|
+
return writer.getResultBuffer();
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
143
|
+
* format), writing to the given BinaryWriter.
|
|
144
|
+
* @param {!proto.pulumirpc.EventRequest} message
|
|
145
|
+
* @param {!jspb.BinaryWriter} writer
|
|
146
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
147
|
+
*/
|
|
148
|
+
proto.pulumirpc.EventRequest.serializeBinaryToWriter = function(message, writer) {
|
|
149
|
+
var f = undefined;
|
|
150
|
+
f = message.getEvent();
|
|
151
|
+
if (f.length > 0) {
|
|
152
|
+
writer.writeString(
|
|
153
|
+
1,
|
|
154
|
+
f
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* optional string event = 1;
|
|
162
|
+
* @return {string}
|
|
163
|
+
*/
|
|
164
|
+
proto.pulumirpc.EventRequest.prototype.getEvent = function() {
|
|
165
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @param {string} value
|
|
171
|
+
* @return {!proto.pulumirpc.EventRequest} returns this
|
|
172
|
+
*/
|
|
173
|
+
proto.pulumirpc.EventRequest.prototype.setEvent = function(value) {
|
|
174
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
goog.object.extend(exports, proto.pulumirpc);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED CODE -- DO NOT EDIT!
|
|
2
2
|
|
|
3
3
|
// Original file comments:
|
|
4
|
-
// Copyright 2016-
|
|
4
|
+
// Copyright 2016-2025, Pulumi Corporation.
|
|
5
5
|
//
|
|
6
6
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
// you may not use this file except in compliance with the License.
|
package/proto/provider_pb.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export class ProviderHandshakeRequest extends jspb.Message {
|
|
|
28
28
|
setSupportsViews(value: boolean): ProviderHandshakeRequest;
|
|
29
29
|
getSupportsRefreshBeforeUpdate(): boolean;
|
|
30
30
|
setSupportsRefreshBeforeUpdate(value: boolean): ProviderHandshakeRequest;
|
|
31
|
+
getInvokeWithPreview(): boolean;
|
|
32
|
+
setInvokeWithPreview(value: boolean): ProviderHandshakeRequest;
|
|
31
33
|
|
|
32
34
|
serializeBinary(): Uint8Array;
|
|
33
35
|
toObject(includeInstance?: boolean): ProviderHandshakeRequest.AsObject;
|
|
@@ -47,6 +49,7 @@ export namespace ProviderHandshakeRequest {
|
|
|
47
49
|
configureWithUrn: boolean,
|
|
48
50
|
supportsViews: boolean,
|
|
49
51
|
supportsRefreshBeforeUpdate: boolean,
|
|
52
|
+
invokeWithPreview: boolean,
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -389,6 +392,8 @@ export class InvokeRequest extends jspb.Message {
|
|
|
389
392
|
clearArgs(): void;
|
|
390
393
|
getArgs(): google_protobuf_struct_pb.Struct | undefined;
|
|
391
394
|
setArgs(value?: google_protobuf_struct_pb.Struct): InvokeRequest;
|
|
395
|
+
getPreview(): boolean;
|
|
396
|
+
setPreview(value: boolean): InvokeRequest;
|
|
392
397
|
|
|
393
398
|
serializeBinary(): Uint8Array;
|
|
394
399
|
toObject(includeInstance?: boolean): InvokeRequest.AsObject;
|
|
@@ -404,6 +409,7 @@ export namespace InvokeRequest {
|
|
|
404
409
|
export type AsObject = {
|
|
405
410
|
tok: string,
|
|
406
411
|
args?: google_protobuf_struct_pb.Struct.AsObject,
|
|
412
|
+
preview: boolean,
|
|
407
413
|
}
|
|
408
414
|
}
|
|
409
415
|
|
|
@@ -1249,6 +1255,10 @@ export class ConstructRequest extends jspb.Message {
|
|
|
1249
1255
|
setResourceHooks(value?: ConstructRequest.ResourceHooksBinding): ConstructRequest;
|
|
1250
1256
|
getStackTraceHandle(): string;
|
|
1251
1257
|
setStackTraceHandle(value: string): ConstructRequest;
|
|
1258
|
+
clearReplaceWithList(): void;
|
|
1259
|
+
getReplaceWithList(): Array<string>;
|
|
1260
|
+
setReplaceWithList(value: Array<string>): ConstructRequest;
|
|
1261
|
+
addReplaceWith(value: string, index?: number): string;
|
|
1252
1262
|
|
|
1253
1263
|
serializeBinary(): Uint8Array;
|
|
1254
1264
|
toObject(includeInstance?: boolean): ConstructRequest.AsObject;
|
|
@@ -1292,6 +1302,7 @@ export namespace ConstructRequest {
|
|
|
1292
1302
|
acceptsOutputValues: boolean,
|
|
1293
1303
|
resourceHooks?: ConstructRequest.ResourceHooksBinding.AsObject,
|
|
1294
1304
|
stackTraceHandle: string,
|
|
1305
|
+
replaceWithList: Array<string>,
|
|
1295
1306
|
}
|
|
1296
1307
|
|
|
1297
1308
|
|
package/proto/provider_pb.js
CHANGED
|
@@ -1036,7 +1036,8 @@ rootDirectory: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
|
|
|
1036
1036
|
programDirectory: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
1037
1037
|
configureWithUrn: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
1038
1038
|
supportsViews: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
1039
|
-
supportsRefreshBeforeUpdate: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
|
|
1039
|
+
supportsRefreshBeforeUpdate: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
1040
|
+
invokeWithPreview: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
1040
1041
|
};
|
|
1041
1042
|
|
|
1042
1043
|
if (includeInstance) {
|
|
@@ -1097,6 +1098,10 @@ proto.pulumirpc.ProviderHandshakeRequest.deserializeBinaryFromReader = function(
|
|
|
1097
1098
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1098
1099
|
msg.setSupportsRefreshBeforeUpdate(value);
|
|
1099
1100
|
break;
|
|
1101
|
+
case 7:
|
|
1102
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1103
|
+
msg.setInvokeWithPreview(value);
|
|
1104
|
+
break;
|
|
1100
1105
|
default:
|
|
1101
1106
|
reader.skipField();
|
|
1102
1107
|
break;
|
|
@@ -1168,6 +1173,13 @@ proto.pulumirpc.ProviderHandshakeRequest.serializeBinaryToWriter = function(mess
|
|
|
1168
1173
|
f
|
|
1169
1174
|
);
|
|
1170
1175
|
}
|
|
1176
|
+
f = message.getInvokeWithPreview();
|
|
1177
|
+
if (f) {
|
|
1178
|
+
writer.writeBool(
|
|
1179
|
+
7,
|
|
1180
|
+
f
|
|
1181
|
+
);
|
|
1182
|
+
}
|
|
1171
1183
|
};
|
|
1172
1184
|
|
|
1173
1185
|
|
|
@@ -1315,6 +1327,24 @@ proto.pulumirpc.ProviderHandshakeRequest.prototype.setSupportsRefreshBeforeUpdat
|
|
|
1315
1327
|
};
|
|
1316
1328
|
|
|
1317
1329
|
|
|
1330
|
+
/**
|
|
1331
|
+
* optional bool invoke_with_preview = 7;
|
|
1332
|
+
* @return {boolean}
|
|
1333
|
+
*/
|
|
1334
|
+
proto.pulumirpc.ProviderHandshakeRequest.prototype.getInvokeWithPreview = function() {
|
|
1335
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* @param {boolean} value
|
|
1341
|
+
* @return {!proto.pulumirpc.ProviderHandshakeRequest} returns this
|
|
1342
|
+
*/
|
|
1343
|
+
proto.pulumirpc.ProviderHandshakeRequest.prototype.setInvokeWithPreview = function(value) {
|
|
1344
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
|
|
1318
1348
|
|
|
1319
1349
|
|
|
1320
1350
|
|
|
@@ -3713,7 +3743,8 @@ proto.pulumirpc.InvokeRequest.prototype.toObject = function(opt_includeInstance)
|
|
|
3713
3743
|
proto.pulumirpc.InvokeRequest.toObject = function(includeInstance, msg) {
|
|
3714
3744
|
var f, obj = {
|
|
3715
3745
|
tok: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3716
|
-
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
3746
|
+
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
3747
|
+
preview: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
3717
3748
|
};
|
|
3718
3749
|
|
|
3719
3750
|
if (includeInstance) {
|
|
@@ -3759,6 +3790,10 @@ proto.pulumirpc.InvokeRequest.deserializeBinaryFromReader = function(msg, reader
|
|
|
3759
3790
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
3760
3791
|
msg.setArgs(value);
|
|
3761
3792
|
break;
|
|
3793
|
+
case 7:
|
|
3794
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
3795
|
+
msg.setPreview(value);
|
|
3796
|
+
break;
|
|
3762
3797
|
default:
|
|
3763
3798
|
reader.skipField();
|
|
3764
3799
|
break;
|
|
@@ -3803,6 +3838,13 @@ proto.pulumirpc.InvokeRequest.serializeBinaryToWriter = function(message, writer
|
|
|
3803
3838
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
3804
3839
|
);
|
|
3805
3840
|
}
|
|
3841
|
+
f = message.getPreview();
|
|
3842
|
+
if (f) {
|
|
3843
|
+
writer.writeBool(
|
|
3844
|
+
7,
|
|
3845
|
+
f
|
|
3846
|
+
);
|
|
3847
|
+
}
|
|
3806
3848
|
};
|
|
3807
3849
|
|
|
3808
3850
|
|
|
@@ -3861,6 +3903,24 @@ proto.pulumirpc.InvokeRequest.prototype.hasArgs = function() {
|
|
|
3861
3903
|
};
|
|
3862
3904
|
|
|
3863
3905
|
|
|
3906
|
+
/**
|
|
3907
|
+
* optional bool preview = 7;
|
|
3908
|
+
* @return {boolean}
|
|
3909
|
+
*/
|
|
3910
|
+
proto.pulumirpc.InvokeRequest.prototype.getPreview = function() {
|
|
3911
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
3912
|
+
};
|
|
3913
|
+
|
|
3914
|
+
|
|
3915
|
+
/**
|
|
3916
|
+
* @param {boolean} value
|
|
3917
|
+
* @return {!proto.pulumirpc.InvokeRequest} returns this
|
|
3918
|
+
*/
|
|
3919
|
+
proto.pulumirpc.InvokeRequest.prototype.setPreview = function(value) {
|
|
3920
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
3921
|
+
};
|
|
3922
|
+
|
|
3923
|
+
|
|
3864
3924
|
|
|
3865
3925
|
/**
|
|
3866
3926
|
* List of repeated fields within this message type.
|
|
@@ -9636,7 +9696,7 @@ proto.pulumirpc.DeleteRequest.prototype.clearOldViewsList = function() {
|
|
|
9636
9696
|
* @private {!Array<number>}
|
|
9637
9697
|
* @const
|
|
9638
9698
|
*/
|
|
9639
|
-
proto.pulumirpc.ConstructRequest.repeatedFields_ = [15,16,14,18,22,23];
|
|
9699
|
+
proto.pulumirpc.ConstructRequest.repeatedFields_ = [15,16,14,18,22,23,28];
|
|
9640
9700
|
|
|
9641
9701
|
|
|
9642
9702
|
|
|
@@ -9695,7 +9755,8 @@ replaceonchangesList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? und
|
|
|
9695
9755
|
retainondelete: (f = jspb.Message.getBooleanField(msg, 24)) == null ? undefined : f,
|
|
9696
9756
|
acceptsOutputValues: jspb.Message.getBooleanFieldWithDefault(msg, 25, false),
|
|
9697
9757
|
resourceHooks: (f = msg.getResourceHooks()) && proto.pulumirpc.ConstructRequest.ResourceHooksBinding.toObject(includeInstance, f),
|
|
9698
|
-
stackTraceHandle: jspb.Message.getFieldWithDefault(msg, 27, "")
|
|
9758
|
+
stackTraceHandle: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
9759
|
+
replaceWithList: (f = jspb.Message.getRepeatedField(msg, 28)) == null ? undefined : f
|
|
9699
9760
|
};
|
|
9700
9761
|
|
|
9701
9762
|
if (includeInstance) {
|
|
@@ -9849,6 +9910,10 @@ proto.pulumirpc.ConstructRequest.deserializeBinaryFromReader = function(msg, rea
|
|
|
9849
9910
|
var value = /** @type {string} */ (reader.readString());
|
|
9850
9911
|
msg.setStackTraceHandle(value);
|
|
9851
9912
|
break;
|
|
9913
|
+
case 28:
|
|
9914
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9915
|
+
msg.addReplaceWith(value);
|
|
9916
|
+
break;
|
|
9852
9917
|
default:
|
|
9853
9918
|
reader.skipField();
|
|
9854
9919
|
break;
|
|
@@ -10061,6 +10126,13 @@ proto.pulumirpc.ConstructRequest.serializeBinaryToWriter = function(message, wri
|
|
|
10061
10126
|
f
|
|
10062
10127
|
);
|
|
10063
10128
|
}
|
|
10129
|
+
f = message.getReplaceWithList();
|
|
10130
|
+
if (f.length > 0) {
|
|
10131
|
+
writer.writeRepeatedString(
|
|
10132
|
+
28,
|
|
10133
|
+
f
|
|
10134
|
+
);
|
|
10135
|
+
}
|
|
10064
10136
|
};
|
|
10065
10137
|
|
|
10066
10138
|
|
|
@@ -11537,6 +11609,43 @@ proto.pulumirpc.ConstructRequest.prototype.setStackTraceHandle = function(value)
|
|
|
11537
11609
|
};
|
|
11538
11610
|
|
|
11539
11611
|
|
|
11612
|
+
/**
|
|
11613
|
+
* repeated string replace_with = 28;
|
|
11614
|
+
* @return {!Array<string>}
|
|
11615
|
+
*/
|
|
11616
|
+
proto.pulumirpc.ConstructRequest.prototype.getReplaceWithList = function() {
|
|
11617
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 28));
|
|
11618
|
+
};
|
|
11619
|
+
|
|
11620
|
+
|
|
11621
|
+
/**
|
|
11622
|
+
* @param {!Array<string>} value
|
|
11623
|
+
* @return {!proto.pulumirpc.ConstructRequest} returns this
|
|
11624
|
+
*/
|
|
11625
|
+
proto.pulumirpc.ConstructRequest.prototype.setReplaceWithList = function(value) {
|
|
11626
|
+
return jspb.Message.setField(this, 28, value || []);
|
|
11627
|
+
};
|
|
11628
|
+
|
|
11629
|
+
|
|
11630
|
+
/**
|
|
11631
|
+
* @param {string} value
|
|
11632
|
+
* @param {number=} opt_index
|
|
11633
|
+
* @return {!proto.pulumirpc.ConstructRequest} returns this
|
|
11634
|
+
*/
|
|
11635
|
+
proto.pulumirpc.ConstructRequest.prototype.addReplaceWith = function(value, opt_index) {
|
|
11636
|
+
return jspb.Message.addToRepeatedField(this, 28, value, opt_index);
|
|
11637
|
+
};
|
|
11638
|
+
|
|
11639
|
+
|
|
11640
|
+
/**
|
|
11641
|
+
* Clears the list making it empty but non-null.
|
|
11642
|
+
* @return {!proto.pulumirpc.ConstructRequest} returns this
|
|
11643
|
+
*/
|
|
11644
|
+
proto.pulumirpc.ConstructRequest.prototype.clearReplaceWithList = function() {
|
|
11645
|
+
return this.setReplaceWithList([]);
|
|
11646
|
+
};
|
|
11647
|
+
|
|
11648
|
+
|
|
11540
11649
|
|
|
11541
11650
|
|
|
11542
11651
|
|
package/proto/resource_pb.d.ts
CHANGED
|
@@ -245,6 +245,10 @@ export class RegisterResourceRequest extends jspb.Message {
|
|
|
245
245
|
addAliases(value?: pulumi_alias_pb.Alias, index?: number): pulumi_alias_pb.Alias;
|
|
246
246
|
getDeletedwith(): string;
|
|
247
247
|
setDeletedwith(value: string): RegisterResourceRequest;
|
|
248
|
+
clearReplaceWithList(): void;
|
|
249
|
+
getReplaceWithList(): Array<string>;
|
|
250
|
+
setReplaceWithList(value: Array<string>): RegisterResourceRequest;
|
|
251
|
+
addReplaceWith(value: string, index?: number): string;
|
|
248
252
|
getAliasspecs(): boolean;
|
|
249
253
|
setAliasspecs(value: boolean): RegisterResourceRequest;
|
|
250
254
|
|
|
@@ -320,6 +324,7 @@ export namespace RegisterResourceRequest {
|
|
|
320
324
|
retainondelete?: boolean,
|
|
321
325
|
aliasesList: Array<pulumi_alias_pb.Alias.AsObject>,
|
|
322
326
|
deletedwith: string,
|
|
327
|
+
replaceWithList: Array<string>,
|
|
323
328
|
aliasspecs: boolean,
|
|
324
329
|
sourceposition?: pulumi_source_pb.SourcePosition.AsObject,
|
|
325
330
|
stacktrace?: pulumi_source_pb.StackTrace.AsObject,
|
|
@@ -738,6 +743,10 @@ export class TransformResourceOptions extends jspb.Message {
|
|
|
738
743
|
getHideDiffList(): Array<string>;
|
|
739
744
|
setHideDiffList(value: Array<string>): TransformResourceOptions;
|
|
740
745
|
addHideDiff(value: string, index?: number): string;
|
|
746
|
+
clearReplaceWithList(): void;
|
|
747
|
+
getReplaceWithList(): Array<string>;
|
|
748
|
+
setReplaceWithList(value: Array<string>): TransformResourceOptions;
|
|
749
|
+
addReplaceWith(value: string, index?: number): string;
|
|
741
750
|
|
|
742
751
|
serializeBinary(): Uint8Array;
|
|
743
752
|
toObject(includeInstance?: boolean): TransformResourceOptions.AsObject;
|
|
@@ -771,6 +780,7 @@ export namespace TransformResourceOptions {
|
|
|
771
780
|
hooks?: RegisterResourceRequest.ResourceHooksBinding.AsObject,
|
|
772
781
|
pb_import: string,
|
|
773
782
|
hideDiffList: Array<string>,
|
|
783
|
+
replaceWithList: Array<string>,
|
|
774
784
|
}
|
|
775
785
|
}
|
|
776
786
|
|
package/proto/resource_pb.js
CHANGED
|
@@ -1775,7 +1775,7 @@ proto.pulumirpc.ReadResourceResponse.prototype.hasProperties = function() {
|
|
|
1775
1775
|
* @private {!Array<number>}
|
|
1776
1776
|
* @const
|
|
1777
1777
|
*/
|
|
1778
|
-
proto.pulumirpc.RegisterResourceRequest.repeatedFields_ = [7,12,14,15,23,26,31,37];
|
|
1778
|
+
proto.pulumirpc.RegisterResourceRequest.repeatedFields_ = [7,12,14,15,23,26,38,31,37];
|
|
1779
1779
|
|
|
1780
1780
|
|
|
1781
1781
|
|
|
@@ -1837,6 +1837,7 @@ retainondelete: (f = jspb.Message.getBooleanField(msg, 25)) == null ? undefined
|
|
|
1837
1837
|
aliasesList: jspb.Message.toObjectList(msg.getAliasesList(),
|
|
1838
1838
|
pulumi_alias_pb.Alias.toObject, includeInstance),
|
|
1839
1839
|
deletedwith: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
1840
|
+
replaceWithList: (f = jspb.Message.getRepeatedField(msg, 38)) == null ? undefined : f,
|
|
1840
1841
|
aliasspecs: jspb.Message.getBooleanFieldWithDefault(msg, 28, false),
|
|
1841
1842
|
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f),
|
|
1842
1843
|
stacktrace: (f = msg.getStacktrace()) && pulumi_source_pb.StackTrace.toObject(includeInstance, f),
|
|
@@ -2004,6 +2005,10 @@ proto.pulumirpc.RegisterResourceRequest.deserializeBinaryFromReader = function(m
|
|
|
2004
2005
|
var value = /** @type {string} */ (reader.readString());
|
|
2005
2006
|
msg.setDeletedwith(value);
|
|
2006
2007
|
break;
|
|
2008
|
+
case 38:
|
|
2009
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2010
|
+
msg.addReplaceWith(value);
|
|
2011
|
+
break;
|
|
2007
2012
|
case 28:
|
|
2008
2013
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
2009
2014
|
msg.setAliasspecs(value);
|
|
@@ -2263,6 +2268,13 @@ proto.pulumirpc.RegisterResourceRequest.serializeBinaryToWriter = function(messa
|
|
|
2263
2268
|
f
|
|
2264
2269
|
);
|
|
2265
2270
|
}
|
|
2271
|
+
f = message.getReplaceWithList();
|
|
2272
|
+
if (f.length > 0) {
|
|
2273
|
+
writer.writeRepeatedString(
|
|
2274
|
+
38,
|
|
2275
|
+
f
|
|
2276
|
+
);
|
|
2277
|
+
}
|
|
2266
2278
|
f = message.getAliasspecs();
|
|
2267
2279
|
if (f) {
|
|
2268
2280
|
writer.writeBool(
|
|
@@ -3788,6 +3800,43 @@ proto.pulumirpc.RegisterResourceRequest.prototype.setDeletedwith = function(valu
|
|
|
3788
3800
|
};
|
|
3789
3801
|
|
|
3790
3802
|
|
|
3803
|
+
/**
|
|
3804
|
+
* repeated string replace_with = 38;
|
|
3805
|
+
* @return {!Array<string>}
|
|
3806
|
+
*/
|
|
3807
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.getReplaceWithList = function() {
|
|
3808
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 38));
|
|
3809
|
+
};
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
/**
|
|
3813
|
+
* @param {!Array<string>} value
|
|
3814
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
|
|
3815
|
+
*/
|
|
3816
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.setReplaceWithList = function(value) {
|
|
3817
|
+
return jspb.Message.setField(this, 38, value || []);
|
|
3818
|
+
};
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
/**
|
|
3822
|
+
* @param {string} value
|
|
3823
|
+
* @param {number=} opt_index
|
|
3824
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
|
|
3825
|
+
*/
|
|
3826
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.addReplaceWith = function(value, opt_index) {
|
|
3827
|
+
return jspb.Message.addToRepeatedField(this, 38, value, opt_index);
|
|
3828
|
+
};
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
/**
|
|
3832
|
+
* Clears the list making it empty but non-null.
|
|
3833
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
|
|
3834
|
+
*/
|
|
3835
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.clearReplaceWithList = function() {
|
|
3836
|
+
return this.setReplaceWithList([]);
|
|
3837
|
+
};
|
|
3838
|
+
|
|
3839
|
+
|
|
3791
3840
|
/**
|
|
3792
3841
|
* optional bool aliasSpecs = 28;
|
|
3793
3842
|
* @return {boolean}
|
|
@@ -5904,7 +5953,7 @@ proto.pulumirpc.ResourceCallRequest.prototype.setPackageref = function(value) {
|
|
|
5904
5953
|
* @private {!Array<number>}
|
|
5905
5954
|
* @const
|
|
5906
5955
|
*/
|
|
5907
|
-
proto.pulumirpc.TransformResourceOptions.repeatedFields_ = [1,3,4,6,13,18];
|
|
5956
|
+
proto.pulumirpc.TransformResourceOptions.repeatedFields_ = [1,3,4,6,13,18,19];
|
|
5908
5957
|
|
|
5909
5958
|
|
|
5910
5959
|
|
|
@@ -5955,7 +6004,8 @@ providersMap: (f = msg.getProvidersMap()) ? f.toObject(includeInstance, undefine
|
|
|
5955
6004
|
pluginChecksumsMap: (f = msg.getPluginChecksumsMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
5956
6005
|
hooks: (f = msg.getHooks()) && proto.pulumirpc.RegisterResourceRequest.ResourceHooksBinding.toObject(includeInstance, f),
|
|
5957
6006
|
pb_import: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
5958
|
-
hideDiffList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f
|
|
6007
|
+
hideDiffList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
|
|
6008
|
+
replaceWithList: (f = jspb.Message.getRepeatedField(msg, 19)) == null ? undefined : f
|
|
5959
6009
|
};
|
|
5960
6010
|
|
|
5961
6011
|
if (includeInstance) {
|
|
@@ -6071,6 +6121,10 @@ proto.pulumirpc.TransformResourceOptions.deserializeBinaryFromReader = function(
|
|
|
6071
6121
|
var value = /** @type {string} */ (reader.readString());
|
|
6072
6122
|
msg.addHideDiff(value);
|
|
6073
6123
|
break;
|
|
6124
|
+
case 19:
|
|
6125
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6126
|
+
msg.addReplaceWith(value);
|
|
6127
|
+
break;
|
|
6074
6128
|
default:
|
|
6075
6129
|
reader.skipField();
|
|
6076
6130
|
break;
|
|
@@ -6223,6 +6277,13 @@ proto.pulumirpc.TransformResourceOptions.serializeBinaryToWriter = function(mess
|
|
|
6223
6277
|
f
|
|
6224
6278
|
);
|
|
6225
6279
|
}
|
|
6280
|
+
f = message.getReplaceWithList();
|
|
6281
|
+
if (f.length > 0) {
|
|
6282
|
+
writer.writeRepeatedString(
|
|
6283
|
+
19,
|
|
6284
|
+
f
|
|
6285
|
+
);
|
|
6286
|
+
}
|
|
6226
6287
|
};
|
|
6227
6288
|
|
|
6228
6289
|
|
|
@@ -6767,6 +6828,43 @@ proto.pulumirpc.TransformResourceOptions.prototype.clearHideDiffList = function(
|
|
|
6767
6828
|
};
|
|
6768
6829
|
|
|
6769
6830
|
|
|
6831
|
+
/**
|
|
6832
|
+
* repeated string replace_with = 19;
|
|
6833
|
+
* @return {!Array<string>}
|
|
6834
|
+
*/
|
|
6835
|
+
proto.pulumirpc.TransformResourceOptions.prototype.getReplaceWithList = function() {
|
|
6836
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 19));
|
|
6837
|
+
};
|
|
6838
|
+
|
|
6839
|
+
|
|
6840
|
+
/**
|
|
6841
|
+
* @param {!Array<string>} value
|
|
6842
|
+
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
|
|
6843
|
+
*/
|
|
6844
|
+
proto.pulumirpc.TransformResourceOptions.prototype.setReplaceWithList = function(value) {
|
|
6845
|
+
return jspb.Message.setField(this, 19, value || []);
|
|
6846
|
+
};
|
|
6847
|
+
|
|
6848
|
+
|
|
6849
|
+
/**
|
|
6850
|
+
* @param {string} value
|
|
6851
|
+
* @param {number=} opt_index
|
|
6852
|
+
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
|
|
6853
|
+
*/
|
|
6854
|
+
proto.pulumirpc.TransformResourceOptions.prototype.addReplaceWith = function(value, opt_index) {
|
|
6855
|
+
return jspb.Message.addToRepeatedField(this, 19, value, opt_index);
|
|
6856
|
+
};
|
|
6857
|
+
|
|
6858
|
+
|
|
6859
|
+
/**
|
|
6860
|
+
* Clears the list making it empty but non-null.
|
|
6861
|
+
* @return {!proto.pulumirpc.TransformResourceOptions} returns this
|
|
6862
|
+
*/
|
|
6863
|
+
proto.pulumirpc.TransformResourceOptions.prototype.clearReplaceWithList = function() {
|
|
6864
|
+
return this.setReplaceWithList([]);
|
|
6865
|
+
};
|
|
6866
|
+
|
|
6867
|
+
|
|
6770
6868
|
|
|
6771
6869
|
|
|
6772
6870
|
|
package/resource.d.ts
CHANGED
|
@@ -227,6 +227,10 @@ export interface ResourceOptions {
|
|
|
227
227
|
* if specified is being deleted as well.
|
|
228
228
|
*/
|
|
229
229
|
deletedWith?: Resource;
|
|
230
|
+
/**
|
|
231
|
+
* If set, the URNs of the resources whose replaces will also replace this resource.
|
|
232
|
+
*/
|
|
233
|
+
replaceWith?: Resource[];
|
|
230
234
|
/**
|
|
231
235
|
* Optional resource hooks to bind to this resource. The hooks will be
|
|
232
236
|
* invoked during certain step of the lifecycle of the resource.
|
package/resource.js
CHANGED
|
@@ -567,7 +567,10 @@ class ComponentResource extends Resource {
|
|
|
567
567
|
* True if this is a remote component resource.
|
|
568
568
|
*/
|
|
569
569
|
constructor(type, name, args = {}, opts = {}, remote = false, packageRef) {
|
|
570
|
-
|
|
570
|
+
// If the PULUMI_NODEJS_SKIP_COMPONENT_INPUTS environment variable is set,
|
|
571
|
+
// we skip sending the inputs to the engine.
|
|
572
|
+
super(type, name,
|
|
573
|
+
/*custom:*/ false, process.env.PULUMI_NODEJS_SKIP_COMPONENT_INPUTS ? {} : args, opts, remote, false, packageRef);
|
|
571
574
|
/**
|
|
572
575
|
* A private field to help with RTTI that works in SxS scenarios.
|
|
573
576
|
*
|