Skip to content

Commit 971684a

Browse files
committed
Do not regress surface area
1 parent 9237661 commit 971684a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

source/Octopus.Client.Tests/PublicSurfaceAreaFixture.ThePublicSurfaceAreaShouldNotRegress..NETCore.approved.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4986,16 +4986,28 @@ Octopus.Client.Model
49864986
class RetentionPeriod
49874987
IEquatable<RetentionPeriod>
49884988
{
4989+
.ctor(Octopus.Client.Model.RetentionPeriodStrategy, Int32, Octopus.Client.Model.RetentionUnit)
49894990
.ctor(Int32, Octopus.Client.Model.RetentionUnit)
49904991
Int32 QuantityToKeep { get; }
49914992
Boolean ShouldKeepForever { get; }
4993+
Octopus.Client.Model.RetentionPeriodStrategy Strategy { get; }
49924994
Octopus.Client.Model.RetentionUnit Unit { get; }
4995+
static Octopus.Client.Model.RetentionPeriod Default()
49934996
Boolean Equals(Octopus.Client.Model.RetentionPeriod)
49944997
Boolean Equals(Object)
49954998
Int32 GetHashCode()
49964999
static Octopus.Client.Model.RetentionPeriod KeepForever()
49975000
String ToString()
49985001
}
5002+
class RetentionPeriodStrategy
5003+
IComparable
5004+
Octopus.TinyTypes.CaseInsensitiveStringTinyType
5005+
{
5006+
static Octopus.Client.Model.RetentionPeriodStrategy Count
5007+
static Octopus.Client.Model.RetentionPeriodStrategy Default
5008+
static Octopus.Client.Model.RetentionPeriodStrategy Forever
5009+
.ctor(String)
5010+
}
49995011
class RetentionPoliciesConfigurationResource
50005012
Octopus.Client.Extensibility.IResource
50015013
Octopus.Client.Model.IAuditedResource

source/Octopus.Server.Client/Model/RetentionPeriod.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public RetentionPeriod(int quantityToKeep, RetentionUnit unit) : this(null, quan
2626
public bool ShouldKeepForever => QuantityToKeep == 0;
2727

2828
public static RetentionPeriod Default() => new(RetentionPeriodStrategy.Default, 0, RetentionUnit.Items);
29+
public static RetentionPeriod KeepForever() => new(RetentionPeriodStrategy.Forever, 0, RetentionUnit.Items);
2930

3031
RetentionPeriodStrategy SelectStrategyBasedOnSettings(int quantityToKeep, RetentionUnit unit)
3132
{
@@ -72,5 +73,6 @@ public class RetentionPeriodStrategy(string value) : CaseInsensitiveStringTinyTy
7273
{
7374
public static readonly RetentionPeriodStrategy Default = new("Default");
7475
public static readonly RetentionPeriodStrategy Count = new("Count");
76+
public static readonly RetentionPeriodStrategy Forever = new("Forever");
7577
}
7678
}

0 commit comments

Comments
 (0)