@pulumi/pulumi 3.130.1-alpha.x23b9819 → 3.130.1-alpha.x257bdb8
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/automation/localWorkspace.d.ts +27 -0
- package/automation/localWorkspace.js +37 -0
- package/automation/localWorkspace.js.map +1 -1
- package/package.json +1 -1
- package/proto/codegen/loader_pb.d.ts +37 -0
- package/proto/codegen/loader_pb.js +318 -1
- package/proto/engine_grpc_pb.d.ts +18 -0
- package/proto/engine_grpc_pb.js +23 -0
- package/proto/engine_pb.d.ts +27 -0
- package/proto/engine_pb.js +205 -0
- package/proto/language_pb.d.ts +6 -0
- package/proto/language_pb.js +61 -1
- package/proto/provider_pb.d.ts +4 -4
- package/proto/provider_pb.js +33 -33
- package/tests/automation/localWorkspace.spec.js +58 -0
- package/tests/automation/localWorkspace.spec.js.map +1 -1
- package/tests/runtime/closure-integration-tests.js +7 -4
- package/tests/runtime/closure-integration-tests.js.map +1 -1
- package/version.js +1 -1
package/proto/engine_grpc_pb.js
CHANGED
|
@@ -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);
|
package/proto/engine_pb.d.ts
CHANGED
|
@@ -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,
|
package/proto/engine_pb.js
CHANGED
|
@@ -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
|
*/
|
package/proto/language_pb.d.ts
CHANGED
|
@@ -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
|
|
package/proto/language_pb.js
CHANGED
|
@@ -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/proto/provider_pb.d.ts
CHANGED
|
@@ -430,14 +430,14 @@ export class CallResponse extends jspb.Message {
|
|
|
430
430
|
clearReturn(): void;
|
|
431
431
|
getReturn(): google_protobuf_struct_pb.Struct | undefined;
|
|
432
432
|
setReturn(value?: google_protobuf_struct_pb.Struct): CallResponse;
|
|
433
|
-
|
|
434
|
-
getReturndependenciesMap(): jspb.Map<string, CallResponse.ReturnDependencies>;
|
|
435
|
-
clearReturndependenciesMap(): void;
|
|
436
433
|
clearFailuresList(): void;
|
|
437
434
|
getFailuresList(): Array<CheckFailure>;
|
|
438
435
|
setFailuresList(value: Array<CheckFailure>): CallResponse;
|
|
439
436
|
addFailures(value?: CheckFailure, index?: number): CheckFailure;
|
|
440
437
|
|
|
438
|
+
getReturndependenciesMap(): jspb.Map<string, CallResponse.ReturnDependencies>;
|
|
439
|
+
clearReturndependenciesMap(): void;
|
|
440
|
+
|
|
441
441
|
serializeBinary(): Uint8Array;
|
|
442
442
|
toObject(includeInstance?: boolean): CallResponse.AsObject;
|
|
443
443
|
static toObject(includeInstance: boolean, msg: CallResponse): CallResponse.AsObject;
|
|
@@ -451,9 +451,9 @@ export class CallResponse extends jspb.Message {
|
|
|
451
451
|
export namespace CallResponse {
|
|
452
452
|
export type AsObject = {
|
|
453
453
|
pb_return?: google_protobuf_struct_pb.Struct.AsObject,
|
|
454
|
+
failuresList: Array<CheckFailure.AsObject>,
|
|
454
455
|
|
|
455
456
|
returndependenciesMap: Array<[string, CallResponse.ReturnDependencies.AsObject]>,
|
|
456
|
-
failuresList: Array<CheckFailure.AsObject>,
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
|
package/proto/provider_pb.js
CHANGED
|
@@ -3905,9 +3905,9 @@ proto.pulumirpc.CallResponse.prototype.toObject = function(opt_includeInstance)
|
|
|
3905
3905
|
proto.pulumirpc.CallResponse.toObject = function(includeInstance, msg) {
|
|
3906
3906
|
var f, obj = {
|
|
3907
3907
|
pb_return: (f = msg.getReturn()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
3908
|
-
returndependenciesMap: (f = msg.getReturndependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.CallResponse.ReturnDependencies.toObject) : [],
|
|
3909
3908
|
failuresList: jspb.Message.toObjectList(msg.getFailuresList(),
|
|
3910
|
-
proto.pulumirpc.CheckFailure.toObject, includeInstance)
|
|
3909
|
+
proto.pulumirpc.CheckFailure.toObject, includeInstance),
|
|
3910
|
+
returndependenciesMap: (f = msg.getReturndependenciesMap()) ? f.toObject(includeInstance, proto.pulumirpc.CallResponse.ReturnDependencies.toObject) : []
|
|
3911
3911
|
};
|
|
3912
3912
|
|
|
3913
3913
|
if (includeInstance) {
|
|
@@ -3949,17 +3949,17 @@ proto.pulumirpc.CallResponse.deserializeBinaryFromReader = function(msg, reader)
|
|
|
3949
3949
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
3950
3950
|
msg.setReturn(value);
|
|
3951
3951
|
break;
|
|
3952
|
+
case 3:
|
|
3953
|
+
var value = new proto.pulumirpc.CheckFailure;
|
|
3954
|
+
reader.readMessage(value,proto.pulumirpc.CheckFailure.deserializeBinaryFromReader);
|
|
3955
|
+
msg.addFailures(value);
|
|
3956
|
+
break;
|
|
3952
3957
|
case 2:
|
|
3953
3958
|
var value = msg.getReturndependenciesMap();
|
|
3954
3959
|
reader.readMessage(value, function(message, reader) {
|
|
3955
3960
|
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.pulumirpc.CallResponse.ReturnDependencies.deserializeBinaryFromReader, "", new proto.pulumirpc.CallResponse.ReturnDependencies());
|
|
3956
3961
|
});
|
|
3957
3962
|
break;
|
|
3958
|
-
case 3:
|
|
3959
|
-
var value = new proto.pulumirpc.CheckFailure;
|
|
3960
|
-
reader.readMessage(value,proto.pulumirpc.CheckFailure.deserializeBinaryFromReader);
|
|
3961
|
-
msg.addFailures(value);
|
|
3962
|
-
break;
|
|
3963
3963
|
default:
|
|
3964
3964
|
reader.skipField();
|
|
3965
3965
|
break;
|
|
@@ -3997,10 +3997,6 @@ proto.pulumirpc.CallResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
3997
3997
|
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
3998
3998
|
);
|
|
3999
3999
|
}
|
|
4000
|
-
f = message.getReturndependenciesMap(true);
|
|
4001
|
-
if (f && f.getLength() > 0) {
|
|
4002
|
-
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.CallResponse.ReturnDependencies.serializeBinaryToWriter);
|
|
4003
|
-
}
|
|
4004
4000
|
f = message.getFailuresList();
|
|
4005
4001
|
if (f.length > 0) {
|
|
4006
4002
|
writer.writeRepeatedMessage(
|
|
@@ -4009,6 +4005,10 @@ proto.pulumirpc.CallResponse.serializeBinaryToWriter = function(message, writer)
|
|
|
4009
4005
|
proto.pulumirpc.CheckFailure.serializeBinaryToWriter
|
|
4010
4006
|
);
|
|
4011
4007
|
}
|
|
4008
|
+
f = message.getReturndependenciesMap(true);
|
|
4009
|
+
if (f && f.getLength() > 0) {
|
|
4010
|
+
f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.pulumirpc.CallResponse.ReturnDependencies.serializeBinaryToWriter);
|
|
4011
|
+
}
|
|
4012
4012
|
};
|
|
4013
4013
|
|
|
4014
4014
|
|
|
@@ -4205,28 +4205,6 @@ proto.pulumirpc.CallResponse.prototype.hasReturn = function() {
|
|
|
4205
4205
|
};
|
|
4206
4206
|
|
|
4207
4207
|
|
|
4208
|
-
/**
|
|
4209
|
-
* map<string, ReturnDependencies> returnDependencies = 2;
|
|
4210
|
-
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
4211
|
-
* empty, instead returning `undefined`
|
|
4212
|
-
* @return {!jspb.Map<string,!proto.pulumirpc.CallResponse.ReturnDependencies>}
|
|
4213
|
-
*/
|
|
4214
|
-
proto.pulumirpc.CallResponse.prototype.getReturndependenciesMap = function(opt_noLazyCreate) {
|
|
4215
|
-
return /** @type {!jspb.Map<string,!proto.pulumirpc.CallResponse.ReturnDependencies>} */ (
|
|
4216
|
-
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
|
|
4217
|
-
proto.pulumirpc.CallResponse.ReturnDependencies));
|
|
4218
|
-
};
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
/**
|
|
4222
|
-
* Clears values from the map. The map will be non-null.
|
|
4223
|
-
* @return {!proto.pulumirpc.CallResponse} returns this
|
|
4224
|
-
*/
|
|
4225
|
-
proto.pulumirpc.CallResponse.prototype.clearReturndependenciesMap = function() {
|
|
4226
|
-
this.getReturndependenciesMap().clear();
|
|
4227
|
-
return this;};
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
4208
|
/**
|
|
4231
4209
|
* repeated CheckFailure failures = 3;
|
|
4232
4210
|
* @return {!Array<!proto.pulumirpc.CheckFailure>}
|
|
@@ -4265,6 +4243,28 @@ proto.pulumirpc.CallResponse.prototype.clearFailuresList = function() {
|
|
|
4265
4243
|
};
|
|
4266
4244
|
|
|
4267
4245
|
|
|
4246
|
+
/**
|
|
4247
|
+
* map<string, ReturnDependencies> returnDependencies = 2;
|
|
4248
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
4249
|
+
* empty, instead returning `undefined`
|
|
4250
|
+
* @return {!jspb.Map<string,!proto.pulumirpc.CallResponse.ReturnDependencies>}
|
|
4251
|
+
*/
|
|
4252
|
+
proto.pulumirpc.CallResponse.prototype.getReturndependenciesMap = function(opt_noLazyCreate) {
|
|
4253
|
+
return /** @type {!jspb.Map<string,!proto.pulumirpc.CallResponse.ReturnDependencies>} */ (
|
|
4254
|
+
jspb.Message.getMapField(this, 2, opt_noLazyCreate,
|
|
4255
|
+
proto.pulumirpc.CallResponse.ReturnDependencies));
|
|
4256
|
+
};
|
|
4257
|
+
|
|
4258
|
+
|
|
4259
|
+
/**
|
|
4260
|
+
* Clears values from the map. The map will be non-null.
|
|
4261
|
+
* @return {!proto.pulumirpc.CallResponse} returns this
|
|
4262
|
+
*/
|
|
4263
|
+
proto.pulumirpc.CallResponse.prototype.clearReturndependenciesMap = function() {
|
|
4264
|
+
this.getReturndependenciesMap().clear();
|
|
4265
|
+
return this;};
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
4268
|
|
|
4269
4269
|
|
|
4270
4270
|
|
|
@@ -1229,6 +1229,64 @@ describe("LocalWorkspace", () => {
|
|
|
1229
1229
|
yield stack.workspace.removeStack(stacks[i]);
|
|
1230
1230
|
}
|
|
1231
1231
|
}));
|
|
1232
|
+
it(`runs the install command`, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1233
|
+
let recordedArgs = [];
|
|
1234
|
+
const mockCommand = {
|
|
1235
|
+
command: "pulumi",
|
|
1236
|
+
// Version high enough to support --use-language-version-tools
|
|
1237
|
+
version: semver.parse("3.130.0"),
|
|
1238
|
+
run: (args, cwd, additionalEnv, onOutput) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1239
|
+
recordedArgs = args;
|
|
1240
|
+
return new automation_1.CommandResult("some output", "", 0);
|
|
1241
|
+
}),
|
|
1242
|
+
};
|
|
1243
|
+
const ws = yield automation_1.LocalWorkspace.create({ pulumiCommand: mockCommand });
|
|
1244
|
+
yield ws.install();
|
|
1245
|
+
assert_1.default.deepStrictEqual(recordedArgs, ["install"]);
|
|
1246
|
+
yield ws.install({ noPlugins: true });
|
|
1247
|
+
assert_1.default.deepStrictEqual(recordedArgs, ["install", "--no-plugins"]);
|
|
1248
|
+
yield ws.install({ noDependencies: true });
|
|
1249
|
+
assert_1.default.deepStrictEqual(recordedArgs, ["install", "--no-dependencies"]);
|
|
1250
|
+
yield ws.install({ reinstall: true });
|
|
1251
|
+
assert_1.default.deepStrictEqual(recordedArgs, ["install", "--reinstall"]);
|
|
1252
|
+
yield ws.install({ useLanguageVersionTools: true });
|
|
1253
|
+
assert_1.default.deepStrictEqual(recordedArgs, ["install", "--use-language-version-tools"]);
|
|
1254
|
+
yield ws.install({
|
|
1255
|
+
noDependencies: true,
|
|
1256
|
+
noPlugins: true,
|
|
1257
|
+
reinstall: true,
|
|
1258
|
+
useLanguageVersionTools: true,
|
|
1259
|
+
});
|
|
1260
|
+
assert_1.default.deepStrictEqual(recordedArgs, [
|
|
1261
|
+
"install",
|
|
1262
|
+
"--use-language-version-tools",
|
|
1263
|
+
"--no-plugins",
|
|
1264
|
+
"--no-dependencies",
|
|
1265
|
+
"--reinstall",
|
|
1266
|
+
]);
|
|
1267
|
+
}));
|
|
1268
|
+
it(`install requires version >= 3.91`, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1269
|
+
const mockCommand = {
|
|
1270
|
+
command: "pulumi",
|
|
1271
|
+
version: semver.parse("3.90.0"),
|
|
1272
|
+
run: (args, cwd, additionalEnv, onOutput) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1273
|
+
return new automation_1.CommandResult("some output", "", 0);
|
|
1274
|
+
}),
|
|
1275
|
+
};
|
|
1276
|
+
const ws = yield automation_1.LocalWorkspace.create({ pulumiCommand: mockCommand });
|
|
1277
|
+
assert_1.default.rejects(() => ws.install());
|
|
1278
|
+
}));
|
|
1279
|
+
it(`install --use-language-version-tools requires version >= 3.130`, () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1280
|
+
const mockCommand = {
|
|
1281
|
+
command: "pulumi",
|
|
1282
|
+
version: semver.parse("3.129.0"),
|
|
1283
|
+
run: (args, cwd, additionalEnv, onOutput) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1284
|
+
return new automation_1.CommandResult("some output", "", 0);
|
|
1285
|
+
}),
|
|
1286
|
+
};
|
|
1287
|
+
const ws = yield automation_1.LocalWorkspace.create({ pulumiCommand: mockCommand });
|
|
1288
|
+
assert_1.default.rejects(() => ws.install());
|
|
1289
|
+
}));
|
|
1232
1290
|
});
|
|
1233
1291
|
const normalizeConfigKey = (key, projectName) => {
|
|
1234
1292
|
const parts = key.split(":");
|