Skip to content

Commit c737df6

Browse files
authored
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.
1 parent 58bca4d commit c737df6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Nest/XPack/License/GetLicense/GetLicenseResponse.cs

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public class LicenseInformation
3636
[DataMember(Name ="max_nodes")]
3737
public long MaxNodes { get; internal set; }
3838

39+
[DataMember(Name = "max_resource_units")]
40+
public int? MaxResourceUnits { get; internal set; }
41+
3942
[DataMember(Name ="status")]
4043
public LicenseStatus Status { get; internal set; }
4144

src/Nest/XPack/License/GetLicense/LicenseType.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public enum LicenseType
2929
Gold,
3030

3131
[EnumMember(Value = "platinum")]
32-
Platinum
32+
Platinum,
33+
34+
[EnumMember(Value = "enterprise")]
35+
Enterprise,
3336
}
3437
}

0 commit comments

Comments
 (0)