Skip to content

Commit

Permalink
Support Enterprise license type (#4406)
Browse files Browse the repository at this point in the history
Relates: #4341, elastic/elasticsearch#49223, elastic/elasticsearch#50735

This commit adds support for Enterprise LicenseType,
and adds max_resource_units to GetLicenseResponse.
  • Loading branch information
russcam authored and github-actions[bot] committed Feb 21, 2020
1 parent 9a08447 commit 612c639
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public class LicenseInformation
[DataMember(Name ="max_nodes")]
public long MaxNodes { get; internal set; }

[DataMember(Name = "max_resource_units")]
public int? MaxResourceUnits { get; internal set; }

[DataMember(Name ="status")]
public LicenseStatus Status { get; internal set; }

Expand Down
5 changes: 4 additions & 1 deletion src/Nest/XPack/License/GetLicense/LicenseType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public enum LicenseType
Gold,

[EnumMember(Value = "platinum")]
Platinum
Platinum,

[EnumMember(Value = "enterprise")]
Enterprise,
}
}

0 comments on commit 612c639

Please sign in to comment.