diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 4588f3ab075c..e9f3e71efda9 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -175,7 +175,7 @@ --> - + diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/GlobalSuppressions.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/GlobalSuppressions.cs index b52fffe46c6f..d955459481a5 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/GlobalSuppressions.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/GlobalSuppressions.cs @@ -4,5 +4,4 @@ using System.Diagnostics.CodeAnalysis; [assembly: SuppressMessage("Usage", "AZC0007: A client type should have a public constructor with equivalent parameters that doesn't take a Azure.Core.ClientOptions-derived type as the last argument", Justification = "")] -[assembly: SuppressMessage("Usage", "AZC0006: A client type should have a public constructor with equivalent parameters that takes a Azure.Core.ClientOptions-derived type as the last argument", Justification = "")] -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file +[assembly: SuppressMessage("Usage", "AZC0006: A client type should have a public constructor with equivalent parameters that takes a Azure.Core.ClientOptions-derived type as the last argument", Justification = "")] \ No newline at end of file diff --git a/sdk/communication/Azure.Communication.Chat/api/Azure.Communication.Chat.netstandard2.0.cs b/sdk/communication/Azure.Communication.Chat/api/Azure.Communication.Chat.netstandard2.0.cs index f5606b918d2e..c3c42c482118 100644 --- a/sdk/communication/Azure.Communication.Chat/api/Azure.Communication.Chat.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.Chat/api/Azure.Communication.Chat.netstandard2.0.cs @@ -10,7 +10,7 @@ public partial class ChatClient protected ChatClient() { } public ChatClient(System.Uri endpoint, Azure.Communication.CommunicationTokenCredential communicationTokenCredential, Azure.Communication.Chat.ChatClientOptions options = null) { } public virtual Azure.Response CreateChatThread(string topic, System.Collections.Generic.IEnumerable participants, string idempotencyToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateChatThreadAsync(string topic, System.Collections.Generic.IEnumerable participants = null, string idempotencyToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateChatThreadAsync(string topic, System.Collections.Generic.IEnumerable participants, string idempotencyToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteChatThread(string threadId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteChatThreadAsync(string threadId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Communication.Chat.ChatThreadClient GetChatThreadClient(string threadId) { throw null; } diff --git a/sdk/communication/Azure.Communication.Chat/src/ChatClient.cs b/sdk/communication/Azure.Communication.Chat/src/ChatClient.cs index 2f1b28ed7c0c..db5173da67f8 100644 --- a/sdk/communication/Azure.Communication.Chat/src/ChatClient.cs +++ b/sdk/communication/Azure.Communication.Chat/src/ChatClient.cs @@ -56,7 +56,7 @@ protected ChatClient() /// If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs. /// The cancellation token for the task. /// The server returned an error. See for details returned from the server. - public virtual async Task> CreateChatThreadAsync(string topic, IEnumerable participants = null, string idempotencyToken = null, CancellationToken cancellationToken = default) + public virtual async Task> CreateChatThreadAsync(string topic, IEnumerable participants, string idempotencyToken = null, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ChatClient)}.{nameof(CreateChatThread)}"); scope.Start(); diff --git a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs index 7ce1ce7d26d8..8a4ed79b7a87 100644 --- a/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.JobRouter/api/Azure.Communication.JobRouter.netstandard2.0.cs @@ -257,7 +257,7 @@ public JobRouterAdministrationClient(System.Uri endpoint, Azure.Core.TokenCreden public virtual System.Threading.Tasks.Task> CreateClassificationPolicyAsync(Azure.Communication.JobRouter.CreateClassificationPolicyOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateDistributionPolicy(Azure.Communication.JobRouter.CreateDistributionPolicyOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateDistributionPolicyAsync(Azure.Communication.JobRouter.CreateDistributionPolicyOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CreateExceptionPolicy(Azure.Communication.JobRouter.CreateExceptionPolicyOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateExceptionPolicy(Azure.Communication.JobRouter.CreateExceptionPolicyOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateExceptionPolicyAsync(Azure.Communication.JobRouter.CreateExceptionPolicyOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateQueue(Azure.Communication.JobRouter.CreateQueueOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateQueueAsync(Azure.Communication.JobRouter.CreateQueueOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/JobRouterAdministrationClient.cs b/sdk/communication/Azure.Communication.JobRouter/src/JobRouterAdministrationClient.cs index 3bb46f5b2639..0ae1b79a3097 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/JobRouterAdministrationClient.cs +++ b/sdk/communication/Azure.Communication.JobRouter/src/JobRouterAdministrationClient.cs @@ -877,7 +877,7 @@ public virtual async Task> CreateExceptionPolicyAsync( /// (Optional) The cancellation token to use. /// The server returned an error. See for details returned from the server. public virtual Response CreateExceptionPolicy( - CreateExceptionPolicyOptions options = default, + CreateExceptionPolicyOptions options, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(JobRouterAdministrationClient)}.{nameof(CreateExceptionPolicy)}"); diff --git a/sdk/contentsafety/Azure.AI.ContentSafety/src/Azure.AI.ContentSafety.csproj b/sdk/contentsafety/Azure.AI.ContentSafety/src/Azure.AI.ContentSafety.csproj index 9aa4692e8235..b729a371df6b 100644 --- a/sdk/contentsafety/Azure.AI.ContentSafety/src/Azure.AI.ContentSafety.csproj +++ b/sdk/contentsafety/Azure.AI.ContentSafety/src/Azure.AI.ContentSafety.csproj @@ -6,7 +6,6 @@ Azure ContentSafety $(RequiredTargetFrameworks) true - $(NoWarn);AZC0002 true diff --git a/sdk/devcenter/Azure.Developer.DevCenter/src/GlobalSuppressions.cs b/sdk/devcenter/Azure.Developer.DevCenter/src/GlobalSuppressions.cs index 4766e38cc993..90b4113d13f0 100644 --- a/sdk/devcenter/Azure.Developer.DevCenter/src/GlobalSuppressions.cs +++ b/sdk/devcenter/Azure.Developer.DevCenter/src/GlobalSuppressions.cs @@ -3,7 +3,6 @@ using System.Diagnostics.CodeAnalysis; -[assembly: SuppressMessage("Usage", "AZC0002:DO ensure all service methods, both asynchronous and synchronous, take an optional CancellationToken parameter called cancellationToken.", Justification = "CancellationToken can be passed through RequestOptions")] [assembly: SuppressMessage("Usage", "AZC0001:Use one of the following pre-approved namespace groups (https://azure.github.io/azure-sdk/registered_namespaces.html): Azure.AI, Azure.Analytics, Azure.Communication, Azure.Data, Azure.DigitalTwins, Azure.IoT, Azure.Learn, Azure.Media, Azure.Management, Azure.Messaging, Azure.ResourceManager, Azure.Search, Azure.Security, Azure.Storage, Azure.Template, Azure.Identity, Microsoft.Extensions.Azure", Justification = "Temporary while awaiting namespace group approval", Scope = "namespace", Target = "~N:Azure.Developer.DevCenter")] [assembly: SuppressMessage("Usage", "AZC0007:DO provide a minimal constructor that takes only the parameters required to connect to the service.", Justification = "False positives on minimal constructors", Scope = "namespaceanddescendants", Target = "~N:Azure.Developer.DevCenter")] [assembly: SuppressMessage("Usage", "AZC0006:DO provide constructor overloads that allow specifying additional options.", Justification = "False positives on options constructors", Scope = "namespaceanddescendants", Target = "~N:Azure.Developer.DevCenter")] diff --git a/sdk/purview/Azure.Analytics.Purview.Account/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Account/src/GlobalSuppressions.cs deleted file mode 100644 index 00a46f8e98e0..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.Account/src/GlobalSuppressions.cs +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Administration/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Administration/src/GlobalSuppressions.cs deleted file mode 100644 index 00a46f8e98e0..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.Administration/src/GlobalSuppressions.cs +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/GlobalSuppressions.cs deleted file mode 100644 index 00a46f8e98e0..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/GlobalSuppressions.cs +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Sharing/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Sharing/src/GlobalSuppressions.cs deleted file mode 100644 index 00a46f8e98e0..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.Sharing/src/GlobalSuppressions.cs +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/purview/Azure.Analytics.Purview.Workflows/src/GlobalSuppressions.cs b/sdk/purview/Azure.Analytics.Purview.Workflows/src/GlobalSuppressions.cs deleted file mode 100644 index 00a46f8e98e0..000000000000 --- a/sdk/purview/Azure.Analytics.Purview.Workflows/src/GlobalSuppressions.cs +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/RemoteRenderingClient.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/RemoteRenderingClient.cs index 2ff346aaafcd..1fc8275bbf4a 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/RemoteRenderingClient.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/RemoteRenderingClient.cs @@ -167,7 +167,9 @@ public virtual async Task> GetConversionAsync(string c /// Gets a list of all conversions. /// The cancellation token to use. +#pragma warning disable AZC0004 // DO provide both asynchronous and synchronous variants for all service methods. public virtual Pageable GetConversions(CancellationToken cancellationToken = default) +#pragma warning restore AZC0004 // DO provide both asynchronous and synchronous variants for all service methods. { Page FirstPageFunc(int? pageSizeHint) { @@ -204,7 +206,9 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// Gets a list of all conversions. /// The cancellation token to use. +#pragma warning disable AZC0004 // DO provide both asynchronous and synchronous variants for all service methods. public virtual AsyncPageable GetConversionsAync(CancellationToken cancellationToken = default) +#pragma warning restore AZC0004 // DO provide both asynchronous and synchronous variants for all service methods. { async Task> FirstPageFunc(int? pageSizeHint) { diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs index 370ab53a8d8e..9543239c7c90 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobLeaseClient.cs @@ -824,12 +824,16 @@ await ReleaseInternal( /// a failure occurs. /// [EditorBrowsable(EditorBrowsableState.Never)] +#pragma warning disable AZC0002 // Client method should have an optional CancellationToken (both name and it being optional matters) or a RequestContext as the last parameter. +#pragma warning disable AZC0004 // DO provide both asynchronous and synchronous variants for all service methods. public virtual async Task> ReleaseInternal( RequestConditions conditions, #pragma warning disable AZC0105 // DO NOT add 'async' parameter to public methods. This method is published, so it can't be modified. bool async, #pragma warning restore AZC0105 // DO NOT add 'async' parameter to public methods. CancellationToken cancellationToken) +#pragma warning restore AZC0004 // DO provide both asynchronous and synchronous variants for all service methods. +#pragma warning restore AZC0002 // Client method should have an optional CancellationToken (both name and it being optional matters) or a RequestContext as the last parameter. { EnsureClient(); using (Pipeline.BeginLoggingScope(nameof(BlobLeaseClient))) diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/GlobalSuppressions.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/GlobalSuppressions.cs deleted file mode 100644 index 4e1148a759d4..000000000000 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/GlobalSuppressions.cs +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// This file is used by Code Analysis to maintain SuppressMessage -// attributes that are applied to this project. -// Project-level suppressions either have no target or are given -// a specific target and scoped to a namespace, type, member, etc. -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] \ No newline at end of file diff --git a/sdk/template/Azure.Template/src/GlobalSuppressions.cs b/sdk/template/Azure.Template/src/GlobalSuppressions.cs deleted file mode 100644 index 529ab947db09..000000000000 --- a/sdk/template/Azure.Template/src/GlobalSuppressions.cs +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// This file is used by Code Analysis to maintain SuppressMessage -// attributes that are applied to this project. -// Project-level suppressions either have no target or are given -// a specific target and scoped to a namespace, type, member, etc. - -using System.Diagnostics.CodeAnalysis; - -[assembly: SuppressMessage("Usage", "AZC0002: Client method should have cancellationToken as the last optional parameter (both name and it being optional matters", Justification = "")] diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index b4645d9a63b8..893dd42a1a0e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -1133,7 +1133,7 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede public virtual Azure.AI.TextAnalytics.AnalyzeActionsOperation AnalyzeActions(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.TextAnalyticsActions actions, string language = null, Azure.AI.TextAnalytics.AnalyzeActionsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task AnalyzeActionsAsync(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.TextAnalyticsActions actions, Azure.AI.TextAnalytics.AnalyzeActionsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task AnalyzeActionsAsync(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.TextAnalyticsActions actions, string language = null, Azure.AI.TextAnalytics.AnalyzeActionsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation AnalyzeHealthcareEntities(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation AnalyzeHealthcareEntities(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation AnalyzeHealthcareEntities(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task AnalyzeHealthcareEntitiesAsync(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task AnalyzeHealthcareEntitiesAsync(Azure.WaitUntil waitUntil, System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -1214,7 +1214,7 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual System.Threading.Tasks.Task StartAnalyzeActionsAsync(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.TextAnalyticsActions actions, string language = null, Azure.AI.TextAnalytics.AnalyzeActionsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(System.Collections.Generic.IEnumerable documents, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public virtual Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(System.Collections.Generic.IEnumerable documents, string language = null, Azure.AI.TextAnalytics.AnalyzeHealthcareEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs index 7f874dd9fd71..31c8109f3f16 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs @@ -1838,7 +1838,7 @@ public virtual AnalyzeHealthcareEntitiesOperation AnalyzeHealthcareEntities(Wait /// This method is only supported in service API version v3.1 and newer. /// Service returned a non-success /// status code. - public virtual AnalyzeHealthcareEntitiesOperation AnalyzeHealthcareEntities(WaitUntil waitUntil, IEnumerable documents, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation AnalyzeHealthcareEntities(WaitUntil waitUntil, IEnumerable documents, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { options?.CheckSupported(ServiceVersion); return _serviceClient.AnalyzeHealthcareEntities(waitUntil, documents, options, cancellationToken); @@ -1956,7 +1956,7 @@ public virtual AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities /// Service returned a non-success /// status code. [EditorBrowsable(EditorBrowsableState.Never)] - public virtual AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options, CancellationToken cancellationToken = default) + public virtual AnalyzeHealthcareEntitiesOperation StartAnalyzeHealthcareEntities(IEnumerable documents, AnalyzeHealthcareEntitiesOptions options = default, CancellationToken cancellationToken = default) { options?.CheckSupported(ServiceVersion); return _serviceClient.StartAnalyzeHealthcareEntities(documents, options, cancellationToken);