@pulumi/pulumi 3.124.1-alpha.xf6bdf03 → 3.125.0-alpha.x584ff1c

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 (95) hide show
  1. package/asset/archive.d.ts +15 -10
  2. package/asset/archive.js +15 -9
  3. package/asset/archive.js.map +1 -1
  4. package/asset/asset.d.ts +14 -11
  5. package/asset/asset.js +15 -18
  6. package/asset/asset.js.map +1 -1
  7. package/automation/stack.d.ts +10 -2
  8. package/automation/stack.js +10 -2
  9. package/automation/stack.js.map +1 -1
  10. package/dynamic/index.d.ts +67 -35
  11. package/dynamic/index.js +15 -8
  12. package/dynamic/index.js.map +1 -1
  13. package/errors.d.ts +16 -12
  14. package/errors.js +18 -12
  15. package/errors.js.map +1 -1
  16. package/invoke.d.ts +6 -2
  17. package/iterable/index.d.ts +7 -5
  18. package/iterable/index.js +7 -5
  19. package/iterable/index.js.map +1 -1
  20. package/log/index.d.ts +8 -5
  21. package/log/index.js +8 -5
  22. package/log/index.js.map +1 -1
  23. package/metadata.d.ts +3 -3
  24. package/metadata.js +3 -3
  25. package/output.d.ts +119 -91
  26. package/output.js +73 -46
  27. package/output.js.map +1 -1
  28. package/package.json +1 -1
  29. package/provider/internals.js +3 -1
  30. package/provider/internals.js.map +1 -1
  31. package/provider/provider.d.ts +75 -39
  32. package/provider/server.js +13 -7
  33. package/provider/server.js.map +1 -1
  34. package/queryable/index.d.ts +5 -3
  35. package/resource.d.ts +233 -164
  36. package/resource.js +160 -97
  37. package/resource.js.map +1 -1
  38. package/runtime/asyncIterableUtil.js +26 -17
  39. package/runtime/asyncIterableUtil.js.map +1 -1
  40. package/runtime/callbacks.js +5 -2
  41. package/runtime/callbacks.js.map +1 -1
  42. package/runtime/closure/codePaths.d.ts +32 -27
  43. package/runtime/closure/codePaths.js +23 -15
  44. package/runtime/closure/codePaths.js.map +1 -1
  45. package/runtime/closure/createClosure.js +38 -30
  46. package/runtime/closure/createClosure.js.map +1 -1
  47. package/runtime/closure/parseFunction.js +26 -15
  48. package/runtime/closure/parseFunction.js.map +1 -1
  49. package/runtime/closure/rewriteSuper.js +3 -1
  50. package/runtime/closure/rewriteSuper.js.map +1 -1
  51. package/runtime/closure/serializeClosure.d.ts +52 -32
  52. package/runtime/closure/serializeClosure.js +34 -22
  53. package/runtime/closure/serializeClosure.js.map +1 -1
  54. package/runtime/closure/utils.js +6 -2
  55. package/runtime/closure/utils.js.map +1 -1
  56. package/runtime/closure/v8.js +18 -9
  57. package/runtime/closure/v8.js.map +1 -1
  58. package/runtime/closure/v8Hooks.js +8 -4
  59. package/runtime/closure/v8Hooks.js.map +1 -1
  60. package/runtime/config.d.ts +4 -4
  61. package/runtime/config.js +22 -18
  62. package/runtime/config.js.map +1 -1
  63. package/runtime/debuggable.js +17 -6
  64. package/runtime/debuggable.js.map +1 -1
  65. package/runtime/invoke.d.ts +23 -14
  66. package/runtime/invoke.js +26 -18
  67. package/runtime/invoke.js.map +1 -1
  68. package/runtime/mocks.d.ts +37 -23
  69. package/runtime/mocks.js +11 -6
  70. package/runtime/mocks.js.map +1 -1
  71. package/runtime/resource.d.ts +21 -15
  72. package/runtime/resource.js +48 -29
  73. package/runtime/resource.js.map +1 -1
  74. package/runtime/rpc.d.ts +71 -43
  75. package/runtime/rpc.js +85 -47
  76. package/runtime/rpc.js.map +1 -1
  77. package/runtime/settings.d.ts +70 -21
  78. package/runtime/settings.js +83 -42
  79. package/runtime/settings.js.map +1 -1
  80. package/runtime/stack.d.ts +22 -14
  81. package/runtime/stack.js +22 -14
  82. package/runtime/stack.js.map +1 -1
  83. package/runtime/state.js +21 -8
  84. package/runtime/state.js.map +1 -1
  85. package/stackReference.d.ts +49 -32
  86. package/stackReference.js +40 -25
  87. package/stackReference.js.map +1 -1
  88. package/tests/automation/localWorkspace.spec.js +20 -0
  89. package/tests/automation/localWorkspace.spec.js.map +1 -1
  90. package/tsutils.js +6 -2
  91. package/tsutils.js.map +1 -1
  92. package/utils.js +15 -6
  93. package/utils.js.map +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
