pulumi/sdk/proto/nodejs/language_grpc_pb.js
Joe Duffy 16ade183d8
Add a manifest to checkpoint files (#630)
This change adds a new manifest section to the checkpoint files.
The existing time moves into it, and we add to it the version of
the Pulumi CLI that created it, along with the names, types, and
versions of all plugins used to generate the file.  There is a
magic cookie that we also use during verification.

This is to help keep us sane when debugging problems "in the wild,"
and I'm sure we will add more to it over time (checksum, etc).

For example, after an up, you can now see this in `pulumi stack`:

```
Current stack is demo:
    Last updated at 2017-12-01 13:48:49.815740523 -0800 PST
    Pulumi version v0.8.3-79-g1ab99ad
    Plugin pulumi-provider-aws [resource] version v0.8.3-22-g4363e77
    Plugin pulumi-langhost-nodejs [language] version v0.8.3-79-g77bb6b6
    Checkpoint file is /Users/joeduffy/dev/code/src/github.com/pulumi/pulumi-aws/.pulumi/stacks/webserver/demo.json
```

This addresses pulumi/pulumi#628.
2017-12-01 13:50:32 -08:00

85 lines
3 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 language_pb = require('./language_pb.js');
var plugin_pb = require('./plugin_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_PluginInfo(arg) {
if (!(arg instanceof plugin_pb.PluginInfo)) {
throw new Error('Expected argument of type pulumirpc.PluginInfo');
}
return new Buffer(arg.serializeBinary());
}
function deserialize_pulumirpc_PluginInfo(buffer_arg) {
return plugin_pb.PluginInfo.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_RunRequest(arg) {
if (!(arg instanceof language_pb.RunRequest)) {
throw new Error('Expected argument of type pulumirpc.RunRequest');
}
return new Buffer(arg.serializeBinary());
}
function deserialize_pulumirpc_RunRequest(buffer_arg) {
return language_pb.RunRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_RunResponse(arg) {
if (!(arg instanceof language_pb.RunResponse)) {
throw new Error('Expected argument of type pulumirpc.RunResponse');
}
return new Buffer(arg.serializeBinary());
}
function deserialize_pulumirpc_RunResponse(buffer_arg) {
return language_pb.RunResponse.deserializeBinary(new Uint8Array(buffer_arg));
}
// LanguageRuntime is the interface that the planning monitor uses to drive execution of an interpreter responsible
// for confguring and creating resource objects.
var LanguageRuntimeService = exports.LanguageRuntimeService = {
run: {
path: '/pulumirpc.LanguageRuntime/Run',
requestStream: false,
responseStream: false,
requestType: language_pb.RunRequest,
responseType: language_pb.RunResponse,
requestSerialize: serialize_pulumirpc_RunRequest,
requestDeserialize: deserialize_pulumirpc_RunRequest,
responseSerialize: serialize_pulumirpc_RunResponse,
responseDeserialize: deserialize_pulumirpc_RunResponse,
},
// GetPluginInfo returns generic information about this plugin, like its version.
getPluginInfo: {
path: '/pulumirpc.LanguageRuntime/GetPluginInfo',
requestStream: false,
responseStream: false,
requestType: google_protobuf_empty_pb.Empty,
responseType: plugin_pb.PluginInfo,
requestSerialize: serialize_google_protobuf_Empty,
requestDeserialize: deserialize_google_protobuf_Empty,
responseSerialize: serialize_pulumirpc_PluginInfo,
responseDeserialize: deserialize_pulumirpc_PluginInfo,
},
};
exports.LanguageRuntimeClient = grpc.makeGenericClientConstructor(LanguageRuntimeService);