-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Health Data AI Service GA release (#46998)
* Regenerated with customization-options typespec * Fixes + pagedDocumentDetails * Revert pagedDocumentDetails * nextLink in DocumentDetails * DocumentDetail * Regenerated with no continuationToken * OperationType * CustomizationOptions and suppression * Change Config to Options * Regenerated after marking ListJobs and ListJobDocuments as internal * Customizations to remove continuationToken * Update tests and samples for new API version * Samples * Updating tests for new API version * Enable local testing * Add sanitizers * Update tests and sanitizers * Rename "body" to "content" * Tests working in all modes * Update commit in tsp-location.yaml * Updated serialization with dotnet build codegen * Version 1.0.0 * GA installation instructions * Use Deidentification prefix naming convention * Update tsp-location.yaml commit * Updates tests and samples with new prefix * Ran dotnet build /t:GenerateCode * Deidentification prefix for CustomizationOptions * Update tsp-location.yaml * Improve samples * Update commit in tsp-location * Update commit again * Update README sample * Regenerated with customization-options typespec * Fixes + pagedDocumentDetails * Revert pagedDocumentDetails * nextLink in DocumentDetails * DocumentDetail * Regenerated with no continuationToken * OperationType * CustomizationOptions and suppression * Change Config to Options * Regenerated after marking ListJobs and ListJobDocuments as internal * Customizations to remove continuationToken * Update tests and samples for new API version * Samples * Updating tests for new API version * Enable local testing * Add sanitizers * Update tests and sanitizers * Rename "body" to "content" * Tests working in all modes * Update commit in tsp-location.yaml * Updated serialization with dotnet build codegen * Version 1.0.0 * GA installation instructions * Use Deidentification prefix naming convention * Update tsp-location.yaml commit * Updates tests and samples with new prefix * Ran dotnet build /t:GenerateCode * Deidentification prefix for CustomizationOptions * Update tsp-location.yaml * Improve samples * Update commit in tsp-location * Update commit again * Update README sample * Export API * Switch back to ResourceList * Update commit hash * New tests with overwrite * Use public setter for overwrite * Regenerated after removing PartialFailed * Rm DeidentificationJobStatus from tests * Regenerated with merged typespec * Update changelog.md * Updating generated code * Update changelog --------- Co-authored-by: Alexa Thomases <[email protected]>
- Loading branch information
1 parent
a4572df
commit 42ad564
Showing
53 changed files
with
1,613 additions
and
1,311 deletions.
There are no files selected for viewing
14 changes: 10 additions & 4 deletions
14
sdk/healthdataaiservices/Azure.Health.Deidentification/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
242 changes: 112 additions & 130 deletions
242
...hdataaiservices/Azure.Health.Deidentification/api/Azure.Health.Deidentification.net8.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
242 changes: 112 additions & 130 deletions
242
...ervices/Azure.Health.Deidentification/api/Azure.Health.Deidentification.netstandard2.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
187 changes: 187 additions & 0 deletions
187
sdk/healthdataaiservices/Azure.Health.Deidentification/src/DeidentificationClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#nullable disable | ||
|
||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Autorest.CSharp.Core; | ||
using Azure.Core; | ||
using Azure.Core.Pipeline; | ||
|
||
namespace Azure.Health.Deidentification | ||
{ | ||
// Data plane customized client. | ||
/// <summary> The Deidentification service client. </summary> | ||
public partial class DeidentificationClient | ||
{ | ||
/// <summary> List de-identification jobs. </summary> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <remarks> Resource list operation template. </remarks> | ||
[ForwardsClientCalls] | ||
public virtual AsyncPageable<DeidentificationJob> GetJobsAsync(int? maxpagesize = null, CancellationToken cancellationToken = default) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobs"); | ||
scope.Start(); | ||
return GetJobsInternalsAsync(maxpagesize, null, cancellationToken); | ||
} | ||
|
||
/// <summary> List de-identification jobs. </summary> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <remarks> Resource list operation template. </remarks> | ||
[ForwardsClientCalls] | ||
public virtual Pageable<DeidentificationJob> GetJobs(int? maxpagesize = null, CancellationToken cancellationToken = default) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobs"); | ||
scope.Start(); | ||
return GetJobsInternals(maxpagesize, null, cancellationToken); | ||
} | ||
|
||
/// <summary> | ||
/// [Protocol Method] List de-identification jobs. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <description> | ||
/// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. | ||
/// </description> | ||
/// </item> | ||
/// <item> | ||
/// <description> | ||
/// Please try the simpler <see cref="GetJobsAsync(int?,CancellationToken)"/> convenience overload with strongly typed models first. | ||
/// </description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> | ||
/// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> | ||
/// <returns> The <see cref="AsyncPageable{T}"/> from the service containing a list of <see cref="BinaryData"/> objects. Details of the body schema for each item in the collection are in the Remarks section below. </returns> | ||
[ForwardsClientCalls] | ||
public virtual AsyncPageable<BinaryData> GetJobsAsync(int? maxpagesize, RequestContext context) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobs"); | ||
scope.Start(); | ||
return GetJobsInternalsAsync(maxpagesize, null, context); | ||
} | ||
|
||
/// <summary> | ||
/// [Protocol Method] List de-identification jobs. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <description> | ||
/// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. | ||
/// </description> | ||
/// </item> | ||
/// <item> | ||
/// <description> | ||
/// Please try the simpler <see cref="GetJobs(int?,CancellationToken)"/> convenience overload with strongly typed models first. | ||
/// </description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> | ||
/// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> | ||
/// <returns> The <see cref="Pageable{T}"/> from the service containing a list of <see cref="BinaryData"/> objects. Details of the body schema for each item in the collection are in the Remarks section below. </returns> | ||
[ForwardsClientCalls] | ||
public virtual Pageable<BinaryData> GetJobs(int? maxpagesize, RequestContext context) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobs"); | ||
scope.Start(); | ||
return GetJobsInternals(maxpagesize, null, context); | ||
} | ||
|
||
/// <summary> List processed documents within a job. </summary> | ||
/// <param name="jobName"> The name of a job. </param> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <exception cref="ArgumentNullException"> <paramref name="jobName"/> is null. </exception> | ||
/// <exception cref="ArgumentException"> <paramref name="jobName"/> is an empty string, and was expected to be non-empty. </exception> | ||
/// <remarks> The most basic operation. </remarks> | ||
[ForwardsClientCalls] | ||
public virtual AsyncPageable<DeidentificationDocumentDetails> GetJobDocumentsAsync(string jobName, int? maxpagesize = null, CancellationToken cancellationToken = default) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobDocuments"); | ||
scope.Start(); | ||
return GetJobDocumentsInternalsAsync(jobName, maxpagesize, null, cancellationToken); | ||
} | ||
|
||
/// <summary> List processed documents within a job. </summary> | ||
/// <param name="jobName"> The name of a job. </param> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="cancellationToken"> The cancellation token to use. </param> | ||
/// <exception cref="ArgumentNullException"> <paramref name="jobName"/> is null. </exception> | ||
/// <exception cref="ArgumentException"> <paramref name="jobName"/> is an empty string, and was expected to be non-empty. </exception> | ||
/// <remarks> The most basic operation. </remarks> | ||
[ForwardsClientCalls] | ||
public virtual Pageable<DeidentificationDocumentDetails> GetJobDocuments(string jobName, int? maxpagesize = null, CancellationToken cancellationToken = default) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobDocuments"); | ||
scope.Start(); | ||
return GetJobDocumentsInternals(jobName, maxpagesize, null, cancellationToken); | ||
} | ||
|
||
/// <summary> | ||
/// [Protocol Method] List processed documents within a job. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <description> | ||
/// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. | ||
/// </description> | ||
/// </item> | ||
/// <item> | ||
/// <description> | ||
/// Please try the simpler <see cref="GetJobDocumentsAsync(string,int?,CancellationToken)"/> convenience overload with strongly typed models first. | ||
/// </description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="jobName"> The name of a job. </param> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> | ||
/// <exception cref="ArgumentNullException"> <paramref name="jobName"/> is null. </exception> | ||
/// <exception cref="ArgumentException"> <paramref name="jobName"/> is an empty string, and was expected to be non-empty. </exception> | ||
/// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> | ||
/// <returns> The <see cref="AsyncPageable{T}"/> from the service containing a list of <see cref="BinaryData"/> objects. Details of the body schema for each item in the collection are in the Remarks section below. </returns> | ||
[ForwardsClientCalls] | ||
public virtual AsyncPageable<BinaryData> GetJobDocumentsAsync(string jobName, int? maxpagesize, RequestContext context) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobDocuments"); | ||
scope.Start(); | ||
return GetJobDocumentsInternalsAsync(jobName, maxpagesize, null, context); | ||
} | ||
|
||
/// <summary> | ||
/// [Protocol Method] List processed documents within a job. | ||
/// <list type="bullet"> | ||
/// <item> | ||
/// <description> | ||
/// This <see href="https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md">protocol method</see> allows explicit creation of the request and processing of the response for advanced scenarios. | ||
/// </description> | ||
/// </item> | ||
/// <item> | ||
/// <description> | ||
/// Please try the simpler <see cref="GetJobDocuments(string,int?,CancellationToken)"/> convenience overload with strongly typed models first. | ||
/// </description> | ||
/// </item> | ||
/// </list> | ||
/// </summary> | ||
/// <param name="jobName"> The name of a job. </param> | ||
/// <param name="maxpagesize"> The maximum number of result items per page. </param> | ||
/// <param name="context"> The request context, which can override default behaviors of the client pipeline on a per-call basis. </param> | ||
/// <exception cref="ArgumentNullException"> <paramref name="jobName"/> is null. </exception> | ||
/// <exception cref="ArgumentException"> <paramref name="jobName"/> is an empty string, and was expected to be non-empty. </exception> | ||
/// <exception cref="RequestFailedException"> Service returned a non-success status code. </exception> | ||
/// <returns> The <see cref="Pageable{T}"/> from the service containing a list of <see cref="BinaryData"/> objects. Details of the body schema for each item in the collection are in the Remarks section below. </returns> | ||
[ForwardsClientCalls] | ||
public virtual Pageable<BinaryData> GetJobDocuments(string jobName, int? maxpagesize, RequestContext context) | ||
{ | ||
using var scope = ClientDiagnostics.CreateScope("DeidentificationClient.GetJobDocuments"); | ||
scope.Start(); | ||
return GetJobDocumentsInternals(jobName, maxpagesize, null, context); | ||
} | ||
} | ||
} |
Oops, something went wrong.