@pulumi/pulumi 3.28.0 → 3.29.0-alpha.1649075284

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pulumi",
3
- "version": "3.28.0",
3
+ "version": "3.29.0-alpha.1649075284+4145b1bd",
4
4
  "description": "Pulumi's Node.js SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -54,6 +54,28 @@ function deserialize_pulumirpc_GetRequiredPluginsResponse(buffer_arg) {
54
54
  return language_pb.GetRequiredPluginsResponse.deserializeBinary(new Uint8Array(buffer_arg));
55
55
  }
56
56
 
57
+ function serialize_pulumirpc_InstallDependenciesRequest(arg) {
58
+ if (!(arg instanceof language_pb.InstallDependenciesRequest)) {
59
+ throw new Error('Expected argument of type pulumirpc.InstallDependenciesRequest');
60
+ }
61
+ return Buffer.from(arg.serializeBinary());
62
+ }
63
+
64
+ function deserialize_pulumirpc_InstallDependenciesRequest(buffer_arg) {
65
+ return language_pb.InstallDependenciesRequest.deserializeBinary(new Uint8Array(buffer_arg));
66
+ }
67
+
68
+ function serialize_pulumirpc_InstallDependenciesResponse(arg) {
69
+ if (!(arg instanceof language_pb.InstallDependenciesResponse)) {
70
+ throw new Error('Expected argument of type pulumirpc.InstallDependenciesResponse');
71
+ }
72
+ return Buffer.from(arg.serializeBinary());
73
+ }
74
+
75
+ function deserialize_pulumirpc_InstallDependenciesResponse(buffer_arg) {
76
+ return language_pb.InstallDependenciesResponse.deserializeBinary(new Uint8Array(buffer_arg));
77
+ }
78
+
57
79
  function serialize_pulumirpc_PluginInfo(arg) {
58
80
  if (!(arg instanceof plugin_pb.PluginInfo)) {
59
81
  throw new Error('Expected argument of type pulumirpc.PluginInfo');
@@ -127,6 +149,18 @@ getPluginInfo: {
127
149
  responseSerialize: serialize_pulumirpc_PluginInfo,
128
150
  responseDeserialize: deserialize_pulumirpc_PluginInfo,
129
151
  },
152
+ // InstallDependencies will install dependencies for the project, e.g. by running `npm install` for nodejs projects.
153
+ installDependencies: {
154
+ path: '/pulumirpc.LanguageRuntime/InstallDependencies',
155
+ requestStream: false,
156
+ responseStream: true,
157
+ requestType: language_pb.InstallDependenciesRequest,
158
+ responseType: language_pb.InstallDependenciesResponse,
159
+ requestSerialize: serialize_pulumirpc_InstallDependenciesRequest,
160
+ requestDeserialize: deserialize_pulumirpc_InstallDependenciesRequest,
161
+ responseSerialize: serialize_pulumirpc_InstallDependenciesResponse,
162
+ responseDeserialize: deserialize_pulumirpc_InstallDependenciesResponse,
163
+ },
130
164
  };
131
165
 
132
166
  exports.LanguageRuntimeClient = grpc.makeGenericClientConstructor(LanguageRuntimeService);
@@ -18,6 +18,8 @@ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb
18
18
  goog.object.extend(proto, google_protobuf_empty_pb);
19
19
  goog.exportSymbol('proto.pulumirpc.GetRequiredPluginsRequest', null, global);
20
20
  goog.exportSymbol('proto.pulumirpc.GetRequiredPluginsResponse', null, global);
21
+ goog.exportSymbol('proto.pulumirpc.InstallDependenciesRequest', null, global);
22
+ goog.exportSymbol('proto.pulumirpc.InstallDependenciesResponse', null, global);
21
23
  goog.exportSymbol('proto.pulumirpc.RunRequest', null, global);
22
24
  goog.exportSymbol('proto.pulumirpc.RunResponse', null, global);
23
25
  /**
@@ -104,6 +106,48 @@ if (goog.DEBUG && !COMPILED) {
104
106
  */
105
107
  proto.pulumirpc.RunResponse.displayName = 'proto.pulumirpc.RunResponse';
106
108
  }
