From c737df6dcbb005a496e0a5783c05b5d980c2d31a Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Fri, 21 Feb 2020 20:15:59 +1100 Subject: [PATCH] Support Enterprise license type (#4406) Relates: #4341, elastic/elasticsearch#49223, elastic/elasticsearch#50735 This commit adds support for Enterprise LicenseType, and adds max_resource_units to GetLicenseResponse. --- src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs | 3 +++ src/Nest/XPack/License/GetLicense/LicenseType.cs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs b/src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs index db2766c036b..d08690c5572 100644 --- a/src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs +++ b/src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs @@ -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; } diff --git a/src/Nest/XPack/License/GetLicense/LicenseType.cs b/src/Nest/XPack/License/GetLicense/LicenseType.cs index 36321f1a8a0..0d9d5e9fe56 100644 --- a/src/Nest/XPack/License/GetLicense/LicenseType.cs +++ b/src/Nest/XPack/License/GetLicense/LicenseType.cs @@ -29,6 +29,9 @@ public enum LicenseType Gold, [EnumMember(Value = "platinum")] - Platinum + Platinum, + + [EnumMember(Value = "enterprise")] + Enterprise, } }