Skip to content

Instantly share code, notes, and snippets.

@radu-matei
Created February 24, 2019 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radu-matei/faf8901cd8848dc9c2a6c8af752ef816 to your computer and use it in GitHub Desktop.
Save radu-matei/faf8901cd8848dc9c2a6c8af752ef816 to your computer and use it in GitHub Desktop.
WIP CNAB Operation in .NET - currently removing, but may need later.
using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace Cnab.Runtime
{
public class Operation
{
[JsonProperty("installation_name")]
public string Installation { get; set; }
[JsonProperty("revision")]
public string Revision { get; set; }
[JsonProperty("action")]
public string Action { get; set; }
[JsonProperty("parameters")]
public Dictionary<string, IParameterDefinition> Parameters { get; set; }
[JsonProperty("image")]
public string Image { get; set; }
[JsonProperty("image_type")]
public string ImageType { get; set; }
[JsonProperty("environment")]
public Dictionary<string, string> Environment { get; set; }
[JsonProperty("files")]
public Dictionary<string, string> Files { get; set; }
public StreamWriter Out { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment