Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix putobject #24

Merged
merged 11 commits into from
Apr 30, 2024
20 changes: 20 additions & 0 deletions Usace.CC.Plugin/Action.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System.Text.Json.Serialization;

namespace Usace.CC.Plugin
{
/// <summary>
/// Generic action -- like a process for a plugin to execute
/// used for declaritively describing processes to include and their order
///
/// examples: manipulate input files, run a simulation, manipulate output files
/// </summary>
public class Action
{
public string Name { get; set; }
public string Type { get; set; }
[JsonPropertyName("desc")]
public string Description { get; set; }
[JsonPropertyName("params")]
public Dictionary<string, string> Parameters { get; set; }
}
}
1 change: 1 addition & 0 deletions Usace.CC.Plugin/DataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public class DataSource
public string ID { get; set; }
public string StoreName { get; set; }
public string[] Paths { get; set; } // specific key or set of keys, shape_file.[shp|shx|dbf]
public string[] DataPaths { get; set; } //internal data paths like dss record paths or hdf table paths.
}
}
1 change: 1 addition & 0 deletions Usace.CC.Plugin/Payload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class Payload
public DataStore[] Stores { get; set; }
public DataSource[] Inputs { get; set; }
public DataSource[] Outputs { get; set; }
public Action[] Actions { get;set;}

public static Payload FromJson(string json)
{
Expand Down
2 changes: 1 addition & 1 deletion Usace.CC.Plugin/Usace.CC.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageDescription>
Usace.CC.Plugin can be used to build plugins for Cloud Compute
</PackageDescription>
<PackageVersion>1.0.4</PackageVersion>
<PackageVersion>1.0.5</PackageVersion>

</PropertyGroup>

Expand Down
Loading