@pulumi/pulumi 3.46.1 → 3.47.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.
Files changed (39) hide show
  1. package/automation/remoteWorkspace.js +5 -5
  2. package/automation/remoteWorkspace.js.map +1 -1
  3. package/package.json +1 -1
  4. package/proto/language_grpc_pb.js +34 -0
  5. package/proto/language_pb.js +629 -0
  6. package/runtime/resource.js +1 -0
  7. package/runtime/resource.js.map +1 -1
  8. package/tests/automation/cmd.spec.js +2 -3
  9. package/tests/automation/cmd.spec.js.map +1 -1
  10. package/tests/automation/localWorkspace.spec.js +68 -78
  11. package/tests/automation/localWorkspace.spec.js.map +1 -1
  12. package/tests/automation/remoteWorkspace.spec.js +181 -0
  13. package/tests/automation/remoteWorkspace.spec.js.map +1 -1
  14. package/tests/automation/util.d.ts +1 -0
  15. package/tests/automation/util.js +30 -0
  16. package/tests/automation/util.js.map +1 -0
  17. package/tests/iterable.spec.js +4 -5
  18. package/tests/iterable.spec.js.map +1 -1
  19. package/tests/options.spec.js +40 -41
  20. package/tests/options.spec.js.map +1 -1
  21. package/tests/output.spec.js +152 -153
  22. package/tests/output.spec.js.map +1 -1
  23. package/tests/provider.spec.js +4 -5
  24. package/tests/provider.spec.js.map +1 -1
  25. package/tests/resource.spec.js +8 -9
  26. package/tests/resource.spec.js.map +1 -1
  27. package/tests/runtime/asyncIterableUtil.spec.js +10 -11
  28. package/tests/runtime/asyncIterableUtil.spec.js.map +1 -1
  29. package/tests/runtime/langhost/run.spec.js +2 -3
  30. package/tests/runtime/langhost/run.spec.js.map +1 -1
  31. package/tests/runtime/props.spec.js +14 -15
  32. package/tests/runtime/props.spec.js.map +1 -1
  33. package/tests/runtime/tsClosureCases.js +13 -12
  34. package/tests/runtime/tsClosureCases.js.map +1 -1
  35. package/tests/unwrap.spec.js +18 -19
  36. package/tests/unwrap.spec.js.map +1 -1
  37. package/tests/util.js +9 -3
  38. package/tests/util.js.map +1 -1
  39. package/version.js +1 -1
@@ -27,6 +27,9 @@ goog.exportSymbol('proto.pulumirpc.GetRequiredPluginsRequest', null, global);
27
27
  goog.exportSymbol('proto.pulumirpc.GetRequiredPluginsResponse', null, global);
28
28
  goog.exportSymbol('proto.pulumirpc.InstallDependenciesRequest', null, global);
29
29
  goog.exportSymbol('proto.pulumirpc.InstallDependenciesResponse', null, global);
30
+ goog.exportSymbol('proto.pulumirpc.RunPluginRequest', null, global);
31
+ goog.exportSymbol('proto.pulumirpc.RunPluginResponse', null, global);
32
+ goog.exportSymbol('proto.pulumirpc.RunPluginResponse.OutputCase', null, global);
30
33
  goog.exportSymbol('proto.pulumirpc.RunRequest', null, global);
31
34
  goog.exportSymbol('proto.pulumirpc.RunResponse', null, global);
32
35
  /**
@@ -239,6 +242,48 @@ if (goog.DEBUG && !COMPILED) {
239
242
  */
240
243
  proto.pulumirpc.InstallDependenciesResponse.displayName = 'proto.pulumirpc.InstallDependenciesResponse';
241
244
  }
