mirror of https://github.com/pulumi/pulumi.git
207 lines
12 KiB
C#
207 lines
12 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: analyzer.proto
|
|
// </auto-generated>
|
|
// Original file comments:
|
|
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
//
|
|
#pragma warning disable 1591
|
|
#region Designer generated code
|
|
|
|
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using grpc = global::Grpc.Core;
|
|
|
|
namespace Pulumirpc {
|
|
/// <summary>
|
|
/// Analyzer is a pluggable service that checks entire projects/stacks/snapshots, and/or individual resources,
|
|
/// for arbitrary issues. These might be style, policy, correctness, security, or performance related.
|
|
/// </summary>
|
|
public static partial class Analyzer
|
|
{
|
|
static readonly string __ServiceName = "pulumirpc.Analyzer";
|
|
|
|
static readonly grpc::Marshaller<global::Pulumirpc.AnalyzeRequest> __Marshaller_AnalyzeRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.AnalyzeRequest.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Pulumirpc.AnalyzeResponse> __Marshaller_AnalyzeResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.AnalyzeResponse.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Google.Protobuf.WellKnownTypes.Empty> __Marshaller_Empty = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Google.Protobuf.WellKnownTypes.Empty.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Pulumirpc.PluginInfo> __Marshaller_PluginInfo = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.PluginInfo.Parser.ParseFrom);
|
|
|
|
static readonly grpc::Method<global::Pulumirpc.AnalyzeRequest, global::Pulumirpc.AnalyzeResponse> __Method_Analyze = new grpc::Method<global::Pulumirpc.AnalyzeRequest, global::Pulumirpc.AnalyzeResponse>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Analyze",
|
|
__Marshaller_AnalyzeRequest,
|
|
__Marshaller_AnalyzeResponse);
|
|
|
|
static readonly grpc::Method<global::Google.Protobuf.WellKnownTypes.Empty, global::Pulumirpc.PluginInfo> __Method_GetPluginInfo = new grpc::Method<global::Google.Protobuf.WellKnownTypes.Empty, global::Pulumirpc.PluginInfo>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"GetPluginInfo",
|
|
__Marshaller_Empty,
|
|
__Marshaller_PluginInfo);
|
|
|
|
/// <summary>Service descriptor</summary>
|
|
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
|
|
{
|
|
get { return global::Pulumirpc.AnalyzerReflection.Descriptor.Services[0]; }
|
|
}
|
|
|
|
/// <summary>Base class for server-side implementations of Analyzer</summary>
|
|
public abstract partial class AnalyzerBase
|
|
{
|
|
/// <summary>
|
|
/// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
public virtual global::System.Threading.Tasks.Task<global::Pulumirpc.AnalyzeResponse> Analyze(global::Pulumirpc.AnalyzeRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
/// <summary>
|
|
/// GetPluginInfo returns generic information about this plugin, like its version.
|
|
/// </summary>
|
|
/// <param name="request">The request received from the client.</param>
|
|
/// <param name="context">The context of the server-side call handler being invoked.</param>
|
|
/// <returns>The response to send back to the client (wrapped by a task).</returns>
|
|
public virtual global::System.Threading.Tasks.Task<global::Pulumirpc.PluginInfo> GetPluginInfo(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>Client for Analyzer</summary>
|
|
public partial class AnalyzerClient : grpc::ClientBase<AnalyzerClient>
|
|
{
|
|
/// <summary>Creates a new client for Analyzer</summary>
|
|
/// <param name="channel">The channel to use to make remote calls.</param>
|
|
public AnalyzerClient(grpc::Channel channel) : base(channel)
|
|
{
|
|
}
|
|
/// <summary>Creates a new client for Analyzer that uses a custom <c>CallInvoker</c>.</summary>
|
|
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
|
|
public AnalyzerClient(grpc::CallInvoker callInvoker) : base(callInvoker)
|
|
{
|
|
}
|
|
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
|
|
protected AnalyzerClient() : base()
|
|
{
|
|
}
|
|
/// <summary>Protected constructor to allow creation of configured clients.</summary>
|
|
/// <param name="configuration">The client configuration.</param>
|
|
protected AnalyzerClient(ClientBaseConfiguration configuration) : base(configuration)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
public virtual global::Pulumirpc.AnalyzeResponse Analyze(global::Pulumirpc.AnalyzeRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return Analyze(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
public virtual global::Pulumirpc.AnalyzeResponse Analyze(global::Pulumirpc.AnalyzeRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Analyze, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
public virtual grpc::AsyncUnaryCall<global::Pulumirpc.AnalyzeResponse> AnalyzeAsync(global::Pulumirpc.AnalyzeRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return AnalyzeAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Analyze analyzes a single resource object, and returns any errors that it finds.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
public virtual grpc::AsyncUnaryCall<global::Pulumirpc.AnalyzeResponse> AnalyzeAsync(global::Pulumirpc.AnalyzeRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Analyze, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// GetPluginInfo returns generic information about this plugin, like its version.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
public virtual global::Pulumirpc.PluginInfo GetPluginInfo(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return GetPluginInfo(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// GetPluginInfo returns generic information about this plugin, like its version.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The response received from the server.</returns>
|
|
public virtual global::Pulumirpc.PluginInfo GetPluginInfo(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_GetPluginInfo, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// GetPluginInfo returns generic information about this plugin, like its version.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
|
|
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
|
|
/// <param name="cancellationToken">An optional token for canceling the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
public virtual grpc::AsyncUnaryCall<global::Pulumirpc.PluginInfo> GetPluginInfoAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return GetPluginInfoAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// GetPluginInfo returns generic information about this plugin, like its version.
|
|
/// </summary>
|
|
/// <param name="request">The request to send to the server.</param>
|
|
/// <param name="options">The options for the call.</param>
|
|
/// <returns>The call object.</returns>
|
|
public virtual grpc::AsyncUnaryCall<global::Pulumirpc.PluginInfo> GetPluginInfoAsync(global::Google.Protobuf.WellKnownTypes.Empty request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_GetPluginInfo, null, options, request);
|
|
}
|
|
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
|
|
protected override AnalyzerClient NewInstance(ClientBaseConfiguration configuration)
|
|
{
|
|
return new AnalyzerClient(configuration);
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates service definition that can be registered with a server</summary>
|
|
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
|
|
public static grpc::ServerServiceDefinition BindService(AnalyzerBase serviceImpl)
|
|
{
|
|
return grpc::ServerServiceDefinition.CreateBuilder()
|
|
.AddMethod(__Method_Analyze, serviceImpl.Analyze)
|
|
.AddMethod(__Method_GetPluginInfo, serviceImpl.GetPluginInfo).Build();
|
|
}
|
|
|
|
}
|
|
}
|
|
#endregion
|