@pulumi/pulumi 3.130.1-alpha.xca6021c → 3.130.1-alpha.xd51c0bd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pulumi",
3
- "version": "3.130.1-alpha.xca6021c",
3
+ "version": "3.130.1-alpha.xd51c0bd",
4
4
  "description": "Pulumi's Node.js SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -6,11 +6,46 @@
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
8
 
9
+ export class Parameterization extends jspb.Message {
10
+ getName(): string;
11
+ setName(value: string): Parameterization;
12
+ getVersion(): string;
13
+ setVersion(value: string): Parameterization;
14
+ getValue(): Uint8Array | string;
15
+ getValue_asU8(): Uint8Array;
16
+ getValue_asB64(): string;
17
+ setValue(value: Uint8Array | string): Parameterization;
18
+
19
+ serializeBinary(): Uint8Array;
20
+ toObject(includeInstance?: boolean): Parameterization.AsObject;
21
+ static toObject(includeInstance: boolean, msg: Parameterization): Parameterization.AsObject;
22
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
23
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
24
+ static serializeBinaryToWriter(message: Parameterization, writer: jspb.BinaryWriter): void;
25
+ static deserializeBinary(bytes: Uint8Array): Parameterization;
26
+ static deserializeBinaryFromReader(message: Parameterization, reader: jspb.BinaryReader): Parameterization;
27
+ }
28
+
29
+ export namespace Parameterization {
30
+ export type AsObject = {
31
+ name: string,
32
+ version: string,
33
+ value: Uint8Array | string,
34
+ }
35
+ }
36
+
9
37
  export class GetSchemaRequest extends jspb.Message {
10
38
  getPackage(): string;
11
39
  setPackage(value: string): GetSchemaRequest;
12
40
  getVersion(): string;
13
41
  setVersion(value: string): GetSchemaRequest;
42
+ getDownloadUrl(): string;
43
+ setDownloadUrl(value: string): GetSchemaRequest;
44
+
45
+ hasParameterization(): boolean;
46
+ clearParameterization(): void;
47
+ getParameterization(): Parameterization | undefined;
48
+ setParameterization(value?: Parameterization): GetSchemaRequest;
14
49
 
15
50
  serializeBinary(): Uint8Array;
16
51
  toObject(includeInstance?: boolean): GetSchemaRequest.AsObject;
@@ -26,6 +61,8 @@ export namespace GetSchemaRequest {
26
61
  export type AsObject = {
27
62
  pb_package: string,
28
63
  version: string,
64
+ downloadUrl: string,
65
+ parameterization?: Parameterization.AsObject,
29
66
  }
30
67
  }
31
68
 
@@ -17,6 +17,28 @@ var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
17
17
 
18
18
  goog.exportSymbol('proto.codegen.GetSchemaRequest', null, global);
19
19
  goog.exportSymbol('proto.codegen.GetSchemaResponse', null, global);
20
+ goog.exportSymbol('proto.codegen.Parameterization', null, global);
21
+ /**
22
+ * Generated by JsPbCodeGenerator.
23
+ * @param {Array=} opt_data Optional initial data array, typically from a
24
+ * server response, or constructed directly in Javascript. The array is used
25
+ * in place and becomes part of the constructed object. It is not cloned.
26
+ * If no data is provided, the constructed object will be empty, but still
27
+ * valid.
28
+ * @extends {jspb.Message}
29
+ * @constructor
30
+ */
31
+ proto.codegen.Parameterization = function(opt_data) {
32
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
33
+ };
34
+ goog.inherits(proto.codegen.Parameterization, jspb.Message);
35
+ if (goog.DEBUG && !COMPILED) {
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.codegen.Parameterization.displayName = 'proto.codegen.Parameterization';
41
+ }
20
42
  /**
21
43
  * Generated by JsPbCodeGenerator.
22
44
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -62,6 +84,220 @@ if (goog.DEBUG && !COMPILED) {
62
84
 
63
85
 
64
86
 
87
+ if (jspb.Message.GENERATE_TO_OBJECT) {
88
+ /**
89
+ * Creates an object representation of this proto.
90
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
91
+ * Optional fields that are not set will be set to undefined.
92
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
93
+ * For the list of reserved names please see:
94
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
95
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
96
+ * JSPB instance for transitional soy proto support:
97
+ * http://goto/soy-param-migration
98
+ * @return {!Object}
99
+ */
100
+ proto.codegen.Parameterization.prototype.toObject = function(opt_includeInstance) {
101
+ return proto.codegen.Parameterization.toObject(opt_includeInstance, this);
102
+ };
103
+
104
+
105
+ /**
106
+ * Static version of the {@see toObject} method.
107
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
108
+ * the JSPB instance for transitional soy proto support:
109
+ * http://goto/soy-param-migration
110
+ * @param {!proto.codegen.Parameterization} msg The msg instance to transform.
111
+ * @return {!Object}
112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
113
+ */
114
+ proto.codegen.Parameterization.toObject = function(includeInstance, msg) {
115
+ var f, obj = {
116
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
117
+ version: jspb.Message.getFieldWithDefault(msg, 2, ""),
118
+ value: msg.getValue_asB64()
119
+ };
120
+
121
+ if (includeInstance) {
122
+ obj.$jspbMessageInstance = msg;
123
+ }
124
+ return obj;
125
+ };
126
+ }
127
+
128
+
129
+ /**
130
+ * Deserializes binary data (in protobuf wire format).
131
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
132
+ * @return {!proto.codegen.Parameterization}
133
+ */
134
+ proto.codegen.Parameterization.deserializeBinary = function(bytes) {
135
+ var reader = new jspb.BinaryReader(bytes);
136
+ var msg = new proto.codegen.Parameterization;
137
+ return proto.codegen.Parameterization.deserializeBinaryFromReader(msg, reader);
138
+ };
139
+
140
+
141
+ /**
142
+ * Deserializes binary data (in protobuf wire format) from the
143
+ * given reader into the given message object.
144
+ * @param {!proto.codegen.Parameterization} msg The message object to deserialize into.
145
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
146
+ * @return {!proto.codegen.Parameterization}
147
+ */
148
+ proto.codegen.Parameterization.deserializeBinaryFromReader = function(msg, reader) {
149
+ while (reader.nextField()) {
150
+ if (reader.isEndGroup()) {
151
+ break;
152
+ }
153
+ var field = reader.getFieldNumber();
154
+ switch (field) {
155
+ case 1:
156
+ var value = /** @type {string} */ (reader.readString());
157
+ msg.setName(value);
158
+ break;
159
+ case 2:
160
+ var value = /** @type {string} */ (reader.readString());
161
+ msg.setVersion(value);
162
+ break;
163
+ case 3:
164
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
165
+ msg.setValue(value);
166
+ break;
167
+ default:
168
+ reader.skipField();
169
+ break;
170
+ }
171
+ }
172
+ return msg;
173
+ };
174
+
175
+
176
+ /**
177
+ * Serializes the message to binary data (in protobuf wire format).
178
+ * @return {!Uint8Array}
179
+ */
180
+ proto.codegen.Parameterization.prototype.serializeBinary = function() {
181
+ var writer = new jspb.BinaryWriter();
182
+ proto.codegen.Parameterization.serializeBinaryToWriter(this, writer);
183
+ return writer.getResultBuffer();
184
+ };
185
+
186
+
187
+ /**
188
+ * Serializes the given message to binary data (in protobuf wire
189
+ * format), writing to the given BinaryWriter.
190
+ * @param {!proto.codegen.Parameterization} message
191
+ * @param {!jspb.BinaryWriter} writer
192
+ * @suppress {unusedLocalVariables} f is only used for nested messages
193
+ */
194
+ proto.codegen.Parameterization.serializeBinaryToWriter = function(message, writer) {
195
+ var f = undefined;
196
+ f = message.getName();
197
+ if (f.length > 0) {
198
+ writer.writeString(
199
+ 1,
200
+ f
201
+ );
202
+ }
203
+ f = message.getVersion();
204
+ if (f.length > 0) {
205
+ writer.writeString(
206
+ 2,
207
+ f
208
+ );
209
+ }
210
+ f = message.getValue_asU8();
211
+ if (f.length > 0) {
212
+ writer.writeBytes(
213
+ 3,
214
+ f
215
+ );
216
+ }
217
+ };
218
+
219
+
220
+ /**
221
+ * optional string name = 1;
222
+ * @return {string}
223
+ */
224
+ proto.codegen.Parameterization.prototype.getName = function() {
225
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
226
+ };
227
+
228
+
229
+ /**
230
+ * @param {string} value
231
+ * @return {!proto.codegen.Parameterization} returns this
232
+ */
233
+ proto.codegen.Parameterization.prototype.setName = function(value) {
234
+ return jspb.Message.setProto3StringField(this, 1, value);
235
+ };
236
+
237
+
238
+ /**
239
+ * optional string version = 2;
240
+ * @return {string}
241
+ */
242
+ proto.codegen.Parameterization.prototype.getVersion = function() {
243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
244
+ };
245
+
246
+
247
+ /**
248
+ * @param {string} value
249
+ * @return {!proto.codegen.Parameterization} returns this
250
+ */
251
+ proto.codegen.Parameterization.prototype.setVersion = function(value) {
252
+ return jspb.Message.setProto3StringField(this, 2, value);
253
+ };
254
+
255
+
256
+ /**
257
+ * optional bytes value = 3;
258
+ * @return {!(string|Uint8Array)}
259
+ */
260
+ proto.codegen.Parameterization.prototype.getValue = function() {
261
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
262
+ };
263
+
264
+
265
+ /**
266
+ * optional bytes value = 3;
267
+ * This is a type-conversion wrapper around `getValue()`
268
+ * @return {string}
269
+ */
270
+ proto.codegen.Parameterization.prototype.getValue_asB64 = function() {
271
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
272
+ this.getValue()));
273
+ };
274
+
275
+
276
+ /**
277
+ * optional bytes value = 3;
278
+ * Note that Uint8Array is not supported on all browsers.
279
+ * @see http://caniuse.com/Uint8Array
280
+ * This is a type-conversion wrapper around `getValue()`
281
+ * @return {!Uint8Array}
282
+ */
283
+ proto.codegen.Parameterization.prototype.getValue_asU8 = function() {
284
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
285
+ this.getValue()));
286
+ };
287
+
288
+
289
+ /**
290
+ * @param {!(string|Uint8Array)} value
291
+ * @return {!proto.codegen.Parameterization} returns this
292
+ */
293
+ proto.codegen.Parameterization.prototype.setValue = function(value) {
294
+ return jspb.Message.setProto3BytesField(this, 3, value);
295
+ };
296
+
297
+
298
+
299
+
300
+
65
301
  if (jspb.Message.GENERATE_TO_OBJECT) {
66
302
  /**
67
303
  * Creates an object representation of this proto.
@@ -92,7 +328,9 @@ proto.codegen.GetSchemaRequest.prototype.toObject = function(opt_includeInstance
92
328
  proto.codegen.GetSchemaRequest.toObject = function(includeInstance, msg) {
93
329
  var f, obj = {
94
330
  pb_package: jspb.Message.getFieldWithDefault(msg, 1, ""),
95
- version: jspb.Message.getFieldWithDefault(msg, 2, "")
331
+ version: jspb.Message.getFieldWithDefault(msg, 2, ""),
332
+ downloadUrl: jspb.Message.getFieldWithDefault(msg, 3, ""),
333
+ parameterization: (f = msg.getParameterization()) && proto.codegen.Parameterization.toObject(includeInstance, f)
96
334
  };
97
335
 
98
336
  if (includeInstance) {
@@ -137,6 +375,15 @@ proto.codegen.GetSchemaRequest.deserializeBinaryFromReader = function(msg, reade
137
375
  var value = /** @type {string} */ (reader.readString());
138
376
  msg.setVersion(value);
139
377
  break;
378
+ case 3:
379
+ var value = /** @type {string} */ (reader.readString());
380
+ msg.setDownloadUrl(value);
381
+ break;
382
+ case 4:
383
+ var value = new proto.codegen.Parameterization;
384
+ reader.readMessage(value,proto.codegen.Parameterization.deserializeBinaryFromReader);
385
+ msg.setParameterization(value);
386
+ break;
140
387
  default:
141
388
  reader.skipField();
142
389
  break;
@@ -180,6 +427,21 @@ proto.codegen.GetSchemaRequest.serializeBinaryToWriter = function(message, write
180
427
  f
181
428
  );
182
429
  }
