diff --git a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs
index b491db8373609..4b251f6df360e 100644
--- a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs
+++ b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs
@@ -635,11 +635,6 @@ public UnassignJobOptions(string jobId, string assignmentId) { }
public string AssignmentId { get { throw null; } }
public string JobId { get { throw null; } }
}
- public partial class UnassignJobRequest
- {
- public UnassignJobRequest() { }
- public bool? SuspendMatching { get { throw null; } set { } }
- }
public partial class UpdateClassificationPolicyOptions
{
public UpdateClassificationPolicyOptions(string classificationPolicyId) { }
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.Serialization.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.Serialization.cs
index e7cfdf47bef5f..83225de580186 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.Serialization.cs
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.Serialization.cs
@@ -10,7 +10,7 @@
namespace Azure.Communication.JobRouter
{
- public partial class UnassignJobRequest : IUtf8JsonSerializable
+ internal partial class UnassignJobRequest : IUtf8JsonSerializable
{
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
{
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.cs
index a9f1efd96667a..5d16a85f8c18e 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.cs
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Models/UnassignJobRequest.cs
@@ -8,7 +8,7 @@
namespace Azure.Communication.JobRouter
{
/// Request payload for unassigning a job.
- public partial class UnassignJobRequest
+ internal partial class UnassignJobRequest
{
/// Initializes a new instance of UnassignJobRequest.
public UnassignJobRequest()
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Models/UnassignJobRequest.cs b/sdk/communication/Azure.Communication.JobRouter/src/Models/UnassignJobRequest.cs
new file mode 100644
index 0000000000000..67beed57e006a
--- /dev/null
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Models/UnassignJobRequest.cs
@@ -0,0 +1,12 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Core;
+
+namespace Azure.Communication.JobRouter
+{
+ [CodeGenModel("UnassignJobRequest")]
+ internal partial class UnassignJobRequest
+ {
+ }
+}
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/autorest.md b/sdk/communication/Azure.Communication.JobRouter/src/autorest.md
index a2fb41f9de5fa..015bdf524cd0c 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/autorest.md
+++ b/sdk/communication/Azure.Communication.JobRouter/src/autorest.md
@@ -15,7 +15,7 @@ If any of the new objects needs to be overwritten, add the required changes to t
tag: package-jobrouter-2022-07-18-preview
model-namespace: false
require:
- - https://raw.githubusercontent.com/williamzhao87/azure-rest-api-specs/c6b35542072b325bfc07c32f5fc05fb5da6891bd/specification/communication/data-plane/JobRouter/readme.md
+ - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/29159d148372f5f61cb04b76fc87252b13c62515/specification/communication/data-plane/JobRouter/readme.md
generation1-convenience-client: true
reflect-api-versions: true