< Summary

Information
Class: Elsa.Secrets.Models.SecretPickerResponse
Assembly: Elsa.Secrets
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Secrets/Models/SecretApiModels.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 99
Line coverage: 0%
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

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Items()100%210%
get_CanCreateInline()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Secrets/Models/SecretApiModels.cs

#LineLine coverage
 1namespace Elsa.Secrets.Models;
 2
 3public class SecretModel
 4{
 5    public string Id { get; set; } = default!;
 6    public string Name { get; set; } = default!;
 7    public string DisplayName { get; set; } = default!;
 8    public string? Description { get; set; }
 9    public string TypeName { get; set; } = default!;
 10    public string StoreName { get; set; } = default!;
 11    public string? Scope { get; set; }
 12    public ICollection<string> Tags { get; set; } = [];
 13    public SecretStatus Status { get; set; }
 14    public int? CurrentVersion { get; set; }
 15    public DateTimeOffset CreatedAt { get; set; }
 16    public DateTimeOffset? UpdatedAt { get; set; }
 17    public DateTimeOffset? ExpiresAt { get; set; }
 18}
 19
 20public class CreateSecretRequest
 21{
 22    public string Name { get; set; } = default!;
 23    public string? DisplayName { get; set; }
 24    public string? Description { get; set; }
 25    public string TypeName { get; set; } = SecretTypeNames.Text;
 26    public string StoreName { get; set; } = SecretStoreNames.Encrypted;
 27    public string? Scope { get; set; }
 28    public ICollection<string> Tags { get; set; } = [];
 29    public string? Value { get; set; }
 30    public string? ConfigurationKey { get; set; }
 31    public DateTimeOffset? ExpiresAt { get; set; }
 32    public IDictionary<string, string> Metadata { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgn
 33}
 34
 35public class UpdateSecretRequest
 36{
 37    public string? DisplayName { get; set; }
 38    public string? Description { get; set; }
 39}
 40
 41public class RotateSecretRequest
 42{
 43    public string? Value { get; set; }
 44    public string? ConfigurationKey { get; set; }
 45    public DateTimeOffset? ExpiresAt { get; set; }
 46    public IDictionary<string, string> Metadata { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgn
 47}
 48
 49public class ListSecretsRequest
 50{
 51    public string? Search { get; set; }
 52    public string? TypeName { get; set; }
 53    public ICollection<string> TypeNames { get; set; } = [];
 54    public string? StoreName { get; set; }
 55    public ICollection<string> StoreNames { get; set; } = [];
 56    public string? Scope { get; set; }
 57    public SecretStatus? Status { get; set; }
 58    public int? Page { get; set; }
 59    public int? PageSize { get; set; }
 60}
 61
 62public class ListSecretsResponse
 63{
 64    public ICollection<SecretModel> Items { get; set; } = [];
 65    public long TotalCount { get; set; }
 66}
 67
 68public class ListSecretsResult
 69{
 70    public IReadOnlyCollection<Secret> Items { get; set; } = [];
 71    public long TotalCount { get; set; }
 72}
 73
 74public class SecretDescriptorsResponse
 75{
 76    public ICollection<SecretTypeDescriptor> Types { get; set; } = [];
 77    public ICollection<SecretStoreDescriptor> Stores { get; set; } = [];
 78}
 79
 80public class SecretPickerRequest
 81{
 82    public string? Search { get; set; }
 83    public ICollection<string> TypeNames { get; set; } = [];
 84    public ICollection<string> StoreNames { get; set; } = [];
 85    public string? Scope { get; set; }
 86    public bool ActiveOnly { get; set; } = true;
 87}
 88
 89public class SecretPickerResponse
 90{
 091    public ICollection<SecretModel> Items { get; set; } = [];
 092    public bool CanCreateInline { get; set; } = true;
 93}
 94
 95public class SecretTestResponse
 96{
 97    public bool Succeeded { get; set; }
 98    public string? Error { get; set; }
 99}

Methods/Properties

get_Items()
get_CanCreateInline()