From 9c933b74db31fb0cae3b8ca6bcdef316c4872929 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 30 Nov 2021 09:12:52 +0000 Subject: [PATCH] CodeGen from PR 16761 in Azure/azure-rest-api-specs Merge 098f41343858cbedeb46c2b4073c26cafb0bfee1 into a02ebc4d9669ad447c42463cd65dffecc3e598d4 --- .../src/Generated/PurviewEntities.cs | 22 +++++++++---------- .../src/autorest.md | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs index d59823dbeb8b..1e4b2ca1b5f7 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs @@ -320,12 +320,12 @@ public virtual Response CreateOrUpdate(RequestContent content, RequestContext co } /// 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 context. - /// is null. + /// is null. /// /// Schema for Response Body: /// { @@ -396,14 +396,14 @@ public virtual Response CreateOrUpdate(RequestContent content, RequestContext co /// /// #pragma warning disable AZC0002 - public virtual async Task GetByGuidsAsync(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestContext context = null) + public virtual async Task GetByGuidsAsync(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestContext context = null) #pragma warning restore AZC0002 { using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuids"); scope.Start(); try { - using HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes); + using HttpMessage message = CreateGetByGuidsRequest(guid, minExtInfo, ignoreRelationships, excludeRelationshipTypes); return await _pipeline.ProcessMessageAsync(message, _clientDiagnostics, context).ConfigureAwait(false); } catch (Exception e) @@ -414,12 +414,12 @@ public virtual async Task GetByGuidsAsync(IEnumerable guids, b } /// 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 context. - /// is null. + /// is null. /// /// Schema for Response Body: /// { @@ -490,14 +490,14 @@ public virtual async Task GetByGuidsAsync(IEnumerable guids, b /// /// #pragma warning disable AZC0002 - public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestContext context = null) + public virtual Response GetByGuids(IEnumerable guid, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestContext context = null) #pragma warning restore AZC0002 { using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuids"); scope.Start(); try { - using HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes); + using HttpMessage message = CreateGetByGuidsRequest(guid, minExtInfo, ignoreRelationships, excludeRelationshipTypes); return _pipeline.ProcessMessage(message, _clientDiagnostics, context); } catch (Exception e) @@ -3482,7 +3482,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(RequestContent content) return message; } - internal HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? minExtInfo, bool? ignoreRelationships, IEnumerable excludeRelationshipTypes) + internal HttpMessage CreateGetByGuidsRequest(IEnumerable guid, bool? minExtInfo, bool? ignoreRelationships, IEnumerable excludeRelationshipTypes) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -3491,9 +3491,9 @@ internal HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? mi uri.Reset(_endpoint); uri.AppendRaw("/catalog/api", false); uri.AppendPath("/atlas/v2/entity/bulk", false); - foreach (var param in guids) + foreach (var param in guid) { - uri.AppendQuery("guids", param, true); + uri.AppendQuery("guid", param, true); } if (minExtInfo != null) { diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md b/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md index 1b75c135929f..cf18b3f7e4ef 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md @@ -4,7 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ```yaml title: PurviewCatalog -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/d23ad89e8c3e98c4f941fd9ec3db6ab39951a494/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/purviewcatalog.json +input-file: https://github.com/Azure/azure-rest-api-specs/blob/0bcc06bfa771e70975f3b3ff46ff6d4659b90111/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/purviewcatalog.json namespace: Azure.Analytics.Purview.Catalog low-level-client: true security: AADToken