430
+ f = message.getDownloadUrl();
431
+ if (f.length > 0) {
432
+ writer.writeString(
433
+ 3,
434
+ f
435
+ );
436
+ }
437
+ f = message.getParameterization();
438
+ if (f != null) {
439
+ writer.writeMessage(
440
+ 4,
441
+ f,
442
+ proto.codegen.Parameterization.serializeBinaryToWriter
443
+ );
444
+ }
183
445
  };
184
446
 
185
447
 
@@ -219,6 +481,61 @@ proto.codegen.GetSchemaRequest.prototype.setVersion = function(value) {
219
481
  };
220
482
 
221
483
 
484
+ /**
485
+ * optional string download_url = 3;
486
+ * @return {string}
487
+ */
488
+ proto.codegen.GetSchemaRequest.prototype.getDownloadUrl = function() {
489
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
490
+ };
491
+
492
+
493
+ /**
494
+ * @param {string} value
495
+ * @return {!proto.codegen.GetSchemaRequest} returns this
496
+ */
497
+ proto.codegen.GetSchemaRequest.prototype.setDownloadUrl = function(value) {
498
+ return jspb.Message.setProto3StringField(this, 3, value);
499
+ };
500
+
501
+
502
+ /**
503
+ * optional Parameterization parameterization = 4;
504
+ * @return {?proto.codegen.Parameterization}
505
+ */
506
+ proto.codegen.GetSchemaRequest.prototype.getParameterization = function() {
507
+ return /** @type{?proto.codegen.Parameterization} */ (
508
+ jspb.Message.getWrapperField(this, proto.codegen.Parameterization, 4));
509
+ };
510
+
511
+
512
+ /**
513
+ * @param {?proto.codegen.Parameterization|undefined} value
514
+ * @return {!proto.codegen.GetSchemaRequest} returns this
515
+ */
516
+ proto.codegen.GetSchemaRequest.prototype.setParameterization = function(value) {
517
+ return jspb.Message.setWrapperField(this, 4, value);
518
+ };
519
+
520
+
521
+ /**
522
+ * Clears the message field making it undefined.
523
+ * @return {!proto.codegen.GetSchemaRequest} returns this
524
+ */
525
+ proto.codegen.GetSchemaRequest.prototype.clearParameterization = function() {
526
+ return this.setParameterization(undefined);
527
+ };
528
+
529
+
530
+ /**
531
+ * Returns whether this field is set.
532
+ * @return {boolean}
533
+ */
534
+ proto.codegen.GetSchemaRequest.prototype.hasParameterization = function() {
535
+ return jspb.Message.getField(this, 4) != null;
536
+ };
537
+
538
+
222
539
 
