Skip to content

Commit 06a4d3e

Browse files
committed
Fix response types in Calendar API, change from Id -> string
1 parent 05a609f commit 06a4d3e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Nest/XPack/MachineLearning/GetCalendars/GetCalendarsResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public interface IGetCalendarsResponse : IResponse
2424
public class Calendar
2525
{
2626
[JsonProperty("calendar_id")]
27-
public Id CalendarId { get; set; }
27+
public string CalendarId { get; set; }
2828

2929
[JsonProperty("job_ids")]
30-
public IReadOnlyCollection<Id> JobIds { get; set; } = EmptyReadOnly<Id>.Collection;
30+
public IReadOnlyCollection<string> JobIds { get; set; } = EmptyReadOnly<string>.Collection;
3131

3232
[JsonProperty("description")]
3333
public string Description { get; set; }

src/Nest/XPack/MachineLearning/PutCalendar/PutCalendarResponse.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ namespace Nest
99
public partial interface IPutCalendarResponse : IResponse
1010
{
1111
[JsonProperty("calendar_id")]
12-
Id CalendarId { get; }
12+
string CalendarId { get; }
1313

1414
[JsonProperty("description")]
1515
string Description { get; }
1616

1717
[JsonProperty("job_ids")]
18-
IReadOnlyCollection<Id> JobIds { get; }
18+
IReadOnlyCollection<string> JobIds { get; }
1919
}
2020

2121
/// <inheritdoc cref="IPutCalendarResponse" />
2222
public class PutCalendarResponse : ResponseBase, IPutCalendarResponse
2323
{
24-
public Id CalendarId { get; internal set; }
24+
public string CalendarId { get; internal set; }
2525

2626
public string Description { get; internal set; }
2727

28-
public IReadOnlyCollection<Id> JobIds { get; internal set; } = EmptyReadOnly<Id>.Collection;
28+
public IReadOnlyCollection<string> JobIds { get; internal set; } = EmptyReadOnly<string>.Collection;
2929
}
3030
}

src/Nest/XPack/MachineLearning/PutCalendarJob/PutCalendarJobResponse.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ namespace Nest
99
public partial interface IPutCalendarJobResponse : IResponse
1010
{
1111
[JsonProperty("calendar_id")]
12-
Id CalendarId { get; }
12+
string CalendarId { get; }
1313

1414
[JsonProperty("job_ids")]
15-
IReadOnlyCollection<Id> JobIds { get; }
15+
IReadOnlyCollection<string> JobIds { get; }
1616

1717
[JsonProperty("description")]
1818
string Description { get; }
@@ -21,10 +21,10 @@ public partial interface IPutCalendarJobResponse : IResponse
2121
/// <inheritdoc cref="IPutCalendarJobResponse" />
2222
public class PutCalendarJobResponse : ResponseBase, IPutCalendarJobResponse
2323
{
24-
public Id CalendarId { get; internal set; }
24+
public string CalendarId { get; internal set; }
2525

2626
public string Description { get; internal set; }
2727

28-
public IReadOnlyCollection<Id> JobIds { get; internal set; } = EmptyReadOnly<Id>.Collection;
28+
public IReadOnlyCollection<string> JobIds { get; internal set; } = EmptyReadOnly<string>.Collection;
2929
}
3030
}

0 commit comments

Comments
 (0)