@pulumi/pulumi 3.148.1-alpha.x92edac0 → 3.149.0-alpha.x27ca3b5
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 +1 -1
- package/proto/language_grpc_pb.js +59 -18
- package/proto/resource_grpc_pb.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +2 -2
package/package.json
CHANGED
|
@@ -332,12 +332,13 @@ function deserialize_pulumirpc_RuntimeOptionsResponse(buffer_arg) {
|
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
|
|
335
|
-
// LanguageRuntime
|
|
336
|
-
//
|
|
335
|
+
// The LanguageRuntime service defines a standard interface for [language hosts/runtimes](languages). At a high level, a
|
|
336
|
+
// language runtime provides the ability to execute programs, install and query dependencies, and generate code for a
|
|
337
|
+
// specific language.
|
|
337
338
|
var LanguageRuntimeService = exports.LanguageRuntimeService = {
|
|
338
|
-
// `Handshake` is the first call made by the engine to a language host. It is used to pass the
|
|
339
|
-
//
|
|
340
|
-
//
|
|
339
|
+
// `Handshake` is the first call made by the engine to a language host. It is used to pass the engine's address to
|
|
340
|
+
// the language host so that it may establish its own connections back, and to establish protocol configuration that
|
|
341
|
+
// will be used to communicate between the two parties.
|
|
341
342
|
handshake: {
|
|
342
343
|
path: '/pulumirpc.LanguageRuntime/Handshake',
|
|
343
344
|
requestStream: false,
|
|
@@ -349,7 +350,15 @@ handshake: {
|
|
|
349
350
|
responseSerialize: serialize_pulumirpc_LanguageHandshakeResponse,
|
|
350
351
|
responseDeserialize: deserialize_pulumirpc_LanguageHandshakeResponse,
|
|
351
352
|
},
|
|
352
|
-
// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
353
|
+
// `GetRequiredPlugins` computes the complete set of anticipated [plugins](plugins) required by a Pulumi program.
|
|
354
|
+
// Among other things, it is intended to be used to pre-install plugins before running a program with
|
|
355
|
+
// [](pulumirpc.LanguageRuntime.Run), to avoid the need to install them on-demand in response to [resource
|
|
356
|
+
// registrations](resource-registration) sent back from the running program to the engine.
|
|
357
|
+
//
|
|
358
|
+
// :::{important}
|
|
359
|
+
// The use of `GetRequiredPlugins` is deprecated in favour of [](pulumirpc.LanguageRuntime.GetRequiredPackages),
|
|
360
|
+
// which returns more granular information about which plugins are required by which packages.
|
|
361
|
+
// :::
|
|
353
362
|
getRequiredPlugins: {
|
|
354
363
|
path: '/pulumirpc.LanguageRuntime/GetRequiredPlugins',
|
|
355
364
|
requestStream: false,
|
|
@@ -361,7 +370,15 @@ getRequiredPlugins: {
|
|
|
361
370
|
responseSerialize: serialize_pulumirpc_GetRequiredPluginsResponse,
|
|
362
371
|
responseDeserialize: deserialize_pulumirpc_GetRequiredPluginsResponse,
|
|
363
372
|
},
|
|
364
|
-
// GetRequiredPackages computes the complete set of anticipated packages required
|
|
373
|
+
// `GetRequiredPackages` computes the complete set of anticipated [packages](pulumirpc.PackageDependency) required
|
|
374
|
+
// by a program. It is used to pre-install packages before running a program with [](pulumirpc.LanguageRuntime.Run),
|
|
375
|
+
// to avoid the need to install them on-demand in response to [resource registrations](resource-registration) sent
|
|
376
|
+
// back from the running program to the engine. Moreover, when importing resources into a stack, it is used to
|
|
377
|
+
// determine which plugins are required to service the import of a given resource, since given the presence of
|
|
378
|
+
// [parameterized providers](parameterized-providers), it is not in general true that a package name corresponds 1:1
|
|
379
|
+
// with a plugin name. It replaces [](pulumirpc.LanguageRuntime.GetRequiredPlugins) in the face of [parameterized
|
|
380
|
+
// providers](parameterized-providers), which as mentioned above can enable multiple instances of the same plugin to
|
|
381
|
+
// provide multiple packages.
|
|
365
382
|
getRequiredPackages: {
|
|
366
383
|
path: '/pulumirpc.LanguageRuntime/GetRequiredPackages',
|
|
367
384
|
requestStream: false,
|
|
@@ -373,7 +390,7 @@ getRequiredPackages: {
|
|
|
373
390
|
responseSerialize: serialize_pulumirpc_GetRequiredPackagesResponse,
|
|
374
391
|
responseDeserialize: deserialize_pulumirpc_GetRequiredPackagesResponse,
|
|
375
392
|
},
|
|
376
|
-
// Run executes a program
|
|
393
|
+
// `Run` executes a Pulumi program, returning information about whether or not the program produced an error.
|
|
377
394
|
run: {
|
|
378
395
|
path: '/pulumirpc.LanguageRuntime/Run',
|
|
379
396
|
requestStream: false,
|
|
@@ -385,7 +402,7 @@ run: {
|
|
|
385
402
|
responseSerialize: serialize_pulumirpc_RunResponse,
|
|
386
403
|
responseDeserialize: deserialize_pulumirpc_RunResponse,
|
|
387
404
|
},
|
|
388
|
-
// GetPluginInfo returns
|
|
405
|
+
// `GetPluginInfo` returns information about the [plugin](plugins) implementing this language runtime.
|
|
389
406
|
getPluginInfo: {
|
|
390
407
|
path: '/pulumirpc.LanguageRuntime/GetPluginInfo',
|
|
391
408
|
requestStream: false,
|
|
@@ -397,7 +414,11 @@ getPluginInfo: {
|
|
|
397
414
|
responseSerialize: serialize_pulumirpc_PluginInfo,
|
|
398
415
|
responseDeserialize: deserialize_pulumirpc_PluginInfo,
|
|
399
416
|
},
|
|
400
|
-
// InstallDependencies
|
|
417
|
+
// `InstallDependencies` accepts a request specifying a Pulumi project and program that can be executed with
|
|
418
|
+
// [](pulumirpc.LanguageRuntime.Run) and installs the dependencies for that program (e.g. by running `npm install`
|
|
419
|
+
// for NodeJS, or `pip install` for Python). Since dependency installation could take a while, and callers may wish
|
|
420
|
+
// to report on its progress, this method returns a stream of [](pulumirpc.InstallDependenciesResponse) messages
|
|
421
|
+
// containing information about standard error and output.
|
|
401
422
|
installDependencies: {
|
|
402
423
|
path: '/pulumirpc.LanguageRuntime/InstallDependencies',
|
|
403
424
|
requestStream: false,
|
|
@@ -409,7 +430,8 @@ installDependencies: {
|
|
|
409
430
|
responseSerialize: serialize_pulumirpc_InstallDependenciesResponse,
|
|
410
431
|
responseDeserialize: deserialize_pulumirpc_InstallDependenciesResponse,
|
|
411
432
|
},
|
|
412
|
-
// RuntimeOptionsPrompts returns a list of additional prompts to
|
|
433
|
+
// `RuntimeOptionsPrompts` accepts a request specifying a Pulumi project and returns a list of additional prompts to
|
|
434
|
+
// ask during `pulumi new`.
|
|
413
435
|
runtimeOptionsPrompts: {
|
|
414
436
|
path: '/pulumirpc.LanguageRuntime/RuntimeOptionsPrompts',
|
|
415
437
|
requestStream: false,
|
|
@@ -421,7 +443,7 @@ runtimeOptionsPrompts: {
|
|
|
421
443
|
responseSerialize: serialize_pulumirpc_RuntimeOptionsResponse,
|
|
422
444
|
responseDeserialize: deserialize_pulumirpc_RuntimeOptionsResponse,
|
|
423
445
|
},
|
|
424
|
-
// About returns information about the runtime
|
|
446
|
+
// `About` returns information about the language runtime being used.
|
|
425
447
|
about: {
|
|
426
448
|
path: '/pulumirpc.LanguageRuntime/About',
|
|
427
449
|
requestStream: false,
|
|
@@ -433,7 +455,8 @@ about: {
|
|
|
433
455
|
responseSerialize: serialize_pulumirpc_AboutResponse,
|
|
434
456
|
responseDeserialize: deserialize_pulumirpc_AboutResponse,
|
|
435
457
|
},
|
|
436
|
-
// GetProgramDependencies
|
|
458
|
+
// `GetProgramDependencies` computes the set of language-level dependencies (e.g. NPM packages for NodeJS, or Maven
|
|
459
|
+
// libraries for Java) required by a program.
|
|
437
460
|
getProgramDependencies: {
|
|
438
461
|
path: '/pulumirpc.LanguageRuntime/GetProgramDependencies',
|
|
439
462
|
requestStream: false,
|
|
@@ -445,7 +468,11 @@ getProgramDependencies: {
|
|
|
445
468
|
responseSerialize: serialize_pulumirpc_GetProgramDependenciesResponse,
|
|
446
469
|
responseDeserialize: deserialize_pulumirpc_GetProgramDependenciesResponse,
|
|
447
470
|
},
|
|
448
|
-
// RunPlugin
|
|
471
|
+
// `RunPlugin` is used to execute a program written in this host's language that implements a Pulumi
|
|
472
|
+
// [plugin](plugins). It it is plugins what [](pulumirpc.LanguageRuntime.Run) is to programs. Since a plugin is not
|
|
473
|
+
// expected to terminate until instructed/for a long time, this method returns a stream of
|
|
474
|
+
// [](pulumirpc.RunPluginResponse) messages containing information about standard error and output, as well as the
|
|
475
|
+
// exit code of the plugin when it does terminate.
|
|
449
476
|
runPlugin: {
|
|
450
477
|
path: '/pulumirpc.LanguageRuntime/RunPlugin',
|
|
451
478
|
requestStream: false,
|
|
@@ -457,7 +484,11 @@ runPlugin: {
|
|
|
457
484
|
responseSerialize: serialize_pulumirpc_RunPluginResponse,
|
|
458
485
|
responseDeserialize: deserialize_pulumirpc_RunPluginResponse,
|
|
459
486
|
},
|
|
460
|
-
// GenerateProgram generates
|
|
487
|
+
// `GenerateProgram` generates code in this host's language that implements the given [PCL](pcl) program. Unlike
|
|
488
|
+
// [](pulumirpc.LanguageRuntime.GenerateProject), this method *only* generates program code, and does not e.g.
|
|
489
|
+
// generate a `package.json` for a NodeJS project that details how to run that code.
|
|
490
|
+
// [](pulumirpc.LanguageRuntime.GenerateProject), this method underpins ["programgen"](programgen) and the main
|
|
491
|
+
// functionality powering `pulumi convert`.
|
|
461
492
|
generateProgram: {
|
|
462
493
|
path: '/pulumirpc.LanguageRuntime/GenerateProgram',
|
|
463
494
|
requestStream: false,
|
|
@@ -469,7 +500,12 @@ generateProgram: {
|
|
|
469
500
|
responseSerialize: serialize_pulumirpc_GenerateProgramResponse,
|
|
470
501
|
responseDeserialize: deserialize_pulumirpc_GenerateProgramResponse,
|
|
471
502
|
},
|
|
472
|
-
// GenerateProject generates
|
|
503
|
+
// `GenerateProject` generates code in this host's language that implements the given [PCL](pcl) program and wraps
|
|
504
|
+
// it in some language-specific notion of a "project", where a project is a buildable or runnable artifact. In this
|
|
505
|
+
// sense, `GenerateProject`'s output is a superset of that of [](pulumirpc.LanguageRuntime.GenerateProgram). For
|
|
506
|
+
// instance, when generating a NodeJS project, this method might generate a corresponding `package.json` file, as
|
|
507
|
+
// well as the relevant NodeJS program code. Along with [](pulumirpc.LanguageRuntime.GenerateProgram), this method
|
|
508
|
+
// underpins ["programgen"](programgen) and the main functionality powering `pulumi convert`.
|
|
473
509
|
generateProject: {
|
|
474
510
|
path: '/pulumirpc.LanguageRuntime/GenerateProject',
|
|
475
511
|
requestStream: false,
|
|
@@ -481,7 +517,8 @@ generateProject: {
|
|
|
481
517
|
responseSerialize: serialize_pulumirpc_GenerateProjectResponse,
|
|
482
518
|
responseDeserialize: deserialize_pulumirpc_GenerateProjectResponse,
|
|
483
519
|
},
|
|
484
|
-
// GeneratePackage generates
|
|
520
|
+
// `GeneratePackage` generates code in this host's language that implements an [SDK](sdkgen) ("sdkgen") for the
|
|
521
|
+
// given Pulumi package, as specified by a [schema](schema).
|
|
485
522
|
generatePackage: {
|
|
486
523
|
path: '/pulumirpc.LanguageRuntime/GeneratePackage',
|
|
487
524
|
requestStream: false,
|
|
@@ -493,7 +530,11 @@ generatePackage: {
|
|
|
493
530
|
responseSerialize: serialize_pulumirpc_GeneratePackageResponse,
|
|
494
531
|
responseDeserialize: deserialize_pulumirpc_GeneratePackageResponse,
|
|
495
532
|
},
|
|
496
|
-
// Pack
|
|
533
|
+
// `Pack` accepts a request specifying a generated SDK package and packs it into a language-specific artifact. For
|
|
534
|
+
// instance, in the case of Java, it might produce a JAR file from a list of `.java` sources; in the case of NodeJS,
|
|
535
|
+
// a `.tgz` file might be produced from a list of `.js` sources; and so on. Presently, `Pack` is primarily used in
|
|
536
|
+
// [language conformance tests](language-conformance-tests), though it is intended to be used more widely in future
|
|
537
|
+
// to standardise e.g. provider publishing workflows.
|
|
497
538
|
pack: {
|
|
498
539
|
path: '/pulumirpc.LanguageRuntime/Pack',
|
|
499
540
|
requestStream: false,
|
|
@@ -294,7 +294,9 @@ registerStackInvokeTransform: {
|
|
|
294
294
|
responseSerialize: serialize_google_protobuf_Empty,
|
|
295
295
|
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
296
296
|
},
|
|
297
|
-
|
|
297
|
+
// Registers a package and allocates a packageRef. The same package can be registered multiple times in Pulumi.
|
|
298
|
+
// Multiple requests are idempotent and guaranteed to return the same result.
|
|
299
|
+
registerPackage: {
|
|
298
300
|
path: '/pulumirpc.ResourceMonitor/RegisterPackage',
|
|
299
301
|
requestStream: false,
|
|
300
302
|
responseStream: false,
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.149.0";
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright 2016-
|
|
2
|
+
// Copyright 2016-2025, Pulumi Corporation.
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -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.
|
|
16
|
+
exports.version = "3.149.0-alpha.x27ca3b5";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|