223
540
 
224
541
 
@@ -7,11 +7,13 @@
7
7
  import * as grpc from "@grpc/grpc-js";
8
8
  import * as pulumi_engine_pb from "./engine_pb";
9
9
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
10
+ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
10
11
 
11
12
  interface IEngineService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
12
13
  log: IEngineService_ILog;
13
14
  getRootResource: IEngineService_IGetRootResource;
14
15
  setRootResource: IEngineService_ISetRootResource;
16
+ startDebugger: IEngineService_IStartDebugger;
15
17
  }
16
18
 
17
19
  interface IEngineService_ILog extends grpc.MethodDefinition<pulumi_engine_pb.LogRequest, google_protobuf_empty_pb.Empty> {
@@ -41,6 +43,15 @@ interface IEngineService_ISetRootResource extends grpc.MethodDefinition<pulumi_e
41
43
  responseSerialize: grpc.serialize<pulumi_engine_pb.SetRootResourceResponse>;
42
44
  responseDeserialize: grpc.deserialize<pulumi_engine_pb.SetRootResourceResponse>;
43
45
  }
46
+ interface IEngineService_IStartDebugger extends grpc.MethodDefinition<pulumi_engine_pb.StartDebuggerRequest, google_protobuf_empty_pb.Empty> {
47
+ path: "/pulumirpc.Engine/StartDebugger";
48
+ requestStream: false;
49
+ responseStream: false;
50
+ requestSerialize: grpc.serialize<pulumi_engine_pb.StartDebuggerRequest>;
51
+ requestDeserialize: grpc.deserialize<pulumi_engine_pb.StartDebuggerRequest>;
52
+ responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
53
+ responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
54
+ }
44
55
 
