// Copyright Epic Games, Inc. All Rights Reserved. #pragma warning disable CA1027 // Mark enums with FlagsAttribute namespace EpicGames.Horde.Agents.Leases { /// /// Outcome from a lease. Values must match lease_outcome.proto. /// public enum LeaseOutcome { /// /// Default value. /// Unspecified = 0, /// /// The lease was executed successfully /// Success = 1, /// /// The lease was not executed succesfully, but cannot be run again. /// Failed = 2, /// /// The lease was cancelled by request /// Cancelled = 4 } /// /// State of a lease. Values must match lease_state.proto. /// public enum LeaseState { /// /// Default value. /// Unspecified = 0, /// /// Set by the server when waiting for an agent to accept the lease. Once processed, the agent should transition the lease state to active. /// Pending = 1, /// /// The agent is actively working on this lease. /// Active = 2, /// /// The agent has finished working on this lease. /// Completed = 3, /// /// Set by the server to indicate that the lease should be cancelled. /// Cancelled = 4 } /// /// Updates an existing lease /// public class UpdateLeaseRequest { /// /// Mark this lease as aborted /// public bool? Aborted { get; set; } } }