@pulumi/pulumi 3.242.0 → 3.243.0-alpha.x6a56ada
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/alias_pb.js +1 -1
- package/proto/analyzer_pb.js +1 -1
- package/proto/callback_pb.js +1 -1
- package/proto/codegen/hcl_pb.js +1 -1
- package/proto/codegen/loader_pb.js +1 -1
- package/proto/codegen/mapper_pb.js +1 -1
- package/proto/converter_grpc_pb.d.ts +18 -0
- package/proto/converter_grpc_pb.js +36 -0
- package/proto/converter_pb.d.ts +68 -0
- package/proto/converter_pb.js +586 -1
- package/proto/engine_pb.js +1 -1
- package/proto/errors_pb.js +1 -1
- package/proto/events_pb.js +1 -1
- package/proto/language_pb.js +1 -1
- package/proto/plugin_pb.js +1 -1
- package/proto/provider_pb.js +1 -1
- package/proto/resource_pb.js +1 -1
- package/proto/resource_status_pb.js +1 -1
- package/proto/source_pb.js +1 -1
- package/proto/testing/language_pb.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
package/proto/alias_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.Alias', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.Alias.AliasCase', null, global);
|
package/proto/analyzer_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
var pulumi_plugin_pb = require('./plugin_pb.js');
|
|
19
19
|
goog.object.extend(proto, pulumi_plugin_pb);
|
package/proto/callback_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.Callback', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.CallbackInvokeRequest', null, global);
|
package/proto/codegen/hcl_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.codegen.Diagnostic', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.codegen.DiagnosticSeverity', null, global);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.codegen.GetSchemaRequest', null, global);
|
|
19
19
|
goog.exportSymbol('proto.codegen.GetSchemaResponse', null, global);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, 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);
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
import * as grpc from "@grpc/grpc-js";
|
|
8
8
|
import * as pulumi_converter_pb from "./converter_pb";
|
|
9
9
|
import * as pulumi_codegen_hcl_pb from "./codegen/hcl_pb";
|
|
10
|
+
import * as pulumi_codegen_loader_pb from "./codegen/loader_pb";
|
|
10
11
|
|
|
11
12
|
interface IConverterService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
12
13
|
convertState: IConverterService_IConvertState;
|
|
13
14
|
convertProgram: IConverterService_IConvertProgram;
|
|
15
|
+
convertSnippet: IConverterService_IConvertSnippet;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
interface IConverterService_IConvertState extends grpc.MethodDefinition<pulumi_converter_pb.ConvertStateRequest, pulumi_converter_pb.ConvertStateResponse> {
|
|
@@ -31,12 +33,22 @@ interface IConverterService_IConvertProgram extends grpc.MethodDefinition<pulumi
|
|
|
31
33
|
responseSerialize: grpc.serialize<pulumi_converter_pb.ConvertProgramResponse>;
|
|
32
34
|
responseDeserialize: grpc.deserialize<pulumi_converter_pb.ConvertProgramResponse>;
|
|
33
35
|
}
|
|
36
|
+
interface IConverterService_IConvertSnippet extends grpc.MethodDefinition<pulumi_converter_pb.ConvertSnippetRequest, pulumi_converter_pb.ConvertSnippetResponse> {
|
|
37
|
+
path: "/pulumirpc.Converter/ConvertSnippet";
|
|
38
|
+
requestStream: false;
|
|
39
|
+
responseStream: false;
|
|
40
|
+
requestSerialize: grpc.serialize<pulumi_converter_pb.ConvertSnippetRequest>;
|
|
41
|
+
requestDeserialize: grpc.deserialize<pulumi_converter_pb.ConvertSnippetRequest>;
|
|
42
|
+
responseSerialize: grpc.serialize<pulumi_converter_pb.ConvertSnippetResponse>;
|
|
43
|
+
responseDeserialize: grpc.deserialize<pulumi_converter_pb.ConvertSnippetResponse>;
|
|
44
|
+
}
|
|
34
45
|
|
|
35
46
|
export const ConverterService: IConverterService;
|
|
36
47
|
|
|
37
48
|
export interface IConverterServer extends grpc.UntypedServiceImplementation {
|
|
38
49
|
convertState: grpc.handleUnaryCall<pulumi_converter_pb.ConvertStateRequest, pulumi_converter_pb.ConvertStateResponse>;
|
|
39
50
|
convertProgram: grpc.handleUnaryCall<pulumi_converter_pb.ConvertProgramRequest, pulumi_converter_pb.ConvertProgramResponse>;
|
|
51
|
+
convertSnippet: grpc.handleUnaryCall<pulumi_converter_pb.ConvertSnippetRequest, pulumi_converter_pb.ConvertSnippetResponse>;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
export interface IConverterClient {
|
|
@@ -46,6 +58,9 @@ export interface IConverterClient {
|
|
|
46
58
|
convertProgram(request: pulumi_converter_pb.ConvertProgramRequest, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertProgramResponse) => void): grpc.ClientUnaryCall;
|
|
47
59
|
convertProgram(request: pulumi_converter_pb.ConvertProgramRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertProgramResponse) => void): grpc.ClientUnaryCall;
|
|
48
60
|
convertProgram(request: pulumi_converter_pb.ConvertProgramRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertProgramResponse) => void): grpc.ClientUnaryCall;
|
|
61
|
+
convertSnippet(request: pulumi_converter_pb.ConvertSnippetRequest, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertSnippetResponse) => void): grpc.ClientUnaryCall;
|
|
62
|
+
convertSnippet(request: pulumi_converter_pb.ConvertSnippetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertSnippetResponse) => void): grpc.ClientUnaryCall;
|
|
63
|
+
convertSnippet(request: pulumi_converter_pb.ConvertSnippetRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertSnippetResponse) => void): grpc.ClientUnaryCall;
|
|
49
64
|
}
|
|
50
65
|
|
|
51
66
|
export class ConverterClient extends grpc.Client implements IConverterClient {
|
|
@@ -56,4 +71,7 @@ export class ConverterClient extends grpc.Client implements IConverterClient {
|
|
|
56
71
|
public convertProgram(request: pulumi_converter_pb.ConvertProgramRequest, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertProgramResponse) => void): grpc.ClientUnaryCall;
|
|
57
72
|
public convertProgram(request: pulumi_converter_pb.ConvertProgramRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertProgramResponse) => void): grpc.ClientUnaryCall;
|
|
58
73
|
public convertProgram(request: pulumi_converter_pb.ConvertProgramRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertProgramResponse) => void): grpc.ClientUnaryCall;
|
|
74
|
+
public convertSnippet(request: pulumi_converter_pb.ConvertSnippetRequest, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertSnippetResponse) => void): grpc.ClientUnaryCall;
|
|
75
|
+
public convertSnippet(request: pulumi_converter_pb.ConvertSnippetRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertSnippetResponse) => void): grpc.ClientUnaryCall;
|
|
76
|
+
public convertSnippet(request: pulumi_converter_pb.ConvertSnippetRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_converter_pb.ConvertSnippetResponse) => void): grpc.ClientUnaryCall;
|
|
59
77
|
}
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
var grpc = require('@grpc/grpc-js');
|
|
20
20
|
var pulumi_converter_pb = require('./converter_pb.js');
|
|
21
21
|
var pulumi_codegen_hcl_pb = require('./codegen/hcl_pb.js');
|
|
22
|
+
var pulumi_codegen_loader_pb = require('./codegen/loader_pb.js');
|
|
22
23
|
|
|
23
24
|
function serialize_pulumirpc_ConvertProgramRequest(arg) {
|
|
24
25
|
if (!(arg instanceof pulumi_converter_pb.ConvertProgramRequest)) {
|
|
@@ -42,6 +43,28 @@ function deserialize_pulumirpc_ConvertProgramResponse(buffer_arg) {
|
|
|
42
43
|
return pulumi_converter_pb.ConvertProgramResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
43
44
|
}
|
|
44
45
|
|
|
46
|
+
function serialize_pulumirpc_ConvertSnippetRequest(arg) {
|
|
47
|
+
if (!(arg instanceof pulumi_converter_pb.ConvertSnippetRequest)) {
|
|
48
|
+
throw new Error('Expected argument of type pulumirpc.ConvertSnippetRequest');
|
|
49
|
+
}
|
|
50
|
+
return Buffer.from(arg.serializeBinary());
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function deserialize_pulumirpc_ConvertSnippetRequest(buffer_arg) {
|
|
54
|
+
return pulumi_converter_pb.ConvertSnippetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function serialize_pulumirpc_ConvertSnippetResponse(arg) {
|
|
58
|
+
if (!(arg instanceof pulumi_converter_pb.ConvertSnippetResponse)) {
|
|
59
|
+
throw new Error('Expected argument of type pulumirpc.ConvertSnippetResponse');
|
|
60
|
+
}
|
|
61
|
+
return Buffer.from(arg.serializeBinary());
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function deserialize_pulumirpc_ConvertSnippetResponse(buffer_arg) {
|
|
65
|
+
return pulumi_converter_pb.ConvertSnippetResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
66
|
+
}
|
|
67
|
+
|
|
45
68
|
function serialize_pulumirpc_ConvertStateRequest(arg) {
|
|
46
69
|
if (!(arg instanceof pulumi_converter_pb.ConvertStateRequest)) {
|
|
47
70
|
throw new Error('Expected argument of type pulumirpc.ConvertStateRequest');
|
|
@@ -92,6 +115,19 @@ convertProgram: {
|
|
|
92
115
|
responseSerialize: serialize_pulumirpc_ConvertProgramResponse,
|
|
93
116
|
responseDeserialize: deserialize_pulumirpc_ConvertProgramResponse,
|
|
94
117
|
},
|
|
118
|
+
// ConvertSnippet generates a single PCL file from a single source file in the target ecosystem. It is used when
|
|
119
|
+
// callers need to convert a small source fragment, such as an input file, rather than a full Pulumi program.
|
|
120
|
+
convertSnippet: {
|
|
121
|
+
path: '/pulumirpc.Converter/ConvertSnippet',
|
|
122
|
+
requestStream: false,
|
|
123
|
+
responseStream: false,
|
|
124
|
+
requestType: pulumi_converter_pb.ConvertSnippetRequest,
|
|
125
|
+
responseType: pulumi_converter_pb.ConvertSnippetResponse,
|
|
126
|
+
requestSerialize: serialize_pulumirpc_ConvertSnippetRequest,
|
|
127
|
+
requestDeserialize: deserialize_pulumirpc_ConvertSnippetRequest,
|
|
128
|
+
responseSerialize: serialize_pulumirpc_ConvertSnippetResponse,
|
|
129
|
+
responseDeserialize: deserialize_pulumirpc_ConvertSnippetResponse,
|
|
130
|
+
},
|
|
95
131
|
};
|
|
96
132
|
|
|
97
133
|
exports.ConverterClient = grpc.makeGenericClientConstructor(ConverterService, 'Converter');
|
package/proto/converter_pb.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as jspb from "google-protobuf";
|
|
8
8
|
import * as pulumi_codegen_hcl_pb from "./codegen/hcl_pb";
|
|
9
|
+
import * as pulumi_codegen_loader_pb from "./codegen/loader_pb";
|
|
9
10
|
|
|
10
11
|
export class ConvertStateRequest extends jspb.Message {
|
|
11
12
|
getMapperTarget(): string;
|
|
@@ -158,3 +159,70 @@ export namespace ConvertProgramResponse {
|
|
|
158
159
|
diagnosticsList: Array<pulumi_codegen_hcl_pb.Diagnostic.AsObject>,
|
|
159
160
|
}
|
|
160
161
|
}
|
|
162
|
+
|
|
163
|
+
export class ConvertSnippetRequest extends jspb.Message {
|
|
164
|
+
getFilename(): string;
|
|
165
|
+
setFilename(value: string): ConvertSnippetRequest;
|
|
166
|
+
getSource(): Uint8Array | string;
|
|
167
|
+
getSource_asU8(): Uint8Array;
|
|
168
|
+
getSource_asB64(): string;
|
|
169
|
+
setSource(value: Uint8Array | string): ConvertSnippetRequest;
|
|
170
|
+
getTargetLoader(): string;
|
|
171
|
+
setTargetLoader(value: string): ConvertSnippetRequest;
|
|
172
|
+
|
|
173
|
+
hasPackage(): boolean;
|
|
174
|
+
clearPackage(): void;
|
|
175
|
+
getPackage(): pulumi_codegen_loader_pb.GetSchemaRequest | undefined;
|
|
176
|
+
setPackage(value?: pulumi_codegen_loader_pb.GetSchemaRequest): ConvertSnippetRequest;
|
|
177
|
+
getToken(): string;
|
|
178
|
+
setToken(value: string): ConvertSnippetRequest;
|
|
179
|
+
|
|
180
|
+
serializeBinary(): Uint8Array;
|
|
181
|
+
toObject(includeInstance?: boolean): ConvertSnippetRequest.AsObject;
|
|
182
|
+
static toObject(includeInstance: boolean, msg: ConvertSnippetRequest): ConvertSnippetRequest.AsObject;
|
|
183
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
184
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
185
|
+
static serializeBinaryToWriter(message: ConvertSnippetRequest, writer: jspb.BinaryWriter): void;
|
|
186
|
+
static deserializeBinary(bytes: Uint8Array): ConvertSnippetRequest;
|
|
187
|
+
static deserializeBinaryFromReader(message: ConvertSnippetRequest, reader: jspb.BinaryReader): ConvertSnippetRequest;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export namespace ConvertSnippetRequest {
|
|
191
|
+
export type AsObject = {
|
|
192
|
+
filename: string,
|
|
193
|
+
source: Uint8Array | string,
|
|
194
|
+
targetLoader: string,
|
|
195
|
+
pb_package?: pulumi_codegen_loader_pb.GetSchemaRequest.AsObject,
|
|
196
|
+
token: string,
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export class ConvertSnippetResponse extends jspb.Message {
|
|
201
|
+
clearDiagnosticsList(): void;
|
|
202
|
+
getDiagnosticsList(): Array<pulumi_codegen_hcl_pb.Diagnostic>;
|
|
203
|
+
setDiagnosticsList(value: Array<pulumi_codegen_hcl_pb.Diagnostic>): ConvertSnippetResponse;
|
|
204
|
+
addDiagnostics(value?: pulumi_codegen_hcl_pb.Diagnostic, index?: number): pulumi_codegen_hcl_pb.Diagnostic;
|
|
205
|
+
getFilename(): string;
|
|
206
|
+
setFilename(value: string): ConvertSnippetResponse;
|
|
207
|
+
getSource(): Uint8Array | string;
|
|
208
|
+
getSource_asU8(): Uint8Array;
|
|
209
|
+
getSource_asB64(): string;
|
|
210
|
+
setSource(value: Uint8Array | string): ConvertSnippetResponse;
|
|
211
|
+
|
|
212
|
+
serializeBinary(): Uint8Array;
|
|
213
|
+
toObject(includeInstance?: boolean): ConvertSnippetResponse.AsObject;
|
|
214
|
+
static toObject(includeInstance: boolean, msg: ConvertSnippetResponse): ConvertSnippetResponse.AsObject;
|
|
215
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
216
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
217
|
+
static serializeBinaryToWriter(message: ConvertSnippetResponse, writer: jspb.BinaryWriter): void;
|
|
218
|
+
static deserializeBinary(bytes: Uint8Array): ConvertSnippetResponse;
|
|
219
|
+
static deserializeBinaryFromReader(message: ConvertSnippetResponse, reader: jspb.BinaryReader): ConvertSnippetResponse;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export namespace ConvertSnippetResponse {
|
|
223
|
+
export type AsObject = {
|
|
224
|
+
diagnosticsList: Array<pulumi_codegen_hcl_pb.Diagnostic.AsObject>,
|
|
225
|
+
filename: string,
|
|
226
|
+
source: Uint8Array | string,
|
|
227
|
+
}
|
|
228
|
+
}
|
package/proto/converter_pb.js
CHANGED
|
@@ -13,12 +13,16 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
var pulumi_codegen_hcl_pb = require('./codegen/hcl_pb.js');
|
|
19
19
|
goog.object.extend(proto, pulumi_codegen_hcl_pb);
|
|
20
|
+
var pulumi_codegen_loader_pb = require('./codegen/loader_pb.js');
|
|
21
|
+
goog.object.extend(proto, pulumi_codegen_loader_pb);
|
|
20
22
|
goog.exportSymbol('proto.pulumirpc.ConvertProgramRequest', null, global);
|
|
21
23
|
goog.exportSymbol('proto.pulumirpc.ConvertProgramResponse', null, global);
|
|
24
|
+
goog.exportSymbol('proto.pulumirpc.ConvertSnippetRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.pulumirpc.ConvertSnippetResponse', null, global);
|
|
22
26
|
goog.exportSymbol('proto.pulumirpc.ConvertStateRequest', null, global);
|
|
23
27
|
goog.exportSymbol('proto.pulumirpc.ConvertStateResponse', null, global);
|
|
24
28
|
goog.exportSymbol('proto.pulumirpc.ResourceImport', null, global);
|
|
@@ -127,6 +131,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
127
131
|
*/
|
|
128
132
|
proto.pulumirpc.ConvertProgramResponse.displayName = 'proto.pulumirpc.ConvertProgramResponse';
|
|
129
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.ConvertSnippetRequest = function(opt_data) {
|
|
145
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
146
|
+
};
|
|
147
|
+
goog.inherits(proto.pulumirpc.ConvertSnippetRequest, jspb.Message);
|
|
148
|
+
if (goog.DEBUG && !COMPILED) {
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
* @override
|
|
152
|
+
*/
|
|
153
|
+
proto.pulumirpc.ConvertSnippetRequest.displayName = 'proto.pulumirpc.ConvertSnippetRequest';
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Generated by JsPbCodeGenerator.
|
|
157
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
158
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
159
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
160
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
161
|
+
* valid.
|
|
162
|
+
* @extends {jspb.Message}
|
|
163
|
+
* @constructor
|
|
164
|
+
*/
|
|
165
|
+
proto.pulumirpc.ConvertSnippetResponse = function(opt_data) {
|
|
166
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.pulumirpc.ConvertSnippetResponse.repeatedFields_, null);
|
|
167
|
+
};
|
|
168
|
+
goog.inherits(proto.pulumirpc.ConvertSnippetResponse, jspb.Message);
|
|
169
|
+
if (goog.DEBUG && !COMPILED) {
|
|
170
|
+
/**
|
|
171
|
+
* @public
|
|
172
|
+
* @override
|
|
173
|
+
*/
|
|
174
|
+
proto.pulumirpc.ConvertSnippetResponse.displayName = 'proto.pulumirpc.ConvertSnippetResponse';
|
|
175
|
+
}
|
|
130
176
|
|
|
131
177
|
/**
|
|
132
178
|
* List of repeated fields within this message type.
|
|
@@ -1332,4 +1378,543 @@ proto.pulumirpc.ConvertProgramResponse.prototype.clearDiagnosticsList = function
|
|
|
1332
1378
|
};
|
|
1333
1379
|
|
|
1334
1380
|
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1385
|
+
/**
|
|
1386
|
+
* Creates an object representation of this proto.
|
|
1387
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1388
|
+
* Optional fields that are not set will be set to undefined.
|
|
1389
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1390
|
+
* For the list of reserved names please see:
|
|
1391
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1392
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1393
|
+
* JSPB instance for transitional soy proto support:
|
|
1394
|
+
* http://goto/soy-param-migration
|
|
1395
|
+
* @return {!Object}
|
|
1396
|
+
*/
|
|
1397
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1398
|
+
return proto.pulumirpc.ConvertSnippetRequest.toObject(opt_includeInstance, this);
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Static version of the {@see toObject} method.
|
|
1404
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1405
|
+
* the JSPB instance for transitional soy proto support:
|
|
1406
|
+
* http://goto/soy-param-migration
|
|
1407
|
+
* @param {!proto.pulumirpc.ConvertSnippetRequest} msg The msg instance to transform.
|
|
1408
|
+
* @return {!Object}
|
|
1409
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1410
|
+
*/
|
|
1411
|
+
proto.pulumirpc.ConvertSnippetRequest.toObject = function(includeInstance, msg) {
|
|
1412
|
+
var f, obj = {
|
|
1413
|
+
filename: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1414
|
+
source: msg.getSource_asB64(),
|
|
1415
|
+
targetLoader: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1416
|
+
pb_package: (f = msg.getPackage()) && pulumi_codegen_loader_pb.GetSchemaRequest.toObject(includeInstance, f),
|
|
1417
|
+
token: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1420
|
+
if (includeInstance) {
|
|
1421
|
+
obj.$jspbMessageInstance = msg;
|
|
1422
|
+
}
|
|
1423
|
+
return obj;
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1430
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1431
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest}
|
|
1432
|
+
*/
|
|
1433
|
+
proto.pulumirpc.ConvertSnippetRequest.deserializeBinary = function(bytes) {
|
|
1434
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1435
|
+
var msg = new proto.pulumirpc.ConvertSnippetRequest;
|
|
1436
|
+
return proto.pulumirpc.ConvertSnippetRequest.deserializeBinaryFromReader(msg, reader);
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1442
|
+
* given reader into the given message object.
|
|
1443
|
+
* @param {!proto.pulumirpc.ConvertSnippetRequest} msg The message object to deserialize into.
|
|
1444
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1445
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest}
|
|
1446
|
+
*/
|
|
1447
|
+
proto.pulumirpc.ConvertSnippetRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1448
|
+
while (reader.nextField()) {
|
|
1449
|
+
if (reader.isEndGroup()) {
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
var field = reader.getFieldNumber();
|
|
1453
|
+
switch (field) {
|
|
1454
|
+
case 1:
|
|
1455
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1456
|
+
msg.setFilename(value);
|
|
1457
|
+
break;
|
|
1458
|
+
case 2:
|
|
1459
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1460
|
+
msg.setSource(value);
|
|
1461
|
+
break;
|
|
1462
|
+
case 3:
|
|
1463
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1464
|
+
msg.setTargetLoader(value);
|
|
1465
|
+
break;
|
|
1466
|
+
case 4:
|
|
1467
|
+
var value = new pulumi_codegen_loader_pb.GetSchemaRequest;
|
|
1468
|
+
reader.readMessage(value,pulumi_codegen_loader_pb.GetSchemaRequest.deserializeBinaryFromReader);
|
|
1469
|
+
msg.setPackage(value);
|
|
1470
|
+
break;
|
|
1471
|
+
case 5:
|
|
1472
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1473
|
+
msg.setToken(value);
|
|
1474
|
+
break;
|
|
1475
|
+
default:
|
|
1476
|
+
reader.skipField();
|
|
1477
|
+
break;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
return msg;
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1486
|
+
* @return {!Uint8Array}
|
|
1487
|
+
*/
|
|
1488
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.serializeBinary = function() {
|
|
1489
|
+
var writer = new jspb.BinaryWriter();
|
|
1490
|
+
proto.pulumirpc.ConvertSnippetRequest.serializeBinaryToWriter(this, writer);
|
|
1491
|
+
return writer.getResultBuffer();
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1497
|
+
* format), writing to the given BinaryWriter.
|
|
1498
|
+
* @param {!proto.pulumirpc.ConvertSnippetRequest} message
|
|
1499
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1500
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1501
|
+
*/
|
|
1502
|
+
proto.pulumirpc.ConvertSnippetRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1503
|
+
var f = undefined;
|
|
1504
|
+
f = message.getFilename();
|
|
1505
|
+
if (f.length > 0) {
|
|
1506
|
+
writer.writeString(
|
|
1507
|
+
1,
|
|
1508
|
+
f
|
|
1509
|
+
);
|
|
1510
|
+
}
|
|
1511
|
+
f = message.getSource_asU8();
|
|
1512
|
+
if (f.length > 0) {
|
|
1513
|
+
writer.writeBytes(
|
|
1514
|
+
2,
|
|
1515
|
+
f
|
|
1516
|
+
);
|
|
1517
|
+
}
|
|
1518
|
+
f = message.getTargetLoader();
|
|
1519
|
+
if (f.length > 0) {
|
|
1520
|
+
writer.writeString(
|
|
1521
|
+
3,
|
|
1522
|
+
f
|
|
1523
|
+
);
|
|
1524
|
+
}
|
|
1525
|
+
f = message.getPackage();
|
|
1526
|
+
if (f != null) {
|
|
1527
|
+
writer.writeMessage(
|
|
1528
|
+
4,
|
|
1529
|
+
f,
|
|
1530
|
+
pulumi_codegen_loader_pb.GetSchemaRequest.serializeBinaryToWriter
|
|
1531
|
+
);
|
|
1532
|
+
}
|
|
1533
|
+
f = message.getToken();
|
|
1534
|
+
if (f.length > 0) {
|
|
1535
|
+
writer.writeString(
|
|
1536
|
+
5,
|
|
1537
|
+
f
|
|
1538
|
+
);
|
|
1539
|
+
}
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* optional string filename = 1;
|
|
1545
|
+
* @return {string}
|
|
1546
|
+
*/
|
|
1547
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getFilename = function() {
|
|
1548
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1549
|
+
};
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* @param {string} value
|
|
1554
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
|
|
1555
|
+
*/
|
|
1556
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.setFilename = function(value) {
|
|
1557
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* optional bytes source = 2;
|
|
1563
|
+
* @return {!(string|Uint8Array)}
|
|
1564
|
+
*/
|
|
1565
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getSource = function() {
|
|
1566
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* optional bytes source = 2;
|
|
1572
|
+
* This is a type-conversion wrapper around `getSource()`
|
|
1573
|
+
* @return {string}
|
|
1574
|
+
*/
|
|
1575
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getSource_asB64 = function() {
|
|
1576
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1577
|
+
this.getSource()));
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* optional bytes source = 2;
|
|
1583
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
1584
|
+
* @see http://caniuse.com/Uint8Array
|
|
1585
|
+
* This is a type-conversion wrapper around `getSource()`
|
|
1586
|
+
* @return {!Uint8Array}
|
|
1587
|
+
*/
|
|
1588
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getSource_asU8 = function() {
|
|
1589
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1590
|
+
this.getSource()));
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* @param {!(string|Uint8Array)} value
|
|
1596
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
|
|
1597
|
+
*/
|
|
1598
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.setSource = function(value) {
|
|
1599
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* optional string target_loader = 3;
|
|
1605
|
+
* @return {string}
|
|
1606
|
+
*/
|
|
1607
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getTargetLoader = function() {
|
|
1608
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* @param {string} value
|
|
1614
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
|
|
1615
|
+
*/
|
|
1616
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.setTargetLoader = function(value) {
|
|
1617
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* optional codegen.GetSchemaRequest package = 4;
|
|
1623
|
+
* @return {?proto.codegen.GetSchemaRequest}
|
|
1624
|
+
*/
|
|
1625
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getPackage = function() {
|
|
1626
|
+
return /** @type{?proto.codegen.GetSchemaRequest} */ (
|
|
1627
|
+
jspb.Message.getWrapperField(this, pulumi_codegen_loader_pb.GetSchemaRequest, 4));
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* @param {?proto.codegen.GetSchemaRequest|undefined} value
|
|
1633
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
|
|
1634
|
+
*/
|
|
1635
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.setPackage = function(value) {
|
|
1636
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Clears the message field making it undefined.
|
|
1642
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
|
|
1643
|
+
*/
|
|
1644
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.clearPackage = function() {
|
|
1645
|
+
return this.setPackage(undefined);
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* Returns whether this field is set.
|
|
1651
|
+
* @return {boolean}
|
|
1652
|
+
*/
|
|
1653
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.hasPackage = function() {
|
|
1654
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* optional string token = 5;
|
|
1660
|
+
* @return {string}
|
|
1661
|
+
*/
|
|
1662
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.getToken = function() {
|
|
1663
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* @param {string} value
|
|
1669
|
+
* @return {!proto.pulumirpc.ConvertSnippetRequest} returns this
|
|
1670
|
+
*/
|
|
1671
|
+
proto.pulumirpc.ConvertSnippetRequest.prototype.setToken = function(value) {
|
|
1672
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* List of repeated fields within this message type.
|
|
1679
|
+
* @private {!Array<number>}
|
|
1680
|
+
* @const
|
|
1681
|
+
*/
|
|
1682
|
+
proto.pulumirpc.ConvertSnippetResponse.repeatedFields_ = [1];
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
|
|
1686
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1687
|
+
/**
|
|
1688
|
+
* Creates an object representation of this proto.
|
|
1689
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1690
|
+
* Optional fields that are not set will be set to undefined.
|
|
1691
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1692
|
+
* For the list of reserved names please see:
|
|
1693
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1694
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1695
|
+
* JSPB instance for transitional soy proto support:
|
|
1696
|
+
* http://goto/soy-param-migration
|
|
1697
|
+
* @return {!Object}
|
|
1698
|
+
*/
|
|
1699
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1700
|
+
return proto.pulumirpc.ConvertSnippetResponse.toObject(opt_includeInstance, this);
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Static version of the {@see toObject} method.
|
|
1706
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1707
|
+
* the JSPB instance for transitional soy proto support:
|
|
1708
|
+
* http://goto/soy-param-migration
|
|
1709
|
+
* @param {!proto.pulumirpc.ConvertSnippetResponse} msg The msg instance to transform.
|
|
1710
|
+
* @return {!Object}
|
|
1711
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1712
|
+
*/
|
|
1713
|
+
proto.pulumirpc.ConvertSnippetResponse.toObject = function(includeInstance, msg) {
|
|
1714
|
+
var f, obj = {
|
|
1715
|
+
diagnosticsList: jspb.Message.toObjectList(msg.getDiagnosticsList(),
|
|
1716
|
+
pulumi_codegen_hcl_pb.Diagnostic.toObject, includeInstance),
|
|
1717
|
+
filename: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1718
|
+
source: msg.getSource_asB64()
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
if (includeInstance) {
|
|
1722
|
+
obj.$jspbMessageInstance = msg;
|
|
1723
|
+
}
|
|
1724
|
+
return obj;
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1731
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1732
|
+
* @return {!proto.pulumirpc.ConvertSnippetResponse}
|
|
1733
|
+
*/
|
|
1734
|
+
proto.pulumirpc.ConvertSnippetResponse.deserializeBinary = function(bytes) {
|
|
1735
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1736
|
+
var msg = new proto.pulumirpc.ConvertSnippetResponse;
|
|
1737
|
+
return proto.pulumirpc.ConvertSnippetResponse.deserializeBinaryFromReader(msg, reader);
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1743
|
+
* given reader into the given message object.
|
|
1744
|
+
* @param {!proto.pulumirpc.ConvertSnippetResponse} msg The message object to deserialize into.
|
|
1745
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1746
|
+
* @return {!proto.pulumirpc.ConvertSnippetResponse}
|
|
1747
|
+
*/
|
|
1748
|
+
proto.pulumirpc.ConvertSnippetResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1749
|
+
while (reader.nextField()) {
|
|
1750
|
+
if (reader.isEndGroup()) {
|
|
1751
|
+
break;
|
|
1752
|
+
}
|
|
1753
|
+
var field = reader.getFieldNumber();
|
|
1754
|
+
switch (field) {
|
|
1755
|
+
case 1:
|
|
1756
|
+
var value = new pulumi_codegen_hcl_pb.Diagnostic;
|
|
1757
|
+
reader.readMessage(value,pulumi_codegen_hcl_pb.Diagnostic.deserializeBinaryFromReader);
|
|
1758
|
+
msg.addDiagnostics(value);
|
|
1759
|
+
break;
|
|
1760
|
+
case 2:
|
|
1761
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1762
|
+
msg.setFilename(value);
|
|
1763
|
+
break;
|
|
1764
|
+
case 3:
|
|
1765
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1766
|
+
msg.setSource(value);
|
|
1767
|
+
break;
|
|
1768
|
+
default:
|
|
1769
|
+
reader.skipField();
|
|
1770
|
+
break;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
return msg;
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1779
|
+
* @return {!Uint8Array}
|
|
1780
|
+
*/
|
|
1781
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.serializeBinary = function() {
|
|
1782
|
+
var writer = new jspb.BinaryWriter();
|
|
1783
|
+
proto.pulumirpc.ConvertSnippetResponse.serializeBinaryToWriter(this, writer);
|
|
1784
|
+
return writer.getResultBuffer();
|
|
1785
|
+
};
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1790
|
+
* format), writing to the given BinaryWriter.
|
|
1791
|
+
* @param {!proto.pulumirpc.ConvertSnippetResponse} message
|
|
1792
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1793
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1794
|
+
*/
|
|
1795
|
+
proto.pulumirpc.ConvertSnippetResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1796
|
+
var f = undefined;
|
|
1797
|
+
f = message.getDiagnosticsList();
|
|
1798
|
+
if (f.length > 0) {
|
|
1799
|
+
writer.writeRepeatedMessage(
|
|
1800
|
+
1,
|
|
1801
|
+
f,
|
|
1802
|
+
pulumi_codegen_hcl_pb.Diagnostic.serializeBinaryToWriter
|
|
1803
|
+
);
|
|
1804
|
+
}
|
|
1805
|
+
f = message.getFilename();
|
|
1806
|
+
if (f.length > 0) {
|
|
1807
|
+
writer.writeString(
|
|
1808
|
+
2,
|
|
1809
|
+
f
|
|
1810
|
+
);
|
|
1811
|
+
}
|
|
1812
|
+
f = message.getSource_asU8();
|
|
1813
|
+
if (f.length > 0) {
|
|
1814
|
+
writer.writeBytes(
|
|
1815
|
+
3,
|
|
1816
|
+
f
|
|
1817
|
+
);
|
|
1818
|
+
}
|
|
1819
|
+
};
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* repeated codegen.Diagnostic diagnostics = 1;
|
|
1824
|
+
* @return {!Array<!proto.pulumirpc.codegen.Diagnostic>}
|
|
1825
|
+
*/
|
|
1826
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.getDiagnosticsList = function() {
|
|
1827
|
+
return /** @type{!Array<!proto.pulumirpc.codegen.Diagnostic>} */ (
|
|
1828
|
+
jspb.Message.getRepeatedWrapperField(this, pulumi_codegen_hcl_pb.Diagnostic, 1));
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
/**
|
|
1833
|
+
* @param {!Array<!proto.pulumirpc.codegen.Diagnostic>} value
|
|
1834
|
+
* @return {!proto.pulumirpc.ConvertSnippetResponse} returns this
|
|
1835
|
+
*/
|
|
1836
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.setDiagnosticsList = function(value) {
|
|
1837
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* @param {!proto.pulumirpc.codegen.Diagnostic=} opt_value
|
|
1843
|
+
* @param {number=} opt_index
|
|
1844
|
+
* @return {!proto.pulumirpc.codegen.Diagnostic}
|
|
1845
|
+
*/
|
|
1846
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.addDiagnostics = function(opt_value, opt_index) {
|
|
1847
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.pulumirpc.codegen.Diagnostic, opt_index);
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Clears the list making it empty but non-null.
|
|
1853
|
+
* @return {!proto.pulumirpc.ConvertSnippetResponse} returns this
|
|
1854
|
+
*/
|
|
1855
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.clearDiagnosticsList = function() {
|
|
1856
|
+
return this.setDiagnosticsList([]);
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* optional string filename = 2;
|
|
1862
|
+
* @return {string}
|
|
1863
|
+
*/
|
|
1864
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.getFilename = function() {
|
|
1865
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* @param {string} value
|
|
1871
|
+
* @return {!proto.pulumirpc.ConvertSnippetResponse} returns this
|
|
1872
|
+
*/
|
|
1873
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.setFilename = function(value) {
|
|
1874
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* optional bytes source = 3;
|
|
1880
|
+
* @return {!(string|Uint8Array)}
|
|
1881
|
+
*/
|
|
1882
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.getSource = function() {
|
|
1883
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* optional bytes source = 3;
|
|
1889
|
+
* This is a type-conversion wrapper around `getSource()`
|
|
1890
|
+
* @return {string}
|
|
1891
|
+
*/
|
|
1892
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.getSource_asB64 = function() {
|
|
1893
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1894
|
+
this.getSource()));
|
|
1895
|
+
};
|
|
1896
|
+
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* optional bytes source = 3;
|
|
1900
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
1901
|
+
* @see http://caniuse.com/Uint8Array
|
|
1902
|
+
* This is a type-conversion wrapper around `getSource()`
|
|
1903
|
+
* @return {!Uint8Array}
|
|
1904
|
+
*/
|
|
1905
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.getSource_asU8 = function() {
|
|
1906
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1907
|
+
this.getSource()));
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* @param {!(string|Uint8Array)} value
|
|
1913
|
+
* @return {!proto.pulumirpc.ConvertSnippetResponse} returns this
|
|
1914
|
+
*/
|
|
1915
|
+
proto.pulumirpc.ConvertSnippetResponse.prototype.setSource = function(value) {
|
|
1916
|
+
return jspb.Message.setProto3BytesField(this, 3, value);
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1335
1920
|
goog.object.extend(exports, proto.pulumirpc);
|
package/proto/engine_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, 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);
|
package/proto/errors_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.ErrorCause', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.InputPropertiesError', null, global);
|
package/proto/events_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, 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);
|
package/proto/language_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
var pulumi_codegen_hcl_pb = require('./codegen/hcl_pb.js');
|
|
19
19
|
goog.object.extend(proto, pulumi_codegen_hcl_pb);
|
package/proto/plugin_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.PackageDependency', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.PackageParameterization', null, global);
|
package/proto/provider_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
var pulumi_alias_pb = require('./alias_pb.js');
|
|
19
19
|
goog.object.extend(proto, pulumi_alias_pb);
|
package/proto/resource_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, 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);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
19
19
|
goog.object.extend(proto, google_protobuf_struct_pb);
|
package/proto/source_pb.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.SourcePosition', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.StackFrame', null, global);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var proto = { pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
16
|
+
var proto = { codegen: { }, pulumirpc: { codegen: { }, testing: { } } }, global = proto;
|
|
17
17
|
|
|
18
18
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsRequest', null, global);
|
|
19
19
|
goog.exportSymbol('proto.pulumirpc.testing.GetLanguageTestsResponse', null, global);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.
|
|
1
|
+
export declare const version = "3.243.0";
|
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.
|
|
16
|
+
exports.version = "3.243.0-alpha.x6a56ada";
|
|
17
17
|
//# sourceMappingURL=version.js.map
|