From b59fda06a1e7b05dfed1ef0781d56e438e6119f8 Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Wed, 12 May 2021 16:53:35 -0700 Subject: [PATCH] [Purview] Regenerate Catalog Client (#21008) * [Purview Catalog] Regenerate Based on Arch Board Feedback * [Purview Catalog] Reduce number of top level clients * [Purview] Snap Catalog to latest Swagger * [Purview Catalog] Update README.md and CHANGELOG.md --- .../CHANGELOG.md | 7 +- .../Azure.Analytics.Purview.Catalog/README.md | 70 ++- ...nalytics.Purview.Catalog.netstandard2.0.cs | 184 +++--- .../Customizations/PurviewCatalogClient.cs | 33 + .../src/Customizations/PurviewEntities.cs | 22 + .../src/Customizations/PurviewGlossaries.cs | 22 + .../src/Customizations/PurviewRelatonships.cs | 22 + .../src/Customizations/PurviewTypes.cs | 22 + .../src/Generated/LineageRestClient.cs | 312 --------- ...yRestClient.cs => PurviewCatalogClient.cs} | 308 ++++++++- ...ions.cs => PurviewCatalogClientOptions.cs} | 16 +- ...EntityRestClient.cs => PurviewEntities.cs} | 345 +++------- ...saryRestClient.cs => PurviewGlossaries.cs} | 486 +++++++------- ...pRestClient.cs => PurviewRelationships.cs} | 595 +----------------- .../{TypesRestClient.cs => PurviewTypes.cs} | 367 +++-------- .../src/autorest.md | 49 +- 16 files changed, 1038 insertions(+), 1822 deletions(-) create mode 100644 sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewCatalogClient.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewEntities.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewGlossaries.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewRelatonships.cs create mode 100644 sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewTypes.cs delete mode 100644 sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/LineageRestClient.cs rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{DiscoveryRestClient.cs => PurviewCatalogClient.cs} (62%) rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{CatalogClientOptions.cs => PurviewCatalogClientOptions.cs} (55%) rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{EntityRestClient.cs => PurviewEntities.cs} (93%) rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{GlossaryRestClient.cs => PurviewGlossaries.cs} (95%) rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{RelationshipRestClient.cs => PurviewRelationships.cs} (58%) rename sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/{TypesRestClient.cs => PurviewTypes.cs} (95%) diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/CHANGELOG.md b/sdk/purview/Azure.Analytics.Purview.Catalog/CHANGELOG.md index c0d06b1c26867..d3b0722751239 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/CHANGELOG.md +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History -## 1.0.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2021-05-12) + +### New Features + +- Initial preview release of the Azure Purview Catalog client library for .NET -- Initial Preview Release diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/README.md b/sdk/purview/Azure.Analytics.Purview.Catalog/README.md index 6302e05def59a..7eb38be04762d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/README.md +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/README.md @@ -1,28 +1,47 @@ # Azure Purview Catalog client library for .NET -**Introduction**: +Azure Purview Catalog is a fully managed cloud service whose users can discover the data sources they need and understand the data sources they find. At the same time, Data Catalog helps organizations get more value from their existing investments. -TODO +- Search for data using technical or business terms +- Browse associated technical, business, semantic, and operational metadata +- Identify the sensitivity level of data. -## Getting started +**Please rely heavily on the [service's documentation][catalog_product_documentation] and our [protocol client docs][protocol_client_quickstart] to use this library** + +[Source code][source_code] | [Package (NuGet)][client_nuget_package] | [Product documentation][catalog_product_documentation] -TODO +## Getting started ### Install the package -TODO +Install the Azure Purview Catalog client library for .NET with [NuGet][client_nuget_package]: + +``` +dotnet add package Azure.Analysis.Purview.Catalog --prerelease +``` ### Prerequisites -TODO +- You must have an [Azure subscription][azure_subscription] and a [Purview resource][purview_resource] to use this package. ### Authenticate the client -TODO +#### Using Azure Active Directory + +This document demonstrates using [DefaultAzureCredential][default_cred_ref] to authenticate via Azure Active Directory. However, any of the credentials offered by the [Azure.Identity][azure_identity] will be accepted. See the [Azure.Identity][azure_identity] documentation for more information about other credentials. + +Once you have chosen and configured your credential, you can create instances of the `PurviewCatalogClient`. + +```C# +var credential = new DefaultAzureCredential(); +var client = new PurviewCatalogClient(new Url("https://.catalog.purview.azure.com"), credential); +``` ## Key concepts -TODO +### Protocol Methods + +Operations exposed by the Purview Catalog SDK for .NET use *protocol methods* to expose the underlying REST operations. You can learn more about how to use SDK Clients which use protocol methods in our [documentation][protocol_client_quickstart]. ### Thread safety @@ -41,15 +60,35 @@ We guarantee that all client instance methods are thread-safe and independent of ## Examples -TODO +The following section shows you how to initialize and authenticate your client, then get all of the type definitions in the catalog. + +### Get All Type Definitions + +```C# +var credential = new DefaultAzureCredential(); +var client = new PurviewCatalogClient(new Uri("https://.catalog.purview.azure.com"), credential); + +var response = await client.Types.GetAllTypeDefinitionsAsync(); +var responseDocument = JsonDocument.Parse(response.Content); +Console.WriteLine(responseDocument.RootElement.GetProperty("entityDefs")); +``` ## Troubleshooting -TODO +### Setting up console logging +The simplest way to see the logs is to enable the console logging. +To create an Azure SDK log listener that outputs messages to console use AzureEventSourceListener.CreateConsoleLogger method. + +```C# +// Setup a listener to monitor logged events. +using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger(); +``` + +To learn more about other logging mechanisms see [here][azure_core_diagnostics]. ## Next steps -TODO +This client SDK exposes operations using *protocol methods*, you can learn more about how to use SDK Clients which use protocol methods in our [documentation][protocol_client_quickstart]. ## Contributing @@ -62,6 +101,15 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. +[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/purview/Azure.Analytics.Purview.Catalog/src +[client_nuget_package]: https://www.nuget.org/packages?q=Azure.Analytics.Purview.Catalog +[catalog_product_documentation]: https://azure.microsoft.com/services/purview/ +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[protocol_client_quickstart]: https://aka.ms/azsdk/net/protocol/quickstart +[default_cred_ref]: https://docs.microsoft.com/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet +[azure_subscription]: https://azure.microsoft.com/free/ +[purview_resource]: https://docs.microsoft.com/azure/purview/create-catalog-portal +[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs index 26d9eeb348bd7..e606205b3df40 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs @@ -1,29 +1,36 @@ namespace Azure.Analytics.Purview.Catalog { - public partial class CatalogClientOptions : Azure.Core.ClientOptions + public partial class PurviewCatalogClient { - public CatalogClientOptions(Azure.Analytics.Purview.Catalog.CatalogClientOptions.ServiceVersion version = Azure.Analytics.Purview.Catalog.CatalogClientOptions.ServiceVersion.V2020_12_01_preview) { } - public enum ServiceVersion - { - V2020_12_01_preview = 1, - } - } - public partial class DiscoveryRestClient - { - protected DiscoveryRestClient() { } - public DiscoveryRestClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.CatalogClientOptions options = null) { } + protected PurviewCatalogClient() { } + public PurviewCatalogClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.PurviewCatalogClientOptions options = null) { } + public Azure.Analytics.Purview.Catalog.PurviewEntities Entities { get { throw null; } } + public Azure.Analytics.Purview.Catalog.PurviewGlossaries Glossaries { get { throw null; } } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public Azure.Analytics.Purview.Catalog.PurviewRelationships Relationships { get { throw null; } } + public Azure.Analytics.Purview.Catalog.PurviewTypes Types { get { throw null; } } public virtual Azure.Response AutoComplete(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task AutoCompleteAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SearchAdvanced(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SearchAdvancedAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetLineageGraph(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetLineageGraphAsync(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response Search(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response Suggest(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task SuggestAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } } - public partial class EntityRestClient + public partial class PurviewCatalogClientOptions : Azure.Core.ClientOptions { - protected EntityRestClient() { } - public EntityRestClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.CatalogClientOptions options = null) { } + public PurviewCatalogClientOptions(Azure.Analytics.Purview.Catalog.PurviewCatalogClientOptions.ServiceVersion version = Azure.Analytics.Purview.Catalog.PurviewCatalogClientOptions.ServiceVersion.V2021_05_01_preview) { } + public enum ServiceVersion + { + V2021_05_01_preview = 1, + } + } + public partial class PurviewEntities + { + protected PurviewEntities() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response AddClassification(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task AddClassificationAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } @@ -31,24 +38,24 @@ public EntityRestClient(System.Uri endpoint, Azure.Core.TokenCredential credenti public virtual System.Threading.Tasks.Task AddClassificationsAsync(string guid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response AddClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task AddClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response BulkDelete(System.Collections.Generic.IEnumerable guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task BulkDeleteAsync(System.Collections.Generic.IEnumerable guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdateBulk(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateBulkAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdateEntities(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateEntitiesAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response DeleteByGuids(System.Collections.Generic.IEnumerable guids, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByGuidsAsync(System.Collections.Generic.IEnumerable guids, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteClassification(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteClassificationAsync(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteClassificationByUniqueAttribute(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetByGuids(System.Collections.Generic.IEnumerable guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByGuidsAsync(System.Collections.Generic.IEnumerable guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetById(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByIdAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetByGuid(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetByGuidAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetByGuids(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetByGuidsAsync(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetClassification(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } @@ -57,12 +64,12 @@ public EntityRestClient(System.Uri endpoint, Azure.Core.TokenCredential credenti public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetHeaderById(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetHeaderByIdAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateEntityAttrByGuid(string guid, string name, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateEntityAttrByGuidAsync(string guid, string name, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateEntityByUniqueAttrs(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateEntityByUniqueAttrsAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetHeader(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response PartialUpdateEntityAttributeByGuid(string guid, string name, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response PartialUpdateEntityByUniqueAttributes(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response SetClassifications(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task SetClassificationsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response UpdateClassifications(string guid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } @@ -70,10 +77,9 @@ public EntityRestClient(System.Uri endpoint, Azure.Core.TokenCredential credenti public virtual Azure.Response UpdateClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } } - public partial class GlossaryRestClient + public partial class PurviewGlossaries { - protected GlossaryRestClient() { } - public GlossaryRestClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.CatalogClientOptions options = null) { } + protected PurviewGlossaries() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response AssignTermToEntities(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task AssignTermToEntitiesAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } @@ -83,10 +89,10 @@ public GlossaryRestClient(System.Uri endpoint, Azure.Core.TokenCredential creden public virtual System.Threading.Tasks.Task CreateGlossaryCategoriesAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response CreateGlossaryCategory(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task CreateGlossaryCategoryAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossaryTerm(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryTermAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossaryTerms(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryTermsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateGlossaryTerm(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryTermAsync(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateGlossaryTerms(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryTermsAsync(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteGlossary(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteGlossaryAsync(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteGlossaryCategory(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } @@ -95,12 +101,12 @@ public GlossaryRestClient(System.Uri endpoint, Azure.Core.TokenCredential creden public virtual System.Threading.Tasks.Task DeleteGlossaryTermAsync(string termGuid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteTermAssignmentFromEntities(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ExportGlossaryTermsAsCSV(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ExportGlossaryTermsAsCSVAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response ExportGlossaryTermsAsCsv(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetCategoryTerms(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetCategoryTermsAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetDetailedGlossary(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDetailedGlossaryAsync(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetGlossaries(int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } @@ -113,30 +119,30 @@ public GlossaryRestClient(System.Uri endpoint, Azure.Core.TokenCredential creden public virtual System.Threading.Tasks.Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetGlossaryCategory(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetGlossaryCategoryAsync(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryTerm(string termGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermAsync(string termGuid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryTerms(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermsAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetImportCSVOperationStatus(string operationGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetImportCSVOperationStatusAsync(string operationGuid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetImportCsvOperationStatus(string operationGuid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetImportCsvOperationStatusAsync(string operationGuid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetRelatedCategories(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetRelatedTerms(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetRelatedTermsAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTermsByGlossaryName(string glossaryName, int? limit = default(int?), int? offset = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = default(int?), int? offset = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ImportGlossaryTermsViaCSV(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCSVAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ImportGlossaryTermsViaCSVByGlossaryName(string glossaryName, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCSVByGlossaryNameAsync(string glossaryName, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateGlossary(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateGlossaryAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetTermsByGlossaryName(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response ImportGlossaryTermsViaCsv(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCsvAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryName, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCsvByGlossaryNameAsync(string glossaryName, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response PartialUpdateGlossary(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateGlossaryAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response PartialUpdateGlossaryCategory(string categoryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task PartialUpdateGlossaryCategoryAsync(string categoryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response PartialUpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response RemoveTermAssignmentFromEntities(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task RemoveTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response UpdateGlossary(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } @@ -146,51 +152,39 @@ public GlossaryRestClient(System.Uri endpoint, Azure.Core.TokenCredential creden public virtual Azure.Response UpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } } - public partial class LineageRestClient - { - protected LineageRestClient() { } - public LineageRestClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.CatalogClientOptions options = null) { } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetLineageGraph(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLineageGraphAsync(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response NextLevelLineage(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task NextLevelLineageAsync(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } - } - public partial class RelationshipRestClient + public partial class PurviewRelationships { - protected RelationshipRestClient() { } - public RelationshipRestClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.CatalogClientOptions options = null) { } + protected PurviewRelationships() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Create(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteById(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByIdAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetById2(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetById2Async(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response Delete(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response Get(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response Update(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task UpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } } - public partial class TypesRestClient + public partial class PurviewTypes { - protected TypesRestClient() { } - public TypesRestClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Catalog.CatalogClientOptions options = null) { } + protected PurviewTypes() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateTypeDefs(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateTypeDefsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateTypeDefinitions(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateTypeDefinitionsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response DeleteTypeByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task DeleteTypeByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteTypeDefs(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTypeDefsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetAllTypeDefs(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAllTypeDefsAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response DeleteTypeDefinitions(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTypeDefinitionsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetAllTypeDefinitions(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetClassificationDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetClassificationDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetClassificationDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetClassificationDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEntityDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEntityDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetEntityDefinitionByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEntityDefinitionByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetEntityDefinitionByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEntityDefinitionByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetEnumDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetEnumDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetEnumDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } @@ -207,13 +201,13 @@ public TypesRestClient(System.Uri endpoint, Azure.Core.TokenCredential credentia public virtual System.Threading.Tasks.Task GetTermTemplateDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } public virtual Azure.Response GetTermTemplateDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } public virtual System.Threading.Tasks.Task GetTermTemplateDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTypeDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTypeDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTypeDefHeaders(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefHeadersAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateAtlasTypeDefs(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateAtlasTypeDefsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetTypeDefinitionByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetTypeDefinitionByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetTypeDefinitionHeaders(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response UpdateAtlasTypeDefinitions(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateAtlasTypeDefinitionsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewCatalogClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewCatalogClient.cs new file mode 100644 index 0000000000000..4041336ab0862 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewCatalogClient.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Analytics.Purview.Catalog +{ + public partial class PurviewCatalogClient + { + private PurviewEntities purviewEntities; + private PurviewGlossaries purviewGlossaries; + private PurviewRelationships purviewRelationships; + private PurviewTypes purviewTypes; + + /// + /// Provides access to operations which interact with entities in the catalog. + /// + public PurviewEntities Entities { get => purviewEntities ??= new PurviewEntities(Pipeline, _clientDiagnostics, endpoint, apiVersion); } + + /// + /// Provides access to operations which interact with glossaries in the catalog. + /// + public PurviewGlossaries Glossaries { get => purviewGlossaries ??= new PurviewGlossaries(Pipeline, _clientDiagnostics, endpoint, apiVersion); } + + /// + /// Provides access to operations which interact with glossaries in the catalog. + /// + public PurviewRelationships Relationships { get => purviewRelationships ??= new PurviewRelationships(Pipeline, _clientDiagnostics, endpoint, apiVersion); } + + /// + /// Provides access to operations which interact with types in the catalog. + /// + public PurviewTypes Types { get => purviewTypes ??= new PurviewTypes(Pipeline, _clientDiagnostics, endpoint, apiVersion); } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewEntities.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewEntities.cs new file mode 100644 index 0000000000000..52b460f6c7cff --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewEntities.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Analytics.Purview.Catalog +{ + [CodeGenClient("PurviewEntityClient")] + [CodeGenSuppress("PurviewEntities", typeof(Uri), typeof(TokenCredential), typeof(PurviewCatalogClientOptions))] + public partial class PurviewEntities + { + internal PurviewEntities(HttpPipeline pipeline, ClientDiagnostics clientDiagnostics, Uri endpoint, string apiVersion) + { + Pipeline = pipeline; + _clientDiagnostics = clientDiagnostics; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewGlossaries.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewGlossaries.cs new file mode 100644 index 0000000000000..a6e8b93ee38f5 --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewGlossaries.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Analytics.Purview.Catalog +{ + [CodeGenClient("PurviewGlossaryClient")] + [CodeGenSuppress("PurviewGlossaries", typeof(Uri), typeof(TokenCredential), typeof(PurviewCatalogClientOptions))] + public partial class PurviewGlossaries + { + internal PurviewGlossaries(HttpPipeline pipeline, ClientDiagnostics clientDiagnostics, Uri endpoint, string apiVersion) + { + Pipeline = pipeline; + _clientDiagnostics = clientDiagnostics; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewRelatonships.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewRelatonships.cs new file mode 100644 index 0000000000000..598433c7eff9b --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewRelatonships.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Analytics.Purview.Catalog +{ + [CodeGenClient("PurviewRelationshipClient")] + [CodeGenSuppress("PurviewRelationships", typeof(Uri), typeof(TokenCredential), typeof(PurviewCatalogClientOptions))] + public partial class PurviewRelationships + { + internal PurviewRelationships(HttpPipeline pipeline, ClientDiagnostics clientDiagnostics, Uri endpoint, string apiVersion) + { + Pipeline = pipeline; + _clientDiagnostics = clientDiagnostics; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewTypes.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewTypes.cs new file mode 100644 index 0000000000000..b0d6022588c8d --- /dev/null +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Customizations/PurviewTypes.cs @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Analytics.Purview.Catalog +{ + [CodeGenClient("PurviewTypesClient")] + [CodeGenSuppress("PurviewTypes", typeof(Uri), typeof(TokenCredential), typeof(PurviewCatalogClientOptions))] + public partial class PurviewTypes + { + internal PurviewTypes(HttpPipeline pipeline, ClientDiagnostics clientDiagnostics, Uri endpoint, string apiVersion) + { + Pipeline = pipeline; + _clientDiagnostics = clientDiagnostics; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + } + } +} diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/LineageRestClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/LineageRestClient.cs deleted file mode 100644 index af8376a3402c1..0000000000000 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/LineageRestClient.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.Analytics.Purview.Catalog -{ - /// The LineageRest service client. - public partial class LineageRestClient - { - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline { get; } - private readonly string[] AuthorizationScopes = { "https://purview.azure.net/.default" }; - private Uri endpoint; - private readonly string apiVersion; - private readonly ClientDiagnostics _clientDiagnostics; - - /// Initializes a new instance of LineageRestClient for mocking. - protected LineageRestClient() - { - } - - /// Initializes a new instance of LineageRestClient. - /// The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com. - /// A credential used to authenticate to an Azure Service. - /// The options for configuring the client. - public LineageRestClient(Uri endpoint, TokenCredential credential, CatalogClientOptions options = null) - { - if (endpoint == null) - { - throw new ArgumentNullException(nameof(endpoint)); - } - if (credential == null) - { - throw new ArgumentNullException(nameof(credential)); - } - - options ??= new CatalogClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - var authPolicy = new BearerTokenAuthenticationPolicy(credential, AuthorizationScopes); - Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { authPolicy, new LowLevelCallbackPolicy() }); - this.endpoint = endpoint; - apiVersion = options.Version; - } - - /// Get lineage info about the specified entity by GUID. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The number of hops for lineage. - /// The number of max expanding width in lineage. - /// True to include the parent chain in the response. - /// True to include derived lineage in the response. - /// The request options. -#pragma warning disable AZC0002 - public virtual async Task GetLineageGraphAsync(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) -#pragma warning restore AZC0002 - { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, requestOptions); - if (requestOptions.PerCallPolicy != null) - { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); - } - using var scope = _clientDiagnostics.CreateScope("LineageRestClient.GetLineageGraph"); - scope.Start(); - try - { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) - { - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - else - { - return message.Response; - } - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Get lineage info about the specified entity by GUID. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The number of hops for lineage. - /// The number of max expanding width in lineage. - /// True to include the parent chain in the response. - /// True to include derived lineage in the response. - /// The request options. -#pragma warning disable AZC0002 - public virtual Response GetLineageGraph(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) -#pragma warning restore AZC0002 - { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, requestOptions); - if (requestOptions.PerCallPolicy != null) - { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); - } - using var scope = _clientDiagnostics.CreateScope("LineageRestClient.GetLineageGraph"); - scope.Start(); - try - { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) - { - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - else - { - return message.Response; - } - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Create Request for and operations. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// The number of hops for lineage. - /// The number of max expanding width in lineage. - /// True to include the parent chain in the response. - /// True to include derived lineage in the response. - /// The request options. - private HttpMessage CreateGetLineageGraphRequest(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) - { - var message = Pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRaw("/api", false); - uri.AppendPath("/atlas/v2/lineage/", false); - uri.AppendPath(guid, true); - if (depth != null) - { - uri.AppendQuery("depth", depth.Value, true); - } - if (width != null) - { - uri.AppendQuery("width", width.Value, true); - } - uri.AppendQuery("direction", direction, true); - if (includeParent != null) - { - uri.AppendQuery("includeParent", includeParent.Value, true); - } - if (getDerivedLineage != null) - { - uri.AppendQuery("getDerivedLineage", getDerivedLineage.Value, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// Return immediate next level lineage info about entity with pagination. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// True to include derived lineage in the response. - /// The offset for pagination purpose. - /// The page size - by default there is no paging. - /// The request options. -#pragma warning disable AZC0002 - public virtual async Task NextLevelLineageAsync(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) -#pragma warning restore AZC0002 - { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateNextLevelLineageRequest(guid, direction, getDerivedLineage, offset, limit, requestOptions); - if (requestOptions.PerCallPolicy != null) - { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); - } - using var scope = _clientDiagnostics.CreateScope("LineageRestClient.NextLevelLineage"); - scope.Start(); - try - { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) - { - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - else - { - return message.Response; - } - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Return immediate next level lineage info about entity with pagination. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// True to include derived lineage in the response. - /// The offset for pagination purpose. - /// The page size - by default there is no paging. - /// The request options. -#pragma warning disable AZC0002 - public virtual Response NextLevelLineage(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) -#pragma warning restore AZC0002 - { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateNextLevelLineageRequest(guid, direction, getDerivedLineage, offset, limit, requestOptions); - if (requestOptions.PerCallPolicy != null) - { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); - } - using var scope = _clientDiagnostics.CreateScope("LineageRestClient.NextLevelLineage"); - scope.Start(); - try - { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) - { - switch (message.Response.Status) - { - case 200: - return message.Response; - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - else - { - return message.Response; - } - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// Create Request for and operations. - /// The globally unique identifier of the entity. - /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. - /// True to include derived lineage in the response. - /// The offset for pagination purpose. - /// The page size - by default there is no paging. - /// The request options. - private HttpMessage CreateNextLevelLineageRequest(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) - { - var message = Pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(endpoint); - uri.AppendRaw("/api", false); - uri.AppendPath("/lineage/", false); - uri.AppendPath(guid, true); - uri.AppendPath("/next/", false); - uri.AppendQuery("direction", direction, true); - if (getDerivedLineage != null) - { - uri.AppendQuery("getDerivedLineage", getDerivedLineage.Value, true); - } - if (offset != null) - { - uri.AppendQuery("offset", offset.Value, true); - } - if (limit != null) - { - uri.AppendQuery("limit", limit.Value, true); - } - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - } -} diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/DiscoveryRestClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs similarity index 62% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/DiscoveryRestClient.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs index 7585c89eb1580..f96badb7a8473 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/DiscoveryRestClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs @@ -13,8 +13,8 @@ namespace Azure.Analytics.Purview.Catalog { - /// The DiscoveryRest service client. - public partial class DiscoveryRestClient + /// The PurviewCatalog service client. + public partial class PurviewCatalogClient { /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline { get; } @@ -23,16 +23,16 @@ public partial class DiscoveryRestClient private readonly string apiVersion; private readonly ClientDiagnostics _clientDiagnostics; - /// Initializes a new instance of DiscoveryRestClient for mocking. - protected DiscoveryRestClient() + /// Initializes a new instance of PurviewCatalogClient for mocking. + protected PurviewCatalogClient() { } - /// Initializes a new instance of DiscoveryRestClient. + /// Initializes a new instance of PurviewCatalogClient. /// The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com. /// A credential used to authenticate to an Azure Service. /// The options for configuring the client. - public DiscoveryRestClient(Uri endpoint, TokenCredential credential, CatalogClientOptions options = null) + public PurviewCatalogClient(Uri endpoint, TokenCredential credential, PurviewCatalogClientOptions options = null) { if (endpoint == null) { @@ -43,7 +43,7 @@ public DiscoveryRestClient(Uri endpoint, TokenCredential credential, CatalogClie throw new ArgumentNullException(nameof(credential)); } - options ??= new CatalogClientOptions(); + options ??= new PurviewCatalogClientOptions(); _clientDiagnostics = new ClientDiagnostics(options); var authPolicy = new BearerTokenAuthenticationPolicy(credential, AuthorizationScopes); Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { authPolicy, new LowLevelCallbackPolicy() }); @@ -150,16 +150,16 @@ public DiscoveryRestClient(Uri endpoint, TokenCredential credential, CatalogClie /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual async Task SearchAdvancedAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SearchAsync(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchAdvancedRequest(requestBody, requestOptions); + HttpMessage message = CreateSearchRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("DiscoveryRestClient.SearchAdvanced"); + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Search"); scope.Start(); try { @@ -285,16 +285,16 @@ public virtual async Task SearchAdvancedAsync(RequestContent requestBo /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual Response SearchAdvanced(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response Search(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchAdvancedRequest(requestBody, requestOptions); + HttpMessage message = CreateSearchRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("DiscoveryRestClient.SearchAdvanced"); + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Search"); scope.Start(); try { @@ -321,10 +321,10 @@ public virtual Response SearchAdvanced(RequestContent requestBody, RequestOption } } - /// Create Request for and operations. + /// Create Request for and operations. /// The request body. /// The request options. - private HttpMessage CreateSearchAdvancedRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -333,10 +333,7 @@ private HttpMessage CreateSearchAdvancedRequest(RequestContent requestBody, Requ uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/search/query", false); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -386,7 +383,7 @@ public virtual async Task SuggestAsync(RequestContent requestBody, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("DiscoveryRestClient.Suggest"); + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Suggest"); scope.Start(); try { @@ -455,7 +452,7 @@ public virtual Response Suggest(RequestContent requestBody, RequestOptions reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("DiscoveryRestClient.Suggest"); + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Suggest"); scope.Start(); try { @@ -494,10 +491,7 @@ private HttpMessage CreateSuggestRequest(RequestContent requestBody, RequestOpti uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/search/suggest", false); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -547,7 +541,7 @@ public virtual async Task AutoCompleteAsync(RequestContent requestBody { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("DiscoveryRestClient.AutoComplete"); + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.AutoComplete"); scope.Start(); try { @@ -616,7 +610,7 @@ public virtual Response AutoComplete(RequestContent requestBody, RequestOptions { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("DiscoveryRestClient.AutoComplete"); + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.AutoComplete"); scope.Start(); try { @@ -655,15 +649,267 @@ private HttpMessage CreateAutoCompleteRequest(RequestContent requestBody, Reques uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/search/autocomplete", false); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); request.Content = requestBody; return message; } + + /// Get lineage info of the entity specified by GUID. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// The number of hops for lineage. + /// The number of max expanding width in lineage. + /// True to include the parent chain in the response. + /// True to include derived lineage in the response. + /// The request options. +#pragma warning disable AZC0002 + public virtual async Task GetLineageGraphAsync(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) +#pragma warning restore AZC0002 + { + requestOptions ??= new RequestOptions(); + HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, requestOptions); + if (requestOptions.PerCallPolicy != null) + { + message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + } + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.GetLineageGraph"); + scope.Start(); + try + { + await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); + if (requestOptions.StatusOption == ResponseStatusOption.Default) + { + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + else + { + return message.Response; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get lineage info of the entity specified by GUID. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// The number of hops for lineage. + /// The number of max expanding width in lineage. + /// True to include the parent chain in the response. + /// True to include derived lineage in the response. + /// The request options. +#pragma warning disable AZC0002 + public virtual Response GetLineageGraph(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) +#pragma warning restore AZC0002 + { + requestOptions ??= new RequestOptions(); + HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, requestOptions); + if (requestOptions.PerCallPolicy != null) + { + message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + } + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.GetLineageGraph"); + scope.Start(); + try + { + Pipeline.Send(message, requestOptions.CancellationToken); + if (requestOptions.StatusOption == ResponseStatusOption.Default) + { + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + else + { + return message.Response; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create Request for and operations. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// The number of hops for lineage. + /// The number of max expanding width in lineage. + /// True to include the parent chain in the response. + /// True to include derived lineage in the response. + /// The request options. + private HttpMessage CreateGetLineageGraphRequest(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) + { + var message = Pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRaw("/api", false); + uri.AppendPath("/atlas/v2/lineage/", false); + uri.AppendPath(guid, true); + if (depth != null) + { + uri.AppendQuery("depth", depth.Value, true); + } + if (width != null) + { + uri.AppendQuery("width", width.Value, true); + } + uri.AppendQuery("direction", direction, true); + if (includeParent != null) + { + uri.AppendQuery("includeParent", includeParent.Value, true); + } + if (getDerivedLineage != null) + { + uri.AppendQuery("getDerivedLineage", getDerivedLineage.Value, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + /// Return immediate next page lineage info about entity with pagination. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// True to include derived lineage in the response. + /// The offset for pagination purpose. + /// The page size - by default there is no paging. + /// The request options. +#pragma warning disable AZC0002 + public virtual async Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) +#pragma warning restore AZC0002 + { + requestOptions ??= new RequestOptions(); + HttpMessage message = CreateNextPageLineageRequest(guid, direction, getDerivedLineage, offset, limit, requestOptions); + if (requestOptions.PerCallPolicy != null) + { + message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + } + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.NextPageLineage"); + scope.Start(); + try + { + await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); + if (requestOptions.StatusOption == ResponseStatusOption.Default) + { + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + else + { + return message.Response; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Return immediate next page lineage info about entity with pagination. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// True to include derived lineage in the response. + /// The offset for pagination purpose. + /// The page size - by default there is no paging. + /// The request options. +#pragma warning disable AZC0002 + public virtual Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) +#pragma warning restore AZC0002 + { + requestOptions ??= new RequestOptions(); + HttpMessage message = CreateNextPageLineageRequest(guid, direction, getDerivedLineage, offset, limit, requestOptions); + if (requestOptions.PerCallPolicy != null) + { + message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + } + using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.NextPageLineage"); + scope.Start(); + try + { + Pipeline.Send(message, requestOptions.CancellationToken); + if (requestOptions.StatusOption == ResponseStatusOption.Default) + { + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + else + { + return message.Response; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create Request for and operations. + /// The globally unique identifier of the entity. + /// The direction of the lineage, which could be INPUT, OUTPUT or BOTH. + /// True to include derived lineage in the response. + /// The offset for pagination purpose. + /// The page size - by default there is no paging. + /// The request options. + private HttpMessage CreateNextPageLineageRequest(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) + { + var message = Pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRaw("/api", false); + uri.AppendPath("/lineage/", false); + uri.AppendPath(guid, true); + uri.AppendPath("/next/", false); + uri.AppendQuery("direction", direction, true); + if (getDerivedLineage != null) + { + uri.AppendQuery("getDerivedLineage", getDerivedLineage.Value, true); + } + if (offset != null) + { + uri.AppendQuery("offset", offset.Value, true); + } + if (limit != null) + { + uri.AppendQuery("limit", limit.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } } } diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/CatalogClientOptions.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClientOptions.cs similarity index 55% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/CatalogClientOptions.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClientOptions.cs index 7693be48db088..aa693b898c622 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/CatalogClientOptions.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClientOptions.cs @@ -10,26 +10,26 @@ namespace Azure.Analytics.Purview.Catalog { - /// Client options for CatalogClient. - public partial class CatalogClientOptions : ClientOptions + /// Client options for PurviewCatalogClient. + public partial class PurviewCatalogClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2020_12_01_preview; + private const ServiceVersion LatestVersion = ServiceVersion.V2021_05_01_preview; /// The version of the service to use. public enum ServiceVersion { - /// Service version "2020-12-01-preview". - V2020_12_01_preview = 1, + /// Service version "2021-05-01-preview". + V2021_05_01_preview = 1, } internal string Version { get; } - /// Initializes new instance of CatalogClientOptions. - public CatalogClientOptions(ServiceVersion version = LatestVersion) + /// Initializes new instance of PurviewCatalogClientOptions. + public PurviewCatalogClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { - ServiceVersion.V2020_12_01_preview => "2020-12-01-preview", + ServiceVersion.V2021_05_01_preview => "2021-05-01-preview", _ => throw new NotSupportedException() }; } diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/EntityRestClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs similarity index 93% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/EntityRestClient.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs index b28b26d8412be..caa0dfbeab6d6 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/EntityRestClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs @@ -14,8 +14,8 @@ namespace Azure.Analytics.Purview.Catalog { - /// The EntityRest service client. - public partial class EntityRestClient + /// The PurviewEntities service client. + public partial class PurviewEntities { /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline { get; } @@ -24,34 +24,11 @@ public partial class EntityRestClient private readonly string apiVersion; private readonly ClientDiagnostics _clientDiagnostics; - /// Initializes a new instance of EntityRestClient for mocking. - protected EntityRestClient() + /// Initializes a new instance of PurviewEntities for mocking. + protected PurviewEntities() { } - /// Initializes a new instance of EntityRestClient. - /// The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com. - /// A credential used to authenticate to an Azure Service. - /// The options for configuring the client. - public EntityRestClient(Uri endpoint, TokenCredential credential, CatalogClientOptions options = null) - { - if (endpoint == null) - { - throw new ArgumentNullException(nameof(endpoint)); - } - if (credential == null) - { - throw new ArgumentNullException(nameof(credential)); - } - - options ??= new CatalogClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - var authPolicy = new BearerTokenAuthenticationPolicy(credential, AuthorizationScopes); - Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { authPolicy, new LowLevelCallbackPolicy() }); - this.endpoint = endpoint; - apiVersion = options.Version; - } - /// /// Create or update an entity in Atlas. /// Existing entity is matched using its unique guid if supplied or by its unique attributes eg: qualifiedName. @@ -241,12 +218,6 @@ public EntityRestClient(Uri endpoint, TokenCredential credential, CatalogClientO /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -401,7 +372,7 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.CreateOrUpdate"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdate"); scope.Start(); try { @@ -617,12 +588,6 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -777,7 +742,7 @@ public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOption { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.CreateOrUpdate"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdate"); scope.Start(); try { @@ -816,10 +781,6 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/entity", false); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -828,22 +789,22 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ } /// List entities in bulk identified by its GUIDs. - /// An array of GUIDs of entities to create. + /// An array of GUIDs of entities to create. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// An array of the relationship types need to be excluded from the response. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetByGuidsAsync(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) + public virtual async Task GetByGuidsAsync(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByGuidsRequest(guid, minExtInfo, ignoreRelationships, excludeRelationshipTypes, requestOptions); + HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetByGuids"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuids"); scope.Start(); try { @@ -871,22 +832,22 @@ public virtual async Task GetByGuidsAsync(IEnumerable guid, bo } /// List entities in bulk identified by its GUIDs. - /// An array of GUIDs of entities to create. + /// An array of GUIDs of entities to create. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// An array of the relationship types need to be excluded from the response. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetByGuids(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) + public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByGuidsRequest(guid, minExtInfo, ignoreRelationships, excludeRelationshipTypes, requestOptions); + HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetByGuids"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuids"); scope.Start(); try { @@ -914,12 +875,12 @@ public virtual Response GetByGuids(IEnumerable guid, bool? minExtInfo = } /// Create Request for and operations. - /// An array of GUIDs of entities to create. + /// An array of GUIDs of entities to create. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// An array of the relationship types need to be excluded from the response. /// The request options. - private HttpMessage CreateGetByGuidsRequest(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -928,7 +889,7 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guid, bool? minE uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/entity/bulk", false); - uri.AppendQueryDelimited("guid", guid, ",", true); + uri.AppendQueryDelimited("guids", guids, ",", true); if (minExtInfo != null) { uri.AppendQuery("minExtInfo", minExtInfo.Value, true); @@ -941,10 +902,6 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guid, bool? minE { uri.AppendQueryDelimited("excludeRelationshipTypes", excludeRelationshipTypes, ",", true); } - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; @@ -1139,12 +1096,6 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guid, bool? minE /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -1290,16 +1241,16 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guid, bool? minE /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateBulkAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateBulkRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateOrUpdateEntitiesRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.CreateOrUpdateBulk"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdateEntities"); scope.Start(); try { @@ -1515,12 +1466,6 @@ public virtual async Task CreateOrUpdateBulkAsync(RequestContent reque /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -1666,16 +1611,16 @@ public virtual async Task CreateOrUpdateBulkAsync(RequestContent reque /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateBulk(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateEntities(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateBulkRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateOrUpdateEntitiesRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.CreateOrUpdateBulk"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdateEntities"); scope.Start(); try { @@ -1702,10 +1647,10 @@ public virtual Response CreateOrUpdateBulk(RequestContent requestBody, RequestOp } } - /// Create Request for and operations. + /// Create Request for and operations. /// The request body. /// The request options. - private HttpMessage CreateCreateOrUpdateBulkRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateCreateOrUpdateEntitiesRequest(RequestContent requestBody, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1714,10 +1659,6 @@ private HttpMessage CreateCreateOrUpdateBulkRequest(RequestContent requestBody, uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/entity/bulk", false); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -1726,19 +1667,19 @@ private HttpMessage CreateCreateOrUpdateBulkRequest(RequestContent requestBody, } /// Delete a list of entities in bulk identified by their GUIDs or unique attributes. - /// An array of GUIDs of entities to delete. + /// An array of GUIDs of entities to delete. /// The request options. #pragma warning disable AZC0002 - public virtual async Task BulkDeleteAsync(IEnumerable guid, RequestOptions requestOptions = null) + public virtual async Task DeleteByGuidsAsync(IEnumerable guids, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateBulkDeleteRequest(guid, requestOptions); + HttpMessage message = CreateDeleteByGuidsRequest(guids, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.BulkDelete"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuids"); scope.Start(); try { @@ -1766,19 +1707,19 @@ public virtual async Task BulkDeleteAsync(IEnumerable guid, Re } /// Delete a list of entities in bulk identified by their GUIDs or unique attributes. - /// An array of GUIDs of entities to delete. + /// An array of GUIDs of entities to delete. /// The request options. #pragma warning disable AZC0002 - public virtual Response BulkDelete(IEnumerable guid, RequestOptions requestOptions = null) + public virtual Response DeleteByGuids(IEnumerable guids, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateBulkDeleteRequest(guid, requestOptions); + HttpMessage message = CreateDeleteByGuidsRequest(guids, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.BulkDelete"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuids"); scope.Start(); try { @@ -1805,10 +1746,10 @@ public virtual Response BulkDelete(IEnumerable guid, RequestOptions requ } } - /// Create Request for and operations. - /// An array of GUIDs of entities to delete. + /// Create Request for and operations. + /// An array of GUIDs of entities to delete. /// The request options. - private HttpMessage CreateBulkDeleteRequest(IEnumerable guid, RequestOptions requestOptions = null) + private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1817,11 +1758,7 @@ private HttpMessage CreateBulkDeleteRequest(IEnumerable guid, RequestOpt uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/entity/bulk", false); - uri.AppendQueryDelimited("guid", guid, ",", true); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQueryDelimited("guids", guids, ",", true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; @@ -1889,12 +1826,6 @@ private HttpMessage CreateBulkDeleteRequest(IEnumerable guid, RequestOpt /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -1959,7 +1890,7 @@ public virtual async Task AddClassificationAsync(RequestContent reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.AddClassification"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassification"); scope.Start(); try { @@ -2048,12 +1979,6 @@ public virtual async Task AddClassificationAsync(RequestContent reques /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -2118,7 +2043,7 @@ public virtual Response AddClassification(RequestContent requestBody, RequestOpt { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.AddClassification"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassification"); scope.Start(); try { @@ -2157,10 +2082,6 @@ private HttpMessage CreateAddClassificationRequest(RequestContent requestBody, R uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/entity/bulk/classification", false); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); request.Content = requestBody; @@ -2173,16 +2094,16 @@ private HttpMessage CreateAddClassificationRequest(RequestContent requestBody, R /// Whether to ignore relationship attributes. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetByIdAsync(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) + public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByIdRequest(guid, minExtInfo, ignoreRelationships, requestOptions); + HttpMessage message = CreateGetByGuidRequest(guid, minExtInfo, ignoreRelationships, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetById"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuid"); scope.Start(); try { @@ -2215,16 +2136,16 @@ public virtual async Task GetByIdAsync(string guid, bool? minExtInfo = /// Whether to ignore relationship attributes. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetById(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) + public virtual Response GetByGuid(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByIdRequest(guid, minExtInfo, ignoreRelationships, requestOptions); + HttpMessage message = CreateGetByGuidRequest(guid, minExtInfo, ignoreRelationships, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetById"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuid"); scope.Start(); try { @@ -2251,12 +2172,12 @@ public virtual Response GetById(string guid, bool? minExtInfo = null, bool? igno } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the entity. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// The request options. - private HttpMessage CreateGetByIdRequest(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetByGuidRequest(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2290,16 +2211,16 @@ private HttpMessage CreateGetByIdRequest(string guid, bool? minExtInfo = null, b /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateEntityAttrByGuidAsync(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityAttrByGuidRequest(guid, name, requestBody, requestOptions); + HttpMessage message = CreatePartialUpdateEntityAttributeByGuidRequest(guid, name, requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.PartialUpdateEntityAttrByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityAttributeByGuid"); scope.Start(); try { @@ -2337,16 +2258,16 @@ public virtual async Task PartialUpdateEntityAttrByGuidAsync(string gu /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateEntityAttrByGuid(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response PartialUpdateEntityAttributeByGuid(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityAttrByGuidRequest(guid, name, requestBody, requestOptions); + HttpMessage message = CreatePartialUpdateEntityAttributeByGuidRequest(guid, name, requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.PartialUpdateEntityAttrByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityAttributeByGuid"); scope.Start(); try { @@ -2373,12 +2294,12 @@ public virtual Response PartialUpdateEntityAttrByGuid(string guid, string name, } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the entity. /// The name of the attribute. /// The request body. /// The request options. - private HttpMessage CreatePartialUpdateEntityAttrByGuidRequest(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreatePartialUpdateEntityAttributeByGuidRequest(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2409,7 +2330,7 @@ public virtual async Task DeleteByGuidAsync(string guid, RequestOption { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuid"); scope.Start(); try { @@ -2449,7 +2370,7 @@ public virtual Response DeleteByGuid(string guid, RequestOptions requestOptions { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuid"); scope.Start(); try { @@ -2508,7 +2429,7 @@ public virtual async Task GetClassificationAsync(string guid, string c { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetClassification"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassification"); scope.Start(); try { @@ -2549,7 +2470,7 @@ public virtual Response GetClassification(string guid, string classificationName { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetClassification"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassification"); scope.Start(); try { @@ -2611,7 +2532,7 @@ public virtual async Task DeleteClassificationAsync(string guid, strin { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteClassification"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassification"); scope.Start(); try { @@ -2652,7 +2573,7 @@ public virtual Response DeleteClassification(string guid, string classificationN { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteClassification"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassification"); scope.Start(); try { @@ -2712,7 +2633,7 @@ public virtual async Task GetClassificationsAsync(string guid, Request { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassifications"); scope.Start(); try { @@ -2752,7 +2673,7 @@ public virtual Response GetClassifications(string guid, RequestOptions requestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassifications"); scope.Start(); try { @@ -2839,12 +2760,6 @@ private HttpMessage CreateGetClassificationsRequest(string guid, RequestOptions /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -2910,7 +2825,7 @@ public virtual async Task AddClassificationsAsync(string guid, Request { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.AddClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassifications"); scope.Start(); try { @@ -2978,12 +2893,6 @@ public virtual async Task AddClassificationsAsync(string guid, Request /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -3049,7 +2958,7 @@ public virtual Response AddClassifications(string guid, RequestContent requestBo { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.AddClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassifications"); scope.Start(); try { @@ -3138,12 +3047,6 @@ private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -3209,7 +3112,7 @@ public virtual async Task UpdateClassificationsAsync(string guid, Requ { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.UpdateClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassifications"); scope.Start(); try { @@ -3277,12 +3180,6 @@ public virtual async Task UpdateClassificationsAsync(string guid, Requ /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -3348,7 +3245,7 @@ public virtual Response UpdateClassifications(string guid, RequestContent reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.UpdateClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassifications"); scope.Start(); try { @@ -3419,7 +3316,7 @@ public virtual async Task GetByUniqueAttributesAsync(string typeName, { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetByUniqueAttributes"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByUniqueAttributes"); scope.Start(); try { @@ -3469,7 +3366,7 @@ public virtual Response GetByUniqueAttributes(string typeName, bool? minExtInfo { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetByUniqueAttributes"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByUniqueAttributes"); scope.Start(); try { @@ -3723,12 +3620,6 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -3876,16 +3767,16 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// The qualified name of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateEntityByUniqueAttrsAsync(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityByUniqueAttrsRequest(typeName, requestBody, attrQualifiedName, requestOptions); + HttpMessage message = CreatePartialUpdateEntityByUniqueAttributesRequest(typeName, requestBody, attrQualifiedName, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.PartialUpdateEntityByUniqueAttrs"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityByUniqueAttributes"); scope.Start(); try { @@ -4106,12 +3997,6 @@ public virtual async Task PartialUpdateEntityByUniqueAttrsAsync(string /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -4259,16 +4144,16 @@ public virtual async Task PartialUpdateEntityByUniqueAttrsAsync(string /// The qualified name of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateEntityByUniqueAttrs(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response PartialUpdateEntityByUniqueAttributes(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityByUniqueAttrsRequest(typeName, requestBody, attrQualifiedName, requestOptions); + HttpMessage message = CreatePartialUpdateEntityByUniqueAttributesRequest(typeName, requestBody, attrQualifiedName, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.PartialUpdateEntityByUniqueAttrs"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityByUniqueAttributes"); scope.Start(); try { @@ -4295,12 +4180,12 @@ public virtual Response PartialUpdateEntityByUniqueAttrs(string typeName, Reques } } - /// Create Request for and operations. + /// Create Request for and operations. /// The name of the type. /// The request body. /// The qualified name of the entity. /// The request options. - private HttpMessage CreatePartialUpdateEntityByUniqueAttrsRequest(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + private HttpMessage CreatePartialUpdateEntityByUniqueAttributesRequest(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4342,7 +4227,7 @@ public virtual async Task DeleteByUniqueAttributeAsync(string typeName { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByUniqueAttribute"); scope.Start(); try { @@ -4390,7 +4275,7 @@ public virtual Response DeleteByUniqueAttribute(string typeName, string attrQual { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByUniqueAttribute"); scope.Start(); try { @@ -4455,7 +4340,7 @@ public virtual async Task DeleteClassificationByUniqueAttributeAsync(s { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteClassificationByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassificationByUniqueAttribute"); scope.Start(); try { @@ -4497,7 +4382,7 @@ public virtual Response DeleteClassificationByUniqueAttribute(string typeName, s { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.DeleteClassificationByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassificationByUniqueAttribute"); scope.Start(); try { @@ -4590,12 +4475,6 @@ private HttpMessage CreateDeleteClassificationByUniqueAttributeRequest(string ty /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -4662,7 +4541,7 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.AddClassificationsByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassificationsByUniqueAttribute"); scope.Start(); try { @@ -4730,12 +4609,6 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -4802,7 +4675,7 @@ public virtual Response AddClassificationsByUniqueAttribute(string typeName, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.AddClassificationsByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassificationsByUniqueAttribute"); scope.Start(); try { @@ -4896,12 +4769,6 @@ private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string type /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -4968,7 +4835,7 @@ public virtual async Task UpdateClassificationsByUniqueAttributeAsync( { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.UpdateClassificationsByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassificationsByUniqueAttribute"); scope.Start(); try { @@ -5036,12 +4903,6 @@ public virtual async Task UpdateClassificationsByUniqueAttributeAsync( /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -5108,7 +4969,7 @@ public virtual Response UpdateClassificationsByUniqueAttribute(string typeName, { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.UpdateClassificationsByUniqueAttribute"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassificationsByUniqueAttribute"); scope.Start(); try { @@ -5286,12 +5147,6 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -5425,7 +5280,7 @@ public virtual async Task SetClassificationsAsync(RequestContent reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.SetClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.SetClassifications"); scope.Start(); try { @@ -5577,12 +5432,6 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -5716,7 +5565,7 @@ public virtual Response SetClassifications(RequestContent requestBody, RequestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.SetClassifications"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.SetClassifications"); scope.Start(); try { @@ -5790,7 +5639,7 @@ public virtual async Task GetEntitiesByUniqueAttributesAsync(string ty { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetEntitiesByUniqueAttributes"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetEntitiesByUniqueAttributes"); scope.Start(); try { @@ -5845,7 +5694,7 @@ public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? min { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetEntitiesByUniqueAttributes"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetEntitiesByUniqueAttributes"); scope.Start(); try { @@ -5909,16 +5758,16 @@ private HttpMessage CreateGetEntitiesByUniqueAttributesRequest(string typeName, /// The globally unique identifier of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetHeaderByIdAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetHeaderAsync(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetHeaderByIdRequest(guid, requestOptions); + HttpMessage message = CreateGetHeaderRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetHeaderById"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetHeader"); scope.Start(); try { @@ -5949,16 +5798,16 @@ public virtual async Task GetHeaderByIdAsync(string guid, RequestOptio /// The globally unique identifier of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetHeaderById(string guid, RequestOptions requestOptions = null) + public virtual Response GetHeader(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetHeaderByIdRequest(guid, requestOptions); + HttpMessage message = CreateGetHeaderRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("EntityRestClient.GetHeaderById"); + using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetHeader"); scope.Start(); try { @@ -5985,10 +5834,10 @@ public virtual Response GetHeaderById(string guid, RequestOptions requestOptions } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the entity. /// The request options. - private HttpMessage CreateGetHeaderByIdRequest(string guid, RequestOptions requestOptions = null) + private HttpMessage CreateGetHeaderRequest(string guid, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/GlossaryRestClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs similarity index 95% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/GlossaryRestClient.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs index 9f0eaaf1ad681..6742cccf7037a 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/GlossaryRestClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs @@ -13,8 +13,8 @@ namespace Azure.Analytics.Purview.Catalog { - /// The GlossaryRest service client. - public partial class GlossaryRestClient + /// The PurviewGlossaries service client. + public partial class PurviewGlossaries { /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline { get; } @@ -23,34 +23,11 @@ public partial class GlossaryRestClient private readonly string apiVersion; private readonly ClientDiagnostics _clientDiagnostics; - /// Initializes a new instance of GlossaryRestClient for mocking. - protected GlossaryRestClient() + /// Initializes a new instance of PurviewGlossaries for mocking. + protected PurviewGlossaries() { } - /// Initializes a new instance of GlossaryRestClient. - /// The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com. - /// A credential used to authenticate to an Azure Service. - /// The options for configuring the client. - public GlossaryRestClient(Uri endpoint, TokenCredential credential, CatalogClientOptions options = null) - { - if (endpoint == null) - { - throw new ArgumentNullException(nameof(endpoint)); - } - if (credential == null) - { - throw new ArgumentNullException(nameof(credential)); - } - - options ??= new CatalogClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - var authPolicy = new BearerTokenAuthenticationPolicy(credential, AuthorizationScopes); - Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { authPolicy, new LowLevelCallbackPolicy() }); - this.endpoint = endpoint; - apiVersion = options.Version; - } - /// Get all glossaries registered with Atlas. /// The page size - by default there is no paging. /// The offset for pagination purpose. @@ -66,7 +43,7 @@ public virtual async Task GetGlossariesAsync(int? limit = null, int? o { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaries"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaries"); scope.Start(); try { @@ -108,7 +85,7 @@ public virtual Response GetGlossaries(int? limit = null, int? offset = null, str { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaries"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaries"); scope.Start(); try { @@ -282,12 +259,6 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -448,7 +419,7 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossary"); scope.Start(); try { @@ -591,12 +562,6 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -757,7 +722,7 @@ public virtual Response CreateGlossary(RequestContent requestBody, RequestOption { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossary"); scope.Start(); try { @@ -985,12 +950,6 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -1112,7 +1071,7 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryCategories"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategories"); scope.Start(); try { @@ -1321,12 +1280,6 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -1448,7 +1401,7 @@ public virtual Response CreateGlossaryCategories(RequestContent requestBody, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryCategories"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategories"); scope.Start(); try { @@ -1676,12 +1629,6 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -1803,7 +1750,7 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategory"); scope.Start(); try { @@ -2012,12 +1959,6 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -2139,7 +2080,7 @@ public virtual Response CreateGlossaryCategory(RequestContent requestBody, Reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategory"); scope.Start(); try { @@ -2198,7 +2139,7 @@ public virtual async Task GetGlossaryCategoryAsync(string categoryGuid { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategory"); scope.Start(); try { @@ -2238,7 +2179,7 @@ public virtual Response GetGlossaryCategory(string categoryGuid, RequestOptions { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategory"); scope.Start(); try { @@ -2465,12 +2406,6 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -2593,7 +2528,7 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.UpdateGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryCategory"); scope.Start(); try { @@ -2802,12 +2737,6 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -2930,7 +2859,7 @@ public virtual Response UpdateGlossaryCategory(string categoryGuid, RequestConte { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.UpdateGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryCategory"); scope.Start(); try { @@ -2991,7 +2920,7 @@ public virtual async Task DeleteGlossaryCategoryAsync(string categoryG { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryCategory"); scope.Start(); try { @@ -3031,7 +2960,7 @@ public virtual Response DeleteGlossaryCategory(string categoryGuid, RequestOptio { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryCategory"); scope.Start(); try { @@ -3089,7 +3018,7 @@ public virtual async Task PartialUpdateGlossaryCategoryAsync(string ca { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.PartialUpdateGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryCategory"); scope.Start(); try { @@ -3130,7 +3059,7 @@ public virtual Response PartialUpdateGlossaryCategory(string categoryGuid, Reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.PartialUpdateGlossaryCategory"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryCategory"); scope.Start(); try { @@ -3195,7 +3124,7 @@ public virtual async Task GetRelatedCategoriesAsync(string categoryGui { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetRelatedCategories"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedCategories"); scope.Start(); try { @@ -3238,7 +3167,7 @@ public virtual Response GetRelatedCategories(string categoryGuid, int? limit = n { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetRelatedCategories"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedCategories"); scope.Start(); try { @@ -3315,7 +3244,7 @@ public virtual async Task GetCategoryTermsAsync(string categoryGuid, i { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetCategoryTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetCategoryTerms"); scope.Start(); try { @@ -3358,7 +3287,7 @@ public virtual Response GetCategoryTerms(string categoryGuid, int? limit = null, { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetCategoryTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetCategoryTerms"); scope.Start(); try { @@ -3709,12 +3638,6 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -3996,18 +3919,19 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryTermAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryTermAsync(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateGlossaryTermRequest(requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerm"); scope.Start(); try { @@ -4324,12 +4248,6 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -4611,18 +4529,19 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossaryTerm(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateGlossaryTerm(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateGlossaryTermRequest(requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerm"); scope.Start(); try { @@ -4651,8 +4570,9 @@ public virtual Response CreateGlossaryTerm(RequestContent requestBody, RequestOp /// Create Request for and operations. /// The request body. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateCreateGlossaryTermRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateCreateGlossaryTermRequest(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4661,6 +4581,10 @@ private HttpMessage CreateCreateGlossaryTermRequest(RequestContent requestBody, uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/glossary/term", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -4670,18 +4594,19 @@ private HttpMessage CreateCreateGlossaryTermRequest(RequestContent requestBody, /// Get a specific glossary term by its GUID. /// The globally unique identifier for glossary term. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryTermAsync(string termGuid, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermRequest(termGuid, requestOptions); + HttpMessage message = CreateGetGlossaryTermRequest(termGuid, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerm"); scope.Start(); try { @@ -4710,18 +4635,19 @@ public virtual async Task GetGlossaryTermAsync(string termGuid, Reques /// Get a specific glossary term by its GUID. /// The globally unique identifier for glossary term. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryTerm(string termGuid, RequestOptions requestOptions = null) + public virtual Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermRequest(termGuid, requestOptions); + HttpMessage message = CreateGetGlossaryTermRequest(termGuid, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerm"); scope.Start(); try { @@ -4750,8 +4676,9 @@ public virtual Response GetGlossaryTerm(string termGuid, RequestOptions requestO /// Create Request for and operations. /// The globally unique identifier for glossary term. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateGetGlossaryTermRequest(string termGuid, RequestOptions requestOptions = null) + private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4761,6 +4688,10 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, RequestOptions uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/glossary/term/", false); uri.AppendPath(termGuid, true); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; @@ -5056,12 +4987,6 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, RequestOptions /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -5355,7 +5280,7 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.UpdateGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryTerm"); scope.Start(); try { @@ -5672,12 +5597,6 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -5971,7 +5890,7 @@ public virtual Response UpdateGlossaryTerm(string termGuid, RequestContent reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.UpdateGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryTerm"); scope.Start(); try { @@ -6032,7 +5951,7 @@ public virtual async Task DeleteGlossaryTermAsync(string termGuid, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryTerm"); scope.Start(); try { @@ -6072,7 +5991,7 @@ public virtual Response DeleteGlossaryTerm(string termGuid, RequestOptions reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryTerm"); scope.Start(); try { @@ -6119,18 +6038,19 @@ private HttpMessage CreateDeleteGlossaryTermRequest(string termGuid, RequestOpti /// Update the glossary term partially. /// The globally unique identifier for glossary term. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateGlossaryTermAsync(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateGlossaryTermAsync(string termGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, requestBody, requestOptions); + HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.PartialUpdateGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryTerm"); scope.Start(); try { @@ -6160,18 +6080,19 @@ public virtual async Task PartialUpdateGlossaryTermAsync(string termGu /// Update the glossary term partially. /// The globally unique identifier for glossary term. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateGlossaryTerm(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response PartialUpdateGlossaryTerm(string termGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, requestBody, requestOptions); + HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.PartialUpdateGlossaryTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryTerm"); scope.Start(); try { @@ -6201,8 +6122,9 @@ public virtual Response PartialUpdateGlossaryTerm(string termGuid, RequestConten /// Create Request for and operations. /// The globally unique identifier for glossary term. /// The request body. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -6213,6 +6135,10 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ uri.AppendPath("/atlas/v2/glossary/term/", false); uri.AppendPath(termGuid, true); uri.AppendPath("/partial", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -6510,12 +6436,6 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -6797,18 +6717,19 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryTermsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryTermsAsync(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermsRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateGlossaryTermsRequest(requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerms"); scope.Start(); try { @@ -7125,12 +7046,6 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -7412,18 +7327,19 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossaryTerms(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateGlossaryTerms(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermsRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateGlossaryTermsRequest(requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.CreateGlossaryTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerms"); scope.Start(); try { @@ -7452,8 +7368,9 @@ public virtual Response CreateGlossaryTerms(RequestContent requestBody, RequestO /// Create Request for and operations. /// The request body. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -7462,6 +7379,10 @@ private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent requestBody, uri.Reset(endpoint); uri.AppendRaw("/api", false); uri.AppendPath("/atlas/v2/glossary/terms", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -7485,7 +7406,7 @@ public virtual async Task GetEntitiesAssignedWithTermAsync(string term { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetEntitiesAssignedWithTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetEntitiesAssignedWithTerm"); scope.Start(); try { @@ -7528,7 +7449,7 @@ public virtual Response GetEntitiesAssignedWithTerm(string termGuid, int? limit { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetEntitiesAssignedWithTerm"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetEntitiesAssignedWithTerm"); scope.Start(); try { @@ -7695,7 +7616,7 @@ public virtual async Task AssignTermToEntitiesAsync(string termGuid, R { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.AssignTermToEntities"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.AssignTermToEntities"); scope.Start(); try { @@ -7828,7 +7749,7 @@ public virtual Response AssignTermToEntities(string termGuid, RequestContent req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.AssignTermToEntities"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.AssignTermToEntities"); scope.Start(); try { @@ -7982,7 +7903,7 @@ public virtual async Task RemoveTermAssignmentFromEntitiesAsync(string { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.RemoveTermAssignmentFromEntities"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.RemoveTermAssignmentFromEntities"); scope.Start(); try { @@ -8115,7 +8036,7 @@ public virtual Response RemoveTermAssignmentFromEntities(string termGuid, Reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.RemoveTermAssignmentFromEntities"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.RemoveTermAssignmentFromEntities"); scope.Start(); try { @@ -8269,7 +8190,7 @@ public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteTermAssignmentFromEntities"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteTermAssignmentFromEntities"); scope.Start(); try { @@ -8402,7 +8323,7 @@ public virtual Response DeleteTermAssignmentFromEntities(string termGuid, Reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteTermAssignmentFromEntities"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteTermAssignmentFromEntities"); scope.Start(); try { @@ -8466,7 +8387,7 @@ public virtual async Task GetRelatedTermsAsync(string termGuid, int? l { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetRelatedTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedTerms"); scope.Start(); try { @@ -8509,7 +8430,7 @@ public virtual Response GetRelatedTerms(string termGuid, int? limit = null, int? { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetRelatedTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedTerms"); scope.Start(); try { @@ -8583,7 +8504,7 @@ public virtual async Task GetGlossaryAsync(string glossaryGuid, Reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossary"); scope.Start(); try { @@ -8623,7 +8544,7 @@ public virtual Response GetGlossary(string glossaryGuid, RequestOptions requestO { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossary"); scope.Start(); try { @@ -8784,12 +8705,6 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -8951,7 +8866,7 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.UpdateGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossary"); scope.Start(); try { @@ -9094,12 +9009,6 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. /// /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// /// removePropagationsOnEntityDelete /// boolean /// @@ -9261,7 +9170,7 @@ public virtual Response UpdateGlossary(string glossaryGuid, RequestContent reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.UpdateGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossary"); scope.Start(); try { @@ -9322,7 +9231,7 @@ public virtual async Task DeleteGlossaryAsync(string glossaryGuid, Req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossary"); scope.Start(); try { @@ -9362,7 +9271,7 @@ public virtual Response DeleteGlossary(string glossaryGuid, RequestOptions reque { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.DeleteGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossary"); scope.Start(); try { @@ -9422,7 +9331,7 @@ public virtual async Task GetGlossaryCategoriesAsync(string glossaryGu { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryCategories"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategories"); scope.Start(); try { @@ -9465,7 +9374,7 @@ public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit = { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryCategories"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategories"); scope.Start(); try { @@ -9542,7 +9451,7 @@ public virtual async Task GetGlossaryCategoriesHeadersAsync(string glo { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryCategoriesHeaders"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategoriesHeaders"); scope.Start(); try { @@ -9585,7 +9494,7 @@ public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? l { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryCategoriesHeaders"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategoriesHeaders"); scope.Start(); try { @@ -9648,18 +9557,19 @@ private HttpMessage CreateGetGlossaryCategoriesHeadersRequest(string glossaryGui /// Get a specific glossary with detailed information. /// The globally unique identifier for glossary. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid, RequestOptions requestOptions = null) + public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, requestOptions); + HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetDetailedGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetDetailedGlossary"); scope.Start(); try { @@ -9688,18 +9598,19 @@ public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid /// Get a specific glossary with detailed information. /// The globally unique identifier for glossary. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetDetailedGlossary(string glossaryGuid, RequestOptions requestOptions = null) + public virtual Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, requestOptions); + HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetDetailedGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetDetailedGlossary"); scope.Start(); try { @@ -9728,8 +9639,9 @@ public virtual Response GetDetailedGlossary(string glossaryGuid, RequestOptions /// Create Request for and operations. /// The globally unique identifier for glossary. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, RequestOptions requestOptions = null) + private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9740,6 +9652,10 @@ private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, Reques uri.AppendPath("/atlas/v2/glossary/", false); uri.AppendPath(glossaryGuid, true); uri.AppendPath("/detailed", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; @@ -9748,18 +9664,19 @@ private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, Reques /// Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateGlossaryAsync(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateGlossaryAsync(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, requestBody, requestOptions); + HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.PartialUpdateGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossary"); scope.Start(); try { @@ -9789,18 +9706,19 @@ public virtual async Task PartialUpdateGlossaryAsync(string glossaryGu /// Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, requestBody, requestOptions); + HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.PartialUpdateGlossary"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossary"); scope.Start(); try { @@ -9830,8 +9748,9 @@ public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestConten /// Create Request for and operations. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9842,6 +9761,10 @@ private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, Requ uri.AppendPath("/atlas/v2/glossary/", false); uri.AppendPath(glossaryGuid, true); uri.AppendPath("/partial", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); @@ -9851,21 +9774,22 @@ private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, Requ /// Get terms belonging to a specific glossary. /// The globally unique identifier for glossary. + /// Whether include term hierarchy. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, limit, offset, sort, requestOptions); + HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, includeTermHierarchy, limit, offset, sort, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerms"); scope.Start(); try { @@ -9894,21 +9818,22 @@ public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, i /// Get terms belonging to a specific glossary. /// The globally unique identifier for glossary. + /// Whether include term hierarchy. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryTerms(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, limit, offset, sort, requestOptions); + HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, includeTermHierarchy, limit, offset, sort, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryTerms"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerms"); scope.Start(); try { @@ -9937,11 +9862,12 @@ public virtual Response GetGlossaryTerms(string glossaryGuid, int? limit = null, /// Create Request for and operations. /// The globally unique identifier for glossary. + /// Whether include term hierarchy. /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. /// The request options. - private HttpMessage CreateGetGlossaryTermsRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetGlossaryTermsRequest(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9952,6 +9878,10 @@ private HttpMessage CreateGetGlossaryTermsRequest(string glossaryGuid, int? limi uri.AppendPath("/atlas/v2/glossary/", false); uri.AppendPath(glossaryGuid, true); uri.AppendPath("/terms", false); + if (includeTermHierarchy != null) + { + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); + } if (limit != null) { uri.AppendQuery("limit", limit.Value, true); @@ -9985,7 +9915,7 @@ public virtual async Task GetGlossaryTermHeadersAsync(string glossaryG { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryTermHeaders"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTermHeaders"); scope.Start(); try { @@ -10028,7 +9958,7 @@ public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetGlossaryTermHeaders"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTermHeaders"); scope.Start(); try { @@ -10092,18 +10022,19 @@ private HttpMessage CreateGetGlossaryTermHeadersRequest(string glossaryGuid, int /// Import Glossary Terms from local csv file. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task ImportGlossaryTermsViaCSVAsync(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task ImportGlossaryTermsViaCsvAsync(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCSVRequest(glossaryGuid, requestBody, requestOptions); + HttpMessage message = CreateImportGlossaryTermsViaCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.ImportGlossaryTermsViaCSV"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsv"); scope.Start(); try { @@ -10133,18 +10064,19 @@ public virtual async Task ImportGlossaryTermsViaCSVAsync(string glossa /// Import Glossary Terms from local csv file. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response ImportGlossaryTermsViaCSV(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response ImportGlossaryTermsViaCsv(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCSVRequest(glossaryGuid, requestBody, requestOptions); + HttpMessage message = CreateImportGlossaryTermsViaCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.ImportGlossaryTermsViaCSV"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsv"); scope.Start(); try { @@ -10171,11 +10103,12 @@ public virtual Response ImportGlossaryTermsViaCSV(string glossaryGuid, RequestCo } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateImportGlossaryTermsViaCSVRequest(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateImportGlossaryTermsViaCsvRequest(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10186,10 +10119,11 @@ private HttpMessage CreateImportGlossaryTermsViaCSVRequest(string glossaryGuid, uri.AppendPath("/glossary/", false); uri.AppendPath(glossaryGuid, true); uri.AppendPath("/terms/import", false); - if (apiVersion != null) + if (includeTermHierarchy != null) { - uri.AppendQuery("api-version", apiVersion, true); + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "multipart/form-data"); @@ -10203,16 +10137,16 @@ private HttpMessage CreateImportGlossaryTermsViaCSVRequest(string glossaryGuid, /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task ImportGlossaryTermsViaCSVByGlossaryNameAsync(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task ImportGlossaryTermsViaCsvByGlossaryNameAsync(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCSVByGlossaryNameRequest(glossaryName, requestBody, includeTermHierarchy, requestOptions); + HttpMessage message = CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(glossaryName, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.ImportGlossaryTermsViaCSVByGlossaryName"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName"); scope.Start(); try { @@ -10245,16 +10179,16 @@ public virtual async Task ImportGlossaryTermsViaCSVByGlossaryNameAsync /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response ImportGlossaryTermsViaCSVByGlossaryName(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCSVByGlossaryNameRequest(glossaryName, requestBody, includeTermHierarchy, requestOptions); + HttpMessage message = CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(glossaryName, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.ImportGlossaryTermsViaCSVByGlossaryName"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName"); scope.Start(); try { @@ -10281,12 +10215,12 @@ public virtual Response ImportGlossaryTermsViaCSVByGlossaryName(string glossaryN } } - /// Create Request for and operations. + /// Create Request for and operations. /// The name of the glossary. /// The request body. /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateImportGlossaryTermsViaCSVByGlossaryNameRequest(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + private HttpMessage CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10301,10 +10235,7 @@ private HttpMessage CreateImportGlossaryTermsViaCSVByGlossaryNameRequest(string { uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); } - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "multipart/form-data"); @@ -10313,19 +10244,19 @@ private HttpMessage CreateImportGlossaryTermsViaCSVByGlossaryNameRequest(string } /// Get the status of import csv operation. - /// The globally unique identifier for async operation/job`. + /// The globally unique identifier for async operation/job. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetImportCSVOperationStatusAsync(string operationGuid, RequestOptions requestOptions = null) + public virtual async Task GetImportCsvOperationStatusAsync(string operationGuid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetImportCSVOperationStatusRequest(operationGuid, requestOptions); + HttpMessage message = CreateGetImportCsvOperationStatusRequest(operationGuid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetImportCSVOperationStatus"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetImportCsvOperationStatus"); scope.Start(); try { @@ -10353,19 +10284,19 @@ public virtual async Task GetImportCSVOperationStatusAsync(string oper } /// Get the status of import csv operation. - /// The globally unique identifier for async operation/job`. + /// The globally unique identifier for async operation/job. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetImportCSVOperationStatus(string operationGuid, RequestOptions requestOptions = null) + public virtual Response GetImportCsvOperationStatus(string operationGuid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetImportCSVOperationStatusRequest(operationGuid, requestOptions); + HttpMessage message = CreateGetImportCsvOperationStatusRequest(operationGuid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetImportCSVOperationStatus"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetImportCsvOperationStatus"); scope.Start(); try { @@ -10392,10 +10323,10 @@ public virtual Response GetImportCSVOperationStatus(string operationGuid, Reques } } - /// Create Request for and operations. - /// The globally unique identifier for async operation/job`. + /// Create Request for and operations. + /// The globally unique identifier for async operation/job. /// The request options. - private HttpMessage CreateGetImportCSVOperationStatusRequest(string operationGuid, RequestOptions requestOptions = null) + private HttpMessage CreateGetImportCsvOperationStatusRequest(string operationGuid, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10405,10 +10336,7 @@ private HttpMessage CreateGetImportCSVOperationStatusRequest(string operationGui uri.AppendRaw("/api", false); uri.AppendPath("/glossary/terms/import/", false); uri.AppendPath(operationGuid, true); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; @@ -10417,18 +10345,19 @@ private HttpMessage CreateGetImportCSVOperationStatusRequest(string operationGui /// Export Glossary Terms as csv file. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task ExportGlossaryTermsAsCSVAsync(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateExportGlossaryTermsAsCSVRequest(glossaryGuid, requestBody, requestOptions); + HttpMessage message = CreateExportGlossaryTermsAsCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.ExportGlossaryTermsAsCSV"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ExportGlossaryTermsAsCsv"); scope.Start(); try { @@ -10458,18 +10387,19 @@ public virtual async Task ExportGlossaryTermsAsCSVAsync(string glossar /// Export Glossary Terms as csv file. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response ExportGlossaryTermsAsCSV(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response ExportGlossaryTermsAsCsv(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateExportGlossaryTermsAsCSVRequest(glossaryGuid, requestBody, requestOptions); + HttpMessage message = CreateExportGlossaryTermsAsCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.ExportGlossaryTermsAsCSV"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ExportGlossaryTermsAsCsv"); scope.Start(); try { @@ -10496,11 +10426,12 @@ public virtual Response ExportGlossaryTermsAsCSV(string glossaryGuid, RequestCon } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier for glossary. /// The request body. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateExportGlossaryTermsAsCSVRequest(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateExportGlossaryTermsAsCsvRequest(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10511,12 +10442,13 @@ private HttpMessage CreateExportGlossaryTermsAsCSVRequest(string glossaryGuid, R uri.AppendPath("/glossary/", false); uri.AppendPath(glossaryGuid, true); uri.AppendPath("/terms/export", false); - if (apiVersion != null) + if (includeTermHierarchy != null) { - uri.AppendQuery("api-version", apiVersion, true); + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; - request.Headers.Add("Accept", "application/octet-stream"); + request.Headers.Add("Accept", "text/csv"); request.Headers.Add("Content-Type", "application/json"); request.Content = requestBody; return message; @@ -10526,18 +10458,19 @@ private HttpMessage CreateExportGlossaryTermsAsCSVRequest(string glossaryGuid, R /// The name of the glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = null, int? offset = null, RequestOptions requestOptions = null) + public virtual async Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, requestOptions); + HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetTermsByGlossaryName"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetTermsByGlossaryName"); scope.Start(); try { @@ -10568,18 +10501,19 @@ public virtual async Task GetTermsByGlossaryNameAsync(string glossaryN /// The name of the glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. + /// Whether include term hierarchy. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = null, int? offset = null, RequestOptions requestOptions = null) + public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, requestOptions); + HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, includeTermHierarchy, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("GlossaryRestClient.GetTermsByGlossaryName"); + using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetTermsByGlossaryName"); scope.Start(); try { @@ -10610,8 +10544,9 @@ public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = /// The name of the glossary. /// The page size - by default there is no paging. /// The offset for pagination purpose. + /// Whether include term hierarchy. /// The request options. - private HttpMessage CreateGetTermsByGlossaryNameRequest(string glossaryName, int? limit = null, int? offset = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetTermsByGlossaryNameRequest(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10630,10 +10565,11 @@ private HttpMessage CreateGetTermsByGlossaryNameRequest(string glossaryName, int { uri.AppendQuery("offset", offset.Value, true); } - if (apiVersion != null) + if (includeTermHierarchy != null) { - uri.AppendQuery("api-version", apiVersion, true); + uri.AppendQuery("includeTermHierarchy", includeTermHierarchy.Value, true); } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/RelationshipRestClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs similarity index 58% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/RelationshipRestClient.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs index 362ef9217d7f1..af4684fb24433 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/RelationshipRestClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs @@ -13,8 +13,8 @@ namespace Azure.Analytics.Purview.Catalog { - /// The RelationshipRest service client. - public partial class RelationshipRestClient + /// The PurviewRelationships service client. + public partial class PurviewRelationships { /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline { get; } @@ -23,34 +23,11 @@ public partial class RelationshipRestClient private readonly string apiVersion; private readonly ClientDiagnostics _clientDiagnostics; - /// Initializes a new instance of RelationshipRestClient for mocking. - protected RelationshipRestClient() + /// Initializes a new instance of PurviewRelationships for mocking. + protected PurviewRelationships() { } - /// Initializes a new instance of RelationshipRestClient. - /// The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com. - /// A credential used to authenticate to an Azure Service. - /// The options for configuring the client. - public RelationshipRestClient(Uri endpoint, TokenCredential credential, CatalogClientOptions options = null) - { - if (endpoint == null) - { - throw new ArgumentNullException(nameof(endpoint)); - } - if (credential == null) - { - throw new ArgumentNullException(nameof(credential)); - } - - options ??= new CatalogClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - var authPolicy = new BearerTokenAuthenticationPolicy(credential, AuthorizationScopes); - Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { authPolicy, new LowLevelCallbackPolicy() }); - this.endpoint = endpoint; - apiVersion = options.Version; - } - /// Create a new relationship between entities. /// /// Schema for Request Body: @@ -80,12 +57,6 @@ public RelationshipRestClient(Uri endpoint, TokenCredential credential, CatalogC /// ETag for concurrency control. /// /// - /// blockedPropagatedClassifications - /// AtlasClassification[] - /// - /// An array of blocked propagated classifications. - /// - /// /// createTime /// number /// @@ -128,35 +99,6 @@ public RelationshipRestClient(Uri endpoint, TokenCredential credential, CatalogC /// The label of the relationship. /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// - /// propagatedClassifications - /// AtlasClassification[] - /// - /// An array of propagated classifications. - /// - /// /// provenanceType /// number /// @@ -214,102 +156,6 @@ public RelationshipRestClient(Uri endpoint, TokenCredential credential, CatalogC /// The unique attributes of the object. /// /// - /// Schema for AtlasClassification: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// attributes - /// Dictionary<string, AnyObject> - /// - /// The attributes of the struct. - /// - /// - /// typeName - /// string - /// - /// The name of the type. - /// - /// - /// lastModifiedTS - /// string - /// - /// ETag for concurrency control. - /// - /// - /// entityGuid - /// string - /// - /// The GUID of the entity. - /// - /// - /// entityStatus - /// "ACTIVE" | "DELETED" - /// - /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. - /// - /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// - /// removePropagationsOnEntityDelete - /// boolean - /// - /// Determines if propagations will be removed on entity deletion. - /// - /// - /// validityPeriods - /// TimeBoundary[] - /// - /// An array of time boundaries indicating validity periods. - /// - /// - /// source - /// string - /// - /// indicate the source who create the classification detail. - /// - /// - /// sourceDetails - /// Dictionary<string, AnyObject> - /// - /// more detail on source information. - /// - /// - /// Schema for TimeBoundary: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// endTime - /// string - /// - /// The end of the time boundary. - /// - /// - /// startTime - /// string - /// - /// The start of the time boundary. - /// - /// - /// timeZone - /// string - /// - /// The timezone of the time boundary. - /// - /// /// /// The request body. /// The request options. @@ -323,7 +169,7 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.Create"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Create"); scope.Start(); try { @@ -379,12 +225,6 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ /// ETag for concurrency control. /// /// - /// blockedPropagatedClassifications - /// AtlasClassification[] - /// - /// An array of blocked propagated classifications. - /// - /// /// createTime /// number /// @@ -427,35 +267,6 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ /// The label of the relationship. /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// - /// propagatedClassifications - /// AtlasClassification[] - /// - /// An array of propagated classifications. - /// - /// /// provenanceType /// number /// @@ -513,102 +324,6 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ /// The unique attributes of the object. /// /// - /// Schema for AtlasClassification: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// attributes - /// Dictionary<string, AnyObject> - /// - /// The attributes of the struct. - /// - /// - /// typeName - /// string - /// - /// The name of the type. - /// - /// - /// lastModifiedTS - /// string - /// - /// ETag for concurrency control. - /// - /// - /// entityGuid - /// string - /// - /// The GUID of the entity. - /// - /// - /// entityStatus - /// "ACTIVE" | "DELETED" - /// - /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. - /// - /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// - /// removePropagationsOnEntityDelete - /// boolean - /// - /// Determines if propagations will be removed on entity deletion. - /// - /// - /// validityPeriods - /// TimeBoundary[] - /// - /// An array of time boundaries indicating validity periods. - /// - /// - /// source - /// string - /// - /// indicate the source who create the classification detail. - /// - /// - /// sourceDetails - /// Dictionary<string, AnyObject> - /// - /// more detail on source information. - /// - /// - /// Schema for TimeBoundary: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// endTime - /// string - /// - /// The end of the time boundary. - /// - /// - /// startTime - /// string - /// - /// The start of the time boundary. - /// - /// - /// timeZone - /// string - /// - /// The timezone of the time boundary. - /// - /// /// /// The request body. /// The request options. @@ -622,7 +337,7 @@ public virtual Response Create(RequestContent requestBody, RequestOptions reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.Create"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Create"); scope.Start(); try { @@ -697,12 +412,6 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio /// ETag for concurrency control. /// /// - /// blockedPropagatedClassifications - /// AtlasClassification[] - /// - /// An array of blocked propagated classifications. - /// - /// /// createTime /// number /// @@ -745,35 +454,6 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio /// The label of the relationship. /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// - /// propagatedClassifications - /// AtlasClassification[] - /// - /// An array of propagated classifications. - /// - /// /// provenanceType /// number /// @@ -831,102 +511,6 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio /// The unique attributes of the object. /// /// - /// Schema for AtlasClassification: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// attributes - /// Dictionary<string, AnyObject> - /// - /// The attributes of the struct. - /// - /// - /// typeName - /// string - /// - /// The name of the type. - /// - /// - /// lastModifiedTS - /// string - /// - /// ETag for concurrency control. - /// - /// - /// entityGuid - /// string - /// - /// The GUID of the entity. - /// - /// - /// entityStatus - /// "ACTIVE" | "DELETED" - /// - /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. - /// - /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// - /// removePropagationsOnEntityDelete - /// boolean - /// - /// Determines if propagations will be removed on entity deletion. - /// - /// - /// validityPeriods - /// TimeBoundary[] - /// - /// An array of time boundaries indicating validity periods. - /// - /// - /// source - /// string - /// - /// indicate the source who create the classification detail. - /// - /// - /// sourceDetails - /// Dictionary<string, AnyObject> - /// - /// more detail on source information. - /// - /// - /// Schema for TimeBoundary: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// endTime - /// string - /// - /// The end of the time boundary. - /// - /// - /// startTime - /// string - /// - /// The start of the time boundary. - /// - /// - /// timeZone - /// string - /// - /// The timezone of the time boundary. - /// - /// /// /// The request body. /// The request options. @@ -940,7 +524,7 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.Update"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Update"); scope.Start(); try { @@ -996,12 +580,6 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ /// ETag for concurrency control. /// /// - /// blockedPropagatedClassifications - /// AtlasClassification[] - /// - /// An array of blocked propagated classifications. - /// - /// /// createTime /// number /// @@ -1044,35 +622,6 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ /// The label of the relationship. /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// - /// propagatedClassifications - /// AtlasClassification[] - /// - /// An array of propagated classifications. - /// - /// /// provenanceType /// number /// @@ -1130,102 +679,6 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ /// The unique attributes of the object. /// /// - /// Schema for AtlasClassification: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// attributes - /// Dictionary<string, AnyObject> - /// - /// The attributes of the struct. - /// - /// - /// typeName - /// string - /// - /// The name of the type. - /// - /// - /// lastModifiedTS - /// string - /// - /// ETag for concurrency control. - /// - /// - /// entityGuid - /// string - /// - /// The GUID of the entity. - /// - /// - /// entityStatus - /// "ACTIVE" | "DELETED" - /// - /// Status of the entity - can be active or deleted. Deleted entities are not removed from Atlas store. - /// - /// - /// propagate - /// boolean - /// - /// Determines if the classification will be propagated. - /// - /// - /// removePropagationsOnEntityDelete - /// boolean - /// - /// Determines if propagations will be removed on entity deletion. - /// - /// - /// validityPeriods - /// TimeBoundary[] - /// - /// An array of time boundaries indicating validity periods. - /// - /// - /// source - /// string - /// - /// indicate the source who create the classification detail. - /// - /// - /// sourceDetails - /// Dictionary<string, AnyObject> - /// - /// more detail on source information. - /// - /// - /// Schema for TimeBoundary: - /// - /// - /// Name - /// Type - /// Required - /// Description - /// - /// - /// endTime - /// string - /// - /// The end of the time boundary. - /// - /// - /// startTime - /// string - /// - /// The start of the time boundary. - /// - /// - /// timeZone - /// string - /// - /// The timezone of the time boundary. - /// - /// /// /// The request body. /// The request options. @@ -1239,7 +692,7 @@ public virtual Response Update(RequestContent requestBody, RequestOptions reques { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.Update"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Update"); scope.Start(); try { @@ -1290,16 +743,16 @@ private HttpMessage CreateUpdateRequest(RequestContent requestBody, RequestOptio /// Limits whether includes extended information. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetById2Async(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetById2Request(guid, extendedInfo, requestOptions); + HttpMessage message = CreateGetRequest(guid, extendedInfo, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.GetById2"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Get"); scope.Start(); try { @@ -1331,16 +784,16 @@ public virtual async Task GetById2Async(string guid, bool? extendedInf /// Limits whether includes extended information. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetById2(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) + public virtual Response Get(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetById2Request(guid, extendedInfo, requestOptions); + HttpMessage message = CreateGetRequest(guid, extendedInfo, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.GetById2"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Get"); scope.Start(); try { @@ -1367,11 +820,11 @@ public virtual Response GetById2(string guid, bool? extendedInfo = null, Request } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the relationship. /// Limits whether includes extended information. /// The request options. - private HttpMessage CreateGetById2Request(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetRequest(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1394,16 +847,16 @@ private HttpMessage CreateGetById2Request(string guid, bool? extendedInfo = null /// The globally unique identifier of the relationship. /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteByIdAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByIdRequest(guid, requestOptions); + HttpMessage message = CreateDeleteRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.DeleteById"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Delete"); scope.Start(); try { @@ -1434,16 +887,16 @@ public virtual async Task DeleteByIdAsync(string guid, RequestOptions /// The globally unique identifier of the relationship. /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteById(string guid, RequestOptions requestOptions = null) + public virtual Response Delete(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByIdRequest(guid, requestOptions); + HttpMessage message = CreateDeleteRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("RelationshipRestClient.DeleteById"); + using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Delete"); scope.Start(); try { @@ -1470,10 +923,10 @@ public virtual Response DeleteById(string guid, RequestOptions requestOptions = } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the relationship. /// The request options. - private HttpMessage CreateDeleteByIdRequest(string guid, RequestOptions requestOptions = null) + private HttpMessage CreateDeleteRequest(string guid, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/TypesRestClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs similarity index 95% rename from sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/TypesRestClient.cs rename to sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs index b33a69ce7fb7a..5bbd8edfdb8ad 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/TypesRestClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs @@ -13,8 +13,8 @@ namespace Azure.Analytics.Purview.Catalog { - /// The TypesRest service client. - public partial class TypesRestClient + /// The PurviewTypes service client. + public partial class PurviewTypes { /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline { get; } @@ -23,34 +23,11 @@ public partial class TypesRestClient private readonly string apiVersion; private readonly ClientDiagnostics _clientDiagnostics; - /// Initializes a new instance of TypesRestClient for mocking. - protected TypesRestClient() + /// Initializes a new instance of PurviewTypes for mocking. + protected PurviewTypes() { } - /// Initializes a new instance of TypesRestClient. - /// The catalog endpoint of your Purview account. Example: https://{accountName}.catalog.purview.azure.com. - /// A credential used to authenticate to an Azure Service. - /// The options for configuring the client. - public TypesRestClient(Uri endpoint, TokenCredential credential, CatalogClientOptions options = null) - { - if (endpoint == null) - { - throw new ArgumentNullException(nameof(endpoint)); - } - if (credential == null) - { - throw new ArgumentNullException(nameof(credential)); - } - - options ??= new CatalogClientOptions(); - _clientDiagnostics = new ClientDiagnostics(options); - var authPolicy = new BearerTokenAuthenticationPolicy(credential, AuthorizationScopes); - Pipeline = HttpPipelineBuilder.Build(options, new HttpPipelinePolicy[] { authPolicy, new LowLevelCallbackPolicy() }); - this.endpoint = endpoint; - apiVersion = options.Version; - } - /// Get the classification definition for the given GUID. /// The globally unique identifier of the classification. /// The request options. @@ -64,7 +41,7 @@ public virtual async Task GetClassificationDefByGuidAsync(string guid, { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetClassificationDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByGuid"); scope.Start(); try { @@ -104,7 +81,7 @@ public virtual Response GetClassificationDefByGuid(string guid, RequestOptions r { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetClassificationDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByGuid"); scope.Start(); try { @@ -162,7 +139,7 @@ public virtual async Task GetClassificationDefByNameAsync(string name, { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetClassificationDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByName"); scope.Start(); try { @@ -202,7 +179,7 @@ public virtual Response GetClassificationDefByName(string name, RequestOptions r { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetClassificationDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByName"); scope.Start(); try { @@ -251,16 +228,16 @@ private HttpMessage CreateGetClassificationDefByNameRequest(string name, Request /// The globally unique identifier of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEntityDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetEntityDefinitionByGuidAsync(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefByGuidRequest(guid, requestOptions); + HttpMessage message = CreateGetEntityDefinitionByGuidRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEntityDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByGuid"); scope.Start(); try { @@ -291,16 +268,16 @@ public virtual async Task GetEntityDefByGuidAsync(string guid, Request /// The globally unique identifier of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEntityDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetEntityDefinitionByGuid(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefByGuidRequest(guid, requestOptions); + HttpMessage message = CreateGetEntityDefinitionByGuidRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEntityDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByGuid"); scope.Start(); try { @@ -327,10 +304,10 @@ public virtual Response GetEntityDefByGuid(string guid, RequestOptions requestOp } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the entity. /// The request options. - private HttpMessage CreateGetEntityDefByGuidRequest(string guid, RequestOptions requestOptions = null) + private HttpMessage CreateGetEntityDefinitionByGuidRequest(string guid, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -349,16 +326,16 @@ private HttpMessage CreateGetEntityDefByGuidRequest(string guid, RequestOptions /// The name of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEntityDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetEntityDefinitionByNameAsync(string name, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefByNameRequest(name, requestOptions); + HttpMessage message = CreateGetEntityDefinitionByNameRequest(name, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEntityDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByName"); scope.Start(); try { @@ -389,16 +366,16 @@ public virtual async Task GetEntityDefByNameAsync(string name, Request /// The name of the entity. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEntityDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetEntityDefinitionByName(string name, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefByNameRequest(name, requestOptions); + HttpMessage message = CreateGetEntityDefinitionByNameRequest(name, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEntityDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByName"); scope.Start(); try { @@ -425,10 +402,10 @@ public virtual Response GetEntityDefByName(string name, RequestOptions requestOp } } - /// Create Request for and operations. + /// Create Request for and operations. /// The name of the entity. /// The request options. - private HttpMessage CreateGetEntityDefByNameRequest(string name, RequestOptions requestOptions = null) + private HttpMessage CreateGetEntityDefinitionByNameRequest(string name, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -456,7 +433,7 @@ public virtual async Task GetEnumDefByGuidAsync(string guid, RequestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEnumDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByGuid"); scope.Start(); try { @@ -496,7 +473,7 @@ public virtual Response GetEnumDefByGuid(string guid, RequestOptions requestOpti { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEnumDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByGuid"); scope.Start(); try { @@ -554,7 +531,7 @@ public virtual async Task GetEnumDefByNameAsync(string name, RequestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEnumDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByName"); scope.Start(); try { @@ -594,7 +571,7 @@ public virtual Response GetEnumDefByName(string name, RequestOptions requestOpti { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetEnumDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByName"); scope.Start(); try { @@ -652,7 +629,7 @@ public virtual async Task GetRelationshipDefByGuidAsync(string guid, R { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetRelationshipDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByGuid"); scope.Start(); try { @@ -692,7 +669,7 @@ public virtual Response GetRelationshipDefByGuid(string guid, RequestOptions req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetRelationshipDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByGuid"); scope.Start(); try { @@ -750,7 +727,7 @@ public virtual async Task GetRelationshipDefByNameAsync(string name, R { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetRelationshipDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByName"); scope.Start(); try { @@ -790,7 +767,7 @@ public virtual Response GetRelationshipDefByName(string name, RequestOptions req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetRelationshipDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByName"); scope.Start(); try { @@ -848,7 +825,7 @@ public virtual async Task GetStructDefByGuidAsync(string guid, Request { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetStructDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByGuid"); scope.Start(); try { @@ -888,7 +865,7 @@ public virtual Response GetStructDefByGuid(string guid, RequestOptions requestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetStructDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByGuid"); scope.Start(); try { @@ -946,7 +923,7 @@ public virtual async Task GetStructDefByNameAsync(string name, Request { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetStructDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByName"); scope.Start(); try { @@ -986,7 +963,7 @@ public virtual Response GetStructDefByName(string name, RequestOptions requestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetStructDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByName"); scope.Start(); try { @@ -1035,16 +1012,16 @@ private HttpMessage CreateGetStructDefByNameRequest(string name, RequestOptions /// The globally unique identifier of the type. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTypeDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetTypeDefinitionByGuidAsync(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefByGuidRequest(guid, requestOptions); + HttpMessage message = CreateGetTypeDefinitionByGuidRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTypeDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByGuid"); scope.Start(); try { @@ -1075,16 +1052,16 @@ public virtual async Task GetTypeDefByGuidAsync(string guid, RequestOp /// The globally unique identifier of the type. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTypeDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetTypeDefinitionByGuid(string guid, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefByGuidRequest(guid, requestOptions); + HttpMessage message = CreateGetTypeDefinitionByGuidRequest(guid, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTypeDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByGuid"); scope.Start(); try { @@ -1111,10 +1088,10 @@ public virtual Response GetTypeDefByGuid(string guid, RequestOptions requestOpti } } - /// Create Request for and operations. + /// Create Request for and operations. /// The globally unique identifier of the type. /// The request options. - private HttpMessage CreateGetTypeDefByGuidRequest(string guid, RequestOptions requestOptions = null) + private HttpMessage CreateGetTypeDefinitionByGuidRequest(string guid, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1133,16 +1110,16 @@ private HttpMessage CreateGetTypeDefByGuidRequest(string guid, RequestOptions re /// The name of the type. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTypeDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetTypeDefinitionByNameAsync(string name, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefByNameRequest(name, requestOptions); + HttpMessage message = CreateGetTypeDefinitionByNameRequest(name, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTypeDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByName"); scope.Start(); try { @@ -1173,16 +1150,16 @@ public virtual async Task GetTypeDefByNameAsync(string name, RequestOp /// The name of the type. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTypeDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetTypeDefinitionByName(string name, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefByNameRequest(name, requestOptions); + HttpMessage message = CreateGetTypeDefinitionByNameRequest(name, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTypeDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByName"); scope.Start(); try { @@ -1209,10 +1186,10 @@ public virtual Response GetTypeDefByName(string name, RequestOptions requestOpti } } - /// Create Request for and operations. + /// Create Request for and operations. /// The name of the type. /// The request options. - private HttpMessage CreateGetTypeDefByNameRequest(string name, RequestOptions requestOptions = null) + private HttpMessage CreateGetTypeDefinitionByNameRequest(string name, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1240,7 +1217,7 @@ public virtual async Task DeleteTypeByNameAsync(string name, RequestOp { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.DeleteTypeByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeByName"); scope.Start(); try { @@ -1280,7 +1257,7 @@ public virtual Response DeleteTypeByName(string name, RequestOptions requestOpti { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.DeleteTypeByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeByName"); scope.Start(); try { @@ -1332,16 +1309,16 @@ private HttpMessage CreateDeleteTypeByNameRequest(string name, RequestOptions re /// Typedef name as search filter when get typedefs. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAllTypeDefsAsync(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetAllTypeDefsRequest(includeTermTemplate, type, requestOptions); + HttpMessage message = CreateGetAllTypeDefinitionsRequest(includeTermTemplate, type, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetAllTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetAllTypeDefinitions"); scope.Start(); try { @@ -1376,16 +1353,16 @@ public virtual async Task GetAllTypeDefsAsync(bool? includeTermTemplat /// Typedef name as search filter when get typedefs. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetAllTypeDefs(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual Response GetAllTypeDefinitions(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetAllTypeDefsRequest(includeTermTemplate, type, requestOptions); + HttpMessage message = CreateGetAllTypeDefinitionsRequest(includeTermTemplate, type, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetAllTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetAllTypeDefinitions"); scope.Start(); try { @@ -1412,14 +1389,14 @@ public virtual Response GetAllTypeDefs(bool? includeTermTemplate = null, string } } - /// Create Request for and operations. + /// Create Request for and operations. /// /// Whether include termtemplatedef when return all typedefs. /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. /// The request options. - private HttpMessage CreateGetAllTypeDefsRequest(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1958,29 +1935,6 @@ private HttpMessage CreateGetAllTypeDefsRequest(bool? includeTermTemplate = null /// /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// /// relationshipCategory /// "ASSOCIATION" | "AGGREGATION" | "COMPOSITION" /// @@ -2685,16 +2639,16 @@ private HttpMessage CreateGetAllTypeDefsRequest(bool? includeTermTemplate = null /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateTypeDefsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateTypeDefinitionsAsync(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateTypeDefsRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateTypeDefinitionsRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.CreateTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.CreateTypeDefinitions"); scope.Start(); try { @@ -3238,29 +3192,6 @@ public virtual async Task CreateTypeDefsAsync(RequestContent requestBo /// /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// /// relationshipCategory /// "ASSOCIATION" | "AGGREGATION" | "COMPOSITION" /// @@ -3965,16 +3896,16 @@ public virtual async Task CreateTypeDefsAsync(RequestContent requestBo /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateTypeDefs(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateTypeDefinitions(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateTypeDefsRequest(requestBody, requestOptions); + HttpMessage message = CreateCreateTypeDefinitionsRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.CreateTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.CreateTypeDefinitions"); scope.Start(); try { @@ -4001,10 +3932,10 @@ public virtual Response CreateTypeDefs(RequestContent requestBody, RequestOption } } - /// Create Request for and operations. + /// Create Request for and operations. /// The request body. /// The request options. - private HttpMessage CreateCreateTypeDefsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBody, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4534,29 +4465,6 @@ private HttpMessage CreateCreateTypeDefsRequest(RequestContent requestBody, Requ /// /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// /// relationshipCategory /// "ASSOCIATION" | "AGGREGATION" | "COMPOSITION" /// @@ -5261,16 +5169,16 @@ private HttpMessage CreateCreateTypeDefsRequest(RequestContent requestBody, Requ /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateAtlasTypeDefsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateAtlasTypeDefsRequest(requestBody, requestOptions); + HttpMessage message = CreateUpdateAtlasTypeDefinitionsRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.UpdateAtlasTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.UpdateAtlasTypeDefinitions"); scope.Start(); try { @@ -5811,29 +5719,6 @@ public virtual async Task UpdateAtlasTypeDefsAsync(RequestContent requ /// /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// /// relationshipCategory /// "ASSOCIATION" | "AGGREGATION" | "COMPOSITION" /// @@ -6538,16 +6423,16 @@ public virtual async Task UpdateAtlasTypeDefsAsync(RequestContent requ /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateAtlasTypeDefs(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response UpdateAtlasTypeDefinitions(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateAtlasTypeDefsRequest(requestBody, requestOptions); + HttpMessage message = CreateUpdateAtlasTypeDefinitionsRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.UpdateAtlasTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.UpdateAtlasTypeDefinitions"); scope.Start(); try { @@ -6574,10 +6459,10 @@ public virtual Response UpdateAtlasTypeDefs(RequestContent requestBody, RequestO } } - /// Create Request for and operations. + /// Create Request for and operations. /// The request body. /// The request options. - private HttpMessage CreateUpdateAtlasTypeDefsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent requestBody, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -7107,29 +6992,6 @@ private HttpMessage CreateUpdateAtlasTypeDefsRequest(RequestContent requestBody, /// /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// /// relationshipCategory /// "ASSOCIATION" | "AGGREGATION" | "COMPOSITION" /// @@ -7834,16 +7696,16 @@ private HttpMessage CreateUpdateAtlasTypeDefsRequest(RequestContent requestBody, /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteTypeDefsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task DeleteTypeDefinitionsAsync(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTypeDefsRequest(requestBody, requestOptions); + HttpMessage message = CreateDeleteTypeDefinitionsRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.DeleteTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeDefinitions"); scope.Start(); try { @@ -8384,29 +8246,6 @@ public virtual async Task DeleteTypeDefsAsync(RequestContent requestBo /// /// /// - /// propagateTags - /// "NONE" | "ONE_TO_TWO" | "TWO_TO_ONE" | "BOTH" - /// - /// - /// PropagateTags indicates whether tags should propagate across the relationship instance. - /// <p> - /// Tags can propagate: - /// <p> - /// NONE - not at all <br> - /// ONE_TO_TWO - from end 1 to 2 <br> - /// TWO_TO_ONE - from end 2 to 1 <br> - /// BOTH - both ways - /// <p> - /// Care needs to be taken when specifying. The use cases we are aware of where this flag is useful: - /// <p> - /// - propagating confidentiality classifications from a table to columns - ONE_TO_TWO could be used here <br> - /// - propagating classifications around Glossary synonyms - BOTH could be used here. - /// <p> - /// There is an expectation that further enhancements will allow more granular control of tag propagation and will - /// address how to resolve conflicts. - /// - /// - /// /// relationshipCategory /// "ASSOCIATION" | "AGGREGATION" | "COMPOSITION" /// @@ -9111,16 +8950,16 @@ public virtual async Task DeleteTypeDefsAsync(RequestContent requestBo /// The request body. /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteTypeDefs(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response DeleteTypeDefinitions(RequestContent requestBody, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTypeDefsRequest(requestBody, requestOptions); + HttpMessage message = CreateDeleteTypeDefinitionsRequest(requestBody, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.DeleteTypeDefs"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeDefinitions"); scope.Start(); try { @@ -9147,10 +8986,10 @@ public virtual Response DeleteTypeDefs(RequestContent requestBody, RequestOption } } - /// Create Request for and operations. + /// Create Request for and operations. /// The request body. /// The request options. - private HttpMessage CreateDeleteTypeDefsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + private HttpMessage CreateDeleteTypeDefinitionsRequest(RequestContent requestBody, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9173,16 +9012,16 @@ private HttpMessage CreateDeleteTypeDefsRequest(RequestContent requestBody, Requ /// Typedef name as search filter when get typedefs. /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTypeDefHeadersAsync(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefHeadersRequest(includeTermTemplate, type, requestOptions); + HttpMessage message = CreateGetTypeDefinitionHeadersRequest(includeTermTemplate, type, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTypeDefHeaders"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionHeaders"); scope.Start(); try { @@ -9217,16 +9056,16 @@ public virtual async Task GetTypeDefHeadersAsync(bool? includeTermTemp /// Typedef name as search filter when get typedefs. /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTypeDefHeaders(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) #pragma warning restore AZC0002 { requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefHeadersRequest(includeTermTemplate, type, requestOptions); + HttpMessage message = CreateGetTypeDefinitionHeadersRequest(includeTermTemplate, type, requestOptions); if (requestOptions.PerCallPolicy != null) { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTypeDefHeaders"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionHeaders"); scope.Start(); try { @@ -9253,14 +9092,14 @@ public virtual Response GetTypeDefHeaders(bool? includeTermTemplate = null, stri } } - /// Create Request for and operations. + /// Create Request for and operations. /// /// Whether include termtemplatedef when return all typedefs. /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. /// The request options. - private HttpMessage CreateGetTypeDefHeadersRequest(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + private HttpMessage CreateGetTypeDefinitionHeadersRequest(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9295,7 +9134,7 @@ public virtual async Task GetTermTemplateDefByGuidAsync(string guid, R { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTermTemplateDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByGuid"); scope.Start(); try { @@ -9335,7 +9174,7 @@ public virtual Response GetTermTemplateDefByGuid(string guid, RequestOptions req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTermTemplateDefByGuid"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByGuid"); scope.Start(); try { @@ -9375,10 +9214,7 @@ private HttpMessage CreateGetTermTemplateDefByGuidRequest(string guid, RequestOp uri.AppendRaw("/api", false); uri.AppendPath("/types/termtemplatedef/guid/", false); uri.AppendPath(guid, true); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; @@ -9397,7 +9233,7 @@ public virtual async Task GetTermTemplateDefByNameAsync(string name, R { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTermTemplateDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByName"); scope.Start(); try { @@ -9437,7 +9273,7 @@ public virtual Response GetTermTemplateDefByName(string name, RequestOptions req { message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("TypesRestClient.GetTermTemplateDefByName"); + using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByName"); scope.Start(); try { @@ -9477,10 +9313,7 @@ private HttpMessage CreateGetTermTemplateDefByNameRequest(string name, RequestOp uri.AppendRaw("/api", false); uri.AppendPath("/types/termtemplatedef/name/", false); uri.AppendPath(name, true); - if (apiVersion != null) - { - uri.AppendQuery("api-version", apiVersion, true); - } + uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md b/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md index 3930506b190c0..f04ed3b6395d6 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md @@ -3,8 +3,8 @@ Run `dotnet build /t:GenerateCode` to generate code. ```yaml -title: Catalog -input-file: https://github.com/Azure/azure-rest-api-specs/tree/6201f0ba800aae592e3efe70d73338787b674efe/specification/purview/data-plane/Azure.Purview.Catalog/preview/2020-12-01-preview/purviewcatalog.json +title: PurviewCatalog +input-file: https://github.com/Azure/azure-rest-api-specs/blob/0bfd6032ae89b4d8d7c55ac23309cb6e30b6c1e0/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/purviewcatalog.json namespace: Azure.Analytics.Purview.Catalog low-level-client: true credential-types: TokenCredential @@ -22,3 +22,48 @@ directive: $.format = "url"; } ``` + +# Promote Discovery members to PurviewCatalogClient + +```yaml +directive: + - from: swagger-document + where: $..[?(@.operationId !== undefined)] + transform: > + if ($.operationId.startsWith("Discovery_")) { + $.operationId = $.operationId.replace("Discovery_", ""); + } +``` + +# Rename Query to Search (to follow .NET Naming Conventions) + +```yaml +directive: + - from: swagger-document + where: $..[?(@.operationId === "Query")] + transform: > + $.operationId = "Search"; +``` + + +# Add `Purview` To Sub Clients + +```yaml +directive: + - from: swagger-document + where: $..[?(@.operationId !== undefined)] + transform: > + if ($.operationId.includes("_")) { + $.operationId = "Purview" + $.operationId; + } +``` + +# Change List -> Get in operation names + +```yaml +directive: + - from: swagger-document + where: $..[?(@.operationId !== undefined)] + transform: > + $.operationId = $.operationId.replace("_List", "_Get"); +```