@pulumi/pulumi 3.153.1 → 3.153.2-alpha.x0a7598b
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/cmd/run/tracing.js +7 -3
- package/cmd/run/tracing.js.map +1 -1
- package/package.json +4 -3
- package/proto/provider_grpc_pb.js +27 -3
- package/proto/testing/language_pb.d.ts +27 -0
- package/proto/testing/language_pb.js +212 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/cmd/run/tracing.js
CHANGED
|
@@ -23,7 +23,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
const packageJson = __importStar(require("../../package.json"));
|
|
24
24
|
const opentelemetry = __importStar(require("@opentelemetry/api"));
|
|
25
25
|
const resources_1 = require("@opentelemetry/resources");
|
|
26
|
-
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
|
|
27
26
|
const sdk_trace_base_1 = require("@opentelemetry/sdk-trace-base");
|
|
28
27
|
const exporter_zipkin_1 = require("@opentelemetry/exporter-zipkin");
|
|
29
28
|
const instrumentation_grpc_1 = require("@opentelemetry/instrumentation-grpc");
|
|
@@ -35,6 +34,11 @@ let rootSpan;
|
|
|
35
34
|
// serviceName is the name of this service in the Pulumi
|
|
36
35
|
// distributed system, and the name of the tracer we're using.
|
|
37
36
|
const serviceName = "nodejs-runtime";
|
|
37
|
+
// These are constants defined by the OpenTelemetry project. We used to import
|
|
38
|
+
// @opentelemetry/semantic-conventions, but the package caused a big amount of flakes.
|
|
39
|
+
// See also: https://github.com/pulumi/pulumi/issues/17823
|
|
40
|
+
const ATTR_SERVICE_NAME = "service.name";
|
|
41
|
+
const ATTR_SERVICE_VERSION = "service.version";
|
|
38
42
|
// If the URL provided matches the default generated by the engine,
|
|
39
43
|
// we must transform it to be compatible with the OpenTelemetry Zipkin
|
|
40
44
|
// library.
|
|
@@ -61,8 +65,8 @@ function start(destinationUrl) {
|
|
|
61
65
|
});
|
|
62
66
|
// Tag traces from this program with metadata about their source.
|
|
63
67
|
const resource = resources_1.Resource.default().merge(new resources_1.Resource({
|
|
64
|
-
[
|
|
65
|
-
[
|
|
68
|
+
[ATTR_SERVICE_NAME]: serviceName,
|
|
69
|
+
[ATTR_SERVICE_VERSION]: packageJson.version,
|
|
66
70
|
}));
|
|
67
71
|
/**
|
|
68
72
|
* Taken from OpenTelemetry Examples (Apache 2 License):
|
package/cmd/run/tracing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../cmd/run/tracing.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,YAAY,CAAC;;;;;;;;;AAEb,gEAAkD;AAClD,kEAAoD;AACpD,wDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../cmd/run/tracing.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/pulumi",
|
|
3
|
-
"version": "3.153.
|
|
3
|
+
"version": "3.153.2-alpha.x0a7598b",
|
|
4
4
|
"description": "Pulumi's Node.js SDK",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"@opentelemetry/resources": "^1.28",
|
|
20
20
|
"@opentelemetry/sdk-trace-base": "^1.28",
|
|
21
21
|
"@opentelemetry/sdk-trace-node": "^1.28",
|
|
22
|
-
"@opentelemetry/semantic-conventions": "^1.28",
|
|
23
22
|
"@pulumi/query": "^0.3.0",
|
|
24
23
|
"@types/google-protobuf": "^3.15.5",
|
|
25
24
|
"@types/semver": "^7.5.6",
|
|
@@ -62,6 +61,7 @@
|
|
|
62
61
|
"nyc": "^15.1.0",
|
|
63
62
|
"sinon": "^14.0.0",
|
|
64
63
|
"ts-node": "^7.0.1",
|
|
64
|
+
"tsx": "^4.19.3",
|
|
65
65
|
"typescript": "~3.8.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
"node": ">=18"
|
|
85
85
|
},
|
|
86
86
|
"mocha": {
|
|
87
|
-
"require": ["
|
|
87
|
+
"require": ["source-map-support/register"],
|
|
88
|
+
"node-option": ["import=tsx"]
|
|
88
89
|
},
|
|
89
90
|
"//": ["NOTE: @types/node is pinned due to grpc/grpc-node#2002"]
|
|
90
91
|
}
|
|
@@ -736,6 +736,22 @@ attach: {
|
|
|
736
736
|
},
|
|
737
737
|
// GetMapping fetches the mapping for this resource provider, if any. A provider should return an empty
|
|
738
738
|
// response (not an error) if it doesn't have a mapping for the given key.
|
|
739
|
+
//
|
|
740
|
+
// `GetMapping` returns mappings designed to aid in [converting programs and state from other
|
|
741
|
+
// ecosystems](converters). It accepts a "conversion key", which effectively corresponds to a source language, such
|
|
742
|
+
// as `terraform`, and a *source provider name*, which is the name of the provider *in the source language*. Given
|
|
743
|
+
// these, it returns source-specific mapping data for the provider requested. As an example, the Pulumi AWS
|
|
744
|
+
// provider, which is bridged from the Terraform AWS provider and thus capable of mapping names between the two,
|
|
745
|
+
// might respond to a call with key `terraform` and source provider name `aws` with mapping data for transforming
|
|
746
|
+
// (among other things) Terraform AWS names such as `aws_s3_bucket` into Pulumi AWS types such as
|
|
747
|
+
// `aws:s3/bucket:Bucket`. If a provider only supports a single source provider, or has some sensible default, it
|
|
748
|
+
// may respond also to a call in which the source provider name is empty (`""`), which will be made when the engine
|
|
749
|
+
// does not have sufficient knowledge to work out which provider offers a specific mapping.
|
|
750
|
+
//
|
|
751
|
+
// In general, it is expected that providers implemented by bridging an equivalent provider from another ecosystem
|
|
752
|
+
// (such as bridged Terraform providers built atop the `pulumi-terraform-bridge`, for instance) implement
|
|
753
|
+
// `GetMapping` to support conversion from that ecosystem into Pulumi using the same logic that underpins the
|
|
754
|
+
// bridging itself.
|
|
739
755
|
getMapping: {
|
|
740
756
|
path: '/pulumirpc.ResourceProvider/GetMapping',
|
|
741
757
|
requestStream: false,
|
|
@@ -747,9 +763,17 @@ getMapping: {
|
|
|
747
763
|
responseSerialize: serialize_pulumirpc_GetMappingResponse,
|
|
748
764
|
responseDeserialize: deserialize_pulumirpc_GetMappingResponse,
|
|
749
765
|
},
|
|
750
|
-
// GetMappings is an optional method
|
|
751
|
-
//
|
|
752
|
-
//
|
|
766
|
+
// `GetMappings` is an optional method designed to aid in [converting programs and state from other
|
|
767
|
+
// ecosystems](converters). `GetMappings` accepts a "conversion key". This corresponds to a source language, for
|
|
768
|
+
// which we want to retrieve mappings for names etc. from that source language into Pulumi. An example key might
|
|
769
|
+
// therefore be `terraform` in the event that we wish to map e.g. Terraform resource names to Pulumi resource types.
|
|
770
|
+
// Given a key, `GetMappings` returns a list of *source provider names* for which calls to `GetMapping` will return
|
|
771
|
+
// mappings. So, continuing the Terraform example, the Pulumi AWS provider, which is bridged from the Terraform AWS
|
|
772
|
+
// provider and thus capable of mapping names between the two, might return the list `["aws"]` in response to a call
|
|
773
|
+
// with key `terraform`.
|
|
774
|
+
//
|
|
775
|
+
// If a provider does not implement `GetMappings`, the engine will fall back to calling `GetMapping` blindly without
|
|
776
|
+
// a source provider name (that is, with the value `""`).
|
|
753
777
|
getMappings: {
|
|
754
778
|
path: '/pulumirpc.ResourceProvider/GetMappings',
|
|
755
779
|
requestStream: false,
|
|
@@ -65,6 +65,9 @@ export class PrepareLanguageTestsRequest extends jspb.Message {
|
|
|
65
65
|
getLanguageInfo(): string;
|
|
66
66
|
setLanguageInfo(value: string): PrepareLanguageTestsRequest;
|
|
67
67
|
|
|
68
|
+
getProgramOverridesMap(): jspb.Map<string, PrepareLanguageTestsRequest.ProgramOverride>;
|
|
69
|
+
clearProgramOverridesMap(): void;
|
|
70
|
+
|
|
68
71
|
serializeBinary(): Uint8Array;
|
|
69
72
|
toObject(includeInstance?: boolean): PrepareLanguageTestsRequest.AsObject;
|
|
70
73
|
static toObject(includeInstance: boolean, msg: PrepareLanguageTestsRequest): PrepareLanguageTestsRequest.AsObject;
|
|
@@ -85,6 +88,8 @@ export namespace PrepareLanguageTestsRequest {
|
|
|
85
88
|
coreSdkVersion: string,
|
|
86
89
|
snapshotEditsList: Array<PrepareLanguageTestsRequest.Replacement.AsObject>,
|
|
87
90
|
languageInfo: string,
|
|
91
|
+
|
|
92
|
+
programOverridesMap: Array<[string, PrepareLanguageTestsRequest.ProgramOverride.AsObject]>,
|
|
88
93
|
}
|
|
89
94
|
|
|
90
95
|
|
|
@@ -114,6 +119,28 @@ export namespace PrepareLanguageTestsRequest {
|
|
|
114
119
|
}
|
|
115
120
|
}
|
|
116
121
|
|
|
122
|
+
export class ProgramOverride extends jspb.Message {
|
|
123
|
+
clearPathsList(): void;
|
|
124
|
+
getPathsList(): Array<string>;
|
|
125
|
+
setPathsList(value: Array<string>): ProgramOverride;
|
|
126
|
+
addPaths(value: string, index?: number): string;
|
|
127
|
+
|
|
128
|
+
serializeBinary(): Uint8Array;
|
|
129
|
+
toObject(includeInstance?: boolean): ProgramOverride.AsObject;
|
|
130
|
+
static toObject(includeInstance: boolean, msg: ProgramOverride): ProgramOverride.AsObject;
|
|
131
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
132
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
133
|
+
static serializeBinaryToWriter(message: ProgramOverride, writer: jspb.BinaryWriter): void;
|
|
134
|
+
static deserializeBinary(bytes: Uint8Array): ProgramOverride;
|
|
135
|
+
static deserializeBinaryFromReader(message: ProgramOverride, reader: jspb.BinaryReader): ProgramOverride;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export namespace ProgramOverride {
|
|
139
|
+
export type AsObject = {
|
|
140
|
+
pathsList: Array<string>,
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
117
144
|
}
|
|
118
145
|
|
|
119
146
|
export class PrepareLanguageTestsResponse extends jspb.Message {
|
|
@@ -18,6 +18,7 @@ var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsRequest', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsResponse', null, global);
|
|
20
20
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride', null, global);
|
|
21
22
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement', null, global);
|
|
22
23
|
goog.exportSymbol('proto.pulumirpc.testing.PrepareLanguageTestsResponse', null, global);
|
|
23
24
|
goog.exportSymbol('proto.pulumirpc.testing.RunLanguageTestRequest', null, global);
|
|
@@ -106,6 +107,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
106
107
|
*/
|
|
107
108
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement';
|
|
108
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Generated by JsPbCodeGenerator.
|
|
112
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
113
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
114
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
115
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
116
|
+
* valid.
|
|
117
|
+
* @extends {jspb.Message}
|
|
118
|
+
* @constructor
|
|
119
|
+
*/
|
|
120
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride = function(opt_data) {
|
|
121
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.repeatedFields_, null);
|
|
122
|
+
};
|
|
123
|
+
goog.inherits(proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride, jspb.Message);
|
|
124
|
+
if (goog.DEBUG && !COMPILED) {
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @override
|
|
128
|
+
*/
|
|
129
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.displayName = 'proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride';
|
|
130
|
+
}
|
|
109
131
|
/**
|
|
110
132
|
* Generated by JsPbCodeGenerator.
|
|
111
133
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -473,7 +495,8 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.toObject = function(includeI
|
|
|
473
495
|
coreSdkVersion: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
474
496
|
snapshotEditsList: jspb.Message.toObjectList(msg.getSnapshotEditsList(),
|
|
475
497
|
proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.toObject, includeInstance),
|
|
476
|
-
languageInfo: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
498
|
+
languageInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
499
|
+
programOverridesMap: (f = msg.getProgramOverridesMap()) ? f.toObject(includeInstance, proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.toObject) : []
|
|
477
500
|
};
|
|
478
501
|
|
|
479
502
|
if (includeInstance) {
|
|
@@ -543,6 +566,12 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.deserializeBinaryFromReader
|
|
|
543
566
|
var value = /** @type {string} */ (reader.readString());
|
|
544
567
|
msg.setLanguageInfo(value);
|
|
545
568
|
break;
|
|
569
|
+
case 9:
|
|
570
|
+
var value = msg.getProgramOverridesMap();
|
|
571
|
+
reader.readMessage(value, function(message, reader) {
|
|
572
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.deserializeBinaryFromReader, "", new proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride());
|
|
573
|
+
});
|
|
574
|
+
break;
|
|
546
575
|
default:
|
|
547
576
|
reader.skipField();
|
|
548
577
|
break;
|
|
@@ -629,6 +658,10 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.serializeBinaryToWriter = fu
|
|
|
629
658
|
f
|
|
630
659
|
);
|
|
631
660
|
}
|
|
661
|
+
f = message.getProgramOverridesMap(true);
|
|
662
|
+
if (f && f.getLength() > 0) {
|
|
663
|
+
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.serializeBinaryToWriter);
|
|
664
|
+
}
|
|
632
665
|
};
|
|
633
666
|
|
|
634
667
|
|
|
@@ -822,6 +855,162 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.Replacement.prototype.setRep
|
|
|
822
855
|
};
|
|
823
856
|
|
|
824
857
|
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* List of repeated fields within this message type.
|
|
861
|
+
* @private {!Array<number>}
|
|
862
|
+
* @const
|
|
863
|
+
*/
|
|
864
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.repeatedFields_ = [1];
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
869
|
+
/**
|
|
870
|
+
* Creates an object representation of this proto.
|
|
871
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
872
|
+
* Optional fields that are not set will be set to undefined.
|
|
873
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
874
|
+
* For the list of reserved names please see:
|
|
875
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
876
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
877
|
+
* JSPB instance for transitional soy proto support:
|
|
878
|
+
* http://goto/soy-param-migration
|
|
879
|
+
* @return {!Object}
|
|
880
|
+
*/
|
|
881
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.prototype.toObject = function(opt_includeInstance) {
|
|
882
|
+
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.toObject(opt_includeInstance, this);
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Static version of the {@see toObject} method.
|
|
888
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
889
|
+
* the JSPB instance for transitional soy proto support:
|
|
890
|
+
* http://goto/soy-param-migration
|
|
891
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride} msg The msg instance to transform.
|
|
892
|
+
* @return {!Object}
|
|
893
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
894
|
+
*/
|
|
895
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.toObject = function(includeInstance, msg) {
|
|
896
|
+
var f, obj = {
|
|
897
|
+
pathsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
898
|
+
};
|
|
899
|
+
|
|
900
|
+
if (includeInstance) {
|
|
901
|
+
obj.$jspbMessageInstance = msg;
|
|
902
|
+
}
|
|
903
|
+
return obj;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Deserializes binary data (in protobuf wire format).
|
|
910
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
911
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride}
|
|
912
|
+
*/
|
|
913
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.deserializeBinary = function(bytes) {
|
|
914
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
915
|
+
var msg = new proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride;
|
|
916
|
+
return proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.deserializeBinaryFromReader(msg, reader);
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
922
|
+
* given reader into the given message object.
|
|
923
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride} msg The message object to deserialize into.
|
|
924
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
925
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride}
|
|
926
|
+
*/
|
|
927
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.deserializeBinaryFromReader = function(msg, reader) {
|
|
928
|
+
while (reader.nextField()) {
|
|
929
|
+
if (reader.isEndGroup()) {
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
var field = reader.getFieldNumber();
|
|
933
|
+
switch (field) {
|
|
934
|
+
case 1:
|
|
935
|
+
var value = /** @type {string} */ (reader.readString());
|
|
936
|
+
msg.addPaths(value);
|
|
937
|
+
break;
|
|
938
|
+
default:
|
|
939
|
+
reader.skipField();
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
return msg;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
949
|
+
* @return {!Uint8Array}
|
|
950
|
+
*/
|
|
951
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.prototype.serializeBinary = function() {
|
|
952
|
+
var writer = new jspb.BinaryWriter();
|
|
953
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.serializeBinaryToWriter(this, writer);
|
|
954
|
+
return writer.getResultBuffer();
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
960
|
+
* format), writing to the given BinaryWriter.
|
|
961
|
+
* @param {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride} message
|
|
962
|
+
* @param {!jspb.BinaryWriter} writer
|
|
963
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
964
|
+
*/
|
|
965
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.serializeBinaryToWriter = function(message, writer) {
|
|
966
|
+
var f = undefined;
|
|
967
|
+
f = message.getPathsList();
|
|
968
|
+
if (f.length > 0) {
|
|
969
|
+
writer.writeRepeatedString(
|
|
970
|
+
1,
|
|
971
|
+
f
|
|
972
|
+
);
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* repeated string paths = 1;
|
|
979
|
+
* @return {!Array<string>}
|
|
980
|
+
*/
|
|
981
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.prototype.getPathsList = function() {
|
|
982
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
983
|
+
};
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* @param {!Array<string>} value
|
|
988
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride} returns this
|
|
989
|
+
*/
|
|
990
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.prototype.setPathsList = function(value) {
|
|
991
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* @param {string} value
|
|
997
|
+
* @param {number=} opt_index
|
|
998
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride} returns this
|
|
999
|
+
*/
|
|
1000
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.prototype.addPaths = function(value, opt_index) {
|
|
1001
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Clears the list making it empty but non-null.
|
|
1007
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride} returns this
|
|
1008
|
+
*/
|
|
1009
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride.prototype.clearPathsList = function() {
|
|
1010
|
+
return this.setPathsList([]);
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
|
|
825
1014
|
/**
|
|
826
1015
|
* optional string language_plugin_name = 1;
|
|
827
1016
|
* @return {string}
|
|
@@ -986,6 +1175,28 @@ proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.setLanguageInfo =
|
|
|
986
1175
|
};
|
|
987
1176
|
|
|
988
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* map<string, ProgramOverride> program_overrides = 9;
|
|
1180
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
1181
|
+
* empty, instead returning `undefined`
|
|
1182
|
+
* @return {!jspb.Map<string,!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride>}
|
|
1183
|
+
*/
|
|
1184
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.getProgramOverridesMap = function(opt_noLazyCreate) {
|
|
1185
|
+
return /** @type {!jspb.Map<string,!proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride>} */ (
|
|
1186
|
+
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
|
|
1187
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.ProgramOverride));
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* Clears values from the map. The map will be non-null.
|
|
1193
|
+
* @return {!proto.pulumirpc.testing.PrepareLanguageTestsRequest} returns this
|
|
1194
|
+
*/
|
|
1195
|
+
proto.pulumirpc.testing.PrepareLanguageTestsRequest.prototype.clearProgramOverridesMap = function() {
|
|
1196
|
+
this.getProgramOverridesMap().clear();
|
|
1197
|
+
return this;};
|
|
1198
|
+
|
|
1199
|
+
|
|
989
1200
|
|
|
990
1201
|
|
|
991
1202
|
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.153.
|
|
1
|
+
export declare const version = "3.153.2";
|
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.153.
|
|
16
|
+
exports.version = "3.153.2-alpha.x0a7598b";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|