package/resource.js CHANGED
@@ -39,8 +39,8 @@ const settings_1 = require("./runtime/settings");
39
39
  const state_1 = require("./runtime/state");
40
40
  const utils = __importStar(require("./utils"));
41
41
  /**
42
- * createUrn computes a URN from the combination of a resource name, resource type, optional parent,
43
- * optional project and optional stack.
42
+ * {@link createUrn} computes a URN from the combination of a resource name,
43
+ * resource type, optional parent, optional project and optional stack.
44
44
  */
45
45
  function createUrn(name, type, parent, project, stack) {
46
46
  let parentPrefix;
@@ -68,9 +68,10 @@ function createUrn(name, type, parent, project, stack) {
68
68
  }
69
69
  exports.createUrn = createUrn;
70
70
  /**
71
- * inheritedChildAlias computes the alias that should be applied to a child based on an alias applied to it's parent.
72
- * This may involve changing the name of the resource in cases where the resource has a named derived from the name of
73
- * the parent, and the parent name changed.
71
+ * {@link inheritedChildAlias} computes the alias that should be applied to a
72
+ * child based on an alias applied to its parent. This may involve changing the
73
+ * name of the resource in cases where the resource has a named derived from the
74
+ * name of the parent, and the parent name changed.
74
75
  */
75
76
  function inheritedChildAlias(childName, parentName, parentAlias, childType) {
76
77
  // If the child name has the parent name as a prefix, then we make the assumption that it was
@@ -106,10 +107,12 @@ function urnTypeAndName(urn) {
106
107
  };
107
108
  }
108
109
  /**
109
- * allAliases computes the full set of aliases for a child resource given a set of aliases applied to the child and
110
- * parent resources. This includes the child resource's own aliases, as well as aliases inherited from the parent.
111
- * If there are N child aliases, and M parent aliases, there will be (M+1)*(N+1)-1 total aliases,
112
- * or, as calculated in the logic below, N+(M*(1+N)).
110
+ * {@link allAliases} computes the full set of aliases for a child resource
111
+ * given a set of aliases applied to the child and parent resources. This
112
+ * includes the child resource's own aliases, as well as aliases inherited from
113
+ * the parent. If there are N child aliases, and M parent aliases, there will be
114
+ * (M+1)*(N+1)-1 total aliases, or, as calculated in the logic below,
115
+ * N+(M*(1+N)).
113
116
  */
114
117
  function allAliases(childAliases, childName, childType, parent, parentName) {
115
118
  const aliases = [];
@@ -132,26 +135,36 @@ function allAliases(childAliases, childName, childType, parent, parentName) {
132
135
  }
133
136
  exports.allAliases = allAliases;
134
137
  /**
135
- * Resource represents a class whose CRUD operations are implemented by a provider plugin.
138
+ * {@link Resource} represents a class whose CRUD operations are implemented by
139
+ * a provider plugin.
136
140
  */
137
141
  class Resource {
138
142
  /**
139
- * Creates and registers a new resource object. [t] is the fully qualified type token and
140
- * [name] is the "name" part to use in creating a stable and globally unique URN for the object.
141
- * dependsOn is an optional list of other resources that this resource depends on, controlling
142
- * the order in which we perform resource operations.
143
+ * Creates and registers a new resource object. `t` is the fully qualified
144
+ * type token and `name` is the "name" part to use in creating a stable and
145
+ * globally unique URN for the object. `dependsOn` is an optional list of
146
+ * other resources that this resource depends on, controlling the order in
147
+ * which we perform resource operations.
143
148
  *
144
- * @param t The type of the resource.
145
- * @param name The _unique_ name of the resource.
146
- * @param custom True to indicate that this is a custom resource, managed by a plugin.
147
- * @param props The arguments to use to populate the new resource.
148
- * @param opts A bag of options that control this resource's behavior.
149
- * @param remote True if this is a remote component resource.
150
- * @param dependency True if this is a synthetic resource used internally for dependency tracking.
149
+ * @param t
150
+ * The type of the resource.
151
+ * @param name
152
+ * The _unique_ name of the resource.
153
+ * @param custom
154
+ * True to indicate that this is a custom resource, managed by a plugin.
155
+ * @param props
156
+ * The arguments to use to populate the new resource.
157
+ * @param opts
158
+ * A bag of options that control this resource's behavior.
159
+ * @param remote
160
+ * True if this is a remote component resource.
161
+ * @param dependency
162
+ * True if this is a synthetic resource used internally for dependency tracking.
151
163
  */
152
164
  constructor(t, name, custom, props = {}, opts = {}, remote = false, dependency = false) {
153
165
  /**
154
166
  * A private field to help with RTTI that works in SxS scenarios.
167
+ *
155
168
  * @internal
156
169
  */
157
170
  // eslint-disable-next-line @typescript-eslint/naming-convention,no-underscore-dangle,id-blacklist,id-match
@@ -273,26 +286,31 @@ class Resource {
273
286
  return utils.isInstance(obj, "__pulumiResource");
274
287
  }
275
288
  /**
276
- * sourcePosition returns the source position of the user code that instantiated this resource.
289
+ * Returns the source position of the user code that instantiated this
290
+ * resource.
277
291
  *
278
292
  * This is somewhat brittle in that it expects a call stack of the form:
279
- * - Resource class constructor
280
- * - abstract Resource subclass constructor
281
- * - concrete Resource subclass constructor
293
+ *
294
+ * - {@link Resource} class constructor
295
+ * - abstract {@link Resource} subclass constructor
296
+ * - concrete {@link Resource} subclass constructor
282
297
  * - user code
283
298
  *
284
- * This stack reflects the expected class hierarchy of "cloud resource / component resource < customresource/componentresource < resource".
299
+ * This stack reflects the expected class hierarchy of:
300
+ *
301
+ * Resource > Custom/Component resource > Cloud/Component resource
285
302
  *
286
- * For example, consider the AWS S3 Bucket resource. When user code instantiates a Bucket, the stack will look like
287
- * this:
303
+ * For example, consider the AWS S3 Bucket resource. When user code
304
+ * instantiates a Bucket, the stack will look like this:
288
305
  *
289
306
  * new Resource (/path/to/resource.ts:123:45)
290
307
  * new CustomResource (/path/to/resource.ts:678:90)
291
308
  * new Bucket (/path/to/bucket.ts:987:65)
292
309
  * <user code> (/path/to/index.ts:4:3)
293
310
  *
294
- * Because Node can only give us the stack trace as text, we parse out the source position using a regex that
295
- * matches traces of this form (see stackTraceRegExp above).
311
+ * Because Node can only give us the stack trace as text, we parse out the
312
+ * source position using a regex that matches traces of this form (see
313
+ * the {@link sourcePositionRegExp} above).
296
314
  */
297
315
  static sourcePosition() {
298
316
  var _a;
@@ -330,7 +348,7 @@ class Resource {
330
348
  }
331
349
  exports.Resource = Resource;
332
350
  /**
333
- * A regexp for use with sourcePosition.
351
+ * A regexp for use with {@link sourcePosition}.
334
352
  */
335
353
  Resource.sourcePositionRegExp = /Error:\s*\n\s*at new Resource \(.*\)\n\s*at new \S*Resource \(.*\)\n(\s*at new \S* \(.*\)\n)?[^(]*\((?<file>.*):(?<line>[0-9]+):(?<col>[0-9]+)\)\n/;
336
354
  function convertToProvidersMap(providers) {
@@ -348,19 +366,21 @@ function convertToProvidersMap(providers) {
348
366
  }
349
367
  Resource.doNotCapture = true;
350
368
  /**
351
- * Constant to represent the 'root stack' resource for a Pulumi application. The purpose of this is
352
- * solely to make it easy to write an [Alias] like so:
369
+ * A constant to represent the "root stack" resource for a Pulumi application.
370
+ * The purpose of this is solely to make it easy to write an {@link Alias} like
371
+ * so:
353
372
  *
354
373
  * `aliases: [{ parent: rootStackResource }]`.
355
374
  *
356
- * This indicates that the prior name for a resource was created based on it being parented directly
357
- * by the stack itself and no other resources. Note: this is equivalent to:
375
+ * This indicates that the prior name for a resource was created based on it
376
+ * being parented directly by the stack itself and no other resources. Note:
377
+ * this is equivalent to:
358
378
  *
359
379
  * `aliases: [{ parent: undefined }]`
360
380
  *
361
- * However, the former form is preferable as it is more self-descriptive, while the latter may look
362
- * a bit confusing and may incorrectly look like something that could be removed without changing
363
- * semantics.
381
+ * However, the former form is preferable as it is more self-descriptive, while
382
+ * the latter may look a bit confusing and may incorrectly look like something
383
+ * that could be removed without changing semantics.
364
384
  */
365
385
  exports.rootStackResource = undefined;
366
386
  /**
@@ -387,25 +407,33 @@ function collapseAliasToUrn(alias, defaultName, defaultType, defaultParent) {
387
407
  });
388
408
  }
389
409
  /**
390
- * CustomResource is a resource whose create, read, update, and delete (CRUD) operations are managed
391
- * by performing external operations on some physical entity. The engine understands how to diff
392
- * and perform partial updates of them, and these CRUD operations are implemented in a dynamically
410
+ * {@link CustomResource} is a resource whose create, read, update, and delete
411
+ * (CRUD) operations are managed by performing external operations on some
412
+ * physical entity. The engine understands how to diff and perform partial
413
+ * updates of them, and these CRUD operations are implemented in a dynamically
393
414
  * loaded plugin for the defining package.
394
415
  */
395
416
  class CustomResource extends Resource {
396
417
  /**
397
- * Creates and registers a new managed resource. t is the fully qualified type token and name
398
- * is the "name" part to use in creating a stable and globally unique URN for the object.
399
- * dependsOn is an optional list of other resources that this resource depends on, controlling
400
- * the order in which we perform resource operations. Creating an instance does not necessarily
401
- * perform a create on the physical entity which it represents, and instead, this is dependent
402
- * upon the diffing of the new goal state compared to the current known resource state.
418
+ * Creates and registers a new managed resource. `t` is the fully qualified
419
+ * type token and `name` is the "name" part to use in creating a stable and
420
+ * globally unique URN for the object. `dependsOn` is an optional list of
421
+ * other resources that this resource depends on, controlling the order in
422
+ * which we perform resource operations. Creating an instance does not
423
+ * necessarily perform a create on the physical entity which it represents.
424
+ * Instead, this is dependent upon the diffing of the new goal state
425
+ * compared to the current known resource state.
403
426
  *
404
- * @param t The type of the resource.
405
- * @param name The _unique_ name of the resource.
406
- * @param props The arguments to use to populate the new resource.
407
- * @param opts A bag of options that control this resource's behavior.
408
- * @param dependency True if this is a synthetic resource used internally for dependency tracking.
427
+ * @param t
428
+ * The type of the resource.
429
+ * @param name
430
+ * The _unique_ name of the resource.
431
+ * @param props
432
+ * The arguments to use to populate the new resource.
433
+ * @param opts
434
+ * A bag of options that control this resource's behavior.
435
+ * @param dependency
436
+ * True if this is a synthetic resource used internally for dependency tracking.
409
437
  */
410
438
  constructor(t, name, props, opts = {}, dependency = false) {
411
439
  if (opts.providers) {
@@ -415,8 +443,9 @@ class CustomResource extends Resource {
415
443
  this.__pulumiCustomResource = true;
416
444
  }
417
445
  /**
418
- * Returns true if the given object is an instance of CustomResource. This is designed to work even when
419
- * multiple copies of the Pulumi SDK have been loaded into the same process.
446
+ * Returns true if the given object is a {@link CustomResource}. This is
447
+ * designed to work even when multiple copies of the Pulumi SDK have been
448
+ * loaded into the same process.
420
449
  */
421
450
  static isInstance(obj) {
422
451
  return utils.isInstance(obj, "__pulumiCustomResource");
@@ -425,18 +454,24 @@ class CustomResource extends Resource {
425
454
  exports.CustomResource = CustomResource;
426
455
  CustomResource.doNotCapture = true;
427
456
  /**
428
- * ProviderResource is a resource that implements CRUD operations for other custom resources. These resources are
429
- * managed similarly to other resources, including the usual diffing and update semantics.
457
+ * {@link ProviderResource} is a resource that implements CRUD operations for
458
+ * other custom resources. These resources are managed similarly to other
459
+ * resources, including the usual diffing and update semantics.
430
460
  */
431
461
  class ProviderResource extends CustomResource {
432
462
  /**
433
463
  * Creates and registers a new provider resource for a particular package.
434
464
  *
435
- * @param pkg The package associated with this provider.
436
- * @param name The _unique_ name of the provider.
437
- * @param props The configuration to use for this provider.
438
- * @param opts A bag of options that control this provider's behavior.
439
- * @param dependency True if this is a synthetic resource used internally for dependency tracking.
465
+ * @param pkg
466
+ * The package associated with this provider.
467
+ * @param name
468
+ * The _unique_ name of the provider.
469
+ * @param props
470
+ * The configuration to use for this provider.
471
+ * @param opts
472
+ * A bag of options that control this provider's behavior.
473
+ * @param dependency
474
+ * True if this is a synthetic resource used internally for dependency tracking.
440
475
  */
441
476
  constructor(pkg, name, props, opts = {}, dependency = false) {
442
477
  super(`pulumi:providers:${pkg}`, name, props, opts, dependency);
@@ -455,30 +490,39 @@ class ProviderResource extends CustomResource {
455
490
  return provider.__registrationId;
456
491
  });
457
492
  }
458
- /** @internal */
493
+ /**
494
+ * @internal
495
+ */
459
496
  getPackage() {
460
497
  return this.pkg;
461
498
  }
462
499
  }
463
500
  exports.ProviderResource = ProviderResource;
464
501
  /**
465
- * ComponentResource is a resource that aggregates one or more other child resources into a higher
466
- * level abstraction. The component resource itself is a resource, but does not require custom CRUD
467
- * operations for provisioning.
502
+ * {@link ComponentResource} is a resource that aggregates one or more other
503
+ * child resources into a higher level abstraction. The component resource
504
+ * itself is a resource, but does not require custom CRUD operations for
505
+ * provisioning.
468
506
  */
469
507
  class ComponentResource extends Resource {
470
508
  /**
471
- * Creates and registers a new component resource. [type] is the fully qualified type token and
472
- * [name] is the "name" part to use in creating a stable and globally unique URN for the object.
473
- * [opts.parent] is the optional parent for this component, and [opts.dependsOn] is an optional
474
- * list of other resources that this resource depends on, controlling the order in which we
475
- * perform resource operations.
509
+ * Creates and registers a new component resource. `type` is the fully
510
+ * qualified type token and `name` is the "name" part to use in creating a
511
+ * stable and globally unique URN for the object. `opts.parent` is the
512
+ * optional parent for this component, and `opts.dependsOn` is an optional
513
+ * list of other resources that this resource depends on, controlling the
514
+ * order in which we perform resource operations.
476
515
  *
477
- * @param type The type of the resource.
478
- * @param name The _unique_ name of the resource.
479
- * @param args Information passed to [initialize] method.
480
- * @param opts A bag of options that control this resource's behavior.
481
- * @param remote True if this is a remote component resource.
516
+ * @param type
517
+ * The type of the resource.
518
+ * @param name
519
+ * The _unique_ name of the resource.
520
+ * @param args
521
+ * Information passed to [initialize] method.
522
+ * @param opts
523
+ * A bag of options that control this resource's behavior.
524
+ * @param remote
525
+ * True if this is a remote component resource.
482
526
  */
483
527
  constructor(type, name, args = {}, opts = {}, remote = false) {
484
528
  // Explicitly ignore the props passed in. We allow them for back compat reasons. However,
@@ -492,11 +536,14 @@ class ComponentResource extends Resource {
492
536
  super(type, name, /*custom:*/ false, /*props:*/ remote || (opts === null || opts === void 0 ? void 0 : opts.urn) ? args : {}, opts, remote);
493
537
  /**
494
538
  * A private field to help with RTTI that works in SxS scenarios.
539
+ *
495
540
  * @internal
496
541
  */
497
542
  // eslint-disable-next-line @typescript-eslint/naming-convention,no-underscore-dangle,id-blacklist,id-match
498
543
  this.__pulumiComponentResource = true;
499
- /** @internal */
544
+ /**
545
+ * @internal
546
+ */
500
547
  // eslint-disable-next-line @typescript-eslint/naming-convention,no-underscore-dangle,id-blacklist,id-match
501
548
  this.__registered = false;
502
549
  this.__remote = remote;
@@ -504,13 +551,16 @@ class ComponentResource extends Resource {
504
551
  this.__data = remote || (opts === null || opts === void 0 ? void 0 : opts.urn) ? Promise.resolve({}) : this.initializeAndRegisterOutputs(args);
505
552
  }
506
553
  /**
507
- * Returns true if the given object is an instance of CustomResource. This is designed to work even when
508
- * multiple copies of the Pulumi SDK have been loaded into the same process.
554
+ * Returns true if the given object is a {@link CustomResource}. This is
555
+ * designed to work even when multiple copies of the Pulumi SDK have been
556
+ * loaded into the same process.
509
557
  */
510
558
  static isInstance(obj) {
511
559
  return utils.isInstance(obj, "__pulumiComponentResource");
512
560
  }
513
- /** @internal */
561
+ /**
562
+ * @internal
563
+ */
514
564
  initializeAndRegisterOutputs(args) {
515
565
  return __awaiter(this, void 0, void 0, function* () {
516
566
  const data = yield this.initialize(args);
@@ -519,9 +569,9 @@ class ComponentResource extends Resource {
519
569
  });
520
570
  }
521
571
  /**
522
- * Can be overridden by a subclass to asynchronously initialize data for this Component
523
- * automatically when constructed. The data will be available immediately for subclass
524
- * constructors to use. To access the data use `.getData`.
572
+ * Can be overridden by a subclass to asynchronously initialize data for this component
573
+ * automatically when constructed. The data will be available immediately for subclass
574
+ * constructors to use. To access the data use {@link getData}.
525
575
  */
526
576
  initialize(args) {
527
577
  return __awaiter(this, void 0, void 0, function* () {
@@ -529,19 +579,22 @@ class ComponentResource extends Resource {
529
579
  });
530
580
  }
531
581
  /**
532
- * Retrieves the data produces by [initialize]. The data is immediately available in a
533
- * derived class's constructor after the `super(...)` call to `ComponentResource`.
582
+ * Retrieves the data produces by {@link initialize}. The data is
583
+ * immediately available in a derived class's constructor after the
584
+ * `super(...)` call to `ComponentResource`.
534
585
  */
535
586
  getData() {
536
587
  return this.__data;
537
588
  }
538
589
  /**
539
- * registerOutputs registers synthetic outputs that a component has initialized, usually by
540
- * allocating other child sub-resources and propagating their resulting property values.
590
+ * Registers synthetic outputs that a component has initialized, usually by
591
+ * allocating other child sub-resources and propagating their resulting
592
+ * property values.
541
593
  *
542
- * ComponentResources can call this at the end of their constructor to indicate that they are
543
- * done creating child resources. This is not strictly necessary as this will automatically be
544
- * called after the `initialize` method completes.
594
+ * Component resources can call this at the end of their constructor to
595
+ * indicate that they are done creating child resources. This is not
596
+ * strictly necessary as this will automatically be called after the {@link
597
+ * initialize} method completes.
545
598
  */
546
599
  registerOutputs(outputs) {
547
600
  if (this.__registered) {
@@ -556,7 +609,9 @@ ComponentResource.doNotCapture = true;
556
609
  ComponentResource.prototype.registerOutputs.doNotCapture = true;
557
610
  ComponentResource.prototype.initialize.doNotCapture = true;
558
611
  ComponentResource.prototype.initializeAndRegisterOutputs.doNotCapture = true;
559
- /** @internal */
612
+ /**
613
+ * @internal
614
+ */
560
615
  exports.testingOptions = {
561
616
  isDryRun: false,
562
617
  };
@@ -589,7 +644,9 @@ exports.mergeOptions = mergeOptions;
589
644
  function isPromiseOrOutput(val) {
590
645
  return val instanceof Promise || output_1.Output.isInstance(val);
591
646
  }
592
- /** @internal */
647
+ /**
648
+ * @internal
649
+ */
593
650
  function expandProviders(options) {
594
651
  // Convert 'providers' map to array form.
595
652
  if (options.providers && !Array.isArray(options.providers)) {
@@ -621,7 +678,10 @@ function normalizeProviders(opts) {
621
678
  }
622
679
  }
623
680
  }
624
- /** @internal for testing purposes. */
681
+ /**
682
+ * @internal
683
+ * This is exported for testing purposes.
684
+ */
625
685
  function merge(dest, source, alwaysCreateArray) {
626
686
  // unwind any top level promise/outputs.
627
687
  if (isPromiseOrOutput(dest)) {
@@ -650,8 +710,9 @@ function addToArray(resultArray, value) {
650
710
  }
651
711
  }
652
712
  /**
653
- * A DependencyResource is a resource that is used to indicate that an Output has a dependency on a particular
654
- * resource. These resources are only created when dealing with remote component resources.
713
+ * A {@link DependencyResource} is a resource that is used to indicate that an
714
+ * {@link Output} has a dependency on a particular resource. These resources are
715
+ * only created when dealing with remote component resources.
655
716
  */
656
717
  class DependencyResource extends CustomResource {
657
718
  constructor(urn) {
@@ -661,8 +722,9 @@ class DependencyResource extends CustomResource {
661
722
  }
662
723
  exports.DependencyResource = DependencyResource;
663
724
  /**
664
- * A DependencyProviderResource is a resource that is used by the provider SDK as a stand-in for a provider that
665
- * is only used for its reference. Its only valid properties are its URN and ID.
725
+ * A {@link DependencyProviderResource} is a resource that is used by the
726
+ * provider SDK as a stand-in for a provider that is only used for its
727
+ * reference. Its only valid properties are its URN and ID.
666
728
  */
667
729
  class DependencyProviderResource extends ProviderResource {
668
730
  constructor(ref) {
@@ -680,7 +742,8 @@ class DependencyProviderResource extends ProviderResource {
680
742
  }
681
743
  exports.DependencyProviderResource = DependencyProviderResource;
682
744
  /**
683
- * parseResourceReference parses the URN and ID out of the provider reference.
745
+ * Parses the URN and ID out of the provider reference.
746
+ *
684
747
  * @internal
685
748
  */
686
749
  function parseResourceReference(ref) {
package/resource.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"resource.js","sourceRoot":"","sources":["../resource.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,yCAA2B;AAC3B,qCAAyC;AACzC,2CAA6B;AAC7B,qCAAsE;AACtE,iDAO4B;AAC5B,uCAA6C;AAC7C,iDAA0D;AAC1D,2CAAmD;AACnD,+CAAiC;AAKjC;;;GAGG;AACH,SAAgB,SAAS,CACrB,IAAmB,EACnB,IAAmB,EACnB,MAA8B,EAC9B,OAAgB,EAChB,KAAc;IAEd,IAAI,YAA4B,CAAC;IACjC,IAAI,MAAM,EAAE;QACR,IAAI,SAAyB,CAAC;QAC9B,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YAC7B,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC;SAC1B;aAAM;YACH,SAAS,GAAG,eAAM,CAAC,MAAM,CAAC,CAAC;SAC9B;QACD,YAAY,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,EAAE;YAC/C,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC;YACrF,IAAI,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAC,EAAE;gBAC3C,+CAA+C;gBAC/C,OAAO,cAAc,KAAK,IAAI,mBAAQ,EAAE,KAAK,OAAO,IAAI,qBAAU,EAAE,IAAI,CAAC;aAC5E;YACD,OAAO,MAAM,CAAC;QAClB,CAAC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AC,OAAO,CAAC,EAAE,CAAC,EACnB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EACrB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EACtB,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CACtB,CAAC;IACN,CAAC;CACJ;AA3BD,gEA2BC;AAED;;;;GAIG;AACH,SAAgB,sBAAsB,CAAC,GAAW;IAC9C,MAAM,OAAO,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,uCAAuC,GAAG,EAAE,CAAC,CAAC;KACjE;IACD,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAClC,MAAM,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;IAClC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AACrB,CAAC;AARD,wDAQC"}
@@ -23,23 +23,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  const closeValue = "7473659d-924c-414d-84e5-b1640b2a6296";
26
- // PushableAsyncIterable is an `AsyncIterable` that data can be pushed to. It is useful for turning
27
- // push-based callback APIs into pull-based `AsyncIterable` APIs. For example, a user can write:
28
- //
29
- // const queue = new PushableAsyncIterable();
30
- // call.on("data", (thing: any) => queue.push(live));
31
- //
32
- // And then later consume `queue` as any other `AsyncIterable`:
33
- //
34
- // for await (const l of list) {
35
- // console.log(l.metadata.name);
36
- // }
37
- //
38
- // Note that this class implements `AsyncIterable<T | undefined>`. This is for a fundamental reason:
39
- // the user can call `complete` at any time. `AsyncIteratable` would normally know when an element
40
- // is the last, but in this case it can't. Or, another way to look at it is, the last element is
41
- // guaranteed to be `undefined`.
42
- /** @internal */
26
+ /**
27
+ * {@link PushableAsyncIterable} is an {@link AsyncIterable} that data can be
28
+ * pushed to. It is useful for turning push-based callback APIs into pull-based
29
+ * {@link AsyncIterable} APIs. For example, a user can write:
30
+ *
31
+ * ```typescript
32
+ * const queue = new PushableAsyncIterable();
33
+ * call.on("data", (thing: any) => queue.push(live));
34
+ * ```
35
+ *
36
+ * And then later consume `queue` as any other {@link AsyncIterable}:
37
+ *
38
+ * ```typescript
39
+ * for await (const l of list) {
40
+ * console.log(l.metadata.name);
41
+ * }
42
+ * ```
43
+ *
44
+ * Note that this class implements `AsyncIterable<T | undefined>`. This is for a
45
+ * fundamental reason: the user can call `complete` at any time. `AsyncIterable`
46
+ * would normally know when an element is the last, but in this case it can't.
47
+ * Or, another way to look at it is, the last element is guaranteed to be
48
+ * `undefined`.
49
+ *
50
+ * @internal
51
+ */
43
52
  class PushableAsyncIterable {
44
53
  constructor() {
45
54
  this.bufferedData = [];
@@ -1 +1 @@
1
- {"version":3,"file":"asyncIterableUtil.js","sourceRoot":"","sources":["../../runtime/asyncIterableUtil.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;;;;;;;;;;;AAKjC,MAAM,UAAU,GAAe,sCAAsC,CAAC;AAEtE,mGAAmG;AACnG,gGAAgG;AAChG,EAAE;AACF,iDAAiD;AACjD,yDAAyD;AACzD,EAAE;AACF,+DAA+D;AAC/D,EAAE;AACF,oCAAoC;AACpC,wCAAwC;AACxC,QAAQ;AACR,EAAE;AACF,oGAAoG;AACpG,kGAAkG;AAClG,gGAAgG;AAChG,gCAAgC;AAChC,gBAAgB;AAChB,MAAa,qBAAqB;IAAlC;QACY,iBAAY,GAAQ,EAAE,CAAC;QACvB,cAAS,GAA0C,EAAE,CAAC;QACtD,cAAS,G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,EAAE;gBAChC,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE;oBACzB,OAAO,CAAC,UAAU,CAAC,CAAC;iBACvB;gBACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aAChC;iBAAM;gBACH,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC;aACtC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,CAAC,MAAM,CAAC,aAAa,CAAC;QAClB,MAAM,CAAC,GAAG,IAAI,CAAC;QACf,OAAO;YACG,IAAI;;oBACN,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC;oBAC9B,IAAI,KAAK,KAAK,UAAU,EAAE;wBACtB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;qBAC3C;oBACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;gBAClC,CAAC;aAAA;SACJ,CAAC;IACN,CAAC;CACJ;AA/CD,sDA+CC"}
@@ -40,8 +40,11 @@ const resproto = __importStar(require("../proto/resource_pb"));
40
40
  const resource_1 = require("../resource");
41
41
  const resource_2 = require("./resource");
42
42
  const rpc_1 = require("./rpc");
43
- // maxRPCMessageSize raises the gRPC Max Message size from `4194304` (4mb) to `419430400` (400mb)
44
- /** @internal */
43
+ /**
44
+ * Raises the gRPC Max Message size from `4194304` (4mb) to `419430400` (400mb)
45
+ *
46
+ * @internal
47
+ */
45
48
  const maxRPCMessageSize = 1024 * 1024 * 400;
46
49
  class CallbackServer {
47
50
  constructor(monitor) {