Skip to content

Commit fe91ae5

Browse files
committed
Deprecate the ability to update datafeed's job_id
adresses elastic/elasticsearch#44691
1 parent 28444dd commit fe91ae5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Nest/XPack/MachineLearning/UpdateDataFeed/UpdateDatafeedRequest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public partial interface IUpdateDatafeedRequest
3838
/// <summary>
3939
/// A numerical character string that uniquely identifies the job.
4040
/// </summary>
41+
[Obsolete("As of 7.4.0 the ability to associate a feed with a different job is being deprecated as it adds unnecessary complexity")]
4142
[DataMember(Name ="job_id")]
4243
Id JobId { get; set; }
4344

@@ -85,6 +86,7 @@ public partial class UpdateDatafeedRequest
8586
public Indices Indices { get; set; }
8687

8788
/// <inheritdoc />
89+
[Obsolete("As of 7.4.0 the ability to associate a feed with a different job is being deprecated as it adds unnecessary complexity")]
8890
public Id JobId { get; set; }
8991

9092
/// <inheritdoc />
@@ -133,6 +135,7 @@ public UpdateDatafeedDescriptor<TDocument> ChunkingConfig(Func<ChunkingConfigDes
133135
public UpdateDatafeedDescriptor<TDocument> AllIndices() => Indices(Nest.Indices.All);
134136

135137
/// <inheritdoc />
138+
[Obsolete("As of 7.4.0 the ability to associate a feed with a different job is being deprecated as it adds unnecessary complexity")]
136139
public UpdateDatafeedDescriptor<TDocument> JobId(Id jobId) => Assign(jobId, (a, v) => a.JobId = v);
137140

138141
/// <inheritdoc />

0 commit comments

Comments
 (0)