245
+ /**
246
+ * Generated by JsPbCodeGenerator.
247
+ * @param {Array=} opt_data Optional initial data array, typically from a
248
+ * server response, or constructed directly in Javascript. The array is used
249
+ * in place and becomes part of the constructed object. It is not cloned.
250
+ * If no data is provided, the constructed object will be empty, but still
251
+ * valid.
252
+ * @extends {jspb.Message}
253
+ * @constructor
254
+ */
255
+ proto.pulumirpc.RunPluginRequest = function(opt_data) {
256
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.RunPluginRequest.repeatedFields_, null);
257
+ };
258
+ goog.inherits(proto.pulumirpc.RunPluginRequest, jspb.Message);
259
+ if (goog.DEBUG && !COMPILED) {
260
+ /**
261
+ * @public
262
+ * @override
263
+ */
264
+ proto.pulumirpc.RunPluginRequest.displayName = 'proto.pulumirpc.RunPluginRequest';
265
+ }
266
+ /**
267
+ * Generated by JsPbCodeGenerator.
268
+ * @param {Array=} opt_data Optional initial data array, typically from a
269
+ * server response, or constructed directly in Javascript. The array is used
270
+ * in place and becomes part of the constructed object. It is not cloned.
271
+ * If no data is provided, the constructed object will be empty, but still
272
+ * valid.
273
+ * @extends {jspb.Message}
274
+ * @constructor
275
+ */
276
+ proto.pulumirpc.RunPluginResponse = function(opt_data) {
277
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.pulumirpc.RunPluginResponse.oneofGroups_);
278
+ };
279
+ goog.inherits(proto.pulumirpc.RunPluginResponse, jspb.Message);
280
+ if (goog.DEBUG && !COMPILED) {
281
+ /**
282
+ * @public
283
+ * @override
284
+ */
285
+ proto.pulumirpc.RunPluginResponse.displayName = 'proto.pulumirpc.RunPluginResponse';
286
+ }
242
287
 
243
288
 
244
289
 
@@ -2358,4 +2403,588 @@ proto.pulumirpc.InstallDependenciesResponse.prototype.setStderr = function(value
2358
2403
  };
2359
2404
 
2360
2405
 
