@pulumi/pulumi 3.254.0 → 3.256.0-alpha.xecb6743

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.
@@ -35,7 +35,7 @@ export interface PulumiCancelOptions extends BaseOptions {
35
35
  logtostderr?: boolean;
36
36
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
37
37
  memprofilerate?: number;
38
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
38
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
39
39
  otelTraces?: string;
40
40
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
41
41
  profiling?: string;
@@ -62,7 +62,7 @@ export interface PulumiImportOptions extends BaseOptions {
62
62
  logtostderr?: boolean;
63
63
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
64
64
  memprofilerate?: number;
65
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
65
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
66
66
  otelTraces?: string;
67
67
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
68
68
  profiling?: string;
@@ -135,7 +135,7 @@ export interface PulumiNewOptions extends BaseOptions {
135
135
  logtostderr?: boolean;
136
136
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
137
137
  memprofilerate?: number;
138
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
138
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
139
139
  otelTraces?: string;
140
140
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
141
141
  profiling?: string;
@@ -192,7 +192,7 @@ export interface PulumiOrgOptions extends BaseOptions {
192
192
  logtostderr?: boolean;
193
193
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
194
194
  memprofilerate?: number;
195
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
195
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
196
196
  otelTraces?: string;
197
197
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
198
198
  profiling?: string;
@@ -217,7 +217,7 @@ export interface PulumiOrgGetDefaultOptions extends BaseOptions {
217
217
  logtostderr?: boolean;
218
218
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
219
219
  memprofilerate?: number;
220
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
220
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
221
221
  otelTraces?: string;
222
222
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
223
223
  profiling?: string;
@@ -242,7 +242,7 @@ export interface PulumiOrgSearchOptions extends BaseOptions {
242
242
  logtostderr?: boolean;
243
243
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
244
244
  memprofilerate?: number;
245
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
245
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
246
246
  otelTraces?: string;
247
247
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
248
248
  profiling?: string;
@@ -282,7 +282,7 @@ export interface PulumiOrgSearchAiOptions extends BaseOptions {
282
282
  logtostderr?: boolean;
283
283
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
284
284
  memprofilerate?: number;
285
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
285
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
286
286
  otelTraces?: string;
287
287
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
288
288
  profiling?: string;
@@ -317,7 +317,7 @@ export interface PulumiOrgSetDefaultOptions extends BaseOptions {
317
317
  logtostderr?: boolean;
318
318
  /** Enable more precise (and expensive) memory allocation profiles by setting runtime.MemProfileRate */
319
319
  memprofilerate?: number;
320
- /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// for remote collectors */
320
+ /** Export OpenTelemetry traces to the specified endpoint. Use file:// for local JSON files, grpc:// or https:// for remote collectors */
321
321
  otelTraces?: string;
322
322
  /** Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively */
323
323
  profiling?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pulumi",
3
- "version": "3.254.0",
3
+ "version": "3.256.0-alpha.xecb6743",
4
4
  "description": "Pulumi's Node.js SDK",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as grpc from "@grpc/grpc-js";
8
8
  import * as pulumi_converter_pb from "./converter_pb";
9
+ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
9
10
  import * as pulumi_codegen_hcl_pb from "./codegen/hcl_pb";
10
11
  import * as pulumi_codegen_loader_pb from "./codegen/loader_pb";
11
12
 
@@ -18,6 +18,7 @@
18
18
  'use strict';
19
19
  var grpc = require('@grpc/grpc-js');
20
20
  var pulumi_converter_pb = require('./converter_pb.js');
21
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
21
22
  var pulumi_codegen_hcl_pb = require('./codegen/hcl_pb.js');
22
23
  var pulumi_codegen_loader_pb = require('./codegen/loader_pb.js');
23
24
 
@@ -5,6 +5,7 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
+ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
8
9
  import * as pulumi_codegen_hcl_pb from "./codegen/hcl_pb";
9
10
  import * as pulumi_codegen_loader_pb from "./codegen/loader_pb";
10
11
 
@@ -72,6 +73,16 @@ export class ResourceImport extends jspb.Message {
72
73
  getProvider(): string;
73
74
  setProvider(value: string): ResourceImport;
74
75
 
76
+ hasInputs(): boolean;
77
+ clearInputs(): void;
78
+ getInputs(): google_protobuf_struct_pb.Struct | undefined;
79
+ setInputs(value?: google_protobuf_struct_pb.Struct): ResourceImport;
80
+
81
+ hasOutputs(): boolean;
82
+ clearOutputs(): void;
83
+ getOutputs(): google_protobuf_struct_pb.Struct | undefined;
84
+ setOutputs(value?: google_protobuf_struct_pb.Struct): ResourceImport;
85
+
75
86
  serializeBinary(): Uint8Array;
76
87
  toObject(includeInstance?: boolean): ResourceImport.AsObject;
77
88
  static toObject(includeInstance: boolean, msg: ResourceImport): ResourceImport.AsObject;
@@ -97,6 +108,8 @@ export namespace ResourceImport {
97
108
  parent: string,
98
109
  propertiesList: Array<string>,
99
110
  provider: string,
111
+ inputs?: google_protobuf_struct_pb.Struct.AsObject,
112
+ outputs?: google_protobuf_struct_pb.Struct.AsObject,
100
113
  }
101
114
  }
102
115
 
@@ -262,6 +275,9 @@ export class ConvertSnippetRequest extends jspb.Message {
262
275
  getAttributesMap(): jspb.Map<string, string>;
263
276
  clearAttributesMap(): void;
264
277
 
278
+ getResourcesMap(): jspb.Map<string, ConvertSnippetRequest.ResourceReference>;
279
+ clearResourcesMap(): void;
280
+
265
281
  serializeBinary(): Uint8Array;
266
282
  toObject(includeInstance?: boolean): ConvertSnippetRequest.AsObject;
267
283
  static toObject(includeInstance: boolean, msg: ConvertSnippetRequest): ConvertSnippetRequest.AsObject;
@@ -281,7 +297,37 @@ export namespace ConvertSnippetRequest {
281
297
  token: string,
282
298
 
283
299
  attributesMap: Array<[string, string]>,
300
+
301
+ resourcesMap: Array<[string, ConvertSnippetRequest.ResourceReference.AsObject]>,
302
+ }
303
+
304
+
305
+ export class ResourceReference extends jspb.Message {
306
+ getToken(): string;
307
+ setToken(value: string): ResourceReference;
308
+
309
+ hasPackage(): boolean;
310
+ clearPackage(): void;
311
+ getPackage(): pulumi_codegen_loader_pb.GetSchemaRequest | undefined;
312
+ setPackage(value?: pulumi_codegen_loader_pb.GetSchemaRequest): ResourceReference;
313
+
314
+ serializeBinary(): Uint8Array;
315
+ toObject(includeInstance?: boolean): ResourceReference.AsObject;
316
+ static toObject(includeInstance: boolean, msg: ResourceReference): ResourceReference.AsObject;
317
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
318
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
319
+ static serializeBinaryToWriter(message: ResourceReference, writer: jspb.BinaryWriter): void;
320
+ static deserializeBinary(bytes: Uint8Array): ResourceReference;
321
+ static deserializeBinaryFromReader(message: ResourceReference, reader: jspb.BinaryReader): ResourceReference;
322
+ }
323
+
324
+ export namespace ResourceReference {
325
+ export type AsObject = {
326
+ token: string,
327
+ pb_package?: pulumi_codegen_loader_pb.GetSchemaRequest.AsObject,
328
+ }
284
329
  }
330
+
285
331
  }
286
332
 
287
333
  export class ConvertSnippetResponse extends jspb.Message {
@@ -299,6 +345,9 @@ export class ConvertSnippetResponse extends jspb.Message {
299
345
  getAttributesMap(): jspb.Map<string, string>;
300
346
  clearAttributesMap(): void;
301
347
 
348
+ getResourceNamesMap(): jspb.Map<string, string>;
349
+ clearResourceNamesMap(): void;
350
+
302
351
  serializeBinary(): Uint8Array;
303
352
  toObject(includeInstance?: boolean): ConvertSnippetResponse.AsObject;
304
353
  static toObject(includeInstance: boolean, msg: ConvertSnippetResponse): ConvertSnippetResponse.AsObject;
@@ -316,5 +365,7 @@ export namespace ConvertSnippetResponse {
316
365
  source: Uint8Array | string,
317
366
 
318
367
  attributesMap: Array<[string, string]>,
368
+
369
+ resourceNamesMap: Array<[string, string]>,
319
370
  }
320
371
  }
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
17
17
 
18
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
19
+ goog.object.extend(proto, google_protobuf_struct_pb);
18
20
  var pulumi_codegen_hcl_pb = require('./codegen/hcl_pb.js');
19
21
  goog.object.extend(proto, pulumi_codegen_hcl_pb);
20
22
  var pulumi_codegen_loader_pb = require('./codegen/loader_pb.js');
@@ -22,6 +24,7 @@ goog.object.extend(proto, pulumi_codegen_loader_pb);
22
24
  goog.exportSymbol('proto.pulumirpc.ConvertProgramRequest', null, global);
23
25
  goog.exportSymbol('proto.pulumirpc.ConvertProgramResponse', null, global);
24
26
  goog.exportSymbol('proto.pulumirpc.ConvertSnippetRequest', null, global);
27
+ goog.exportSymbol('proto.pulumirpc.ConvertSnippetRequest.ResourceReference', null, global);
25
28
  goog.exportSymbol('proto.pulumirpc.ConvertSnippetResponse', null, global);
26
29
  goog.exportSymbol('proto.pulumirpc.ConvertStateRequest', null, global);
27
30
  goog.exportSymbol('proto.pulumirpc.ConvertStateResponse', null, global);
@@ -196,6 +199,27 @@ if (goog.DEBUG && !COMPILED) {
196
199
  */
197
200
  proto.pulumirpc.ConvertSnippetRequest.displayName = 'proto.pulumirpc.ConvertSnippetRequest';
198
201
  }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ };
215
+ goog.inherits(proto.pulumirpc.ConvertSnippetRequest.ResourceReference, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.displayName = 'proto.pulumirpc.ConvertSnippetRequest.ResourceReference';
222
+ }
199
223
  /**
200
224
  * Generated by JsPbCodeGenerator.
201
225
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -484,7 +508,9 @@ parameterization: (f = msg.getParameterization()) && proto.pulumirpc.ResourcePar
484
508
  extension: (f = msg.getExtension$()) && proto.pulumirpc.ResourceExtension.toObject(includeInstance, f),
485
509
  parent: jspb.Message.getFieldWithDefault(msg, 11, ""),
486
510
  propertiesList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
487
- provider: jspb.Message.getFieldWithDefault(msg, 13, "")
511
+ provider: jspb.Message.getFieldWithDefault(msg, 13, ""),
512
+ inputs: (f = msg.getInputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
513
+ outputs: (f = msg.getOutputs()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
488
514
  };
489
515
 
490
516
  if (includeInstance) {
@@ -575,6 +601,16 @@ proto.pulumirpc.ResourceImport.deserializeBinaryFromReader = function(msg, reade
575
601
  var value = /** @type {string} */ (reader.readString());
576
602
  msg.setProvider(value);
577
603
  break;
604
+ case 14:
605
+ var value = new google_protobuf_struct_pb.Struct;
606
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
607
+ msg.setInputs(value);
608
+ break;
609
+ case 15:
610
+ var value = new google_protobuf_struct_pb.Struct;
611
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
612
+ msg.setOutputs(value);
613
+ break;
578
614
  default:
579
615
  reader.skipField();
580
616
  break;
@@ -697,6 +733,22 @@ proto.pulumirpc.ResourceImport.serializeBinaryToWriter = function(message, write
697
733
  f
698
734
  );
699
735
  }
736
+ f = message.getInputs();
737
+ if (f != null) {
738
+ writer.writeMessage(
739
+ 14,
740
+ f,
741
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
742
+ );
743
+ }
744
+ f = message.getOutputs();
745
+ if (f != null) {
746
+ writer.writeMessage(
747
+ 15,
748
+ f,
749
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
750
+ );
751
+ }
700
752
  };
701
753
 
702
754
 
@@ -991,6 +1043,80 @@ proto.pulumirpc.ResourceImport.prototype.setProvider = function(value) {
991
1043
  };
992
1044
 
993
1045
 
1046
+ /**
1047
+ * optional google.protobuf.Struct inputs = 14;
1048
+ * @return {?proto.google.protobuf.Struct}
1049
+ */
1050
+ proto.pulumirpc.ResourceImport.prototype.getInputs = function() {
1051
+ return /** @type{?proto.google.protobuf.Struct} */ (
1052
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 14));
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * @param {?proto.google.protobuf.Struct|undefined} value
1058
+ * @return {!proto.pulumirpc.ResourceImport} returns this
1059
+ */
1060
+ proto.pulumirpc.ResourceImport.prototype.setInputs = function(value) {
1061
+ return jspb.Message.setWrapperField(this, 14, value);
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * Clears the message field making it undefined.
1067
+ * @return {!proto.pulumirpc.ResourceImport} returns this
1068
+ */
1069
+ proto.pulumirpc.ResourceImport.prototype.clearInputs = function() {
1070
+ return this.setInputs(undefined);
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * Returns whether this field is set.
1076
+ * @return {boolean}
1077
+ */
1078
+ proto.pulumirpc.ResourceImport.prototype.hasInputs = function() {
1079
+ return jspb.Message.getField(this, 14) != null;
1080
+ };
1081
+
1082
+
1083
+ /**
1084
+ * optional google.protobuf.Struct outputs = 15;
1085
+ * @return {?proto.google.protobuf.Struct}
1086
+ */
1087
+ proto.pulumirpc.ResourceImport.prototype.getOutputs = function() {
1088
+ return /** @type{?proto.google.protobuf.Struct} */ (
1089
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 15));
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * @param {?proto.google.protobuf.Struct|undefined} value
1095
+ * @return {!proto.pulumirpc.ResourceImport} returns this
1096
+ */
1097
+ proto.pulumirpc.ResourceImport.prototype.setOutputs = function(value) {
1098
+ return jspb.Message.setWrapperField(this, 15, value);
1099
+ };
1100
+
1101
+
1102
+ /**
1103
+ * Clears the message field making it undefined.
1104
+ * @return {!proto.pulumirpc.ResourceImport} returns this
1105
+ */
1106
+ proto.pulumirpc.ResourceImport.prototype.clearOutputs = function() {
1107
+ return this.setOutputs(undefined);
1108
+ };
1109
+
1110
+
1111
+ /**
1112
+ * Returns whether this field is set.
1113
+ * @return {boolean}
1114
+ */
1115
+ proto.pulumirpc.ResourceImport.prototype.hasOutputs = function() {
1116
+ return jspb.Message.getField(this, 15) != null;
1117
+ };
1118
+
1119
+
994
1120
 
995
1121
 
996
1122
 
@@ -2135,7 +2261,8 @@ source: msg.getSource_asB64(),
2135
2261
  targetLoader: jspb.Message.getFieldWithDefault(msg, 3, ""),
2136
2262
  pb_package: (f = msg.getPackage()) && pulumi_codegen_loader_pb.GetSchemaRequest.toObject(includeInstance, f),
2137
2263
  token: jspb.Message.getFieldWithDefault(msg, 5, ""),
2138
- attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
2264
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
2265
+ resourcesMap: (f = msg.getResourcesMap()) ? f.toObject(includeInstance, proto.pulumirpc.ConvertSnippetRequest.ResourceReference.toObject) : []
2139
2266
  };
2140
2267
 
2141
2268
  if (includeInstance) {
@@ -2199,6 +2326,12 @@ proto.pulumirpc.ConvertSnippetRequest.deserializeBinaryFromReader = function(msg
2199
2326
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2200
2327
  });
2201
2328
  break;
2329
+ case 7:
2330
+ var value = msg.getResourcesMap();
2331
+ reader.readMessage(value, function(message, reader) {
2332
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.ConvertSnippetRequest.ResourceReference.deserializeBinaryFromReader, "", new proto.pulumirpc.ConvertSnippetRequest.ResourceReference());
2333
+ });
2334
+ break;
2202
2335
  default:
2203
2336
  reader.skipField();
2204
2337
  break;
@@ -2268,6 +2401,191 @@ proto.pulumirpc.ConvertSnippetRequest.serializeBinaryToWriter = function(message
2268
2401
  if (f && f.getLength() > 0) {
2269
2402
  f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2270
2403
  }
2404
+ f = message.getResourcesMap(true);
2405
+ if (f && f.getLength() > 0) {
2406
+ f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.ConvertSnippetRequest.ResourceReference.serializeBinaryToWriter);
2407
+ }
2408
+ };
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2415
+ /**
2416
+ * Creates an object representation of this proto.
2417
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2418
+ * Optional fields that are not set will be set to undefined.
2419
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2420
+ * For the list of reserved names please see:
2421
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2422
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2423
+ * JSPB instance for transitional soy proto support:
2424
+ * http://goto/soy-param-migration
2425
+ * @return {!Object}
2426
+ */
2427
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.toObject = function(opt_includeInstance) {
2428
+ return proto.pulumirpc.ConvertSnippetRequest.ResourceReference.toObject(opt_includeInstance, this);
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * Static version of the {@see toObject} method.
2434
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2435
+ * the JSPB instance for transitional soy proto support:
2436
+ * http://goto/soy-param-migration
2437
+ * @param {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference} msg The msg instance to transform.
2438
+ * @return {!Object}
2439
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2440
+ */
2441
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.toObject = function(includeInstance, msg) {
2442
+ var f, obj = {
2443
+ token: jspb.Message.getFieldWithDefault(msg, 1, ""),
2444
+ pb_package: (f = msg.getPackage()) && pulumi_codegen_loader_pb.GetSchemaRequest.toObject(includeInstance, f)
2445
+ };
2446
+
2447
+ if (includeInstance) {
2448
+ obj.$jspbMessageInstance = msg;
2449
+ }
2450
+ return obj;
2451
+ };
2452
+ }
2453
+
2454
+
2455
+ /**
2456
+ * Deserializes binary data (in protobuf wire format).
2457
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2458
+ * @return {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference}
2459
+ */
2460
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.deserializeBinary = function(bytes) {
2461
+ var reader = new jspb.BinaryReader(bytes);
2462
+ var msg = new proto.pulumirpc.ConvertSnippetRequest.ResourceReference;
2463
+ return proto.pulumirpc.ConvertSnippetRequest.ResourceReference.deserializeBinaryFromReader(msg, reader);
2464
+ };
2465
+
2466
+
2467
+ /**
2468
+ * Deserializes binary data (in protobuf wire format) from the
2469
+ * given reader into the given message object.
2470
+ * @param {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference} msg The message object to deserialize into.
2471
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2472
+ * @return {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference}
2473
+ */
2474
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.deserializeBinaryFromReader = function(msg, reader) {
2475
+ while (reader.nextField()) {
2476
+ if (reader.isEndGroup()) {
2477
+ break;
2478
+ }
2479
+ var field = reader.getFieldNumber();
2480
+ switch (field) {
2481
+ case 1:
2482
+ var value = /** @type {string} */ (reader.readString());
2483
+ msg.setToken(value);
2484
+ break;
2485
+ case 2:
2486
+ var value = new pulumi_codegen_loader_pb.GetSchemaRequest;
2487
+ reader.readMessage(value,pulumi_codegen_loader_pb.GetSchemaRequest.deserializeBinaryFromReader);
2488
+ msg.setPackage(value);
2489
+ break;
2490
+ default:
2491
+ reader.skipField();
2492
+ break;
2493
+ }
2494
+ }
2495
+ return msg;
2496
+ };
2497
+
2498
+
2499
+ /**
2500
+ * Serializes the message to binary data (in protobuf wire format).
2501
+ * @return {!Uint8Array}
2502
+ */
2503
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.serializeBinary = function() {
2504
+ var writer = new jspb.BinaryWriter();
2505
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.serializeBinaryToWriter(this, writer);
2506
+ return writer.getResultBuffer();
2507
+ };
2508
+
2509
+
2510
+ /**
2511
+ * Serializes the given message to binary data (in protobuf wire
2512
+ * format), writing to the given BinaryWriter.
2513
+ * @param {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference} message
2514
+ * @param {!jspb.BinaryWriter} writer
2515
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2516
+ */
2517
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.serializeBinaryToWriter = function(message, writer) {
2518
+ var f = undefined;
2519
+ f = message.getToken();
2520
+ if (f.length > 0) {
2521
+ writer.writeString(
2522
+ 1,
2523
+ f
2524
+ );
2525
+ }
2526
+ f = message.getPackage();
2527
+ if (f != null) {
2528
+ writer.writeMessage(
2529
+ 2,
2530
+ f,
2531
+ pulumi_codegen_loader_pb.GetSchemaRequest.serializeBinaryToWriter
2532
+ );
2533
+ }
2534
+ };
2535
+
2536
+
2537
+ /**
2538
+ * optional string token = 1;
2539
+ * @return {string}
2540
+ */
2541
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.getToken = function() {
2542
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2543
+ };
2544
+
2545
+
2546
+ /**
2547
+ * @param {string} value
2548
+ * @return {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference} returns this
2549
+ */
2550
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.setToken = function(value) {
2551
+ return jspb.Message.setProto3StringField(this, 1, value);
2552
+ };
2553
+
2554
+
2555
+ /**
2556
+ * optional codegen.GetSchemaRequest package = 2;
2557
+ * @return {?proto.codegen.GetSchemaRequest}
2558
+ */
2559
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.getPackage = function() {
2560
+ return /** @type{?proto.codegen.GetSchemaRequest} */ (
2561
+ jspb.Message.getWrapperField(this, pulumi_codegen_loader_pb.GetSchemaRequest, 2));
2562
+ };
2563
+
2564
+
2565
+ /**
2566
+ * @param {?proto.codegen.GetSchemaRequest|undefined} value
2567
+ * @return {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference} returns this
2568
+ */
2569
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.setPackage = function(value) {
2570
+ return jspb.Message.setWrapperField(this, 2, value);
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * Clears the message field making it undefined.
2576
+ * @return {!proto.pulumirpc.ConvertSnippetRequest.ResourceReference} returns this
2577
+ */
2578
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.clearPackage = function() {
2579
+ return this.setPackage(undefined);
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * Returns whether this field is set.
2585
+ * @return {boolean}
2586
+ */
2587
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference.prototype.hasPackage = function() {
2588
+ return jspb.Message.getField(this, 2) != null;
2271
2589
  };
2272
2590
 
2273
2591
 
@@ -2427,6 +2745,29 @@ proto.pulumirpc.ConvertSnippetRequest.prototype.clearAttributesMap = function()
2427
2745
  };
2428
2746
 
2429
2747
 
2748
+ /**
2749
+ * map<string, ResourceReference> resources = 7;
2750
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
2751
+ * empty, instead returning `undefined`
2752
+ * @return {!jspb.Map<string,!proto.pulumirpc.ConvertSnippetRequest.ResourceReference>}
2753
+ */
2754
+ proto.pulumirpc.ConvertSnippetRequest.prototype.getResourcesMap = function(opt_noLazyCreate) {
2755
+ return /** @type {!jspb.Map<string,!proto.pulumirpc.ConvertSnippetRequest.ResourceReference>} */ (
2756
+ jspb.Message.getMapField(this, 7, opt_noLazyCreate,
2757
+ proto.pulumirpc.ConvertSnippetRequest.ResourceReference));
2758
+ };
2759
+
2760
+
2761
+ /**
2762
+ * Clears values from the map. The map will be non-null.
2763
+ * @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
2764
+ */
2765
+ proto.pulumirpc.ConvertSnippetRequest.prototype.clearResourcesMap = function() {
2766
+ this.getResourcesMap().clear();
2767
+ return this;
2768
+ };
2769
+
2770
+
2430
2771
 
2431
2772
  /**
2432
2773
  * List of repeated fields within this message type.
@@ -2470,7 +2811,8 @@ diagnosticsList: jspb.Message.toObjectList(msg.getDiagnosticsList(),
2470
2811
  pulumi_codegen_hcl_pb.Diagnostic.toObject, includeInstance),
2471
2812
  filename: jspb.Message.getFieldWithDefault(msg, 2, ""),
2472
2813
  source: msg.getSource_asB64(),
2473
- attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : []
2814
+ attributesMap: (f = msg.getAttributesMap()) ? f.toObject(includeInstance, undefined) : [],
2815
+ resourceNamesMap: (f = msg.getResourceNamesMap()) ? f.toObject(includeInstance, undefined) : []
2474
2816
  };
2475
2817
 
2476
2818
  if (includeInstance) {
@@ -2526,6 +2868,12 @@ proto.pulumirpc.ConvertSnippetResponse.deserializeBinaryFromReader = function(ms
2526
2868
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2527
2869
  });
2528
2870
  break;
2871
+ case 5:
2872
+ var value = msg.getResourceNamesMap();
2873
+ reader.readMessage(value, function(message, reader) {
2874
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2875
+ });
2876
+ break;
2529
2877
  default:
2530
2878
  reader.skipField();
2531
2879
  break;
@@ -2581,6 +2929,10 @@ proto.pulumirpc.ConvertSnippetResponse.serializeBinaryToWriter = function(messag
2581
2929
  if (f && f.getLength() > 0) {
2582
2930
  f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2583
2931
  }
2932
+ f = message.getResourceNamesMap(true);
2933
+ if (f && f.getLength() > 0) {
2934
+ f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2935
+ }
2584
2936
  };
2585
2937
 
2586
2938
 
@@ -2705,4 +3057,27 @@ proto.pulumirpc.ConvertSnippetResponse.prototype.clearAttributesMap = function()
2705
3057
  };
2706
3058
 
2707
3059
 
3060
+ /**
3061
+ * map<string, string> resource_names = 5;
3062
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
3063
+ * empty, instead returning `undefined`
3064
+ * @return {!jspb.Map<string,string>}
3065
+ */
3066
+ proto.pulumirpc.ConvertSnippetResponse.prototype.getResourceNamesMap = function(opt_noLazyCreate) {
3067
+ return /** @type {!jspb.Map<string,string>} */ (
3068
+ jspb.Message.getMapField(this, 5, opt_noLazyCreate,
3069
+ null));
3070
+ };
3071
+
3072
+
3073
+ /**
3074
+ * Clears values from the map. The map will be non-null.
3075
+ * @return {!proto.pulumirpc.ConvertSnippetResponse} returns this
3076
+ */
3077
+ proto.pulumirpc.ConvertSnippetResponse.prototype.clearResourceNamesMap = function() {
3078
+ this.getResourceNamesMap().clear();
3079
+ return this;
3080
+ };
3081
+
3082
+
2708
3083
  goog.object.extend(exports, proto.pulumirpc);