@pulumi/pulumi 3.73.0 → 3.75.0
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/events.d.ts +1 -0
- package/automation/localWorkspace.js +4 -0
- package/automation/localWorkspace.js.map +1 -1
- package/cmd/run/run.js +132 -88
- package/cmd/run/run.js.map +1 -1
- package/config.js +19 -18
- package/config.js.map +1 -1
- package/dynamic/index.js +12 -6
- package/dynamic/index.js.map +1 -1
- package/package.json +4 -2
- package/proto/provider_grpc_pb.js +1 -0
- package/proto/provider_pb.js +189 -4
- package/proto/resource_grpc_pb.js +1 -0
- package/proto/resource_pb.js +158 -3
- package/proto/source_grpc_pb.js +1 -0
- package/proto/source_pb.js +230 -0
- package/resource.js +3 -3
- package/resource.js.map +1 -1
- package/tests/automation/data/tcfg/package-lock.json +782 -27
- package/tests/automation/data/tcfg/package.json +1 -1
- package/tests/automation/data/testproj/go.mod +9 -9
- package/tests/automation/data/testproj/go.sum +18 -111
- package/tests/automation/localWorkspace.spec.js +9 -0
- package/tests/automation/localWorkspace.spec.js.map +1 -1
- package/version.js +1 -1
package/dynamic/index.js
CHANGED
|
@@ -20,14 +20,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
20
|
return result;
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
const output_1 = require("../output");
|
|
23
24
|
const resource = __importStar(require("../resource"));
|
|
24
25
|
const settings = __importStar(require("../runtime/settings"));
|
|
25
26
|
const providerCache = new WeakMap();
|
|
26
27
|
function serializeProvider(provider) {
|
|
27
|
-
// Load runtime/closure on demand, as its dependencies are slow to load.
|
|
28
|
-
//
|
|
29
|
-
// See https://www.typescriptlang.org/docs/handbook/modules.html#optional-module-loading-and-other-advanced-loading-scenarios
|
|
30
|
-
const sc = require("../runtime/closure/serializeClosure");
|
|
31
28
|
let result;
|
|
32
29
|
// caching is enabled by default as of 3.0
|
|
33
30
|
if (settings.cacheDynamicProviders()) {
|
|
@@ -36,15 +33,24 @@ function serializeProvider(provider) {
|
|
|
36
33
|
result = cachedProvider;
|
|
37
34
|
}
|
|
38
35
|
else {
|
|
39
|
-
result =
|
|
36
|
+
result = serializeFunctionMaybeSecret(provider);
|
|
40
37
|
providerCache.set(provider, result);
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
40
|
else {
|
|
44
|
-
result =
|
|
41
|
+
result = serializeFunctionMaybeSecret(provider);
|
|
45
42
|
}
|
|
46
43
|
return result;
|
|
47
44
|
}
|
|
45
|
+
function serializeFunctionMaybeSecret(provider) {
|
|
46
|
+
// Load runtime/closure on demand, as its dependencies are slow to load.
|
|
47
|
+
//
|
|
48
|
+
// See https://www.typescriptlang.org/docs/handbook/modules.html#optional-module-loading-and-other-advanced-loading-scenarios
|
|
49
|
+
const sc = require("../runtime/closure/serializeClosure");
|
|
50
|
+
const sfPromise = sc.serializeFunction(() => provider, { allowSecrets: true });
|
|
51
|
+
// Create an Output from the promise's text and containsSecrets properties. Uses the internal API since we don't provide a public interface for this.
|
|
52
|
+
return new output_1.Output([], sfPromise.then((sf) => sf.text), new Promise((resolve) => resolve(true)), sfPromise.then((sf) => sf.containsSecrets), new Promise((resolve) => resolve([])));
|
|
53
|
+
}
|
|
48
54
|
/**
|
|
49
55
|
* Resource represents a Pulumi Resource that incorporates an inline implementation of the Resource's CRUD operations.
|
|
50
56
|
*/
|
package/dynamic/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../dynamic/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../dynamic/index.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;AAEjC,sCAAkD;AAClD,sDAAwC;AACxC,8DAAgD;AAoJhD,MAAM,aAAa,GAAG,IAAI,OAAO,EAAmC,CAAC;AAErE,SAAS,iBAAiB,CAAC,QAA0B;IACjD,IAAI,MAAqB,CAAC;IAC1B,0CAA0C;IAC1C,IAAI,QAAQ,CAAC,qBAAqB,EAAE,EAAE;QAClC,MAAM,cAAc,GAAG,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,cAAc,EAAE;YAChB,MAAM,GAAG,cAAc,CAAC;SAC3B;aAAM;YACH,MAAM,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;YAChD,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;SACvC;KACJ;SAAM;QACH,MAAM,GAAG,4BAA4B,CAAC,QAAQ,CAAC,CAAC;KACnD;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,SAAS,4BAA4B,CAAC,QAA0B;IAC5D,wEAAwE;IACxE,EAAE;IACF,6HAA6H;IAC7H,MAAM,EAAE,GAA4B,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAEnF,MAAM,SAAS,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/E,sJAAsJ;IACtJ,OAAO,IAAI,eAAM,CACb,EAAE,EACF,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAC/B,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EACvC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,eAAe,CAAC,EAC1C,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CACxC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAsB,QAAS,SAAQ,QAAQ,CAAC,cAAc;IAC1D;;;;;;;;;;OAUG;IACH,YACI,QAA0B,EAC1B,IAAY,EACZ,KAAa,EACb,IAAqC,EACrC,MAAe,EACf,OAAe,UAAU;QAEzB,MAAM,WAAW,GAAW,YAAY,CAAC;QACzC,IAAI,KAAK,CAAC,WAAW,CAAC,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;SAC5E;QACD,KAAK,CAAC,WAAW,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAEjD,KAAK,CAAC,wBAAwB,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;CACJ;AA5BD,4BA4BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/pulumi",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.75.0",
|
|
4
4
|
"description": "Pulumi's Node.js SDK",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"directory": "sdk/nodejs"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@grpc/grpc-js": "^1.
|
|
12
|
+
"@grpc/grpc-js": "^1.8.16",
|
|
13
13
|
"@logdna/tail-file": "^2.0.6",
|
|
14
14
|
"@opentelemetry/api": "^1.2.0",
|
|
15
15
|
"@opentelemetry/exporter-zipkin": "^1.6.0",
|
|
16
|
+
"@opentelemetry/instrumentation": "^0.32.0",
|
|
16
17
|
"@opentelemetry/instrumentation-grpc": "^0.32.0",
|
|
17
18
|
"@opentelemetry/resources": "^1.6.0",
|
|
18
19
|
"@opentelemetry/sdk-trace-base": "^1.6.0",
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
"js-yaml": "^3.14.0",
|
|
26
27
|
"minimist": "^1.2.6",
|
|
27
28
|
"normalize-package-data": "^3.0.0",
|
|
29
|
+
"pkg-dir": "^7.0.0",
|
|
28
30
|
"read-package-tree": "^5.3.1",
|
|
29
31
|
"require-from-string": "^2.0.1",
|
|
30
32
|
"semver": "^7.5.2",
|
|
@@ -21,6 +21,7 @@ var pulumi_provider_pb = require('./provider_pb.js');
|
|
|
21
21
|
var pulumi_plugin_pb = require('./plugin_pb.js');
|
|
22
22
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
23
23
|
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
24
|
+
var pulumi_source_pb = require('./source_pb.js');
|
|
24
25
|
|
|
25
26
|
function serialize_google_protobuf_Empty(arg) {
|
|
26
27
|
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
package/proto/provider_pb.js
CHANGED
|
@@ -21,6 +21,8 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
|
|
|
21
21
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
22
22
|
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
23
23
|
goog.object.extend(proto, google_protobuf_struct_pb);
|
|
24
|
+
var pulumi_source_pb = require('./source_pb.js');
|
|
25
|
+
goog.object.extend(proto, pulumi_source_pb);
|
|
24
26
|
goog.exportSymbol('proto.pulumirpc.CallRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.pulumirpc.CallRequest.ArgumentDependencies', null, global);
|
|
26
28
|
goog.exportSymbol('proto.pulumirpc.CallResponse', null, global);
|
|
@@ -1044,7 +1046,8 @@ proto.pulumirpc.ConfigureRequest.toObject = function(includeInstance, msg) {
|
|
|
1044
1046
|
variablesMap: (f = msg.getVariablesMap()) ? f.toObject(includeInstance, undefined) : [],
|
|
1045
1047
|
args: (f = msg.getArgs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
1046
1048
|
acceptsecrets: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1047
|
-
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
1049
|
+
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
1050
|
+
sendsOldInputs: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
1048
1051
|
};
|
|
1049
1052
|
|
|
1050
1053
|
if (includeInstance) {
|
|
@@ -1100,6 +1103,10 @@ proto.pulumirpc.ConfigureRequest.deserializeBinaryFromReader = function(msg, rea
|
|
|
1100
1103
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1101
1104
|
msg.setAcceptresources(value);
|
|
1102
1105
|
break;
|
|
1106
|
+
case 5:
|
|
1107
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1108
|
+
msg.setSendsOldInputs(value);
|
|
1109
|
+
break;
|
|
1103
1110
|
default:
|
|
1104
1111
|
reader.skipField();
|
|
1105
1112
|
break;
|
|
@@ -1155,6 +1162,13 @@ proto.pulumirpc.ConfigureRequest.serializeBinaryToWriter = function(message, wri
|
|
|
1155
1162
|
f
|
|
1156
1163
|
);
|
|
1157
1164
|
}
|
|
1165
|
+
f = message.getSendsOldInputs();
|
|
1166
|
+
if (f) {
|
|
1167
|
+
writer.writeBool(
|
|
1168
|
+
5,
|
|
1169
|
+
f
|
|
1170
|
+
);
|
|
1171
|
+
}
|
|
1158
1172
|
};
|
|
1159
1173
|
|
|
1160
1174
|
|
|
@@ -1253,6 +1267,24 @@ proto.pulumirpc.ConfigureRequest.prototype.setAcceptresources = function(value)
|
|
|
1253
1267
|
};
|
|
1254
1268
|
|
|
1255
1269
|
|
|
1270
|
+
/**
|
|
1271
|
+
* optional bool sends_old_inputs = 5;
|
|
1272
|
+
* @return {boolean}
|
|
1273
|
+
*/
|
|
1274
|
+
proto.pulumirpc.ConfigureRequest.prototype.getSendsOldInputs = function() {
|
|
1275
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* @param {boolean} value
|
|
1281
|
+
* @return {!proto.pulumirpc.ConfigureRequest} returns this
|
|
1282
|
+
*/
|
|
1283
|
+
proto.pulumirpc.ConfigureRequest.prototype.setSendsOldInputs = function(value) {
|
|
1284
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1287
|
+
|
|
1256
1288
|
|
|
1257
1289
|
|
|
1258
1290
|
|
|
@@ -2237,7 +2269,8 @@ proto.pulumirpc.CallRequest.toObject = function(includeInstance, msg) {
|
|
|
2237
2269
|
dryrun: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
2238
2270
|
parallel: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
2239
2271
|
monitorendpoint: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
2240
|
-
organization: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
2272
|
+
organization: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
2273
|
+
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f)
|
|
2241
2274
|
};
|
|
2242
2275
|
|
|
2243
2276
|
if (includeInstance) {
|
|
@@ -2335,6 +2368,11 @@ proto.pulumirpc.CallRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2335
2368
|
var value = /** @type {string} */ (reader.readString());
|
|
2336
2369
|
msg.setOrganization(value);
|
|
2337
2370
|
break;
|
|
2371
|
+
case 15:
|
|
2372
|
+
var value = new pulumi_source_pb.SourcePosition;
|
|
2373
|
+
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
|
|
2374
|
+
msg.setSourceposition(value);
|
|
2375
|
+
break;
|
|
2338
2376
|
default:
|
|
2339
2377
|
reader.skipField();
|
|
2340
2378
|
break;
|
|
@@ -2457,6 +2495,14 @@ proto.pulumirpc.CallRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
2457
2495
|
f
|
|
2458
2496
|
);
|
|
2459
2497
|
}
|
|
2498
|
+
f = message.getSourceposition();
|
|
2499
|
+
if (f != null) {
|
|
2500
|
+
writer.writeMessage(
|
|
2501
|
+
15,
|
|
2502
|
+
f,
|
|
2503
|
+
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
|
|
2504
|
+
);
|
|
2505
|
+
}
|
|
2460
2506
|
};
|
|
2461
2507
|
|
|
2462
2508
|
|
|
@@ -2914,6 +2960,43 @@ proto.pulumirpc.CallRequest.prototype.setOrganization = function(value) {
|
|
|
2914
2960
|
};
|
|
2915
2961
|
|
|
2916
2962
|
|
|
2963
|
+
/**
|
|
2964
|
+
* optional SourcePosition sourcePosition = 15;
|
|
2965
|
+
* @return {?proto.pulumirpc.SourcePosition}
|
|
2966
|
+
*/
|
|
2967
|
+
proto.pulumirpc.CallRequest.prototype.getSourceposition = function() {
|
|
2968
|
+
return /** @type{?proto.pulumirpc.SourcePosition} */ (
|
|
2969
|
+
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 15));
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
|
|
2973
|
+
/**
|
|
2974
|
+
* @param {?proto.pulumirpc.SourcePosition|undefined} value
|
|
2975
|
+
* @return {!proto.pulumirpc.CallRequest} returns this
|
|
2976
|
+
*/
|
|
2977
|
+
proto.pulumirpc.CallRequest.prototype.setSourceposition = function(value) {
|
|
2978
|
+
return jspb.Message.setWrapperField(this, 15, value);
|
|
2979
|
+
};
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
/**
|
|
2983
|
+
* Clears the message field making it undefined.
|
|
2984
|
+
* @return {!proto.pulumirpc.CallRequest} returns this
|
|
2985
|
+
*/
|
|
2986
|
+
proto.pulumirpc.CallRequest.prototype.clearSourceposition = function() {
|
|
2987
|
+
return this.setSourceposition(undefined);
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
/**
|
|
2992
|
+
* Returns whether this field is set.
|
|
2993
|
+
* @return {boolean}
|
|
2994
|
+
*/
|
|
2995
|
+
proto.pulumirpc.CallRequest.prototype.hasSourceposition = function() {
|
|
2996
|
+
return jspb.Message.getField(this, 15) != null;
|
|
2997
|
+
};
|
|
2998
|
+
|
|
2999
|
+
|
|
2917
3000
|
|
|
2918
3001
|
/**
|
|
2919
3002
|
* List of repeated fields within this message type.
|
|
@@ -4014,7 +4097,8 @@ proto.pulumirpc.DiffRequest.toObject = function(includeInstance, msg) {
|
|
|
4014
4097
|
urn: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4015
4098
|
olds: (f = msg.getOlds()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
4016
4099
|
news: (f = msg.getNews()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
4017
|
-
ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
4100
|
+
ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
|
|
4101
|
+
oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
4018
4102
|
};
|
|
4019
4103
|
|
|
4020
4104
|
if (includeInstance) {
|
|
@@ -4073,6 +4157,11 @@ proto.pulumirpc.DiffRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
4073
4157
|
var value = /** @type {string} */ (reader.readString());
|
|
4074
4158
|
msg.addIgnorechanges(value);
|
|
4075
4159
|
break;
|
|
4160
|
+
case 6:
|
|
4161
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
4162
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
4163
|
+
msg.setOldInputs(value);
|
|
4164
|
+
break;
|
|
4076
4165
|
default:
|
|
4077
4166
|
reader.skipField();
|
|
4078
4167
|
break;
|
|
@@ -4139,6 +4228,14 @@ proto.pulumirpc.DiffRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
4139
4228
|
f
|
|
4140
4229
|
);
|
|
4141
4230
|
}
|
|
4231
|
+
f = message.getOldInputs();
|
|
4232
|
+
if (f != null) {
|
|
4233
|
+
writer.writeMessage(
|
|
4234
|
+
6,
|
|
4235
|
+
f,
|
|
4236
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
4237
|
+
);
|
|
4238
|
+
}
|
|
4142
4239
|
};
|
|
4143
4240
|
|
|
4144
4241
|
|
|
@@ -4289,6 +4386,43 @@ proto.pulumirpc.DiffRequest.prototype.clearIgnorechangesList = function() {
|
|
|
4289
4386
|
};
|
|
4290
4387
|
|
|
4291
4388
|
|
|
4389
|
+
/**
|
|
4390
|
+
* optional google.protobuf.Struct old_inputs = 6;
|
|
4391
|
+
* @return {?proto.google.protobuf.Struct}
|
|
4392
|
+
*/
|
|
4393
|
+
proto.pulumirpc.DiffRequest.prototype.getOldInputs = function() {
|
|
4394
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
4395
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 6));
|
|
4396
|
+
};
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
/**
|
|
4400
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
4401
|
+
* @return {!proto.pulumirpc.DiffRequest} returns this
|
|
4402
|
+
*/
|
|
4403
|
+
proto.pulumirpc.DiffRequest.prototype.setOldInputs = function(value) {
|
|
4404
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
4405
|
+
};
|
|
4406
|
+
|
|
4407
|
+
|
|
4408
|
+
/**
|
|
4409
|
+
* Clears the message field making it undefined.
|
|
4410
|
+
* @return {!proto.pulumirpc.DiffRequest} returns this
|
|
4411
|
+
*/
|
|
4412
|
+
proto.pulumirpc.DiffRequest.prototype.clearOldInputs = function() {
|
|
4413
|
+
return this.setOldInputs(undefined);
|
|
4414
|
+
};
|
|
4415
|
+
|
|
4416
|
+
|
|
4417
|
+
/**
|
|
4418
|
+
* Returns whether this field is set.
|
|
4419
|
+
* @return {boolean}
|
|
4420
|
+
*/
|
|
4421
|
+
proto.pulumirpc.DiffRequest.prototype.hasOldInputs = function() {
|
|
4422
|
+
return jspb.Message.getField(this, 6) != null;
|
|
4423
|
+
};
|
|
4424
|
+
|
|
4425
|
+
|
|
4292
4426
|
|
|
4293
4427
|
|
|
4294
4428
|
|
|
@@ -5808,7 +5942,8 @@ proto.pulumirpc.UpdateRequest.toObject = function(includeInstance, msg) {
|
|
|
5808
5942
|
news: (f = msg.getNews()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
5809
5943
|
timeout: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
5810
5944
|
ignorechangesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
5811
|
-
preview: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
|
|
5945
|
+
preview: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
5946
|
+
oldInputs: (f = msg.getOldInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
5812
5947
|
};
|
|
5813
5948
|
|
|
5814
5949
|
if (includeInstance) {
|
|
@@ -5875,6 +6010,11 @@ proto.pulumirpc.UpdateRequest.deserializeBinaryFromReader = function(msg, reader
|
|
|
5875
6010
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
5876
6011
|
msg.setPreview(value);
|
|
5877
6012
|
break;
|
|
6013
|
+
case 8:
|
|
6014
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
6015
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
6016
|
+
msg.setOldInputs(value);
|
|
6017
|
+
break;
|
|
5878
6018
|
default:
|
|
5879
6019
|
reader.skipField();
|
|
5880
6020
|
break;
|
|
@@ -5955,6 +6095,14 @@ proto.pulumirpc.UpdateRequest.serializeBinaryToWriter = function(message, writer
|
|
|
5955
6095
|
f
|
|
5956
6096
|
);
|
|
5957
6097
|
}
|
|
6098
|
+
f = message.getOldInputs();
|
|
6099
|
+
if (f != null) {
|
|
6100
|
+
writer.writeMessage(
|
|
6101
|
+
8,
|
|
6102
|
+
f,
|
|
6103
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
6104
|
+
);
|
|
6105
|
+
}
|
|
5958
6106
|
};
|
|
5959
6107
|
|
|
5960
6108
|
|
|
@@ -6141,6 +6289,43 @@ proto.pulumirpc.UpdateRequest.prototype.setPreview = function(value) {
|
|
|
6141
6289
|
};
|
|
6142
6290
|
|
|
6143
6291
|
|
|
6292
|
+
/**
|
|
6293
|
+
* optional google.protobuf.Struct old_inputs = 8;
|
|
6294
|
+
* @return {?proto.google.protobuf.Struct}
|
|
6295
|
+
*/
|
|
6296
|
+
proto.pulumirpc.UpdateRequest.prototype.getOldInputs = function() {
|
|
6297
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
6298
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 8));
|
|
6299
|
+
};
|
|
6300
|
+
|
|
6301
|
+
|
|
6302
|
+
/**
|
|
6303
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
6304
|
+
* @return {!proto.pulumirpc.UpdateRequest} returns this
|
|
6305
|
+
*/
|
|
6306
|
+
proto.pulumirpc.UpdateRequest.prototype.setOldInputs = function(value) {
|
|
6307
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
6308
|
+
};
|
|
6309
|
+
|
|
6310
|
+
|
|
6311
|
+
/**
|
|
6312
|
+
* Clears the message field making it undefined.
|
|
6313
|
+
* @return {!proto.pulumirpc.UpdateRequest} returns this
|
|
6314
|
+
*/
|
|
6315
|
+
proto.pulumirpc.UpdateRequest.prototype.clearOldInputs = function() {
|
|
6316
|
+
return this.setOldInputs(undefined);
|
|
6317
|
+
};
|
|
6318
|
+
|
|
6319
|
+
|
|
6320
|
+
/**
|
|
6321
|
+
* Returns whether this field is set.
|
|
6322
|
+
* @return {boolean}
|
|
6323
|
+
*/
|
|
6324
|
+
proto.pulumirpc.UpdateRequest.prototype.hasOldInputs = function() {
|
|
6325
|
+
return jspb.Message.getField(this, 8) != null;
|
|
6326
|
+
};
|
|
6327
|
+
|
|
6328
|
+
|
|
6144
6329
|
|
|
6145
6330
|
|
|
6146
6331
|
|
|
@@ -22,6 +22,7 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
|
|
|
22
22
|
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
23
23
|
var pulumi_provider_pb = require('./provider_pb.js');
|
|
24
24
|
var pulumi_alias_pb = require('./alias_pb.js');
|
|
25
|
+
var pulumi_source_pb = require('./source_pb.js');
|
|
25
26
|
|
|
26
27
|
function serialize_google_protobuf_Empty(arg) {
|
|
27
28
|
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
package/proto/resource_pb.js
CHANGED
|
@@ -23,6 +23,8 @@ var pulumi_provider_pb = require('./provider_pb.js');
|
|
|
23
23
|
goog.object.extend(proto, pulumi_provider_pb);
|
|
24
24
|
var pulumi_alias_pb = require('./alias_pb.js');
|
|
25
25
|
goog.object.extend(proto, pulumi_alias_pb);
|
|
26
|
+
var pulumi_source_pb = require('./source_pb.js');
|
|
27
|
+
goog.object.extend(proto, pulumi_source_pb);
|
|
26
28
|
goog.exportSymbol('proto.pulumirpc.ReadResourceRequest', null, global);
|
|
27
29
|
goog.exportSymbol('proto.pulumirpc.ReadResourceResponse', null, global);
|
|
28
30
|
goog.exportSymbol('proto.pulumirpc.RegisterResourceOutputsRequest', null, global);
|
|
@@ -575,7 +577,8 @@ proto.pulumirpc.ReadResourceRequest.toObject = function(includeInstance, msg) {
|
|
|
575
577
|
acceptsecrets: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
576
578
|
additionalsecretoutputsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
|
|
577
579
|
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
578
|
-
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
580
|
+
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
581
|
+
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f)
|
|
579
582
|
};
|
|
580
583
|
|
|
581
584
|
if (includeInstance) {
|
|
@@ -661,6 +664,11 @@ proto.pulumirpc.ReadResourceRequest.deserializeBinaryFromReader = function(msg,
|
|
|
661
664
|
var value = /** @type {string} */ (reader.readString());
|
|
662
665
|
msg.setPlugindownloadurl(value);
|
|
663
666
|
break;
|
|
667
|
+
case 14:
|
|
668
|
+
var value = new pulumi_source_pb.SourcePosition;
|
|
669
|
+
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
|
|
670
|
+
msg.setSourceposition(value);
|
|
671
|
+
break;
|
|
664
672
|
default:
|
|
665
673
|
reader.skipField();
|
|
666
674
|
break;
|
|
@@ -775,6 +783,14 @@ proto.pulumirpc.ReadResourceRequest.serializeBinaryToWriter = function(message,
|
|
|
775
783
|
f
|
|
776
784
|
);
|
|
777
785
|
}
|
|
786
|
+
f = message.getSourceposition();
|
|
787
|
+
if (f != null) {
|
|
788
|
+
writer.writeMessage(
|
|
789
|
+
14,
|
|
790
|
+
f,
|
|
791
|
+
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
|
|
792
|
+
);
|
|
793
|
+
}
|
|
778
794
|
};
|
|
779
795
|
|
|
780
796
|
|
|
@@ -1051,6 +1067,43 @@ proto.pulumirpc.ReadResourceRequest.prototype.setPlugindownloadurl = function(va
|
|
|
1051
1067
|
};
|
|
1052
1068
|
|
|
1053
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* optional SourcePosition sourcePosition = 14;
|
|
1072
|
+
* @return {?proto.pulumirpc.SourcePosition}
|
|
1073
|
+
*/
|
|
1074
|
+
proto.pulumirpc.ReadResourceRequest.prototype.getSourceposition = function() {
|
|
1075
|
+
return /** @type{?proto.pulumirpc.SourcePosition} */ (
|
|
1076
|
+
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 14));
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* @param {?proto.pulumirpc.SourcePosition|undefined} value
|
|
1082
|
+
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
|
|
1083
|
+
*/
|
|
1084
|
+
proto.pulumirpc.ReadResourceRequest.prototype.setSourceposition = function(value) {
|
|
1085
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Clears the message field making it undefined.
|
|
1091
|
+
* @return {!proto.pulumirpc.ReadResourceRequest} returns this
|
|
1092
|
+
*/
|
|
1093
|
+
proto.pulumirpc.ReadResourceRequest.prototype.clearSourceposition = function() {
|
|
1094
|
+
return this.setSourceposition(undefined);
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Returns whether this field is set.
|
|
1100
|
+
* @return {boolean}
|
|
1101
|
+
*/
|
|
1102
|
+
proto.pulumirpc.ReadResourceRequest.prototype.hasSourceposition = function() {
|
|
1103
|
+
return jspb.Message.getField(this, 14) != null;
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
|
|
1054
1107
|
|
|
1055
1108
|
|
|
1056
1109
|
|
|
@@ -1299,7 +1352,8 @@ proto.pulumirpc.RegisterResourceRequest.toObject = function(includeInstance, msg
|
|
|
1299
1352
|
aliasesList: jspb.Message.toObjectList(msg.getAliasesList(),
|
|
1300
1353
|
pulumi_alias_pb.Alias.toObject, includeInstance),
|
|
1301
1354
|
deletedwith: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
1302
|
-
aliasspecs: jspb.Message.getBooleanFieldWithDefault(msg, 28, false)
|
|
1355
|
+
aliasspecs: jspb.Message.getBooleanFieldWithDefault(msg, 28, false),
|
|
1356
|
+
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f)
|
|
1303
1357
|
};
|
|
1304
1358
|
|
|
1305
1359
|
if (includeInstance) {
|
|
@@ -1455,6 +1509,11 @@ proto.pulumirpc.RegisterResourceRequest.deserializeBinaryFromReader = function(m
|
|
|
1455
1509
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
1456
1510
|
msg.setAliasspecs(value);
|
|
1457
1511
|
break;
|
|
1512
|
+
case 29:
|
|
1513
|
+
var value = new pulumi_source_pb.SourcePosition;
|
|
1514
|
+
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
|
|
1515
|
+
msg.setSourceposition(value);
|
|
1516
|
+
break;
|
|
1458
1517
|
default:
|
|
1459
1518
|
reader.skipField();
|
|
1460
1519
|
break;
|
|
@@ -1677,6 +1736,14 @@ proto.pulumirpc.RegisterResourceRequest.serializeBinaryToWriter = function(messa
|
|
|
1677
1736
|
f
|
|
1678
1737
|
);
|
|
1679
1738
|
}
|
|
1739
|
+
f = message.getSourceposition();
|
|
1740
|
+
if (f != null) {
|
|
1741
|
+
writer.writeMessage(
|
|
1742
|
+
29,
|
|
1743
|
+
f,
|
|
1744
|
+
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
|
|
1745
|
+
);
|
|
1746
|
+
}
|
|
1680
1747
|
};
|
|
1681
1748
|
|
|
1682
1749
|
|
|
@@ -2691,6 +2758,43 @@ proto.pulumirpc.RegisterResourceRequest.prototype.setAliasspecs = function(value
|
|
|
2691
2758
|
};
|
|
2692
2759
|
|
|
2693
2760
|
|
|
2761
|
+
/**
|
|
2762
|
+
* optional SourcePosition sourcePosition = 29;
|
|
2763
|
+
* @return {?proto.pulumirpc.SourcePosition}
|
|
2764
|
+
*/
|
|
2765
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.getSourceposition = function() {
|
|
2766
|
+
return /** @type{?proto.pulumirpc.SourcePosition} */ (
|
|
2767
|
+
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 29));
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
|
|
2771
|
+
/**
|
|
2772
|
+
* @param {?proto.pulumirpc.SourcePosition|undefined} value
|
|
2773
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
|
|
2774
|
+
*/
|
|
2775
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.setSourceposition = function(value) {
|
|
2776
|
+
return jspb.Message.setWrapperField(this, 29, value);
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
/**
|
|
2781
|
+
* Clears the message field making it undefined.
|
|
2782
|
+
* @return {!proto.pulumirpc.RegisterResourceRequest} returns this
|
|
2783
|
+
*/
|
|
2784
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.clearSourceposition = function() {
|
|
2785
|
+
return this.setSourceposition(undefined);
|
|
2786
|
+
};
|
|
2787
|
+
|
|
2788
|
+
|
|
2789
|
+
/**
|
|
2790
|
+
* Returns whether this field is set.
|
|
2791
|
+
* @return {boolean}
|
|
2792
|
+
*/
|
|
2793
|
+
proto.pulumirpc.RegisterResourceRequest.prototype.hasSourceposition = function() {
|
|
2794
|
+
return jspb.Message.getField(this, 29) != null;
|
|
2795
|
+
};
|
|
2796
|
+
|
|
2797
|
+
|
|
2694
2798
|
|
|
2695
2799
|
/**
|
|
2696
2800
|
* List of repeated fields within this message type.
|
|
@@ -3395,7 +3499,8 @@ proto.pulumirpc.ResourceInvokeRequest.toObject = function(includeInstance, msg)
|
|
|
3395
3499
|
provider: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3396
3500
|
version: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3397
3501
|
acceptresources: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
3398
|
-
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
3502
|
+
plugindownloadurl: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3503
|
+
sourceposition: (f = msg.getSourceposition()) && pulumi_source_pb.SourcePosition.toObject(includeInstance, f)
|
|
3399
3504
|
};
|
|
3400
3505
|
|
|
3401
3506
|
if (includeInstance) {
|
|
@@ -3457,6 +3562,11 @@ proto.pulumirpc.ResourceInvokeRequest.deserializeBinaryFromReader = function(msg
|
|
|
3457
3562
|
var value = /** @type {string} */ (reader.readString());
|
|
3458
3563
|
msg.setPlugindownloadurl(value);
|
|
3459
3564
|
break;
|
|
3565
|
+
case 7:
|
|
3566
|
+
var value = new pulumi_source_pb.SourcePosition;
|
|
3567
|
+
reader.readMessage(value,pulumi_source_pb.SourcePosition.deserializeBinaryFromReader);
|
|
3568
|
+
msg.setSourceposition(value);
|
|
3569
|
+
break;
|
|
3460
3570
|
default:
|
|
3461
3571
|
reader.skipField();
|
|
3462
3572
|
break;
|
|
@@ -3529,6 +3639,14 @@ proto.pulumirpc.ResourceInvokeRequest.serializeBinaryToWriter = function(message
|
|
|
3529
3639
|
f
|
|
3530
3640
|
);
|
|
3531
3641
|
}
|
|
3642
|
+
f = message.getSourceposition();
|
|
3643
|
+
if (f != null) {
|
|
3644
|
+
writer.writeMessage(
|
|
3645
|
+
7,
|
|
3646
|
+
f,
|
|
3647
|
+
pulumi_source_pb.SourcePosition.serializeBinaryToWriter
|
|
3648
|
+
);
|
|
3649
|
+
}
|
|
3532
3650
|
};
|
|
3533
3651
|
|
|
3534
3652
|
|
|
@@ -3659,4 +3777,41 @@ proto.pulumirpc.ResourceInvokeRequest.prototype.setPlugindownloadurl = function(
|
|
|
3659
3777
|
};
|
|
3660
3778
|
|
|
3661
3779
|
|
|
3780
|
+
/**
|
|
3781
|
+
* optional SourcePosition sourcePosition = 7;
|
|
3782
|
+
* @return {?proto.pulumirpc.SourcePosition}
|
|
3783
|
+
*/
|
|
3784
|
+
proto.pulumirpc.ResourceInvokeRequest.prototype.getSourceposition = function() {
|
|
3785
|
+
return /** @type{?proto.pulumirpc.SourcePosition} */ (
|
|
3786
|
+
jspb.Message.getWrapperField(this, pulumi_source_pb.SourcePosition, 7));
|
|
3787
|
+
};
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
/**
|
|
3791
|
+
* @param {?proto.pulumirpc.SourcePosition|undefined} value
|
|
3792
|
+
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
|
|
3793
|
+
*/
|
|
3794
|
+
proto.pulumirpc.ResourceInvokeRequest.prototype.setSourceposition = function(value) {
|
|
3795
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
3796
|
+
};
|
|
3797
|
+
|
|
3798
|
+
|
|
3799
|
+
/**
|
|
3800
|
+
* Clears the message field making it undefined.
|
|
3801
|
+
* @return {!proto.pulumirpc.ResourceInvokeRequest} returns this
|
|
3802
|
+
*/
|
|
3803
|
+
proto.pulumirpc.ResourceInvokeRequest.prototype.clearSourceposition = function() {
|
|
3804
|
+
return this.setSourceposition(undefined);
|
|
3805
|
+
};
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
/**
|
|
3809
|
+
* Returns whether this field is set.
|
|
3810
|
+
* @return {boolean}
|
|
3811
|
+
*/
|
|
3812
|
+
proto.pulumirpc.ResourceInvokeRequest.prototype.hasSourceposition = function() {
|
|
3813
|
+
return jspb.Message.getField(this, 7) != null;
|
|
3814
|
+
};
|
|
3815
|
+
|
|
3816
|
+
|
|
3662
3817
|
goog.object.extend(exports, proto.pulumirpc);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|