45
56
  export const EngineService: IEngineService;
46
57
 
@@ -48,6 +59,7 @@ export interface IEngineServer extends grpc.UntypedServiceImplementation {
48
59
  log: grpc.handleUnaryCall<pulumi_engine_pb.LogRequest, google_protobuf_empty_pb.Empty>;
49
60
  getRootResource: grpc.handleUnaryCall<pulumi_engine_pb.GetRootResourceRequest, pulumi_engine_pb.GetRootResourceResponse>;
50
61
  setRootResource: grpc.handleUnaryCall<pulumi_engine_pb.SetRootResourceRequest, pulumi_engine_pb.SetRootResourceResponse>;
62
+ startDebugger: grpc.handleUnaryCall<pulumi_engine_pb.StartDebuggerRequest, google_protobuf_empty_pb.Empty>;
51
63
  }
52
64
 
53
65
  export interface IEngineClient {
@@ -60,6 +72,9 @@ export interface IEngineClient {
60
72
  setRootResource(request: pulumi_engine_pb.SetRootResourceRequest, callback: (error: grpc.ServiceError | null, response: pulumi_engine_pb.SetRootResourceResponse) => void): grpc.ClientUnaryCall;
61
73
  setRootResource(request: pulumi_engine_pb.SetRootResourceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_engine_pb.SetRootResourceResponse) => void): grpc.ClientUnaryCall;
62
74
  setRootResource(request: pulumi_engine_pb.SetRootResourceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_engine_pb.SetRootResourceResponse) => void): grpc.ClientUnaryCall;
