pulumi/sdk/nodejs/proto/analyzer_grpc_pb.js
CyrusNajmabadi 66bd3f4aa8
Breaking changes due to Feature 2.0 work
* Make `async:true` the default for `invoke` calls (#3750)

* Switch away from native grpc impl. (#3728)

* Remove usage of the 'deasync' library from @pulumi/pulumi. (#3752)

* Only retry as long as we get unavailable back.  Anything else continues. (#3769)

* Handle all errors for now. (#3781)


* Do not assume --yes was present when using pulumi in non-interactive mode (#3793)

* Upgrade all paths for sdk and pkg to v2

* Backport C# invoke classes and other recent gen changes (#4288)

Adjust C# generation

* Replace IDeployment with a sealed class (#4318)

Replace IDeployment with a sealed class

* .NET: default to args subtype rather than Args.Empty (#4320)

* Adding system namespace for Dotnet code gen

This is required for using Obsolute attributes for deprecations

```
Iam/InstanceProfile.cs(142,10): error CS0246: The type or namespace name 'ObsoleteAttribute' could not be found (are you missing a using directive or an assembly reference?) [/Users/stack72/code/go/src/github.com/pulumi/pulumi-aws/sdk/dotnet/Pulumi.Aws.csproj]
Iam/InstanceProfile.cs(142,10): error CS0246: The type or namespace name 'Obsolete' could not be found (are you missing a using directive or an assembly reference?) [/Users/stack72/code/go/src/github.com/pulumi/pulumi-aws/sdk/dotnet/Pulumi.Aws.csproj]
```

* Fix the nullability of config type properties in C# codegen (#4379)
2020-04-14 09:30:25 +01:00

174 lines
6.9 KiB
JavaScript

// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
// Copyright 2016-2018, Pulumi Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
'use strict';
var grpc = require('@grpc/grpc-js');
var analyzer_pb = require('./analyzer_pb.js');
var plugin_pb = require('./plugin_pb.js');
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_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 Buffer.from(arg.serializeBinary());
}
function deserialize_google_protobuf_Empty(buffer_arg) {
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_AnalyzeRequest(arg) {
if (!(arg instanceof analyzer_pb.AnalyzeRequest)) {
throw new Error('Expected argument of type pulumirpc.AnalyzeRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_pulumirpc_AnalyzeRequest(buffer_arg) {
return analyzer_pb.AnalyzeRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_AnalyzeResponse(arg) {
if (!(arg instanceof analyzer_pb.AnalyzeResponse)) {
throw new Error('Expected argument of type pulumirpc.AnalyzeResponse');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_pulumirpc_AnalyzeResponse(buffer_arg) {
return analyzer_pb.AnalyzeResponse.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_AnalyzeStackRequest(arg) {
if (!(arg instanceof analyzer_pb.AnalyzeStackRequest)) {
throw new Error('Expected argument of type pulumirpc.AnalyzeStackRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_pulumirpc_AnalyzeStackRequest(buffer_arg) {
return analyzer_pb.AnalyzeStackRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_AnalyzerInfo(arg) {
if (!(arg instanceof analyzer_pb.AnalyzerInfo)) {
throw new Error('Expected argument of type pulumirpc.AnalyzerInfo');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_pulumirpc_AnalyzerInfo(buffer_arg) {
return analyzer_pb.AnalyzerInfo.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_pulumirpc_ConfigureAnalyzerRequest(arg) {
if (!(arg instanceof analyzer_pb.ConfigureAnalyzerRequest)) {
throw new Error('Expected argument of type pulumirpc.ConfigureAnalyzerRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_pulumirpc_ConfigureAnalyzerRequest(buffer_arg) {
return analyzer_pb.ConfigureAnalyzerRequest.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 Buffer.from(arg.serializeBinary());
}
function deserialize_pulumirpc_PluginInfo(buffer_arg) {
return plugin_pb.PluginInfo.deserializeBinary(new Uint8Array(buffer_arg));
}
// Analyzer provides a pluggable interface for checking resource definitions against some number of
// resource policies. It is intentionally open-ended, allowing for implementations that check
// everything from raw resource definitions to entire projects/stacks/snapshots for arbitrary
// issues -- style, policy, correctness, security, and so on.
var AnalyzerService = exports.AnalyzerService = {
// Analyze analyzes a single resource object, and returns any errors that it finds.
// Called with the "inputs" to the resource, before it is updated.
analyze: {
path: '/pulumirpc.Analyzer/Analyze',
requestStream: false,
responseStream: false,
requestType: analyzer_pb.AnalyzeRequest,
responseType: analyzer_pb.AnalyzeResponse,
requestSerialize: serialize_pulumirpc_AnalyzeRequest,
requestDeserialize: deserialize_pulumirpc_AnalyzeRequest,
responseSerialize: serialize_pulumirpc_AnalyzeResponse,
responseDeserialize: deserialize_pulumirpc_AnalyzeResponse,
},
// AnalyzeStack analyzes all resources within a stack, at the end of a successful
// preview or update. The provided resources are the "outputs", after any mutations
// have taken place.
analyzeStack: {
path: '/pulumirpc.Analyzer/AnalyzeStack',
requestStream: false,
responseStream: false,
requestType: analyzer_pb.AnalyzeStackRequest,
responseType: analyzer_pb.AnalyzeResponse,
requestSerialize: serialize_pulumirpc_AnalyzeStackRequest,
requestDeserialize: deserialize_pulumirpc_AnalyzeStackRequest,
responseSerialize: serialize_pulumirpc_AnalyzeResponse,
responseDeserialize: deserialize_pulumirpc_AnalyzeResponse,
},
// GetAnalyzerInfo returns metadata about the analyzer (e.g., list of policies contained).
getAnalyzerInfo: {
path: '/pulumirpc.Analyzer/GetAnalyzerInfo',
requestStream: false,
responseStream: false,
requestType: google_protobuf_empty_pb.Empty,
responseType: analyzer_pb.AnalyzerInfo,
requestSerialize: serialize_google_protobuf_Empty,
requestDeserialize: deserialize_google_protobuf_Empty,
responseSerialize: serialize_pulumirpc_AnalyzerInfo,
responseDeserialize: deserialize_pulumirpc_AnalyzerInfo,
},
// GetPluginInfo returns generic information about this plugin, like its version.
getPluginInfo: {
path: '/pulumirpc.Analyzer/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,
},
// Configure configures the analyzer, passing configuration properties for each policy.
configure: {
path: '/pulumirpc.Analyzer/Configure',
requestStream: false,
responseStream: false,
requestType: analyzer_pb.ConfigureAnalyzerRequest,
responseType: google_protobuf_empty_pb.Empty,
requestSerialize: serialize_pulumirpc_ConfigureAnalyzerRequest,
requestDeserialize: deserialize_pulumirpc_ConfigureAnalyzerRequest,
responseSerialize: serialize_google_protobuf_Empty,
responseDeserialize: deserialize_google_protobuf_Empty,
},
};
exports.AnalyzerClient = grpc.makeGenericClientConstructor(AnalyzerService);