109
+ /**
110
+ * Generated by JsPbCodeGenerator.
111
+ * @param {Array=} opt_data Optional initial data array, typically from a
112
+ * server response, or constructed directly in Javascript. The array is used
113
+ * in place and becomes part of the constructed object. It is not cloned.
114
+ * If no data is provided, the constructed object will be empty, but still
115
+ * valid.
116
+ * @extends {jspb.Message}
117
+ * @constructor
118
+ */
119
+ proto.pulumirpc.InstallDependenciesRequest = function(opt_data) {
120
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
121
+ };
122
+ goog.inherits(proto.pulumirpc.InstallDependenciesRequest, jspb.Message);
123
+ if (goog.DEBUG && !COMPILED) {
124
+ /**
125
+ * @public
126
+ * @override
127
+ */
128
+ proto.pulumirpc.InstallDependenciesRequest.displayName = 'proto.pulumirpc.InstallDependenciesRequest';
129
+ }
130
+ /**
131
+ * Generated by JsPbCodeGenerator.
132
+ * @param {Array=} opt_data Optional initial data array, typically from a
133
+ * server response, or constructed directly in Javascript. The array is used
134
+ * in place and becomes part of the constructed object. It is not cloned.
135
+ * If no data is provided, the constructed object will be empty, but still
136
+ * valid.
137
+ * @extends {jspb.Message}
138
+ * @constructor
139
+ */
140
+ proto.pulumirpc.InstallDependenciesResponse = function(opt_data) {
141
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
142
+ };
143
+ goog.inherits(proto.pulumirpc.InstallDependenciesResponse, jspb.Message);
144
+ if (goog.DEBUG && !COMPILED) {
145
+ /**
146
+ * @public
147
+ * @override
148
+ */
149
+ proto.pulumirpc.InstallDependenciesResponse.displayName = 'proto.pulumirpc.InstallDependenciesResponse';
150
+ }
107
151
 
108
152
 
109
153
 
@@ -1092,4 +1136,372 @@ proto.pulumirpc.RunResponse.prototype.setBail = function(value) {
1092
1136
  };
1093
1137
 
1094
1138
 