75
+ startDebugger(request: pulumi_engine_pb.StartDebuggerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
76
+ startDebugger(request: pulumi_engine_pb.StartDebuggerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
77
+ startDebugger(request: pulumi_engine_pb.StartDebuggerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
63
78
  }
64
79
 
65
80
  export class EngineClient extends grpc.Client implements IEngineClient {
@@ -73,4 +88,7 @@ export class EngineClient extends grpc.Client implements IEngineClient {
73
88
  public setRootResource(request: pulumi_engine_pb.SetRootResourceRequest, callback: (error: grpc.ServiceError | null, response: pulumi_engine_pb.SetRootResourceResponse) => void): grpc.ClientUnaryCall;
74
89
  public setRootResource(request: pulumi_engine_pb.SetRootResourceRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_engine_pb.SetRootResourceResponse) => void): grpc.ClientUnaryCall;
75
90
  public setRootResource(request: pulumi_engine_pb.SetRootResourceRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_engine_pb.SetRootResourceResponse) => void): grpc.ClientUnaryCall;
91
+ public startDebugger(request: pulumi_engine_pb.StartDebuggerRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
92
+ public startDebugger(request: pulumi_engine_pb.StartDebuggerRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
93
+ public startDebugger(request: pulumi_engine_pb.StartDebuggerRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
76
94
  }
@@ -19,6 +19,7 @@
19
19
  var grpc = require('@grpc/grpc-js');
20
20
  var pulumi_engine_pb = require('./engine_pb.js');
21
21
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
22
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
22
23
 
23
24
  function serialize_google_protobuf_Empty(arg) {
24
25
  if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
@@ -86,6 +87,17 @@ function deserialize_pulumirpc_SetRootResourceResponse(buffer_arg) {
86
87
  return pulumi_engine_pb.SetRootResourceResponse.deserializeBinary(new Uint8Array(buffer_arg));
87
88
  }
88
89
 
90
+ function serialize_pulumirpc_StartDebuggerRequest(arg) {
91
+ if (!(arg instanceof pulumi_engine_pb.StartDebuggerRequest)) {
92
+ throw new Error('Expected argument of type pulumirpc.StartDebuggerRequest');
93
+ }
94
+ return Buffer.from(arg.serializeBinary());
95
+ }
96
+
97
+ function deserialize_pulumirpc_StartDebuggerRequest(buffer_arg) {
98
+ return pulumi_engine_pb.StartDebuggerRequest.deserializeBinary(new Uint8Array(buffer_arg));
99
+ }
100
+
89
101
 
90
102
  // Engine is an auxiliary service offered to language and resource provider plugins. Its main purpose today is
91
103
  // to serve as a common logging endpoint, but it also serves as a state storage mechanism for language hosts
@@ -128,6 +140,17 @@ setRootResource: {
128
140
  responseSerialize: serialize_pulumirpc_SetRootResourceResponse,
129
141
  responseDeserialize: deserialize_pulumirpc_SetRootResourceResponse,
130
142
  },
143
+ startDebugger: {
144
+ path: '/pulumirpc.Engine/StartDebugger',
145
+ requestStream: false,
146
+ responseStream: false,
147
+ requestType: pulumi_engine_pb.StartDebuggerRequest,
148
+ responseType: google_protobuf_empty_pb.Empty,
149
+ requestSerialize: serialize_pulumirpc_StartDebuggerRequest,
150
+ requestDeserialize: deserialize_pulumirpc_StartDebuggerRequest,
151
+ responseSerialize: serialize_google_protobuf_Empty,
152
+ responseDeserialize: deserialize_google_protobuf_Empty,
153
+ },
131
154
  };
132
155
 
133
156
  exports.EngineClient = grpc.makeGenericClientConstructor(EngineService);
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
8
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
9
+ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
9
10
 
10
11
  export class LogRequest extends jspb.Message {
11
12
  getSeverity(): LogSeverity;
@@ -113,6 +114,32 @@ export namespace SetRootResourceResponse {
113
114
  }
114
115
  }
115
116
 
117
+ export class StartDebuggerRequest extends jspb.Message {
118
+
119
+ hasConfig(): boolean;
120
+ clearConfig(): void;
121
+ getConfig(): google_protobuf_struct_pb.Struct | undefined;
122
+ setConfig(value?: google_protobuf_struct_pb.Struct): StartDebuggerRequest;
123
+ getMessage(): string;
124
+ setMessage(value: string): StartDebuggerRequest;
125
+
126
+ serializeBinary(): Uint8Array;
127
+ toObject(includeInstance?: boolean): StartDebuggerRequest.AsObject;
128
+ static toObject(includeInstance: boolean, msg: StartDebuggerRequest): StartDebuggerRequest.AsObject;
129
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
130
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
131
+ static serializeBinaryToWriter(message: StartDebuggerRequest, writer: jspb.BinaryWriter): void;
132
+ static deserializeBinary(bytes: Uint8Array): StartDebuggerRequest;
133
+ static deserializeBinaryFromReader(message: StartDebuggerRequest, reader: jspb.BinaryReader): StartDebuggerRequest;
134
+ }
135
+
136
+ export namespace StartDebuggerRequest {
137
+ export type AsObject = {
138
+ config?: google_protobuf_struct_pb.Struct.AsObject,
139
+ message: string,
140
+ }
141
+ }
142
+
116
143
  export enum LogSeverity {
117
144
  DEBUG = 0,
118
145
  INFO = 1,
@@ -17,12 +17,15 @@ var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
17
17
 
18
18
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_empty_pb);
20
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
21
+ goog.object.extend(proto, google_protobuf_struct_pb);
20
22
  goog.exportSymbol('proto.pulumirpc.GetRootResourceRequest', null, global);
21
23
  goog.exportSymbol('proto.pulumirpc.GetRootResourceResponse', null, global);
22
24
  goog.exportSymbol('proto.pulumirpc.LogRequest', null, global);
23
25
  goog.exportSymbol('proto.pulumirpc.LogSeverity', null, global);
24
26
  goog.exportSymbol('proto.pulumirpc.SetRootResourceRequest', null, global);
25
27
  goog.exportSymbol('proto.pulumirpc.SetRootResourceResponse', null, global);
28
+ goog.exportSymbol('proto.pulumirpc.StartDebuggerRequest', null, global);
26
29
  /**
27
30
  * Generated by JsPbCodeGenerator.
28
31
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -128,6 +131,27 @@ if (goog.DEBUG && !COMPILED) {
128
131
  */
129
132
  proto.pulumirpc.SetRootResourceResponse.displayName = 'proto.pulumirpc.SetRootResourceResponse';
130
133
  }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.pulumirpc.StartDebuggerRequest = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
146
+ };
147
+ goog.inherits(proto.pulumirpc.StartDebuggerRequest, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.pulumirpc.StartDebuggerRequest.displayName = 'proto.pulumirpc.StartDebuggerRequest';
154
+ }
131
155
 
132
156
 
133
157
 
@@ -840,6 +864,187 @@ proto.pulumirpc.SetRootResourceResponse.serializeBinaryToWriter = function(messa
840
864
  };
841
865
 
842
866
 
867
+
868
+
869
+
870
+ if (jspb.Message.GENERATE_TO_OBJECT) {
871
+ /**
872
+ * Creates an object representation of this proto.
873
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
874
+ * Optional fields that are not set will be set to undefined.
875
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
876
+ * For the list of reserved names please see:
877
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
878
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
879
+ * JSPB instance for transitional soy proto support:
880
+ * http://goto/soy-param-migration
881
+ * @return {!Object}
882
+ */
883
+ proto.pulumirpc.StartDebuggerRequest.prototype.toObject = function(opt_includeInstance) {
884
+ return proto.pulumirpc.StartDebuggerRequest.toObject(opt_includeInstance, this);
885
+ };
886
+
887
+
888
+ /**
889
+ * Static version of the {@see toObject} method.
890
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
891
+ * the JSPB instance for transitional soy proto support:
892
+ * http://goto/soy-param-migration
893
+ * @param {!proto.pulumirpc.StartDebuggerRequest} msg The msg instance to transform.
894
+ * @return {!Object}
895
+ * @suppress {unusedLocalVariables} f is only used for nested messages
896
+ */
897
+ proto.pulumirpc.StartDebuggerRequest.toObject = function(includeInstance, msg) {
898
+ var f, obj = {
899
+ config: (f = msg.getConfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
900
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
901
+ };
902
+
903
+ if (includeInstance) {
904
+ obj.$jspbMessageInstance = msg;
905
+ }
906
+ return obj;
907
+ };
908
+ }
909
+
910
+
911
+ /**
912
+ * Deserializes binary data (in protobuf wire format).
913
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
914
+ * @return {!proto.pulumirpc.StartDebuggerRequest}
915
+ */
916
+ proto.pulumirpc.StartDebuggerRequest.deserializeBinary = function(bytes) {
917
+ var reader = new jspb.BinaryReader(bytes);
918
+ var msg = new proto.pulumirpc.StartDebuggerRequest;
919
+ return proto.pulumirpc.StartDebuggerRequest.deserializeBinaryFromReader(msg, reader);
920
+ };
921
+
922
+
923
+ /**
924
+ * Deserializes binary data (in protobuf wire format) from the
925
+ * given reader into the given message object.
926
+ * @param {!proto.pulumirpc.StartDebuggerRequest} msg The message object to deserialize into.
927
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
928
+ * @return {!proto.pulumirpc.StartDebuggerRequest}
929
+ */
930
+ proto.pulumirpc.StartDebuggerRequest.deserializeBinaryFromReader = function(msg, reader) {
931
+ while (reader.nextField()) {
932
+ if (reader.isEndGroup()) {
933
+ break;
934
+ }
935
+ var field = reader.getFieldNumber();
936
+ switch (field) {
937
+ case 1:
938
+ var value = new google_protobuf_struct_pb.Struct;
939
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
940
+ msg.setConfig(value);
941
+ break;
942
+ case 2:
943
+ var value = /** @type {string} */ (reader.readString());
944
+ msg.setMessage(value);
945
+ break;
946
+ default:
947
+ reader.skipField();
948
+ break;
949
+ }
950
+ }
951
+ return msg;
952
+ };
953
+
954
+
955
+ /**
956
+ * Serializes the message to binary data (in protobuf wire format).
957
+ * @return {!Uint8Array}
958
+ */
959
+ proto.pulumirpc.StartDebuggerRequest.prototype.serializeBinary = function() {
960
+ var writer = new jspb.BinaryWriter();
961
+ proto.pulumirpc.StartDebuggerRequest.serializeBinaryToWriter(this, writer);
962
+ return writer.getResultBuffer();
963
+ };
964
+
965
+
966
+ /**
967
+ * Serializes the given message to binary data (in protobuf wire
968
+ * format), writing to the given BinaryWriter.
969
+ * @param {!proto.pulumirpc.StartDebuggerRequest} message
970
+ * @param {!jspb.BinaryWriter} writer
971
+ * @suppress {unusedLocalVariables} f is only used for nested messages
972
+ */
973
+ proto.pulumirpc.StartDebuggerRequest.serializeBinaryToWriter = function(message, writer) {
974
+ var f = undefined;
975
+ f = message.getConfig();
976
+ if (f != null) {
977
+ writer.writeMessage(
978
+ 1,
979
+ f,
980
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
981
+ );
982
+ }
983
+ f = message.getMessage();
984
+ if (f.length > 0) {
985
+ writer.writeString(
986
+ 2,
987
+ f
988
+ );
989
+ }
990
+ };
991
+
992
+
993
+ /**
994
+ * optional google.protobuf.Struct config = 1;
995
+ * @return {?proto.google.protobuf.Struct}
996
+ */
997
+ proto.pulumirpc.StartDebuggerRequest.prototype.getConfig = function() {
998
+ return /** @type{?proto.google.protobuf.Struct} */ (
999
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
1000
+ };
1001
+
1002
+
1003
+ /**
1004
+ * @param {?proto.google.protobuf.Struct|undefined} value
1005
+ * @return {!proto.pulumirpc.StartDebuggerRequest} returns this
1006
+ */
1007
+ proto.pulumirpc.StartDebuggerRequest.prototype.setConfig = function(value) {
1008
+ return jspb.Message.setWrapperField(this, 1, value);
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Clears the message field making it undefined.
1014
+ * @return {!proto.pulumirpc.StartDebuggerRequest} returns this
1015
+ */
1016
+ proto.pulumirpc.StartDebuggerRequest.prototype.clearConfig = function() {
1017
+ return this.setConfig(undefined);
1018
+ };
1019
+
1020
+
1021
+ /**
1022
+ * Returns whether this field is set.
1023
+ * @return {boolean}
1024
+ */
1025
+ proto.pulumirpc.StartDebuggerRequest.prototype.hasConfig = function() {
1026
+ return jspb.Message.getField(this, 1) != null;
1027
+ };
1028
+
1029
+
1030
+ /**
1031
+ * optional string message = 2;
1032
+ * @return {string}
1033
+ */
1034
+ proto.pulumirpc.StartDebuggerRequest.prototype.getMessage = function() {
1035
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1036
+ };
1037
+
1038
+
1039
+ /**
1040
+ * @param {string} value
1041
+ * @return {!proto.pulumirpc.StartDebuggerRequest} returns this
1042
+ */
1043
+ proto.pulumirpc.StartDebuggerRequest.prototype.setMessage = function(value) {
1044
+ return jspb.Message.setProto3StringField(this, 2, value);
1045
+ };
1046
+
1047
+
843
1048
  /**
844
1049
  * @enum {number}
845
1050
  */
@@ -267,6 +267,10 @@ export class RunRequest extends jspb.Message {
267
267
  clearInfo(): void;
268
268
  getInfo(): ProgramInfo | undefined;
269
269
  setInfo(value?: ProgramInfo): RunRequest;
270
+ getLoaderTarget(): string;
271
+ setLoaderTarget(value: string): RunRequest;
272
+ getStartDebugger(): boolean;
273
+ setStartDebugger(value: boolean): RunRequest;
270
274
 
271
275
  serializeBinary(): Uint8Array;
272
276
  toObject(includeInstance?: boolean): RunRequest.AsObject;
@@ -295,6 +299,8 @@ export namespace RunRequest {
295
299
  organization: string,
296
300
  configpropertymap?: google_protobuf_struct_pb.Struct.AsObject,
297
301
  info?: ProgramInfo.AsObject,
302
+ loaderTarget: string,
303
+ startDebugger: boolean,
298
304
  }
299
305
  }
300
306
 
@@ -2226,7 +2226,9 @@ proto.pulumirpc.RunRequest.toObject = function(includeInstance, msg) {
2226
2226
  configsecretkeysList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
2227
2227
  organization: jspb.Message.getFieldWithDefault(msg, 12, ""),
2228
2228
  configpropertymap: (f = msg.getConfigpropertymap()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
2229
- info: (f = msg.getInfo()) && proto.pulumirpc.ProgramInfo.toObject(includeInstance, f)
2229
+ info: (f = msg.getInfo()) && proto.pulumirpc.ProgramInfo.toObject(includeInstance, f),
2230
+ loaderTarget: jspb.Message.getFieldWithDefault(msg, 15, ""),
2231
+ startDebugger: jspb.Message.getBooleanFieldWithDefault(msg, 16, false)
2230
2232
  };
2231
2233
 
2232
2234
  if (includeInstance) {
@@ -2323,6 +2325,14 @@ proto.pulumirpc.RunRequest.deserializeBinaryFromReader = function(msg, reader) {
2323
2325
  reader.readMessage(value,proto.pulumirpc.ProgramInfo.deserializeBinaryFromReader);
2324
2326
  msg.setInfo(value);
2325
2327
  break;
2328
+ case 15:
2329
+ var value = /** @type {string} */ (reader.readString());
2330
+ msg.setLoaderTarget(value);
2331
+ break;
2332
+ case 16:
2333
+ var value = /** @type {boolean} */ (reader.readBool());
2334
+ msg.setStartDebugger(value);
2335
+ break;
2326
2336
  default:
2327
2337
  reader.skipField();
2328
2338
  break;
@@ -2449,6 +2459,20 @@ proto.pulumirpc.RunRequest.serializeBinaryToWriter = function(message, writer) {
2449
2459
  proto.pulumirpc.ProgramInfo.serializeBinaryToWriter
2450
2460
  );
2451
2461
  }
2462
+ f = message.getLoaderTarget();
2463
+ if (f.length > 0) {
2464
+ writer.writeString(
2465
+ 15,
2466
+ f
2467
+ );
2468
+ }
2469
+ f = message.getStartDebugger();
2470
+ if (f) {
2471
+ writer.writeBool(
2472
+ 16,
2473
+ f
2474
+ );
2475
+ }
2452
2476
  };
2453
2477
 
2454
2478
 
@@ -2784,6 +2808,42 @@ proto.pulumirpc.RunRequest.prototype.hasInfo = function() {
2784
2808
  };
2785
2809
 
2786
2810
 
2811
+ /**
2812
+ * optional string loader_target = 15;
2813
+ * @return {string}
2814
+ */
2815
+ proto.pulumirpc.RunRequest.prototype.getLoaderTarget = function() {
2816
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2817
+ };
2818
+
2819
+
2820
+ /**
2821
+ * @param {string} value
2822
+ * @return {!proto.pulumirpc.RunRequest} returns this
2823
+ */
2824
+ proto.pulumirpc.RunRequest.prototype.setLoaderTarget = function(value) {
2825
+ return jspb.Message.setProto3StringField(this, 15, value);
2826
+ };
2827
+
2828
+
2829
+ /**
2830
+ * optional bool start_debugger = 16;
2831
+ * @return {boolean}
2832
+ */
2833
+ proto.pulumirpc.RunRequest.prototype.getStartDebugger = function() {
2834
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
2835
+ };
2836
+
2837
+
2838
+ /**
2839
+ * @param {boolean} value
2840
+ * @return {!proto.pulumirpc.RunRequest} returns this
2841
+ */
2842
+ proto.pulumirpc.RunRequest.prototype.setStartDebugger = function(value) {
2843
+ return jspb.Message.setProto3BooleanField(this, 16, value);
2844
+ };
2845
+
2846
+
2787
2847
 
2788
2848
 
2789
2849
 
package/version.js CHANGED
@@ -13,5 +13,5 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.version = "3.130.1-alpha.xca6021c";
16
+ exports.version = "3.130.1-alpha.xd51c0bd";
17
17
  //# sourceMappingURL=version.js.map