2406
+
2407
+ /**
2408
+ * List of repeated fields within this message type.
2409
+ * @private {!Array<number>}
2410
+ * @const
2411
+ */
2412
+ proto.pulumirpc.RunPluginRequest.repeatedFields_ = [3,4];
2413
+
2414
+
2415
+
2416
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2417
+ /**
2418
+ * Creates an object representation of this proto.
2419
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2420
+ * Optional fields that are not set will be set to undefined.
2421
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2422
+ * For the list of reserved names please see:
2423
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2424
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2425
+ * JSPB instance for transitional soy proto support:
2426
+ * http://goto/soy-param-migration
2427
+ * @return {!Object}
2428
+ */
2429
+ proto.pulumirpc.RunPluginRequest.prototype.toObject = function(opt_includeInstance) {
2430
+ return proto.pulumirpc.RunPluginRequest.toObject(opt_includeInstance, this);
2431
+ };
2432
+
2433
+
2434
+ /**
2435
+ * Static version of the {@see toObject} method.
2436
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2437
+ * the JSPB instance for transitional soy proto support:
2438
+ * http://goto/soy-param-migration
2439
+ * @param {!proto.pulumirpc.RunPluginRequest} msg The msg instance to transform.
2440
+ * @return {!Object}
2441
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2442
+ */
2443
+ proto.pulumirpc.RunPluginRequest.toObject = function(includeInstance, msg) {
2444
+ var f, obj = {
2445
+ pwd: jspb.Message.getFieldWithDefault(msg, 1, ""),
2446
+ program: jspb.Message.getFieldWithDefault(msg, 2, ""),
2447
+ argsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
2448
+ envList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
2449
+ };
2450
+
2451
+ if (includeInstance) {
2452
+ obj.$jspbMessageInstance = msg;
2453
+ }
2454
+ return obj;
2455
+ };
2456
+ }
2457
+
2458
+
2459
+ /**
2460
+ * Deserializes binary data (in protobuf wire format).
2461
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2462
+ * @return {!proto.pulumirpc.RunPluginRequest}
2463
+ */
2464
+ proto.pulumirpc.RunPluginRequest.deserializeBinary = function(bytes) {
2465
+ var reader = new jspb.BinaryReader(bytes);
2466
+ var msg = new proto.pulumirpc.RunPluginRequest;
2467
+ return proto.pulumirpc.RunPluginRequest.deserializeBinaryFromReader(msg, reader);
2468
+ };
2469
+
2470
+
2471
+ /**
2472
+ * Deserializes binary data (in protobuf wire format) from the
2473
+ * given reader into the given message object.
2474
+ * @param {!proto.pulumirpc.RunPluginRequest} msg The message object to deserialize into.
2475
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2476
+ * @return {!proto.pulumirpc.RunPluginRequest}
2477
+ */
2478
+ proto.pulumirpc.RunPluginRequest.deserializeBinaryFromReader = function(msg, reader) {
2479
+ while (reader.nextField()) {
2480
+ if (reader.isEndGroup()) {
2481
+ break;
2482
+ }
2483
+ var field = reader.getFieldNumber();
2484
+ switch (field) {
2485
+ case 1:
2486
+ var value = /** @type {string} */ (reader.readString());
2487
+ msg.setPwd(value);
2488
+ break;
2489
+ case 2:
2490
+ var value = /** @type {string} */ (reader.readString());
2491
+ msg.setProgram(value);
2492
+ break;
2493
+ case 3:
2494
+ var value = /** @type {string} */ (reader.readString());
2495
+ msg.addArgs(value);
2496
+ break;
2497
+ case 4:
2498
+ var value = /** @type {string} */ (reader.readString());
2499
+ msg.addEnv(value);
2500
+ break;
2501
+ default:
2502
+ reader.skipField();
2503
+ break;
2504
+ }
2505
+ }
2506
+ return msg;
2507
+ };
2508
+
2509
+
2510
+ /**
2511
+ * Serializes the message to binary data (in protobuf wire format).
2512
+ * @return {!Uint8Array}
2513
+ */
2514
+ proto.pulumirpc.RunPluginRequest.prototype.serializeBinary = function() {
2515
+ var writer = new jspb.BinaryWriter();
2516
+ proto.pulumirpc.RunPluginRequest.serializeBinaryToWriter(this, writer);
2517
+ return writer.getResultBuffer();
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * Serializes the given message to binary data (in protobuf wire
2523
+ * format), writing to the given BinaryWriter.
2524
+ * @param {!proto.pulumirpc.RunPluginRequest} message
2525
+ * @param {!jspb.BinaryWriter} writer
2526
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2527
+ */
2528
+ proto.pulumirpc.RunPluginRequest.serializeBinaryToWriter = function(message, writer) {
2529
+ var f = undefined;
2530
+ f = message.getPwd();
2531
+ if (f.length > 0) {
2532
+ writer.writeString(
2533
+ 1,
2534
+ f
2535
+ );
2536
+ }
2537
+ f = message.getProgram();
2538
+ if (f.length > 0) {
2539
+ writer.writeString(
2540
+ 2,
2541
+ f
2542
+ );
2543
+ }
2544
+ f = message.getArgsList();
2545
+ if (f.length > 0) {
2546
+ writer.writeRepeatedString(
2547
+ 3,
2548
+ f
2549
+ );
2550
+ }
2551
+ f = message.getEnvList();
2552
+ if (f.length > 0) {
2553
+ writer.writeRepeatedString(
2554
+ 4,
2555
+ f
2556
+ );
2557
+ }
2558
+ };
2559
+
2560
+
2561
+ /**
2562
+ * optional string pwd = 1;
2563
+ * @return {string}
2564
+ */
2565
+ proto.pulumirpc.RunPluginRequest.prototype.getPwd = function() {
2566
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2567
+ };
2568
+
2569
+
2570
+ /**
2571
+ * @param {string} value
2572
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2573
+ */
2574
+ proto.pulumirpc.RunPluginRequest.prototype.setPwd = function(value) {
2575
+ return jspb.Message.setProto3StringField(this, 1, value);
2576
+ };
2577
+
2578
+
2579
+ /**
2580
+ * optional string program = 2;
2581
+ * @return {string}
2582
+ */
2583
+ proto.pulumirpc.RunPluginRequest.prototype.getProgram = function() {
2584
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * @param {string} value
2590
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2591
+ */
2592
+ proto.pulumirpc.RunPluginRequest.prototype.setProgram = function(value) {
2593
+ return jspb.Message.setProto3StringField(this, 2, value);
2594
+ };
2595
+
2596
+
2597
+ /**
2598
+ * repeated string args = 3;
2599
+ * @return {!Array<string>}
2600
+ */
2601
+ proto.pulumirpc.RunPluginRequest.prototype.getArgsList = function() {
2602
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2603
+ };
2604
+
2605
+
2606
+ /**
2607
+ * @param {!Array<string>} value
2608
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2609
+ */
2610
+ proto.pulumirpc.RunPluginRequest.prototype.setArgsList = function(value) {
2611
+ return jspb.Message.setField(this, 3, value || []);
2612
+ };
2613
+
2614
+
2615
+ /**
2616
+ * @param {string} value
2617
+ * @param {number=} opt_index
2618
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2619
+ */
2620
+ proto.pulumirpc.RunPluginRequest.prototype.addArgs = function(value, opt_index) {
2621
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * Clears the list making it empty but non-null.
2627
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2628
+ */
2629
+ proto.pulumirpc.RunPluginRequest.prototype.clearArgsList = function() {
2630
+ return this.setArgsList([]);
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * repeated string env = 4;
2636
+ * @return {!Array<string>}
2637
+ */
2638
+ proto.pulumirpc.RunPluginRequest.prototype.getEnvList = function() {
2639
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
2640
+ };
2641
+
2642
+
2643
+ /**
2644
+ * @param {!Array<string>} value
2645
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2646
+ */
2647
+ proto.pulumirpc.RunPluginRequest.prototype.setEnvList = function(value) {
2648
+ return jspb.Message.setField(this, 4, value || []);
2649
+ };
2650
+
2651
+
2652
+ /**
2653
+ * @param {string} value
2654
+ * @param {number=} opt_index
2655
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2656
+ */
2657
+ proto.pulumirpc.RunPluginRequest.prototype.addEnv = function(value, opt_index) {
2658
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2659
+ };
2660
+
2661
+
2662
+ /**
2663
+ * Clears the list making it empty but non-null.
2664
+ * @return {!proto.pulumirpc.RunPluginRequest} returns this
2665
+ */
2666
+ proto.pulumirpc.RunPluginRequest.prototype.clearEnvList = function() {
2667
+ return this.setEnvList([]);
2668
+ };
2669
+
2670
+
2671
+
2672
+ /**
2673
+ * Oneof group definitions for this message. Each group defines the field
2674
+ * numbers belonging to that group. When of these fields' value is set, all
2675
+ * other fields in the group are cleared. During deserialization, if multiple
2676
+ * fields are encountered for a group, only the last value seen will be kept.
2677
+ * @private {!Array<!Array<number>>}
2678
+ * @const
2679
+ */
2680
+ proto.pulumirpc.RunPluginResponse.oneofGroups_ = [[1,2,3]];
2681
+
2682
+ /**
2683
+ * @enum {number}
2684
+ */
2685
+ proto.pulumirpc.RunPluginResponse.OutputCase = {
2686
+ OUTPUT_NOT_SET: 0,
2687
+ STDOUT: 1,
2688
+ STDERR: 2,
2689
+ EXITCODE: 3
2690
+ };
2691
+
2692
+ /**
2693
+ * @return {proto.pulumirpc.RunPluginResponse.OutputCase}
2694
+ */
2695
+ proto.pulumirpc.RunPluginResponse.prototype.getOutputCase = function() {
2696
+ return /** @type {proto.pulumirpc.RunPluginResponse.OutputCase} */(jspb.Message.computeOneofCase(this, proto.pulumirpc.RunPluginResponse.oneofGroups_[0]));
2697
+ };
2698
+
2699
+
2700
+
2701
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2702
+ /**
2703
+ * Creates an object representation of this proto.
2704
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2705
+ * Optional fields that are not set will be set to undefined.
2706
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2707
+ * For the list of reserved names please see:
2708
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2709
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2710
+ * JSPB instance for transitional soy proto support:
2711
+ * http://goto/soy-param-migration
2712
+ * @return {!Object}
2713
+ */
2714
+ proto.pulumirpc.RunPluginResponse.prototype.toObject = function(opt_includeInstance) {
2715
+ return proto.pulumirpc.RunPluginResponse.toObject(opt_includeInstance, this);
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * Static version of the {@see toObject} method.
2721
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2722
+ * the JSPB instance for transitional soy proto support:
2723
+ * http://goto/soy-param-migration
2724
+ * @param {!proto.pulumirpc.RunPluginResponse} msg The msg instance to transform.
2725
+ * @return {!Object}
2726
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2727
+ */
2728
+ proto.pulumirpc.RunPluginResponse.toObject = function(includeInstance, msg) {
2729
+ var f, obj = {
2730
+ stdout: msg.getStdout_asB64(),
2731
+ stderr: msg.getStderr_asB64(),
2732
+ exitcode: jspb.Message.getFieldWithDefault(msg, 3, 0)
2733
+ };
2734
+
2735
+ if (includeInstance) {
2736
+ obj.$jspbMessageInstance = msg;
2737
+ }
2738
+ return obj;
2739
+ };
2740
+ }
2741
+
2742
+
2743
+ /**
2744
+ * Deserializes binary data (in protobuf wire format).
2745
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2746
+ * @return {!proto.pulumirpc.RunPluginResponse}
2747
+ */
2748
+ proto.pulumirpc.RunPluginResponse.deserializeBinary = function(bytes) {
2749
+ var reader = new jspb.BinaryReader(bytes);
2750
+ var msg = new proto.pulumirpc.RunPluginResponse;
2751
+ return proto.pulumirpc.RunPluginResponse.deserializeBinaryFromReader(msg, reader);
2752
+ };
2753
+
2754
+
2755
+ /**
2756
+ * Deserializes binary data (in protobuf wire format) from the
2757
+ * given reader into the given message object.
2758
+ * @param {!proto.pulumirpc.RunPluginResponse} msg The message object to deserialize into.
2759
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2760
+ * @return {!proto.pulumirpc.RunPluginResponse}
2761
+ */
2762
+ proto.pulumirpc.RunPluginResponse.deserializeBinaryFromReader = function(msg, reader) {
2763
+ while (reader.nextField()) {
2764
+ if (reader.isEndGroup()) {
2765
+ break;
2766
+ }
2767
+ var field = reader.getFieldNumber();
2768
+ switch (field) {
2769
+ case 1:
2770
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2771
+ msg.setStdout(value);
2772
+ break;
2773
+ case 2:
2774
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
2775
+ msg.setStderr(value);
2776
+ break;
2777
+ case 3:
2778
+ var value = /** @type {number} */ (reader.readInt32());
2779
+ msg.setExitcode(value);
2780
+ break;
2781
+ default:
2782
+ reader.skipField();
2783
+ break;
2784
+ }
2785
+ }
2786
+ return msg;
2787
+ };
2788
+
2789
+
2790
+ /**
2791
+ * Serializes the message to binary data (in protobuf wire format).
2792
+ * @return {!Uint8Array}
2793
+ */
2794
+ proto.pulumirpc.RunPluginResponse.prototype.serializeBinary = function() {
2795
+ var writer = new jspb.BinaryWriter();
2796
+ proto.pulumirpc.RunPluginResponse.serializeBinaryToWriter(this, writer);
2797
+ return writer.getResultBuffer();
2798
+ };
2799
+
2800
+
2801
+ /**
2802
+ * Serializes the given message to binary data (in protobuf wire
2803
+ * format), writing to the given BinaryWriter.
2804
+ * @param {!proto.pulumirpc.RunPluginResponse} message
2805
+ * @param {!jspb.BinaryWriter} writer
2806
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2807
+ */
2808
+ proto.pulumirpc.RunPluginResponse.serializeBinaryToWriter = function(message, writer) {
2809
+ var f = undefined;
2810
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
2811
+ if (f != null) {
2812
+ writer.writeBytes(
2813
+ 1,
2814
+ f
2815
+ );
2816
+ }
2817
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 2));
2818
+ if (f != null) {
2819
+ writer.writeBytes(
2820
+ 2,
2821
+ f
2822
+ );
2823
+ }
2824
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
2825
+ if (f != null) {
2826
+ writer.writeInt32(
2827
+ 3,
2828
+ f
2829
+ );
2830
+ }
2831
+ };
2832
+
2833
+
2834
+ /**
2835
+ * optional bytes stdout = 1;
2836
+ * @return {!(string|Uint8Array)}
2837
+ */
2838
+ proto.pulumirpc.RunPluginResponse.prototype.getStdout = function() {
2839
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2840
+ };
2841
+
2842
+
2843
+ /**
2844
+ * optional bytes stdout = 1;
2845
+ * This is a type-conversion wrapper around `getStdout()`
2846
+ * @return {string}
2847
+ */
2848
+ proto.pulumirpc.RunPluginResponse.prototype.getStdout_asB64 = function() {
2849
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2850
+ this.getStdout()));
2851
+ };
2852
+
2853
+
2854
+ /**
2855
+ * optional bytes stdout = 1;
2856
+ * Note that Uint8Array is not supported on all browsers.
2857
+ * @see http://caniuse.com/Uint8Array
2858
+ * This is a type-conversion wrapper around `getStdout()`
2859
+ * @return {!Uint8Array}
2860
+ */
2861
+ proto.pulumirpc.RunPluginResponse.prototype.getStdout_asU8 = function() {
2862
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2863
+ this.getStdout()));
2864
+ };
2865
+
2866
+
2867
+ /**
2868
+ * @param {!(string|Uint8Array)} value
2869
+ * @return {!proto.pulumirpc.RunPluginResponse} returns this
2870
+ */
2871
+ proto.pulumirpc.RunPluginResponse.prototype.setStdout = function(value) {
2872
+ return jspb.Message.setOneofField(this, 1, proto.pulumirpc.RunPluginResponse.oneofGroups_[0], value);
2873
+ };
2874
+
2875
+
2876
+ /**
2877
+ * Clears the field making it undefined.
2878
+ * @return {!proto.pulumirpc.RunPluginResponse} returns this
2879
+ */
2880
+ proto.pulumirpc.RunPluginResponse.prototype.clearStdout = function() {
2881
+ return jspb.Message.setOneofField(this, 1, proto.pulumirpc.RunPluginResponse.oneofGroups_[0], undefined);
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * Returns whether this field is set.
2887
+ * @return {boolean}
2888
+ */
2889
+ proto.pulumirpc.RunPluginResponse.prototype.hasStdout = function() {
2890
+ return jspb.Message.getField(this, 1) != null;
2891
+ };
2892
+
2893
+
2894
+ /**
2895
+ * optional bytes stderr = 2;
2896
+ * @return {!(string|Uint8Array)}
2897
+ */
2898
+ proto.pulumirpc.RunPluginResponse.prototype.getStderr = function() {
2899
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2900
+ };
2901
+
2902
+
2903
+ /**
2904
+ * optional bytes stderr = 2;
2905
+ * This is a type-conversion wrapper around `getStderr()`
2906
+ * @return {string}
2907
+ */
2908
+ proto.pulumirpc.RunPluginResponse.prototype.getStderr_asB64 = function() {
2909
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
2910
+ this.getStderr()));
2911
+ };
2912
+
2913
+
2914
+ /**
2915
+ * optional bytes stderr = 2;
2916
+ * Note that Uint8Array is not supported on all browsers.
2917
+ * @see http://caniuse.com/Uint8Array
2918
+ * This is a type-conversion wrapper around `getStderr()`
2919
+ * @return {!Uint8Array}
2920
+ */
2921
+ proto.pulumirpc.RunPluginResponse.prototype.getStderr_asU8 = function() {
2922
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
2923
+ this.getStderr()));
2924
+ };
2925
+
2926
+
2927
+ /**
2928
+ * @param {!(string|Uint8Array)} value
2929
+ * @return {!proto.pulumirpc.RunPluginResponse} returns this
2930
+ */
2931
+ proto.pulumirpc.RunPluginResponse.prototype.setStderr = function(value) {
2932
+ return jspb.Message.setOneofField(this, 2, proto.pulumirpc.RunPluginResponse.oneofGroups_[0], value);
2933
+ };
2934
+
2935
+
2936
+ /**
2937
+ * Clears the field making it undefined.
2938
+ * @return {!proto.pulumirpc.RunPluginResponse} returns this
2939
+ */
2940
+ proto.pulumirpc.RunPluginResponse.prototype.clearStderr = function() {
2941
+ return jspb.Message.setOneofField(this, 2, proto.pulumirpc.RunPluginResponse.oneofGroups_[0], undefined);
2942
+ };
2943
+
2944
+
2945
+ /**
2946
+ * Returns whether this field is set.
2947
+ * @return {boolean}
2948
+ */
2949
+ proto.pulumirpc.RunPluginResponse.prototype.hasStderr = function() {
2950
+ return jspb.Message.getField(this, 2) != null;
2951
+ };
2952
+
2953
+
2954
+ /**
2955
+ * optional int32 exitcode = 3;
2956
+ * @return {number}
2957
+ */
2958
+ proto.pulumirpc.RunPluginResponse.prototype.getExitcode = function() {
2959
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2960
+ };
2961
+
2962
+
2963
+ /**
2964
+ * @param {number} value
2965
+ * @return {!proto.pulumirpc.RunPluginResponse} returns this
2966
+ */
2967
+ proto.pulumirpc.RunPluginResponse.prototype.setExitcode = function(value) {
2968
+ return jspb.Message.setOneofField(this, 3, proto.pulumirpc.RunPluginResponse.oneofGroups_[0], value);
2969
+ };
2970
+
2971
+
2972
+ /**
2973
+ * Clears the field making it undefined.
2974
+ * @return {!proto.pulumirpc.RunPluginResponse} returns this
2975
+ */
2976
+ proto.pulumirpc.RunPluginResponse.prototype.clearExitcode = function() {
2977
+ return jspb.Message.setOneofField(this, 3, proto.pulumirpc.RunPluginResponse.oneofGroups_[0], undefined);
2978
+ };
2979
+
2980
+
2981
+ /**
2982
+ * Returns whether this field is set.
2983
+ * @return {boolean}
2984
+ */
2985
+ proto.pulumirpc.RunPluginResponse.prototype.hasExitcode = function() {
2986
+ return jspb.Message.getField(this, 3) != null;
2987
+ };
2988
+
2989
+
2361
2990
  goog.object.extend(exports, proto.pulumirpc);
@@ -63,6 +63,7 @@ function getResource(res, parent, props, custom, urn) {
63
63
  req.setArgs(gstruct.Struct.fromJavaScript(inputs));
64
64
  req.setProvider("");
65
65
  req.setVersion("");
66
+ req.setAcceptresources(!utils.disableResourceReferences);
66
67
  // Now run the operation, serializing the invocation if necessary.
67
68
  const opLabel = `monitor.getResource(${label})`;
68
69
  runAsyncResourceOp(opLabel, () => __awaiter(this, void 0, void 0, function* () {