mirror of https://github.com/pulumi/pulumi.git
51 lines
1.7 KiB
JavaScript
51 lines
1.7 KiB
JavaScript
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
// Original file comments:
|
|
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
//
|
|
'use strict';
|
|
var grpc = require('grpc');
|
|
var engine_pb = require('./engine_pb.js');
|
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
|
|
function serialize_google_protobuf_Empty(arg) {
|
|
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
|
throw new Error('Expected argument of type google.protobuf.Empty');
|
|
}
|
|
return new Buffer(arg.serializeBinary());
|
|
}
|
|
|
|
function deserialize_google_protobuf_Empty(buffer_arg) {
|
|
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
}
|
|
|
|
function serialize_pulumirpc_LogRequest(arg) {
|
|
if (!(arg instanceof engine_pb.LogRequest)) {
|
|
throw new Error('Expected argument of type pulumirpc.LogRequest');
|
|
}
|
|
return new Buffer(arg.serializeBinary());
|
|
}
|
|
|
|
function deserialize_pulumirpc_LogRequest(buffer_arg) {
|
|
return engine_pb.LogRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
}
|
|
|
|
|
|
// Engine is an interface into the core engine responsible for orchestrating resource operations.
|
|
var EngineService = exports.EngineService = {
|
|
// Log logs a global message in the engine, including errors and warnings.
|
|
log: {
|
|
path: '/pulumirpc.Engine/Log',
|
|
requestStream: false,
|
|
responseStream: false,
|
|
requestType: engine_pb.LogRequest,
|
|
responseType: google_protobuf_empty_pb.Empty,
|
|
requestSerialize: serialize_pulumirpc_LogRequest,
|
|
requestDeserialize: deserialize_pulumirpc_LogRequest,
|
|
responseSerialize: serialize_google_protobuf_Empty,
|
|
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
},
|
|
};
|
|
|
|
exports.EngineClient = grpc.makeGenericClientConstructor(EngineService);
|