2020-03-05 09:12:38 -08:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using YamlDotNet.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace k8s.KubeConfigModels
|
|
|
|
|
{
|
|
|
|
|
public class ExternalExecution
|
|
|
|
|
{
|
2020-04-23 11:40:06 -07:00
|
|
|
[YamlMember(Alias = "apiVersion")] public string ApiVersion { get; set; }
|
|
|
|
|
|
2020-03-05 09:12:38 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// The command to execute. Required.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[YamlMember(Alias = "command")]
|
|
|
|
|
public string Command { get; set; }
|
2020-04-23 11:40:06 -07:00
|
|
|
|
2020-03-05 09:12:38 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// Environment variables to set when executing the plugin. Optional.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[YamlMember(Alias = "env")]
|
2020-06-28 06:44:14 +01:00
|
|
|
public IList<Dictionary<string, string>> EnvironmentVariables { get; set; }
|
2020-04-23 11:40:06 -07:00
|
|
|
|
2020-03-05 09:12:38 -08:00
|
|
|
/// <summary>
|
|
|
|
|
/// Arguments to pass when executing the plugin. Optional.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[YamlMember(Alias = "args")]
|
|
|
|
|
public IList<string> Arguments { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|