@pulumi/pulumi 3.151.0-alpha.x2d215ba → 3.151.0-alpha.x996afa5
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/codegen/mapper_grpc_pb.js +11 -1
- package/proto/codegen/mapper_pb.d.ts +34 -0
- package/proto/codegen/mapper_pb.js +288 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -44,8 +44,18 @@ function deserialize_codegen_GetMappingResponse(buffer_arg) {
|
|
|
44
44
|
|
|
45
45
|
// Mapper is a service for getting mappings from other ecosystems to Pulumi.
|
|
46
46
|
// This is currently unstable and experimental.
|
|
47
|
+
//
|
|
48
|
+
// Mapper provides methods for retrieving mappings that describe how to map names in some source "provider" (e.g. a
|
|
49
|
+
// Terraform provider, if we are converting from Terraform) to names in appropriate Pulumi packages. So when converting
|
|
50
|
+
// a Terraform program containing code like `resource "aws_s3_bucket" "b" {}`, for instance, we need to know (among
|
|
51
|
+
// other things) that the `aws_s3_bucket` Terraform resource type corresponds to the Pulumi type `aws:s3/bucket:Bucket`,
|
|
52
|
+
// and thus lives in the `aws` package. This is the kind of information that a Mapper provides.
|
|
47
53
|
var MapperService = exports.MapperService = {
|
|
48
|
-
// GetMapping
|
|
54
|
+
// `GetMapping` returns any available mapping data for the given source provider name (so again, this is e.g. the
|
|
55
|
+
// name of a Terraform provider if converting from Terraform). Callers may pass "hints" that describe a Pulumi
|
|
56
|
+
// package that is expected to provide the mapping and satisfy the request, which implementations may use to
|
|
57
|
+
// optimise their efforts to return the best possible mapping. If no matching mapping exists, implementations should
|
|
58
|
+
// return an empty byte array result.
|
|
49
59
|
getMapping: {
|
|
50
60
|
path: '/codegen.Mapper/GetMapping',
|
|
51
61
|
requestStream: false,
|
|
@@ -12,6 +12,11 @@ export class GetMappingRequest extends jspb.Message {
|
|
|
12
12
|
getPulumiProvider(): string;
|
|
13
13
|
setPulumiProvider(value: string): GetMappingRequest;
|
|
14
14
|
|
|
15
|
+
hasParameterizationHint(): boolean;
|
|
16
|
+
clearParameterizationHint(): void;
|
|
17
|
+
getParameterizationHint(): MapperParameterizationHint | undefined;
|
|
18
|
+
setParameterizationHint(value?: MapperParameterizationHint): GetMappingRequest;
|
|
19
|
+
|
|
15
20
|
serializeBinary(): Uint8Array;
|
|
16
21
|
toObject(includeInstance?: boolean): GetMappingRequest.AsObject;
|
|
17
22
|
static toObject(includeInstance: boolean, msg: GetMappingRequest): GetMappingRequest.AsObject;
|
|
@@ -26,6 +31,35 @@ export namespace GetMappingRequest {
|
|
|
26
31
|
export type AsObject = {
|
|
27
32
|
provider: string,
|
|
28
33
|
pulumiProvider: string,
|
|
34
|
+
parameterizationHint?: MapperParameterizationHint.AsObject,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class MapperParameterizationHint extends jspb.Message {
|
|
39
|
+
getName(): string;
|
|
40
|
+
setName(value: string): MapperParameterizationHint;
|
|
41
|
+
getVersion(): string;
|
|
42
|
+
setVersion(value: string): MapperParameterizationHint;
|
|
43
|
+
getValue(): Uint8Array | string;
|
|
44
|
+
getValue_asU8(): Uint8Array;
|
|
45
|
+
getValue_asB64(): string;
|
|
46
|
+
setValue(value: Uint8Array | string): MapperParameterizationHint;
|
|
47
|
+
|
|
48
|
+
serializeBinary(): Uint8Array;
|
|
49
|
+
toObject(includeInstance?: boolean): MapperParameterizationHint.AsObject;
|
|
50
|
+
static toObject(includeInstance: boolean, msg: MapperParameterizationHint): MapperParameterizationHint.AsObject;
|
|
51
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
52
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
53
|
+
static serializeBinaryToWriter(message: MapperParameterizationHint, writer: jspb.BinaryWriter): void;
|
|
54
|
+
static deserializeBinary(bytes: Uint8Array): MapperParameterizationHint;
|
|
55
|
+
static deserializeBinaryFromReader(message: MapperParameterizationHint, reader: jspb.BinaryReader): MapperParameterizationHint;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace MapperParameterizationHint {
|
|
59
|
+
export type AsObject = {
|
|
60
|
+
name: string,
|
|
61
|
+
version: string,
|
|
62
|
+
value: Uint8Array | string,
|
|
29
63
|
}
|
|
30
64
|
}
|
|
31
65
|
|
|
@@ -17,6 +17,7 @@ var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.codegen.GetMappingRequest', null, global);
|
|
19
19
|
goog.exportSymbol('proto.codegen.GetMappingResponse', null, global);
|
|
20
|
+
goog.exportSymbol('proto.codegen.MapperParameterizationHint', null, global);
|
|
20
21
|
/**
|
|
21
22
|
* Generated by JsPbCodeGenerator.
|
|
22
23
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -38,6 +39,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
38
39
|
*/
|
|
39
40
|
proto.codegen.GetMappingRequest.displayName = 'proto.codegen.GetMappingRequest';
|
|
40
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Generated by JsPbCodeGenerator.
|
|
44
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
45
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
46
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
47
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
48
|
+
* valid.
|
|
49
|
+
* @extends {jspb.Message}
|
|
50
|
+
* @constructor
|
|
51
|
+
*/
|
|
52
|
+
proto.codegen.MapperParameterizationHint = function(opt_data) {
|
|
53
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
54
|
+
};
|
|
55
|
+
goog.inherits(proto.codegen.MapperParameterizationHint, jspb.Message);
|
|
56
|
+
if (goog.DEBUG && !COMPILED) {
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* @override
|
|
60
|
+
*/
|
|
61
|
+
proto.codegen.MapperParameterizationHint.displayName = 'proto.codegen.MapperParameterizationHint';
|
|
62
|
+
}
|
|
41
63
|
/**
|
|
42
64
|
* Generated by JsPbCodeGenerator.
|
|
43
65
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -92,7 +114,8 @@ proto.codegen.GetMappingRequest.prototype.toObject = function(opt_includeInstanc
|
|
|
92
114
|
proto.codegen.GetMappingRequest.toObject = function(includeInstance, msg) {
|
|
93
115
|
var f, obj = {
|
|
94
116
|
provider: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
95
|
-
pulumiProvider: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
117
|
+
pulumiProvider: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
118
|
+
parameterizationHint: (f = msg.getParameterizationHint()) && proto.codegen.MapperParameterizationHint.toObject(includeInstance, f)
|
|
96
119
|
};
|
|
97
120
|
|
|
98
121
|
if (includeInstance) {
|
|
@@ -137,6 +160,11 @@ proto.codegen.GetMappingRequest.deserializeBinaryFromReader = function(msg, read
|
|
|
137
160
|
var value = /** @type {string} */ (reader.readString());
|
|
138
161
|
msg.setPulumiProvider(value);
|
|
139
162
|
break;
|
|
163
|
+
case 3:
|
|
164
|
+
var value = new proto.codegen.MapperParameterizationHint;
|
|
165
|
+
reader.readMessage(value,proto.codegen.MapperParameterizationHint.deserializeBinaryFromReader);
|
|
166
|
+
msg.setParameterizationHint(value);
|
|
167
|
+
break;
|
|
140
168
|
default:
|
|
141
169
|
reader.skipField();
|
|
142
170
|
break;
|
|
@@ -180,6 +208,14 @@ proto.codegen.GetMappingRequest.serializeBinaryToWriter = function(message, writ
|
|
|
180
208
|
f
|
|
181
209
|
);
|
|
182
210
|
}
|
|
211
|
+
f = message.getParameterizationHint();
|
|
212
|
+
if (f != null) {
|
|
213
|
+
writer.writeMessage(
|
|
214
|
+
3,
|
|
215
|
+
f,
|
|
216
|
+
proto.codegen.MapperParameterizationHint.serializeBinaryToWriter
|
|
217
|
+
);
|
|
218
|
+
}
|
|
183
219
|
};
|
|
184
220
|
|
|
185
221
|
|
|
@@ -219,6 +255,257 @@ proto.codegen.GetMappingRequest.prototype.setPulumiProvider = function(value) {
|
|
|
219
255
|
};
|
|
220
256
|
|
|
221
257
|
|
|
258
|
+
/**
|
|
259
|
+
* optional MapperParameterizationHint parameterization_hint = 3;
|
|
260
|
+
* @return {?proto.codegen.MapperParameterizationHint}
|
|
261
|
+
*/
|
|
262
|
+
proto.codegen.GetMappingRequest.prototype.getParameterizationHint = function() {
|
|
263
|
+
return /** @type{?proto.codegen.MapperParameterizationHint} */ (
|
|
264
|
+
jspb.Message.getWrapperField(this, proto.codegen.MapperParameterizationHint, 3));
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @param {?proto.codegen.MapperParameterizationHint|undefined} value
|
|
270
|
+
* @return {!proto.codegen.GetMappingRequest} returns this
|
|
271
|
+
*/
|
|
272
|
+
proto.codegen.GetMappingRequest.prototype.setParameterizationHint = function(value) {
|
|
273
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Clears the message field making it undefined.
|
|
279
|
+
* @return {!proto.codegen.GetMappingRequest} returns this
|
|
280
|
+
*/
|
|
281
|
+
proto.codegen.GetMappingRequest.prototype.clearParameterizationHint = function() {
|
|
282
|
+
return this.setParameterizationHint(undefined);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Returns whether this field is set.
|
|
288
|
+
* @return {boolean}
|
|
289
|
+
*/
|
|
290
|
+
proto.codegen.GetMappingRequest.prototype.hasParameterizationHint = function() {
|
|
291
|
+
return jspb.Message.getField(this, 3) != null;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
299
|
+
/**
|
|
300
|
+
* Creates an object representation of this proto.
|
|
301
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
302
|
+
* Optional fields that are not set will be set to undefined.
|
|
303
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
304
|
+
* For the list of reserved names please see:
|
|
305
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
306
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
307
|
+
* JSPB instance for transitional soy proto support:
|
|
308
|
+
* http://goto/soy-param-migration
|
|
309
|
+
* @return {!Object}
|
|
310
|
+
*/
|
|
311
|
+
proto.codegen.MapperParameterizationHint.prototype.toObject = function(opt_includeInstance) {
|
|
312
|
+
return proto.codegen.MapperParameterizationHint.toObject(opt_includeInstance, this);
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Static version of the {@see toObject} method.
|
|
318
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
319
|
+
* the JSPB instance for transitional soy proto support:
|
|
320
|
+
* http://goto/soy-param-migration
|
|
321
|
+
* @param {!proto.codegen.MapperParameterizationHint} msg The msg instance to transform.
|
|
322
|
+
* @return {!Object}
|
|
323
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
324
|
+
*/
|
|
325
|
+
proto.codegen.MapperParameterizationHint.toObject = function(includeInstance, msg) {
|
|
326
|
+
var f, obj = {
|
|
327
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
328
|
+
version: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
329
|
+
value: msg.getValue_asB64()
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
if (includeInstance) {
|
|
333
|
+
obj.$jspbMessageInstance = msg;
|
|
334
|
+
}
|
|
335
|
+
return obj;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Deserializes binary data (in protobuf wire format).
|
|
342
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
343
|
+
* @return {!proto.codegen.MapperParameterizationHint}
|
|
344
|
+
*/
|
|
345
|
+
proto.codegen.MapperParameterizationHint.deserializeBinary = function(bytes) {
|
|
346
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
347
|
+
var msg = new proto.codegen.MapperParameterizationHint;
|
|
348
|
+
return proto.codegen.MapperParameterizationHint.deserializeBinaryFromReader(msg, reader);
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
354
|
+
* given reader into the given message object.
|
|
355
|
+
* @param {!proto.codegen.MapperParameterizationHint} msg The message object to deserialize into.
|
|
356
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
357
|
+
* @return {!proto.codegen.MapperParameterizationHint}
|
|
358
|
+
*/
|
|
359
|
+
proto.codegen.MapperParameterizationHint.deserializeBinaryFromReader = function(msg, reader) {
|
|
360
|
+
while (reader.nextField()) {
|
|
361
|
+
if (reader.isEndGroup()) {
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
var field = reader.getFieldNumber();
|
|
365
|
+
switch (field) {
|
|
366
|
+
case 1:
|
|
367
|
+
var value = /** @type {string} */ (reader.readString());
|
|
368
|
+
msg.setName(value);
|
|
369
|
+
break;
|
|
370
|
+
case 2:
|
|
371
|
+
var value = /** @type {string} */ (reader.readString());
|
|
372
|
+
msg.setVersion(value);
|
|
373
|
+
break;
|
|
374
|
+
case 3:
|
|
375
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
376
|
+
msg.setValue(value);
|
|
377
|
+
break;
|
|
378
|
+
default:
|
|
379
|
+
reader.skipField();
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return msg;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
389
|
+
* @return {!Uint8Array}
|
|
390
|
+
*/
|
|
391
|
+
proto.codegen.MapperParameterizationHint.prototype.serializeBinary = function() {
|
|
392
|
+
var writer = new jspb.BinaryWriter();
|
|
393
|
+
proto.codegen.MapperParameterizationHint.serializeBinaryToWriter(this, writer);
|
|
394
|
+
return writer.getResultBuffer();
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
400
|
+
* format), writing to the given BinaryWriter.
|
|
401
|
+
* @param {!proto.codegen.MapperParameterizationHint} message
|
|
402
|
+
* @param {!jspb.BinaryWriter} writer
|
|
403
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
404
|
+
*/
|
|
405
|
+
proto.codegen.MapperParameterizationHint.serializeBinaryToWriter = function(message, writer) {
|
|
406
|
+
var f = undefined;
|
|
407
|
+
f = message.getName();
|
|
408
|
+
if (f.length > 0) {
|
|
409
|
+
writer.writeString(
|
|
410
|
+
1,
|
|
411
|
+
f
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
f = message.getVersion();
|
|
415
|
+
if (f.length > 0) {
|
|
416
|
+
writer.writeString(
|
|
417
|
+
2,
|
|
418
|
+
f
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
f = message.getValue_asU8();
|
|
422
|
+
if (f.length > 0) {
|
|
423
|
+
writer.writeBytes(
|
|
424
|
+
3,
|
|
425
|
+
f
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* optional string name = 1;
|
|
433
|
+
* @return {string}
|
|
434
|
+
*/
|
|
435
|
+
proto.codegen.MapperParameterizationHint.prototype.getName = function() {
|
|
436
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @param {string} value
|
|
442
|
+
* @return {!proto.codegen.MapperParameterizationHint} returns this
|
|
443
|
+
*/
|
|
444
|
+
proto.codegen.MapperParameterizationHint.prototype.setName = function(value) {
|
|
445
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* optional string version = 2;
|
|
451
|
+
* @return {string}
|
|
452
|
+
*/
|
|
453
|
+
proto.codegen.MapperParameterizationHint.prototype.getVersion = function() {
|
|
454
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @param {string} value
|
|
460
|
+
* @return {!proto.codegen.MapperParameterizationHint} returns this
|
|
461
|
+
*/
|
|
462
|
+
proto.codegen.MapperParameterizationHint.prototype.setVersion = function(value) {
|
|
463
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* optional bytes value = 3;
|
|
469
|
+
* @return {!(string|Uint8Array)}
|
|
470
|
+
*/
|
|
471
|
+
proto.codegen.MapperParameterizationHint.prototype.getValue = function() {
|
|
472
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* optional bytes value = 3;
|
|
478
|
+
* This is a type-conversion wrapper around `getValue()`
|
|
479
|
+
* @return {string}
|
|
480
|
+
*/
|
|
481
|
+
proto.codegen.MapperParameterizationHint.prototype.getValue_asB64 = function() {
|
|
482
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
483
|
+
this.getValue()));
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* optional bytes value = 3;
|
|
489
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
490
|
+
* @see http://caniuse.com/Uint8Array
|
|
491
|
+
* This is a type-conversion wrapper around `getValue()`
|
|
492
|
+
* @return {!Uint8Array}
|
|
493
|
+
*/
|
|
494
|
+
proto.codegen.MapperParameterizationHint.prototype.getValue_asU8 = function() {
|
|
495
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
496
|
+
this.getValue()));
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @param {!(string|Uint8Array)} value
|
|
502
|
+
* @return {!proto.codegen.MapperParameterizationHint} returns this
|
|
503
|
+
*/
|
|
504
|
+
proto.codegen.MapperParameterizationHint.prototype.setValue = function(value) {
|
|
505
|
+
return jspb.Message.setProto3BytesField(this, 3, value);
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
|
|
222
509
|
|
|
223
510
|
|
|
224
511
|
|
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.151.0-alpha.
|
|
16
|
+
exports.version = "3.151.0-alpha.x996afa5";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|