mirror of https://github.com/pulumi/pulumi.git
272 lines
17 KiB
C#
272 lines
17 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: language.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>
|
|
/// LanguageRuntime is the interface that the planning monitor uses to drive execution of an interpreter responsible
|
|
/// for confguring and creating resource objects.
|
|
/// </summary>
|
|
public static partial class LanguageRuntime
|
|
{
|
|
static readonly string __ServiceName = "pulumirpc.LanguageRuntime";
|
|
|
|
static readonly grpc::Marshaller<global::Pulumirpc.GetRequiredPluginsRequest> __Marshaller_GetRequiredPluginsRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.GetRequiredPluginsRequest.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Pulumirpc.GetRequiredPluginsResponse> __Marshaller_GetRequiredPluginsResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.GetRequiredPluginsResponse.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Pulumirpc.RunRequest> __Marshaller_RunRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.RunRequest.Parser.ParseFrom);
|
|
static readonly grpc::Marshaller<global::Pulumirpc.RunResponse> __Marshaller_RunResponse = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::Pulumirpc.RunResponse.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.GetRequiredPluginsRequest, global::Pulumirpc.GetRequiredPluginsResponse> __Method_GetRequiredPlugins = new grpc::Method<global::Pulumirpc.GetRequiredPluginsRequest, global::Pulumirpc.GetRequiredPluginsResponse>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"GetRequiredPlugins",
|
|
__Marshaller_GetRequiredPluginsRequest,
|
|
__Marshaller_GetRequiredPluginsResponse);
|
|
|
|
static readonly grpc::Method<global::Pulumirpc.RunRequest, global::Pulumirpc.RunResponse> __Method_Run = new grpc::Method<global::Pulumirpc.RunRequest, global::Pulumirpc.RunResponse>(
|
|
grpc::MethodType.Unary,
|
|
__ServiceName,
|
|
"Run",
|
|
__Marshaller_RunRequest,
|
|
__Marshaller_RunResponse);
|
|
|
|
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.LanguageReflection.Descriptor.Services[0]; }
|
|
}
|
|
|
|
/// <summary>Base class for server-side implementations of LanguageRuntime</summary>
|
|
public abstract partial class LanguageRuntimeBase
|
|
{
|
|
/// <summary>
|
|
/// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
/// </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.GetRequiredPluginsResponse> GetRequiredPlugins(global::Pulumirpc.GetRequiredPluginsRequest request, grpc::ServerCallContext context)
|
|
{
|
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
|
|
}
|
|
|
|
/// <summary>
|
|
/// Run executes a program and returns its result.
|
|
/// </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.RunResponse> Run(global::Pulumirpc.RunRequest 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 LanguageRuntime</summary>
|
|
public partial class LanguageRuntimeClient : grpc::ClientBase<LanguageRuntimeClient>
|
|
{
|
|
/// <summary>Creates a new client for LanguageRuntime</summary>
|
|
/// <param name="channel">The channel to use to make remote calls.</param>
|
|
public LanguageRuntimeClient(grpc::Channel channel) : base(channel)
|
|
{
|
|
}
|
|
/// <summary>Creates a new client for LanguageRuntime that uses a custom <c>CallInvoker</c>.</summary>
|
|
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
|
|
public LanguageRuntimeClient(grpc::CallInvoker callInvoker) : base(callInvoker)
|
|
{
|
|
}
|
|
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
|
|
protected LanguageRuntimeClient() : base()
|
|
{
|
|
}
|
|
/// <summary>Protected constructor to allow creation of configured clients.</summary>
|
|
/// <param name="configuration">The client configuration.</param>
|
|
protected LanguageRuntimeClient(ClientBaseConfiguration configuration) : base(configuration)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
/// </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.GetRequiredPluginsResponse GetRequiredPlugins(global::Pulumirpc.GetRequiredPluginsRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return GetRequiredPlugins(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
/// </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.GetRequiredPluginsResponse GetRequiredPlugins(global::Pulumirpc.GetRequiredPluginsRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_GetRequiredPlugins, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
/// </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.GetRequiredPluginsResponse> GetRequiredPluginsAsync(global::Pulumirpc.GetRequiredPluginsRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return GetRequiredPluginsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// GetRequiredPlugins computes the complete set of anticipated plugins required by a program.
|
|
/// </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.GetRequiredPluginsResponse> GetRequiredPluginsAsync(global::Pulumirpc.GetRequiredPluginsRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_GetRequiredPlugins, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Run executes a program and returns its result.
|
|
/// </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.RunResponse Run(global::Pulumirpc.RunRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return Run(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Run executes a program and returns its result.
|
|
/// </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.RunResponse Run(global::Pulumirpc.RunRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.BlockingUnaryCall(__Method_Run, null, options, request);
|
|
}
|
|
/// <summary>
|
|
/// Run executes a program and returns its result.
|
|
/// </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.RunResponse> RunAsync(global::Pulumirpc.RunRequest request, grpc::Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
|
|
{
|
|
return RunAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
|
|
}
|
|
/// <summary>
|
|
/// Run executes a program and returns its result.
|
|
/// </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.RunResponse> RunAsync(global::Pulumirpc.RunRequest request, grpc::CallOptions options)
|
|
{
|
|
return CallInvoker.AsyncUnaryCall(__Method_Run, 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 LanguageRuntimeClient NewInstance(ClientBaseConfiguration configuration)
|
|
{
|
|
return new LanguageRuntimeClient(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(LanguageRuntimeBase serviceImpl)
|
|
{
|
|
return grpc::ServerServiceDefinition.CreateBuilder()
|
|
.AddMethod(__Method_GetRequiredPlugins, serviceImpl.GetRequiredPlugins)
|
|
.AddMethod(__Method_Run, serviceImpl.Run)
|
|
.AddMethod(__Method_GetPluginInfo, serviceImpl.GetPluginInfo).Build();
|
|
}
|
|
|
|
}
|
|
}
|
|
#endregion
|