diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterClientBuilderExtensions.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterClientBuilderExtensions.cs
index f17575034663..de7f2cff5b04 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterClientBuilderExtensions.cs
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/CommunicationJobRouterClientBuilderExtensions.cs
@@ -6,6 +6,7 @@
#nullable disable
using System;
+using Azure;
using Azure.Communication.JobRouter;
using Azure.Core.Extensions;
@@ -17,19 +18,21 @@ internal static partial class CommunicationJobRouterClientBuilderExtensions
/// Registers a instance.
/// The builder to register with.
/// Uri of your Communication resource.
- public static IAzureClientBuilder AddJobRouterAdministrationClient(this TBuilder builder, Uri endpoint)
+ /// A credential used to authenticate to an Azure Service.
+ public static IAzureClientBuilder AddJobRouterAdministrationClient(this TBuilder builder, Uri endpoint, AzureKeyCredential credential)
where TBuilder : IAzureClientFactoryBuilder
{
- return builder.RegisterClientFactory((options) => new JobRouterAdministrationClient(endpoint, options));
+ return builder.RegisterClientFactory((options) => new JobRouterAdministrationClient(endpoint, credential, options));
}
/// Registers a instance.
/// The builder to register with.
/// Uri of your Communication resource.
- public static IAzureClientBuilder AddJobRouterClient(this TBuilder builder, Uri endpoint)
+ /// A credential used to authenticate to an Azure Service.
+ public static IAzureClientBuilder AddJobRouterClient(this TBuilder builder, Uri endpoint, AzureKeyCredential credential)
where TBuilder : IAzureClientFactoryBuilder
{
- return builder.RegisterClientFactory((options) => new JobRouterClient(endpoint, options));
+ return builder.RegisterClientFactory((options) => new JobRouterClient(endpoint, credential, options));
}
/// Registers a instance.
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Docs/JobRouterAdministrationClient.xml b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Docs/JobRouterAdministrationClient.xml
new file mode 100644
index 000000000000..9fcfcb2c83f2
--- /dev/null
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Docs/JobRouterAdministrationClient.xml
@@ -0,0 +1,597 @@
+
+
+
+
+
+This sample shows how to call GetDistributionPolicyAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetDistributionPolicyAsync("");
+]]>
+This sample shows how to call GetDistributionPolicyAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetDistributionPolicyAsync("");
+]]>
+
+
+
+This sample shows how to call GetDistributionPolicy.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetDistributionPolicy("");
+]]>
+This sample shows how to call GetDistributionPolicy with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetDistributionPolicy("");
+]]>
+
+
+
+This sample shows how to call GetDistributionPolicyAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetDistributionPolicyAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetDistributionPolicyAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetDistributionPolicyAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("offerExpiresAfterSeconds").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("minConcurrentOffers").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("maxConcurrentOffers").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("bypassSelectors").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call GetDistributionPolicy and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetDistributionPolicy("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetDistributionPolicy with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetDistributionPolicy("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("offerExpiresAfterSeconds").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("minConcurrentOffers").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("maxConcurrentOffers").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("bypassSelectors").ToString());
+Console.WriteLine(result.GetProperty("mode").GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteDistributionPolicyAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteDistributionPolicyAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteDistributionPolicyAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteDistributionPolicyAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteDistributionPolicy.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteDistributionPolicy("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteDistributionPolicy with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteDistributionPolicy("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call GetClassificationPolicyAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetClassificationPolicyAsync("");
+]]>
+This sample shows how to call GetClassificationPolicyAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetClassificationPolicyAsync("");
+]]>
+
+
+
+This sample shows how to call GetClassificationPolicy.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetClassificationPolicy("");
+]]>
+This sample shows how to call GetClassificationPolicy with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetClassificationPolicy("");
+]]>
+
+
+
+This sample shows how to call GetClassificationPolicyAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetClassificationPolicyAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetClassificationPolicyAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetClassificationPolicyAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("fallbackQueueId").ToString());
+Console.WriteLine(result.GetProperty("queueSelectorAttachments")[0].GetProperty("kind").ToString());
+Console.WriteLine(result.GetProperty("prioritizationRule").GetProperty("kind").ToString());
+Console.WriteLine(result.GetProperty("workerSelectorAttachments")[0].GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call GetClassificationPolicy and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetClassificationPolicy("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetClassificationPolicy with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetClassificationPolicy("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("fallbackQueueId").ToString());
+Console.WriteLine(result.GetProperty("queueSelectorAttachments")[0].GetProperty("kind").ToString());
+Console.WriteLine(result.GetProperty("prioritizationRule").GetProperty("kind").ToString());
+Console.WriteLine(result.GetProperty("workerSelectorAttachments")[0].GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteClassificationPolicyAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteClassificationPolicyAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteClassificationPolicyAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteClassificationPolicyAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteClassificationPolicy.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteClassificationPolicy("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteClassificationPolicy with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteClassificationPolicy("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call GetExceptionPolicyAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetExceptionPolicyAsync("");
+]]>
+This sample shows how to call GetExceptionPolicyAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetExceptionPolicyAsync("");
+]]>
+
+
+
+This sample shows how to call GetExceptionPolicy.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetExceptionPolicy("");
+]]>
+This sample shows how to call GetExceptionPolicy with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetExceptionPolicy("");
+]]>
+
+
+
+This sample shows how to call GetExceptionPolicyAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetExceptionPolicyAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetExceptionPolicyAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetExceptionPolicyAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("trigger").GetProperty("kind").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call GetExceptionPolicy and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetExceptionPolicy("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetExceptionPolicy with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetExceptionPolicy("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("trigger").GetProperty("kind").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteExceptionPolicyAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteExceptionPolicyAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteExceptionPolicyAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteExceptionPolicyAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteExceptionPolicy.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteExceptionPolicy("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteExceptionPolicy with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteExceptionPolicy("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call GetQueueAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetQueueAsync("");
+]]>
+This sample shows how to call GetQueueAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetQueueAsync("");
+]]>
+
+
+
+This sample shows how to call GetQueue.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetQueue("");
+]]>
+This sample shows how to call GetQueue with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetQueue("");
+]]>
+
+
+
+This sample shows how to call GetQueueAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetQueueAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetQueueAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.GetQueueAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("distributionPolicyId").ToString());
+Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("exceptionPolicyId").ToString());
+]]>
+
+
+
+This sample shows how to call GetQueue and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetQueue("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetQueue with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.GetQueue("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("name").ToString());
+Console.WriteLine(result.GetProperty("distributionPolicyId").ToString());
+Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("exceptionPolicyId").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteQueueAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteQueueAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteQueueAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = await client.DeleteQueueAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteQueue.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteQueue("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteQueue with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+Response response = client.DeleteQueue("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/Docs/JobRouterClient.xml b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Docs/JobRouterClient.xml
new file mode 100644
index 000000000000..9b3b733b5138
--- /dev/null
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/Docs/JobRouterClient.xml
@@ -0,0 +1,681 @@
+
+
+
+
+
+This sample shows how to call GetJobAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetJobAsync("");
+]]>
+This sample shows how to call GetJobAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetJobAsync("");
+]]>
+
+
+
+This sample shows how to call GetJob.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetJob("");
+]]>
+This sample shows how to call GetJob with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetJob("");
+]]>
+
+
+
+This sample shows how to call GetJobAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetJobAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetJobAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetJobAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("channelReference").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("enqueuedAt").ToString());
+Console.WriteLine(result.GetProperty("channelId").ToString());
+Console.WriteLine(result.GetProperty("classificationPolicyId").ToString());
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("priority").ToString());
+Console.WriteLine(result.GetProperty("dispositionCode").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("key").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("labelOperator").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("value").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("expiresAfterSeconds").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("expedite").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("expiresAt").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("key").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("labelOperator").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("value").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("expiresAfterSeconds").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("expedite").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("expiresAt").ToString());
+Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("workerId").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("assignedAt").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("completedAt").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("closedAt").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("notes")[0].GetProperty("message").ToString());
+Console.WriteLine(result.GetProperty("notes")[0].GetProperty("addedAt").ToString());
+Console.WriteLine(result.GetProperty("scheduledAt").ToString());
+Console.WriteLine(result.GetProperty("matchingMode").GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call GetJob and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetJob("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetJob with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetJob("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("channelReference").ToString());
+Console.WriteLine(result.GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("enqueuedAt").ToString());
+Console.WriteLine(result.GetProperty("channelId").ToString());
+Console.WriteLine(result.GetProperty("classificationPolicyId").ToString());
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("priority").ToString());
+Console.WriteLine(result.GetProperty("dispositionCode").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("key").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("labelOperator").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("value").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("expiresAfterSeconds").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("expedite").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("requestedWorkerSelectors")[0].GetProperty("expiresAt").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("key").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("labelOperator").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("value").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("expiresAfterSeconds").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("expedite").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("status").ToString());
+Console.WriteLine(result.GetProperty("attachedWorkerSelectors")[0].GetProperty("expiresAt").ToString());
+Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("workerId").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("assignedAt").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("completedAt").ToString());
+Console.WriteLine(result.GetProperty("assignments").GetProperty("").GetProperty("closedAt").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("notes")[0].GetProperty("message").ToString());
+Console.WriteLine(result.GetProperty("notes")[0].GetProperty("addedAt").ToString());
+Console.WriteLine(result.GetProperty("scheduledAt").ToString());
+Console.WriteLine(result.GetProperty("matchingMode").GetProperty("kind").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteJobAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.DeleteJobAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteJobAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.DeleteJobAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteJob.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.DeleteJob("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteJob with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.DeleteJob("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call GetQueuePositionAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueuePositionAsync("");
+]]>
+This sample shows how to call GetQueuePositionAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueuePositionAsync("");
+]]>
+
+
+
+This sample shows how to call GetQueuePosition.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueuePosition("");
+]]>
+This sample shows how to call GetQueuePosition with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueuePosition("");
+]]>
+
+
+
+This sample shows how to call GetQueuePositionAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueuePositionAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("position").ToString());
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("queueLength").ToString());
+Console.WriteLine(result.GetProperty("estimatedWaitTimeMinutes").ToString());
+]]>
+This sample shows how to call GetQueuePositionAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueuePositionAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("position").ToString());
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("queueLength").ToString());
+Console.WriteLine(result.GetProperty("estimatedWaitTimeMinutes").ToString());
+]]>
+
+
+
+This sample shows how to call GetQueuePosition and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueuePosition("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("position").ToString());
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("queueLength").ToString());
+Console.WriteLine(result.GetProperty("estimatedWaitTimeMinutes").ToString());
+]]>
+This sample shows how to call GetQueuePosition with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueuePosition("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("position").ToString());
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("queueLength").ToString());
+Console.WriteLine(result.GetProperty("estimatedWaitTimeMinutes").ToString());
+]]>
+
+
+
+This sample shows how to call AcceptJobOfferAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.AcceptJobOfferAsync("", "");
+]]>
+This sample shows how to call AcceptJobOfferAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.AcceptJobOfferAsync("", "");
+]]>
+
+
+
+This sample shows how to call AcceptJobOffer.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.AcceptJobOffer("", "");
+]]>
+This sample shows how to call AcceptJobOffer with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.AcceptJobOffer("", "");
+]]>
+
+
+
+This sample shows how to call AcceptJobOfferAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.AcceptJobOfferAsync("", "", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("workerId").ToString());
+]]>
+This sample shows how to call AcceptJobOfferAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.AcceptJobOfferAsync("", "", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("workerId").ToString());
+]]>
+
+
+
+This sample shows how to call AcceptJobOffer and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.AcceptJobOffer("", "", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("workerId").ToString());
+]]>
+This sample shows how to call AcceptJobOffer with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.AcceptJobOffer("", "", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("workerId").ToString());
+]]>
+
+
+
+This sample shows how to call GetQueueStatisticsAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueueStatisticsAsync("");
+]]>
+This sample shows how to call GetQueueStatisticsAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueueStatisticsAsync("");
+]]>
+
+
+
+This sample shows how to call GetQueueStatistics.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueueStatistics("");
+]]>
+This sample shows how to call GetQueueStatistics with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueueStatistics("");
+]]>
+
+
+
+This sample shows how to call GetQueueStatisticsAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueueStatisticsAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("length").ToString());
+]]>
+This sample shows how to call GetQueueStatisticsAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetQueueStatisticsAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("length").ToString());
+Console.WriteLine(result.GetProperty("estimatedWaitTimeMinutes").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("longestJobWaitTimeMinutes").ToString());
+]]>
+
+
+
+This sample shows how to call GetQueueStatistics and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueueStatistics("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("length").ToString());
+]]>
+This sample shows how to call GetQueueStatistics with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetQueueStatistics("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("queueId").ToString());
+Console.WriteLine(result.GetProperty("length").ToString());
+Console.WriteLine(result.GetProperty("estimatedWaitTimeMinutes").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("longestJobWaitTimeMinutes").ToString());
+]]>
+
+
+
+This sample shows how to call GetWorkerAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetWorkerAsync("");
+]]>
+This sample shows how to call GetWorkerAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetWorkerAsync("");
+]]>
+
+
+
+This sample shows how to call GetWorker.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetWorker("");
+]]>
+This sample shows how to call GetWorker with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetWorker("");
+]]>
+
+
+
+This sample shows how to call GetWorkerAsync and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetWorkerAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetWorkerAsync with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.GetWorkerAsync("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("state").ToString());
+Console.WriteLine(result.GetProperty("queues")[0].ToString());
+Console.WriteLine(result.GetProperty("capacity").ToString());
+Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("channels")[0].GetProperty("channelId").ToString());
+Console.WriteLine(result.GetProperty("channels")[0].GetProperty("capacityCostPerJob").ToString());
+Console.WriteLine(result.GetProperty("channels")[0].GetProperty("maxNumberOfJobs").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("offerId").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("capacityCost").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("offeredAt").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("expiresAt").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("capacityCost").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("assignedAt").ToString());
+Console.WriteLine(result.GetProperty("loadRatio").ToString());
+Console.WriteLine(result.GetProperty("availableForOffers").ToString());
+]]>
+
+
+
+This sample shows how to call GetWorker and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetWorker("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+]]>
+This sample shows how to call GetWorker with all parameters and parse the result.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.GetWorker("", null);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("etag").ToString());
+Console.WriteLine(result.GetProperty("id").ToString());
+Console.WriteLine(result.GetProperty("state").ToString());
+Console.WriteLine(result.GetProperty("queues")[0].ToString());
+Console.WriteLine(result.GetProperty("capacity").ToString());
+Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("tags").GetProperty("").ToString());
+Console.WriteLine(result.GetProperty("channels")[0].GetProperty("channelId").ToString());
+Console.WriteLine(result.GetProperty("channels")[0].GetProperty("capacityCostPerJob").ToString());
+Console.WriteLine(result.GetProperty("channels")[0].GetProperty("maxNumberOfJobs").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("offerId").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("capacityCost").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("offeredAt").ToString());
+Console.WriteLine(result.GetProperty("offers")[0].GetProperty("expiresAt").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("assignmentId").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("jobId").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("capacityCost").ToString());
+Console.WriteLine(result.GetProperty("assignedJobs")[0].GetProperty("assignedAt").ToString());
+Console.WriteLine(result.GetProperty("loadRatio").ToString());
+Console.WriteLine(result.GetProperty("availableForOffers").ToString());
+]]>
+
+
+
+This sample shows how to call DeleteWorkerAsync.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.DeleteWorkerAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteWorkerAsync with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = await client.DeleteWorkerAsync("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
+This sample shows how to call DeleteWorker.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.DeleteWorker("");
+
+Console.WriteLine(response.Status);
+]]>
+This sample shows how to call DeleteWorker with all parameters.
+");
+AzureKeyCredential credential = new AzureKeyCredential("");
+JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+Response response = client.DeleteWorker("");
+
+Console.WriteLine(response.Status);
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs
index fb31c9b8e3c6..cf0fa81a3e9c 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterAdministrationClient.cs
@@ -19,6 +19,8 @@ namespace Azure.Communication.JobRouter
/// The JobRouterAdministration service client.
public partial class JobRouterAdministrationClient
{
+ private const string AuthorizationHeader = "api-key";
+ private readonly AzureKeyCredential _keyCredential;
private readonly HttpPipeline _pipeline;
private readonly Uri _endpoint;
private readonly string _apiVersion;
@@ -29,6 +31,14 @@ public partial class JobRouterAdministrationClient
/// The HTTP pipeline for sending and receiving REST requests and responses.
public virtual HttpPipeline Pipeline => _pipeline;
+ /// Initializes a new instance of JobRouterAdministrationClient.
+ /// Uri of your Communication resource.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public JobRouterAdministrationClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new JobRouterClientOptions())
+ {
+ }
+
///
/// [Protocol Method] Creates or updates a distribution policy.
///
@@ -114,6 +124,7 @@ internal virtual Response UpsertDistributionPolicy(string distributionPolicyId,
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetDistributionPolicyAsync(string distributionPolicyId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(distributionPolicyId, nameof(distributionPolicyId));
@@ -128,6 +139,7 @@ public virtual async Task> GetDistributionPolicyAsy
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetDistributionPolicy(string distributionPolicyId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(distributionPolicyId, nameof(distributionPolicyId));
@@ -158,6 +170,7 @@ public virtual Response GetDistributionPolicy(string distrib
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetDistributionPolicyAsync(string distributionPolicyId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(distributionPolicyId, nameof(distributionPolicyId));
@@ -197,6 +210,7 @@ public virtual async Task GetDistributionPolicyAsync(string distributi
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetDistributionPolicy(string distributionPolicyId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(distributionPolicyId, nameof(distributionPolicyId));
@@ -232,6 +246,7 @@ public virtual Response GetDistributionPolicy(string distributionPolicyId, Reque
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task DeleteDistributionPolicyAsync(string distributionPolicyId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(distributionPolicyId, nameof(distributionPolicyId));
@@ -267,6 +282,7 @@ public virtual async Task DeleteDistributionPolicyAsync(string distrib
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response DeleteDistributionPolicy(string distributionPolicyId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(distributionPolicyId, nameof(distributionPolicyId));
@@ -370,6 +386,7 @@ internal virtual Response UpsertClassificationPolicy(string classificationPolicy
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetClassificationPolicyAsync(string classificationPolicyId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(classificationPolicyId, nameof(classificationPolicyId));
@@ -384,6 +401,7 @@ public virtual async Task> GetClassificationPolic
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetClassificationPolicy(string classificationPolicyId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(classificationPolicyId, nameof(classificationPolicyId));
@@ -414,6 +432,7 @@ public virtual Response GetClassificationPolicy(string cla
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetClassificationPolicyAsync(string classificationPolicyId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(classificationPolicyId, nameof(classificationPolicyId));
@@ -453,6 +472,7 @@ public virtual async Task GetClassificationPolicyAsync(string classifi
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetClassificationPolicy(string classificationPolicyId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(classificationPolicyId, nameof(classificationPolicyId));
@@ -488,6 +508,7 @@ public virtual Response GetClassificationPolicy(string classificationPolicyId, R
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task DeleteClassificationPolicyAsync(string classificationPolicyId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(classificationPolicyId, nameof(classificationPolicyId));
@@ -523,6 +544,7 @@ public virtual async Task DeleteClassificationPolicyAsync(string class
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response DeleteClassificationPolicy(string classificationPolicyId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(classificationPolicyId, nameof(classificationPolicyId));
@@ -626,6 +648,7 @@ internal virtual Response UpsertExceptionPolicy(string exceptionPolicyId, Reques
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetExceptionPolicyAsync(string exceptionPolicyId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(exceptionPolicyId, nameof(exceptionPolicyId));
@@ -640,6 +663,7 @@ public virtual async Task> GetExceptionPolicyAsync(str
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetExceptionPolicy(string exceptionPolicyId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(exceptionPolicyId, nameof(exceptionPolicyId));
@@ -670,6 +694,7 @@ public virtual Response GetExceptionPolicy(string exceptionPoli
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetExceptionPolicyAsync(string exceptionPolicyId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(exceptionPolicyId, nameof(exceptionPolicyId));
@@ -709,6 +734,7 @@ public virtual async Task GetExceptionPolicyAsync(string exceptionPoli
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetExceptionPolicy(string exceptionPolicyId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(exceptionPolicyId, nameof(exceptionPolicyId));
@@ -744,6 +770,7 @@ public virtual Response GetExceptionPolicy(string exceptionPolicyId, RequestCont
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task DeleteExceptionPolicyAsync(string exceptionPolicyId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(exceptionPolicyId, nameof(exceptionPolicyId));
@@ -779,6 +806,7 @@ public virtual async Task DeleteExceptionPolicyAsync(string exceptionP
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response DeleteExceptionPolicy(string exceptionPolicyId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(exceptionPolicyId, nameof(exceptionPolicyId));
@@ -882,6 +910,7 @@ internal virtual Response UpsertQueue(string queueId, RequestContent content, Re
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetQueueAsync(string queueId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -896,6 +925,7 @@ public virtual async Task> GetQueueAsync(string queueId, C
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetQueue(string queueId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -926,6 +956,7 @@ public virtual Response GetQueue(string queueId, CancellationToken
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetQueueAsync(string queueId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -965,6 +996,7 @@ public virtual async Task GetQueueAsync(string queueId, RequestContext
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetQueue(string queueId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -1000,6 +1032,7 @@ public virtual Response GetQueue(string queueId, RequestContext context)
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task DeleteQueueAsync(string queueId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -1035,6 +1068,7 @@ public virtual async Task DeleteQueueAsync(string queueId, RequestCont
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response DeleteQueue(string queueId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs
index c66ac454ce1e..3af17a639a99 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/JobRouterClient.cs
@@ -19,6 +19,8 @@ namespace Azure.Communication.JobRouter
/// The JobRouter service client.
public partial class JobRouterClient
{
+ private const string AuthorizationHeader = "api-key";
+ private readonly AzureKeyCredential _keyCredential;
private readonly HttpPipeline _pipeline;
private readonly Uri _endpoint;
private readonly string _apiVersion;
@@ -29,6 +31,14 @@ public partial class JobRouterClient
/// The HTTP pipeline for sending and receiving REST requests and responses.
public virtual HttpPipeline Pipeline => _pipeline;
+ /// Initializes a new instance of JobRouterClient.
+ /// Uri of your Communication resource.
+ /// A credential used to authenticate to an Azure Service.
+ /// or is null.
+ public JobRouterClient(Uri endpoint, AzureKeyCredential credential) : this(endpoint, credential, new JobRouterClientOptions())
+ {
+ }
+
///
/// [Protocol Method] Creates or updates a router job.
///
@@ -114,6 +124,7 @@ internal virtual Response UpsertJob(string jobId, RequestContent content, Reques
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetJobAsync(string jobId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -128,6 +139,7 @@ public virtual async Task> GetJobAsync(string jobId, Cancell
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetJob(string jobId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -158,6 +170,7 @@ public virtual Response GetJob(string jobId, CancellationToken cancel
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetJobAsync(string jobId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -197,6 +210,7 @@ public virtual async Task GetJobAsync(string jobId, RequestContext con
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetJob(string jobId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -232,6 +246,7 @@ public virtual Response GetJob(string jobId, RequestContext context)
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task DeleteJobAsync(string jobId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -267,6 +282,7 @@ public virtual async Task DeleteJobAsync(string jobId, RequestContext
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response DeleteJob(string jobId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -426,6 +442,7 @@ internal virtual Response CloseJob(string jobId, string assignme
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetQueuePositionAsync(string jobId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -440,6 +457,7 @@ public virtual async Task> GetQueuePositionAs
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetQueuePosition(string jobId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -470,6 +488,7 @@ public virtual Response GetQueuePosition(string jobId,
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetQueuePositionAsync(string jobId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -509,6 +528,7 @@ public virtual async Task GetQueuePositionAsync(string jobId, RequestC
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetQueuePosition(string jobId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(jobId, nameof(jobId));
@@ -569,6 +589,7 @@ internal virtual Response UnassignJob(string jobId, string as
/// The cancellation token to use.
/// or is null.
/// or is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> AcceptJobOfferAsync(string workerId, string offerId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -585,6 +606,7 @@ public virtual async Task> AcceptJobOfferAsync(st
/// The cancellation token to use.
/// or is null.
/// or is an empty string, and was expected to be non-empty.
+ ///
public virtual Response AcceptJobOffer(string workerId, string offerId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -617,6 +639,7 @@ public virtual Response AcceptJobOffer(string workerId, st
/// or is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task AcceptJobOfferAsync(string workerId, string offerId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -658,6 +681,7 @@ public virtual async Task AcceptJobOfferAsync(string workerId, string
/// or is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response AcceptJobOffer(string workerId, string offerId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -718,6 +742,7 @@ internal virtual Response DeclineJobOffer(string workerId
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetQueueStatisticsAsync(string queueId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -732,6 +757,7 @@ public virtual async Task> GetQueueStatisticsAsy
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetQueueStatistics(string queueId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -762,6 +788,7 @@ public virtual Response GetQueueStatistics(string queueId
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetQueueStatisticsAsync(string queueId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -801,6 +828,7 @@ public virtual async Task GetQueueStatisticsAsync(string queueId, Requ
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetQueueStatistics(string queueId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(queueId, nameof(queueId));
@@ -904,6 +932,7 @@ internal virtual Response UpsertWorker(string workerId, RequestContent content,
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual async Task> GetWorkerAsync(string workerId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -918,6 +947,7 @@ public virtual async Task> GetWorkerAsync(string workerId
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
+ ///
public virtual Response GetWorker(string workerId, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -948,6 +978,7 @@ public virtual Response GetWorker(string workerId, CancellationTok
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task GetWorkerAsync(string workerId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -987,6 +1018,7 @@ public virtual async Task GetWorkerAsync(string workerId, RequestConte
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response GetWorker(string workerId, RequestContext context)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -1022,6 +1054,7 @@ public virtual Response GetWorker(string workerId, RequestContext context)
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual async Task DeleteWorkerAsync(string workerId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
@@ -1057,6 +1090,7 @@ public virtual async Task DeleteWorkerAsync(string workerId, RequestCo
/// is an empty string, and was expected to be non-empty.
/// Service returned a non-success status code.
/// The response returned from the service.
+ ///
public virtual Response DeleteWorker(string workerId, RequestContext context = null)
{
Argument.AssertNotNullOrEmpty(workerId, nameof(workerId));
diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json b/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json
index 9f1cbc59462d..418dba9ec4df 100644
--- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json
+++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json
@@ -8794,5 +8794,12 @@
},
"Creatable": true
}
- ]
+ ],
+ "Auth": {
+ "$id": "946",
+ "ApiKey": {
+ "$id": "947",
+ "Name": "api-key"
+ }
+ }
}
diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Generated/Samples/Samples_JobRouterAdministrationClient.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Generated/Samples/Samples_JobRouterAdministrationClient.cs
new file mode 100644
index 000000000000..15fb8907e454
--- /dev/null
+++ b/sdk/communication/Azure.Communication.JobRouter/tests/Generated/Samples/Samples_JobRouterAdministrationClient.cs
@@ -0,0 +1,684 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Communication.JobRouter;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.Communication.JobRouter.Samples
+{
+ public partial class Samples_JobRouterAdministrationClient
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetDistributionPolicy_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetDistributionPolicy("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetDistributionPolicy_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetDistributionPolicyAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetDistributionPolicy_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetDistributionPolicy("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetDistributionPolicy_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetDistributionPolicyAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetDistributionPolicy_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetDistributionPolicy("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("offerExpiresAfterSeconds").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("minConcurrentOffers").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("maxConcurrentOffers").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("bypassSelectors").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("kind").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetDistributionPolicy_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetDistributionPolicyAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("offerExpiresAfterSeconds").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("minConcurrentOffers").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("maxConcurrentOffers").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("bypassSelectors").ToString());
+ Console.WriteLine(result.GetProperty("mode").GetProperty("kind").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetDistributionPolicy_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetDistributionPolicy("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetDistributionPolicy_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetDistributionPolicyAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteDistributionPolicy_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteDistributionPolicy("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteDistributionPolicy_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteDistributionPolicyAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteDistributionPolicy_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteDistributionPolicy("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteDistributionPolicy_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteDistributionPolicyAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetClassificationPolicy_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetClassificationPolicy("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetClassificationPolicy_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetClassificationPolicyAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetClassificationPolicy_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetClassificationPolicy("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetClassificationPolicy_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetClassificationPolicyAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetClassificationPolicy_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetClassificationPolicy("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("fallbackQueueId").ToString());
+ Console.WriteLine(result.GetProperty("queueSelectorAttachments")[0].GetProperty("kind").ToString());
+ Console.WriteLine(result.GetProperty("prioritizationRule").GetProperty("kind").ToString());
+ Console.WriteLine(result.GetProperty("workerSelectorAttachments")[0].GetProperty("kind").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetClassificationPolicy_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetClassificationPolicyAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("fallbackQueueId").ToString());
+ Console.WriteLine(result.GetProperty("queueSelectorAttachments")[0].GetProperty("kind").ToString());
+ Console.WriteLine(result.GetProperty("prioritizationRule").GetProperty("kind").ToString());
+ Console.WriteLine(result.GetProperty("workerSelectorAttachments")[0].GetProperty("kind").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetClassificationPolicy_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetClassificationPolicy("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetClassificationPolicy_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetClassificationPolicyAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteClassificationPolicy_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteClassificationPolicy("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteClassificationPolicy_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteClassificationPolicyAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteClassificationPolicy_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteClassificationPolicy("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteClassificationPolicy_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteClassificationPolicyAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetExceptionPolicy_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetExceptionPolicy("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetExceptionPolicy_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetExceptionPolicyAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetExceptionPolicy_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetExceptionPolicy("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetExceptionPolicy_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetExceptionPolicyAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetExceptionPolicy_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetExceptionPolicy("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("trigger").GetProperty("kind").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("kind").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetExceptionPolicy_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetExceptionPolicyAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("trigger").GetProperty("kind").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("exceptionRules")[0].GetProperty("actions")[0].GetProperty("kind").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetExceptionPolicy_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetExceptionPolicy("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetExceptionPolicy_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetExceptionPolicyAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteExceptionPolicy_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteExceptionPolicy("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteExceptionPolicy_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteExceptionPolicyAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteExceptionPolicy_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteExceptionPolicy("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteExceptionPolicy_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteExceptionPolicyAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetQueue_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetQueue("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetQueue_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetQueueAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetQueue_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetQueue("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetQueue_ShortVersion_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetQueueAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetQueue_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetQueue("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("distributionPolicyId").ToString());
+ Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("exceptionPolicyId").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetQueue_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetQueueAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ Console.WriteLine(result.GetProperty("name").ToString());
+ Console.WriteLine(result.GetProperty("distributionPolicyId").ToString());
+ Console.WriteLine(result.GetProperty("labels").GetProperty("").ToString());
+ Console.WriteLine(result.GetProperty("exceptionPolicyId").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetQueue_AllParameters_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.GetQueue("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetQueue_AllParameters_Convenience_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.GetQueueAsync("");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteQueue_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteQueue("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteQueue_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteQueueAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_DeleteQueue_AllParameters()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = client.DeleteQueue("");
+
+ Console.WriteLine(response.Status);
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_DeleteQueue_AllParameters_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterAdministrationClient client = new JobRouterAdministrationClient(endpoint, credential);
+
+ Response response = await client.DeleteQueueAsync("");
+
+ Console.WriteLine(response.Status);
+ }
+ }
+}
diff --git a/sdk/communication/Azure.Communication.JobRouter/tests/Generated/Samples/Samples_JobRouterClient.cs b/sdk/communication/Azure.Communication.JobRouter/tests/Generated/Samples/Samples_JobRouterClient.cs
new file mode 100644
index 000000000000..6ccbcb25b4ff
--- /dev/null
+++ b/sdk/communication/Azure.Communication.JobRouter/tests/Generated/Samples/Samples_JobRouterClient.cs
@@ -0,0 +1,768 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Communication.JobRouter;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.Communication.JobRouter.Samples
+{
+ public partial class Samples_JobRouterClient
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetJob_ShortVersion()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+ Response response = client.GetJob("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Example_GetJob_ShortVersion_Async()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("");
+ JobRouterClient client = new JobRouterClient(endpoint, credential);
+
+ Response response = await client.GetJobAsync("", null);
+
+ JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+ Console.WriteLine(result.GetProperty("etag").ToString());
+ Console.WriteLine(result.GetProperty("id").ToString());
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public void Example_GetJob_ShortVersion_Convenience()
+ {
+ Uri endpoint = new Uri("");
+ AzureKeyCredential credential = new AzureKeyCredential("