pulumi/sdk/proto/nodejs/language_grpc_pb.js

50 lines
1.6 KiB
JavaScript
Raw Normal View History

Switch to parent pointers; display components nicely This change switches from child lists to parent pointers, in the way resource ancestries are represented. This cleans up a fair bit of the old parenting logic, including all notion of ambient parent scopes (and will notably address pulumi/pulumi#435). This lets us show a more parent/child display in the output when doing planning and updating. For instance, here is an update of a lambda's text, which is logically part of a cloud timer: * cloud:timer:Timer: (same) [urn=urn:pulumi:malta::lm-cloud::cloud:timer:Timer::lm-cts-malta-job-CleanSnapshots] * cloud:function:Function: (same) [urn=urn:pulumi:malta::lm-cloud::cloud:function:Function::lm-cts-malta-job-CleanSnapshots] * aws:serverless:Function: (same) [urn=urn:pulumi:malta::lm-cloud::aws:serverless:Function::lm-cts-malta-job-CleanSnapshots] ~ aws:lambda/function:Function: (modify) [id=lm-cts-malta-job-CleanSnapshots-fee4f3bf41280741] [urn=urn:pulumi:malta::lm-cloud::aws:lambda/function:Function::lm-cts-malta-job-CleanSnapshots] - code : archive(assets:2092f44) { // etc etc etc Note that we still get walls of text, but this will be actually quite nice when combined with pulumi/pulumi#454. I've also suppressed printing properties that didn't change during updates when --detailed was not passed, and also suppressed empty strings and zero-length arrays (since TF uses these as defaults in many places and it just makes creation and deletion quite verbose). Note that this is a far cry from everything we can possibly do here as part of pulumi/pulumi#340 (and even pulumi/pulumi#417). But it's a good start towards taming some of our output spew.
2017-11-17 03:21:41 +01:00
// 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');
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,
},
};
exports.LanguageRuntimeClient = grpc.makeGenericClientConstructor(LanguageRuntimeService);