1139
+
1140
+
1141
+
1142
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1143
+ /**
1144
+ * Creates an object representation of this proto.
1145
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1146
+ * Optional fields that are not set will be set to undefined.
1147
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1148
+ * For the list of reserved names please see:
1149
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1150
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1151
+ * JSPB instance for transitional soy proto support:
1152
+ * http://goto/soy-param-migration
1153
+ * @return {!Object}
1154
+ */
1155
+ proto.pulumirpc.InstallDependenciesRequest.prototype.toObject = function(opt_includeInstance) {
1156
+ return proto.pulumirpc.InstallDependenciesRequest.toObject(opt_includeInstance, this);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * Static version of the {@see toObject} method.
1162
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1163
+ * the JSPB instance for transitional soy proto support:
1164
+ * http://goto/soy-param-migration
1165
+ * @param {!proto.pulumirpc.InstallDependenciesRequest} msg The msg instance to transform.
1166
+ * @return {!Object}
1167
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1168
+ */
1169
+ proto.pulumirpc.InstallDependenciesRequest.toObject = function(includeInstance, msg) {
1170
+ var f, obj = {
1171
+ directory: jspb.Message.getFieldWithDefault(msg, 1, ""),
1172
+ isTerminal: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
1173
+ };
1174
+
1175
+ if (includeInstance) {
1176
+ obj.$jspbMessageInstance = msg;
1177
+ }
1178
+ return obj;
1179
+ };
1180
+ }
1181
+
1182
+
1183
+ /**
1184
+ * Deserializes binary data (in protobuf wire format).
1185
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1186
+ * @return {!proto.pulumirpc.InstallDependenciesRequest}
1187
+ */
1188
+ proto.pulumirpc.InstallDependenciesRequest.deserializeBinary = function(bytes) {
1189
+ var reader = new jspb.BinaryReader(bytes);
1190
+ var msg = new proto.pulumirpc.InstallDependenciesRequest;
1191
+ return proto.pulumirpc.InstallDependenciesRequest.deserializeBinaryFromReader(msg, reader);
1192
+ };
1193
+
1194
+
1195
+ /**
1196
+ * Deserializes binary data (in protobuf wire format) from the
1197
+ * given reader into the given message object.
1198
+ * @param {!proto.pulumirpc.InstallDependenciesRequest} msg The message object to deserialize into.
1199
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1200
+ * @return {!proto.pulumirpc.InstallDependenciesRequest}
1201
+ */
1202
+ proto.pulumirpc.InstallDependenciesRequest.deserializeBinaryFromReader = function(msg, reader) {
1203
+ while (reader.nextField()) {
1204
+ if (reader.isEndGroup()) {
1205
+ break;
1206
+ }
1207
+ var field = reader.getFieldNumber();
1208
+ switch (field) {
1209
+ case 1:
1210
+ var value = /** @type {string} */ (reader.readString());
1211
+ msg.setDirectory(value);
1212
+ break;
1213
+ case 2:
1214
+ var value = /** @type {boolean} */ (reader.readBool());
1215
+ msg.setIsTerminal(value);
1216
+ break;
1217
+ default:
1218
+ reader.skipField();
1219
+ break;
1220
+ }
1221
+ }
1222
+ return msg;
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * Serializes the message to binary data (in protobuf wire format).
1228
+ * @return {!Uint8Array}
1229
+ */
1230
+ proto.pulumirpc.InstallDependenciesRequest.prototype.serializeBinary = function() {
1231
+ var writer = new jspb.BinaryWriter();
1232
+ proto.pulumirpc.InstallDependenciesRequest.serializeBinaryToWriter(this, writer);
1233
+ return writer.getResultBuffer();
1234
+ };
1235
+
1236
+
1237
+ /**
1238
+ * Serializes the given message to binary data (in protobuf wire
1239
+ * format), writing to the given BinaryWriter.
1240
+ * @param {!proto.pulumirpc.InstallDependenciesRequest} message
1241
+ * @param {!jspb.BinaryWriter} writer
1242
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1243
+ */
1244
+ proto.pulumirpc.InstallDependenciesRequest.serializeBinaryToWriter = function(message, writer) {
1245
+ var f = undefined;
1246
+ f = message.getDirectory();
1247
+ if (f.length > 0) {
1248
+ writer.writeString(
1249
+ 1,
1250
+ f
1251
+ );
1252
+ }
1253
+ f = message.getIsTerminal();
1254
+ if (f) {
1255
+ writer.writeBool(
1256
+ 2,
1257
+ f
1258
+ );
1259
+ }
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * optional string directory = 1;
1265
+ * @return {string}
1266
+ */
1267
+ proto.pulumirpc.InstallDependenciesRequest.prototype.getDirectory = function() {
1268
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * @param {string} value
1274
+ * @return {!proto.pulumirpc.InstallDependenciesRequest} returns this
1275
+ */
1276
+ proto.pulumirpc.InstallDependenciesRequest.prototype.setDirectory = function(value) {
1277
+ return jspb.Message.setProto3StringField(this, 1, value);
1278
+ };
1279
+
1280
+
1281
+ /**
1282
+ * optional bool is_terminal = 2;
1283
+ * @return {boolean}
1284
+ */
1285
+ proto.pulumirpc.InstallDependenciesRequest.prototype.getIsTerminal = function() {
1286
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * @param {boolean} value
1292
+ * @return {!proto.pulumirpc.InstallDependenciesRequest} returns this
1293
+ */
1294
+ proto.pulumirpc.InstallDependenciesRequest.prototype.setIsTerminal = function(value) {
1295
+ return jspb.Message.setProto3BooleanField(this, 2, value);
1296
+ };
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1303
+ /**
1304
+ * Creates an object representation of this proto.
1305
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1306
+ * Optional fields that are not set will be set to undefined.
1307
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1308
+ * For the list of reserved names please see:
1309
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1310
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1311
+ * JSPB instance for transitional soy proto support:
1312
+ * http://goto/soy-param-migration
1313
+ * @return {!Object}
1314
+ */
1315
+ proto.pulumirpc.InstallDependenciesResponse.prototype.toObject = function(opt_includeInstance) {
1316
+ return proto.pulumirpc.InstallDependenciesResponse.toObject(opt_includeInstance, this);
1317
+ };
1318
+
1319
+
1320
+ /**
1321
+ * Static version of the {@see toObject} method.
1322
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1323
+ * the JSPB instance for transitional soy proto support:
1324
+ * http://goto/soy-param-migration
1325
+ * @param {!proto.pulumirpc.InstallDependenciesResponse} msg The msg instance to transform.
1326
+ * @return {!Object}
1327
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1328
+ */
1329
+ proto.pulumirpc.InstallDependenciesResponse.toObject = function(includeInstance, msg) {
1330
+ var f, obj = {
1331
+ stdout: msg.getStdout_asB64(),
1332
+ stderr: msg.getStderr_asB64()
1333
+ };
1334
+
1335
+ if (includeInstance) {
1336
+ obj.$jspbMessageInstance = msg;
1337
+ }
1338
+ return obj;
1339
+ };
1340
+ }
1341
+
1342
+
1343
+ /**
1344
+ * Deserializes binary data (in protobuf wire format).
1345
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1346
+ * @return {!proto.pulumirpc.InstallDependenciesResponse}
1347
+ */
1348
+ proto.pulumirpc.InstallDependenciesResponse.deserializeBinary = function(bytes) {
1349
+ var reader = new jspb.BinaryReader(bytes);
1350
+ var msg = new proto.pulumirpc.InstallDependenciesResponse;
1351
+ return proto.pulumirpc.InstallDependenciesResponse.deserializeBinaryFromReader(msg, reader);
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * Deserializes binary data (in protobuf wire format) from the
1357
+ * given reader into the given message object.
1358
+ * @param {!proto.pulumirpc.InstallDependenciesResponse} msg The message object to deserialize into.
1359
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1360
+ * @return {!proto.pulumirpc.InstallDependenciesResponse}
1361
+ */
1362
+ proto.pulumirpc.InstallDependenciesResponse.deserializeBinaryFromReader = function(msg, reader) {
1363
+ while (reader.nextField()) {
1364
+ if (reader.isEndGroup()) {
1365
+ break;
1366
+ }
1367
+ var field = reader.getFieldNumber();
1368
+ switch (field) {
1369
+ case 1:
1370
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1371
+ msg.setStdout(value);
1372
+ break;
1373
+ case 2:
1374
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1375
+ msg.setStderr(value);
1376
+ break;
1377
+ default:
1378
+ reader.skipField();
1379
+ break;
1380
+ }
1381
+ }
1382
+ return msg;
1383
+ };
1384
+
1385
+
1386
+ /**
1387
+ * Serializes the message to binary data (in protobuf wire format).
1388
+ * @return {!Uint8Array}
1389
+ */
1390
+ proto.pulumirpc.InstallDependenciesResponse.prototype.serializeBinary = function() {
1391
+ var writer = new jspb.BinaryWriter();
1392
+ proto.pulumirpc.InstallDependenciesResponse.serializeBinaryToWriter(this, writer);
1393
+ return writer.getResultBuffer();
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Serializes the given message to binary data (in protobuf wire
1399
+ * format), writing to the given BinaryWriter.
1400
+ * @param {!proto.pulumirpc.InstallDependenciesResponse} message
1401
+ * @param {!jspb.BinaryWriter} writer
1402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1403
+ */
1404
+ proto.pulumirpc.InstallDependenciesResponse.serializeBinaryToWriter = function(message, writer) {
1405
+ var f = undefined;
1406
+ f = message.getStdout_asU8();
1407
+ if (f.length > 0) {
1408
+ writer.writeBytes(
1409
+ 1,
1410
+ f
1411
+ );
1412
+ }
1413
+ f = message.getStderr_asU8();
1414
+ if (f.length > 0) {
1415
+ writer.writeBytes(
1416
+ 2,
1417
+ f
1418
+ );
1419
+ }
1420
+ };
1421
+
1422
+
1423
+ /**
1424
+ * optional bytes stdout = 1;
1425
+ * @return {!(string|Uint8Array)}
1426
+ */
1427
+ proto.pulumirpc.InstallDependenciesResponse.prototype.getStdout = function() {
1428
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * optional bytes stdout = 1;
1434
+ * This is a type-conversion wrapper around `getStdout()`
1435
+ * @return {string}
1436
+ */
1437
+ proto.pulumirpc.InstallDependenciesResponse.prototype.getStdout_asB64 = function() {
1438
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1439
+ this.getStdout()));
1440
+ };
1441
+
1442
+
1443
+ /**
1444
+ * optional bytes stdout = 1;
1445
+ * Note that Uint8Array is not supported on all browsers.
1446
+ * @see http://caniuse.com/Uint8Array
1447
+ * This is a type-conversion wrapper around `getStdout()`
1448
+ * @return {!Uint8Array}
1449
+ */
1450
+ proto.pulumirpc.InstallDependenciesResponse.prototype.getStdout_asU8 = function() {
1451
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1452
+ this.getStdout()));
1453
+ };
1454
+
1455
+
1456
+ /**
1457
+ * @param {!(string|Uint8Array)} value
1458
+ * @return {!proto.pulumirpc.InstallDependenciesResponse} returns this
1459
+ */
1460
+ proto.pulumirpc.InstallDependenciesResponse.prototype.setStdout = function(value) {
1461
+ return jspb.Message.setProto3BytesField(this, 1, value);
1462
+ };
1463
+
1464
+
1465
+ /**
1466
+ * optional bytes stderr = 2;
1467
+ * @return {!(string|Uint8Array)}
1468
+ */
1469
+ proto.pulumirpc.InstallDependenciesResponse.prototype.getStderr = function() {
1470
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * optional bytes stderr = 2;
1476
+ * This is a type-conversion wrapper around `getStderr()`
1477
+ * @return {string}
1478
+ */
1479
+ proto.pulumirpc.InstallDependenciesResponse.prototype.getStderr_asB64 = function() {
1480
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1481
+ this.getStderr()));
1482
+ };
1483
+
1484
+
1485
+ /**
1486
+ * optional bytes stderr = 2;
1487
+ * Note that Uint8Array is not supported on all browsers.
1488
+ * @see http://caniuse.com/Uint8Array
1489
+ * This is a type-conversion wrapper around `getStderr()`
1490
+ * @return {!Uint8Array}
1491
+ */
1492
+ proto.pulumirpc.InstallDependenciesResponse.prototype.getStderr_asU8 = function() {
1493
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1494
+ this.getStderr()));
1495
+ };
1496
+
1497
+
1498
+ /**
1499
+ * @param {!(string|Uint8Array)} value
1500
+ * @return {!proto.pulumirpc.InstallDependenciesResponse} returns this
1501
+ */
1502
+ proto.pulumirpc.InstallDependenciesResponse.prototype.setStderr = function(value) {
1503
+ return jspb.Message.setProto3BytesField(this, 2, value);
1504
+ };
1505
+
1506
+
1095
1507
  goog.object.extend(exports, proto.pulumirpc);
package/version.js CHANGED
@@ -13,5 +13,5 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.version = "3.28.0";
16
+ exports.version = "3.29.0-alpha.1649075284+4145b1bd";
17
17
  //# sourceMappingURL=version.js.map