Skip to content

Commit

Permalink
Merge pull request #24 from USACE/bugfix-putobject
Browse files Browse the repository at this point in the history
Bugfix putobject
  • Loading branch information
HenryGeorgist authored Apr 30, 2024
2 parents 74fe25f + d889ae9 commit 69161b5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
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

0 comments on commit 69161b5

Please sign in to comment.