@pulumi/pulumi 3.74.0 → 3.76.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/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 = sc.serializeFunction(() => provider).then((sf) => sf.text);
36
+ result = serializeFunctionMaybeSecret(provider);
40
37
  providerCache.set(provider, result);
41
38
  }
42
39
  }
43
40
  else {
44
- result = sc.serializeFunction(() => provider).then((sf) => sf.text);
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
  */
@@ -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;;;;;;;;;AAGjC,sDAAwC;AACxC,8DAAgD;AAoJhD,MAAM,aAAa,GAAG,IAAI,OAAO,EAAqC,CAAC;AAEvE,SAAS,iBAAiB,CAAC,QAA0B;IACjD,wEAAwE;IACxE,EAAE;IACF,6HAA6H;IAC7H,MAAM,EAAE,GAA4B,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAEnF,IAAI,MAAuB,CAAC;IAC5B,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,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;YACpE,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;SACvC;KACJ;SAAM;QACH,MAAM,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;KACvE;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,MAAsB,QAAS,SA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AAM,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC3F,CAAC;CACJ;AA5BD,4BA4BC"}
package/output.js CHANGED
@@ -73,7 +73,7 @@ To get the value of an Output<T> as an Output<string> consider either:
73
73
  1: o.apply(v => \`prefix\${v}suffix\`)
74
74
  2: pulumi.interpolate \`prefix\${v}suffix\`
75
75
 
76
- See https://pulumi.io/help/outputs for more details.
76
+ See https://www.pulumi.com/docs/concepts/inputs-outputs for more details.
77
77
  This function may throw in a future version of @pulumi/pulumi.`;
78
78
  return message;
79
79
  };
@@ -84,7 +84,7 @@ To get the value of an Output as a JSON value or JSON string consider either:
84
84
  1: o.apply(v => v.toJSON())
85
85
  2: o.apply(v => JSON.stringify(v))
86
86
 
87
- See https://pulumi.io/help/outputs for more details.
87
+ See https://www.pulumi.com/docs/concepts/inputs-outputs for more details.
88
88
  This function may throw in a future version of @pulumi/pulumi.`;
89
89
  return message;
90
90
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pulumi",
3
- "version": "3.74.0",
3
+ "version": "3.76.0",
4
4
  "description": "Pulumi's Node.js SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,6 +13,7 @@
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",
@@ -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)) {
@@ -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);
@@ -2267,7 +2269,8 @@ proto.pulumirpc.CallRequest.toObject = function(includeInstance, msg) {
2267
2269
  dryrun: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
2268
2270
  parallel: jspb.Message.getFieldWithDefault(msg, 11, 0),
2269
2271
  monitorendpoint: jspb.Message.getFieldWithDefault(msg, 12, ""),
2270
- 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)
2271
2274
  };
2272
2275
 
2273
2276
  if (includeInstance) {
@@ -2365,6 +2368,11 @@ proto.pulumirpc.CallRequest.deserializeBinaryFromReader = function(msg, reader)
2365
2368
  var value = /** @type {string} */ (reader.readString());
2366
2369
  msg.setOrganization(value);
2367
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;
2368
2376
  default:
2369
2377
  reader.skipField();
2370
2378
  break;
@@ -2487,6 +2495,14 @@ proto.pulumirpc.CallRequest.serializeBinaryToWriter = function(message, writer)
2487
2495
  f
2488
2496
  );
2489
2497
  }
2498
+ f = message.getSourceposition();
2499
+ if (f != null) {
2500
+ writer.writeMessage(
2501
+ 15,
2502
+ f,
2503
+ pulumi_source_pb.SourcePosition.serializeBinaryToWriter
2504
+ );
2505
+ }
2490
2506
  };
2491
2507
 
2492
2508
 
@@ -2944,6 +2960,43 @@ proto.pulumirpc.CallRequest.prototype.setOrganization = function(value) {
2944
2960
  };
2945
2961
 
2946
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
+
2947
3000
 
2948
3001
  /**
2949
3002
  * List of repeated fields within this message type.
@@ -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)) {
@@ -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
@@ -0,0 +1,230 @@
1
+ // source: pulumi/source.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 proto = { pulumirpc: {} }, global = proto;
17
+
18
+ goog.exportSymbol('proto.pulumirpc.SourcePosition', null, global);
19
+ /**
20
+ * Generated by JsPbCodeGenerator.
21
+ * @param {Array=} opt_data Optional initial data array, typically from a
22
+ * server response, or constructed directly in Javascript. The array is used
23
+ * in place and becomes part of the constructed object. It is not cloned.
24
+ * If no data is provided, the constructed object will be empty, but still
25
+ * valid.
26
+ * @extends {jspb.Message}
27
+ * @constructor
28
+ */
29
+ proto.pulumirpc.SourcePosition = function(opt_data) {
30
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
31
+ };
32
+ goog.inherits(proto.pulumirpc.SourcePosition, jspb.Message);
33
+ if (goog.DEBUG && !COMPILED) {
34
+ /**
35
+ * @public
36
+ * @override
37
+ */
38
+ proto.pulumirpc.SourcePosition.displayName = 'proto.pulumirpc.SourcePosition';
39
+ }
40
+
41
+
42
+
43
+ if (jspb.Message.GENERATE_TO_OBJECT) {
44
+ /**
45
+ * Creates an object representation of this proto.
46
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
47
+ * Optional fields that are not set will be set to undefined.
48
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
49
+ * For the list of reserved names please see:
50
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
51
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
52
+ * JSPB instance for transitional soy proto support:
53
+ * http://goto/soy-param-migration
54
+ * @return {!Object}
55
+ */
56
+ proto.pulumirpc.SourcePosition.prototype.toObject = function(opt_includeInstance) {
57
+ return proto.pulumirpc.SourcePosition.toObject(opt_includeInstance, this);
58
+ };
59
+
60
+
61
+ /**
62
+ * Static version of the {@see toObject} method.
63
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
64
+ * the JSPB instance for transitional soy proto support:
65
+ * http://goto/soy-param-migration
66
+ * @param {!proto.pulumirpc.SourcePosition} msg The msg instance to transform.
67
+ * @return {!Object}
68
+ * @suppress {unusedLocalVariables} f is only used for nested messages
69
+ */
70
+ proto.pulumirpc.SourcePosition.toObject = function(includeInstance, msg) {
71
+ var f, obj = {
72
+ uri: jspb.Message.getFieldWithDefault(msg, 1, ""),
73
+ line: jspb.Message.getFieldWithDefault(msg, 2, 0),
74
+ column: jspb.Message.getFieldWithDefault(msg, 3, 0)
75
+ };
76
+
77
+ if (includeInstance) {
78
+ obj.$jspbMessageInstance = msg;
79
+ }
80
+ return obj;
81
+ };
82
+ }
83
+
84
+
85
+ /**
86
+ * Deserializes binary data (in protobuf wire format).
87
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
88
+ * @return {!proto.pulumirpc.SourcePosition}
89
+ */
90
+ proto.pulumirpc.SourcePosition.deserializeBinary = function(bytes) {
91
+ var reader = new jspb.BinaryReader(bytes);
92
+ var msg = new proto.pulumirpc.SourcePosition;
93
+ return proto.pulumirpc.SourcePosition.deserializeBinaryFromReader(msg, reader);
94
+ };
95
+
96
+
97
+ /**
98
+ * Deserializes binary data (in protobuf wire format) from the
99
+ * given reader into the given message object.
100
+ * @param {!proto.pulumirpc.SourcePosition} msg The message object to deserialize into.
101
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
102
+ * @return {!proto.pulumirpc.SourcePosition}
103
+ */
104
+ proto.pulumirpc.SourcePosition.deserializeBinaryFromReader = function(msg, reader) {
105
+ while (reader.nextField()) {
106
+ if (reader.isEndGroup()) {
107
+ break;
108
+ }
109
+ var field = reader.getFieldNumber();
110
+ switch (field) {
111
+ case 1:
112
+ var value = /** @type {string} */ (reader.readString());
113
+ msg.setUri(value);
114
+ break;
115
+ case 2:
116
+ var value = /** @type {number} */ (reader.readInt32());
117
+ msg.setLine(value);
118
+ break;
119
+ case 3:
120
+ var value = /** @type {number} */ (reader.readInt32());
121
+ msg.setColumn(value);
122
+ break;
123
+ default:
124
+ reader.skipField();
125
+ break;
126
+ }
127
+ }
128
+ return msg;
129
+ };
130
+
131
+
132
+ /**
133
+ * Serializes the message to binary data (in protobuf wire format).
134
+ * @return {!Uint8Array}
135
+ */
136
+ proto.pulumirpc.SourcePosition.prototype.serializeBinary = function() {
137
+ var writer = new jspb.BinaryWriter();
138
+ proto.pulumirpc.SourcePosition.serializeBinaryToWriter(this, writer);
139
+ return writer.getResultBuffer();
140
+ };
141
+
142
+
143
+ /**
144
+ * Serializes the given message to binary data (in protobuf wire
145
+ * format), writing to the given BinaryWriter.
146
+ * @param {!proto.pulumirpc.SourcePosition} message
147
+ * @param {!jspb.BinaryWriter} writer
148
+ * @suppress {unusedLocalVariables} f is only used for nested messages
149
+ */
150
+ proto.pulumirpc.SourcePosition.serializeBinaryToWriter = function(message, writer) {
151
+ var f = undefined;
152
+ f = message.getUri();
153
+ if (f.length > 0) {
154
+ writer.writeString(
155
+ 1,
156
+ f
157
+ );
158
+ }
159
+ f = message.getLine();
160
+ if (f !== 0) {
161
+ writer.writeInt32(
162
+ 2,
163
+ f
164
+ );
165
+ }
166
+ f = message.getColumn();
167
+ if (f !== 0) {
168
+ writer.writeInt32(
169
+ 3,
170
+ f
171
+ );
172
+ }
173
+ };
174
+
175
+
176
+ /**
177
+ * optional string uri = 1;
178
+ * @return {string}
179
+ */
180
+ proto.pulumirpc.SourcePosition.prototype.getUri = function() {
181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
182
+ };
183
+
184
+
185
+ /**
186
+ * @param {string} value
187
+ * @return {!proto.pulumirpc.SourcePosition} returns this
188
+ */
189
+ proto.pulumirpc.SourcePosition.prototype.setUri = function(value) {
190
+ return jspb.Message.setProto3StringField(this, 1, value);
191
+ };
192
+
193
+
194
+ /**
195
+ * optional int32 line = 2;
196
+ * @return {number}
197
+ */
198
+ proto.pulumirpc.SourcePosition.prototype.getLine = function() {
199
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
200
+ };
201
+
202
+
203
+ /**
204
+ * @param {number} value
205
+ * @return {!proto.pulumirpc.SourcePosition} returns this
206
+ */
207
+ proto.pulumirpc.SourcePosition.prototype.setLine = function(value) {
208
+ return jspb.Message.setProto3IntField(this, 2, value);
209
+ };
210
+
211
+
212
+ /**
213
+ * optional int32 column = 3;
214
+ * @return {number}
215
+ */
216
+ proto.pulumirpc.SourcePosition.prototype.getColumn = function() {
217
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
218
+ };
219
+
220
+
221
+ /**
222
+ * @param {number} value
223
+ * @return {!proto.pulumirpc.SourcePosition} returns this
224
+ */
225
+ proto.pulumirpc.SourcePosition.prototype.setColumn = function(value) {
226
+ return jspb.Message.setProto3IntField(this, 3, value);
227
+ };
228
+
229
+
230
+ goog.object.extend(exports, proto.pulumirpc);