diff --git a/src/Sdk/DTGenerated/Generated/TaskAgentHttpClientBase.cs b/src/Sdk/DTGenerated/Generated/TaskAgentHttpClientBase.cs
index 754323a81..27216d644 100644
--- a/src/Sdk/DTGenerated/Generated/TaskAgentHttpClientBase.cs
+++ b/src/Sdk/DTGenerated/Generated/TaskAgentHttpClientBase.cs
@@ -704,31 +704,6 @@ namespace GitHub.DistributedTask.WebApi
cancellationToken: cancellationToken);
}
- ///
- /// [Preview API]
- ///
- ///
- ///
- /// The cancellation token to cancel operation.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public virtual Task GetJobMessageAsync(
- string messageId,
- object userState = null,
- CancellationToken cancellationToken = default)
- {
- HttpMethod httpMethod = new HttpMethod("GET");
- Guid locationId = new Guid("25adab70-1379-4186-be8e-b643061ebe3a");
- object routeValues = new { messageId = messageId };
-
- return SendAsync(
- httpMethod,
- locationId,
- routeValues: routeValues,
- version: new ApiResourceVersion(6.0, 1),
- userState: userState,
- cancellationToken: cancellationToken);
- }
-
///
/// [Preview API]
///
diff --git a/src/Sdk/DTWebApi/WebApi/TaskAgentHttpClient.cs b/src/Sdk/DTWebApi/WebApi/TaskAgentHttpClient.cs
index c97fea0a4..8fe607ffd 100644
--- a/src/Sdk/DTWebApi/WebApi/TaskAgentHttpClient.cs
+++ b/src/Sdk/DTWebApi/WebApi/TaskAgentHttpClient.cs
@@ -141,6 +141,24 @@ namespace GitHub.DistributedTask.WebApi
return ReplaceAgentAsync(poolId, agent.Id, agent, userState, cancellationToken);
}
+ public Task GetJobMessageAsync(
+ string messageId,
+ object userState = null,
+ CancellationToken cancellationToken = default)
+ {
+ HttpMethod httpMethod = new HttpMethod("GET");
+ Guid locationId = new Guid("25adab70-1379-4186-be8e-b643061ebe3a");
+ object routeValues = new { messageId = messageId };
+
+ return SendAsync(
+ httpMethod,
+ locationId,
+ routeValues: routeValues,
+ version: new ApiResourceVersion(1.0, 1),
+ userState: userState,
+ cancellationToken: cancellationToken);
+ }
+
protected Task SendAsync(
HttpMethod method,
Guid locationId,