7019b8d7c6
* stj required * More requireds * Use JSON serializer settings for camel case rule * readonly * static naming
29 lines
722 B
C#
29 lines
722 B
C#
using System.Text.Json.Serialization;
|
|
using Speckle.Automate.Sdk.Schema.Triggers;
|
|
|
|
namespace Speckle.Automate.Sdk.Schema;
|
|
|
|
///<summary>
|
|
/// Values of the project, model and automation that triggered this function run.
|
|
///</summary>
|
|
public readonly struct AutomationRunData
|
|
{
|
|
[JsonRequired]
|
|
public required string ProjectId { get; init; }
|
|
|
|
[JsonRequired]
|
|
public required Uri SpeckleServerUrl { get; init; }
|
|
|
|
[JsonRequired]
|
|
public required string AutomationId { get; init; }
|
|
|
|
[JsonRequired]
|
|
public required string AutomationRunId { get; init; }
|
|
|
|
[JsonRequired]
|
|
public required string FunctionRunId { get; init; }
|
|
|
|
[JsonRequired]
|
|
public required List<VersionCreationTrigger> Triggers { get; init; }
|
|
}
|