< Summary

Information
Class: Elsa.Connections.Models.IntegrationConnection
Assembly: Elsa.Connections
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Models/IntegrationConnection.cs
Line coverage
90%
Covered lines: 20
Uncovered lines: 2
Coverable lines: 22
Total lines: 69
Line coverage: 90.9%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Models/IntegrationConnection.cs

#LineLine coverage
 1using Elsa.Common.Entities;
 2using System.Text.Json.Serialization;
 3
 4namespace Elsa.Connections.Models;
 5
 6public sealed class IntegrationConnection : Entity
 7{
 12118    public string EnvironmentId { get; set; } = default!;
 13519    public string ProviderId { get; set; } = default!;
 135110    public string ProviderAccountId { get; set; } = default!;
 147911    public ConnectionStatus Status { get; set; } = ConnectionStatus.Active;
 323412    public long Revision { get; set; } = 1;
 13    /// <summary>Nonsecret scheduling classification for the published generation. Null means legacy or unknown and is n
 14    [JsonIgnore]
 111715    public ConnectionCredentialKind? CredentialKind { get; set; }
 16    /// <summary>OAuth access-token expiry copied atomically when its generation is published. API keys have no expiry.<
 17    [JsonIgnore]
 133818    public DateTimeOffset? CredentialExpiresAt { get; set; }
 19    [JsonIgnore]
 135620    public string? CurrentSecretName { get; set; }
 21
 22    [JsonIgnore]
 149723    public string? CurrentGenerationId { get; set; }
 24
 25    [JsonIgnore]
 9026    public string? OperationId { get; set; }
 27    [JsonIgnore]
 8428    public long OperationExpectedRevision { get; set; }
 29    [JsonIgnore]
 11630    public long OperationFence { get; set; }
 31    [JsonIgnore]
 5632    public DateTimeOffset? OperationLeaseExpiresAt { get; set; }
 33    [JsonIgnore]
 146134    public CredentialOperationStatus OperationStatus { get; set; }
 35    [JsonIgnore]
 736    public string? OperationSourceGenerationId { get; set; }
 37    [JsonIgnore]
 6338    public string? PlannedSecretName { get; set; }
 39    [JsonIgnore]
 8240    public string? PlannedGenerationId { get; set; }
 41    [JsonIgnore]
 042    public string? StagedSecretName { get; set; }
 43    [JsonIgnore]
 1744    public string? StagedGenerationId { get; set; }
 45    [JsonIgnore]
 346    public ConnectionCredentialKind? StagedCredentialKind { get; set; }
 47    [JsonIgnore]
 21948    public DateTimeOffset? StagedCredentialExpiresAt { get; set; }
 49    [JsonIgnore]
 050    public string? LastSafeErrorCode { get; set; }
 51}
 52
 53public enum ConnectionStatus
 54{
 55    Active,
 56    Disconnected,
 57    RecoveryRequired
 58}
 59
 60public enum CredentialOperationStatus
 61{
 62    None,
 63    Claimed,
 64    ProviderCallStarted,
 65    CredentialReceived,
 66    Staged,
 67    Completed,
 68    RecoveryRequired
 69}