Skip to content

Commit

Permalink
Add missing fields to LicenseStatusResource (#512)
Browse files Browse the repository at this point in the history
To bring it into sync with the server
  • Loading branch information
matt-richardson authored Mar 5, 2020
1 parent 9e28e35 commit abcebd9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3154,12 +3154,18 @@ Octopus.Client.Model
.ctor()
String ComplianceSummary { get; set; }
Int32 DaysToEffectiveExpiryDate { get; set; }
Boolean DoesExpiryBlockKeyActivities { get; set; }
Int32 EffectiveClusterTaskLimit { get; set; }
DateTime EffectiveExpiryDate { get; set; }
Int32 EffectiveNodeTaskLimit { get; set; }
String HostingEnvironment { get; set; }
Boolean IsClusterTaskLimitControlledByLicense { get; set; }
Boolean IsCompliant { get; set; }
Boolean IsNodeTaskLimitControlledByLicense { get; set; }
String LicenseKind { get; set; }
Octopus.Client.Model.LicenseLimitStatusResource[] Limits { get; set; }
Octopus.Client.Model.LicenseMessageResource[] Messages { get; set; }
String PermissionsMode { get; set; }
}
class LifecycleProgressionResource
Octopus.Client.Extensibility.IResource
Expand Down Expand Up @@ -3768,6 +3774,12 @@ Octopus.Client.Model
String Description { get; set; }
String[] SupportedRestrictions { get; set; }
}
abstract class PermissionModes
{
static System.String Full
static System.String Restricted
static System.String Unspecified
}
abstract class PermissionScope
{
static System.String Environments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3170,12 +3170,18 @@ Octopus.Client.Model
.ctor()
String ComplianceSummary { get; set; }
Int32 DaysToEffectiveExpiryDate { get; set; }
Boolean DoesExpiryBlockKeyActivities { get; set; }
Int32 EffectiveClusterTaskLimit { get; set; }
DateTime EffectiveExpiryDate { get; set; }
Int32 EffectiveNodeTaskLimit { get; set; }
String HostingEnvironment { get; set; }
Boolean IsClusterTaskLimitControlledByLicense { get; set; }
Boolean IsCompliant { get; set; }
Boolean IsNodeTaskLimitControlledByLicense { get; set; }
String LicenseKind { get; set; }
Octopus.Client.Model.LicenseLimitStatusResource[] Limits { get; set; }
Octopus.Client.Model.LicenseMessageResource[] Messages { get; set; }
String PermissionsMode { get; set; }
}
class LifecycleProgressionResource
Octopus.Client.Extensibility.IResource
Expand Down Expand Up @@ -3787,6 +3793,12 @@ Octopus.Client.Model
String Description { get; set; }
String[] SupportedRestrictions { get; set; }
}
abstract class PermissionModes
{
static System.String Full
static System.String Restricted
static System.String Unspecified
}
abstract class PermissionScope
{
static System.String Environments
Expand Down
20 changes: 19 additions & 1 deletion source/Octopus.Client/Model/LicenseStatusResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ public static class LicenseMessageDispositions
public static readonly string Error = "Error";
}

public static class PermissionModes
{
public static readonly string Unspecified = "Unspecified";
public static readonly string Restricted = "Restricted";
public static readonly string Full = "Full";
}

public class LicenseStatusResource : Resource
{
/// <summary>
/// One of the values from LicenseKinds
/// One of the values from <see cref="LicenseKinds"/>
/// </summary>
[Obsolete("No longer supported from 2019.8.6")]
public string LicenseKind { get; set; }
public bool IsCompliant { get; set; }
public string HostingEnvironment { get; set; }
Expand All @@ -35,6 +43,16 @@ public class LicenseStatusResource : Resource
public int DaysToEffectiveExpiryDate { get; set; }
public LicenseMessageResource[] Messages { get; set; }
public LicenseLimitStatusResource[] Limits { get; set; }
public bool DoesExpiryBlockKeyActivities { get; set; }
public int EffectiveNodeTaskLimit { get; set; }
public int EffectiveClusterTaskLimit { get; set; }
public bool IsClusterTaskLimitControlledByLicense { get; set; }
public bool IsNodeTaskLimitControlledByLicense { get; set; }

/// <summary>
/// One of the values from <see cref="PermissionModes"/>
/// </summary>
public string PermissionsMode { get; set; }
}

public class LicenseMessageResource
Expand Down

0 comments on commit abcebd9

Please sign in to comment.