From a001b4584ae329d40a6e28dfef3900cf8bb99477 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 13 Apr 2023 05:47:56 +0000 Subject: [PATCH] CodeGen from PR 23543 in Azure/azure-rest-api-specs Merge 90ede5c052710c83d39b343a16d6023ccba7e113 into 5bcf0a7c3dbe04a6e8025735584943f5225ef508 --- .../src/Generated/EventHubsNamespaceResource.cs | 2 ++ .../Generated/EventHubsPrivateEndpointConnectionResource.cs | 4 ++-- .../src/Generated/EventHubsSchemaGroupCollection.cs | 4 ++++ .../src/Generated/EventHubsSchemaGroupResource.cs | 6 ++++++ .../RestOperations/DisasterRecoveryConfigsRestOperations.cs | 6 ++---- .../PrivateEndpointConnectionsRestOperations.cs | 4 ++-- .../RestOperations/SchemaRegistryRestOperations.cs | 6 ++++++ .../Azure.ResourceManager.EventHubs/src/autorest.md | 2 +- 8 files changed, 25 insertions(+), 9 deletions(-) diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs index 1ccd62e56e65..d7254c6c7327 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsNamespaceResource.cs @@ -332,6 +332,7 @@ public virtual EventHubsSchemaGroupCollection GetEventHubsSchemaGroups() } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -354,6 +355,7 @@ public virtual async Task> GetEventHubsSc } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs index 301e5cd3c16e..8aaf262eb1d2 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsPrivateEndpointConnectionResource.cs @@ -151,7 +151,7 @@ public virtual Response Get(Cancella } /// - /// Deletes an existing namespace. This operation also removes all associated resources under the namespace. + /// Deletes a Private Endpoint Connection. /// /// /// Request Path @@ -185,7 +185,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Deletes an existing namespace. This operation also removes all associated resources under the namespace. + /// Deletes a Private Endpoint Connection. /// /// /// Request Path diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs index af5f99f7b442..5de10ff19aac 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupCollection.cs @@ -53,6 +53,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path @@ -93,6 +94,7 @@ public virtual async Task> CreateOrUp } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path @@ -133,6 +135,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -169,6 +172,7 @@ public virtual async Task> GetAsync(strin } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs index 88e1cdb401a0..f71111e39aae 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubsSchemaGroupResource.cs @@ -87,6 +87,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -118,6 +119,7 @@ public virtual async Task> GetAsync(Cance } /// + /// Gets the details of an EventHub schema group. /// /// /// Request Path @@ -149,6 +151,7 @@ public virtual Response Get(CancellationToken canc } /// + /// Deletes an EventHub schema group. /// /// /// Request Path @@ -182,6 +185,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// + /// Deletes an EventHub schema group. /// /// /// Request Path @@ -215,6 +219,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path @@ -252,6 +257,7 @@ public virtual async Task> UpdateAsyn } /// + /// Creates or Updates an EventHub schema group. /// /// /// Request Path diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs index 4c2128ae3147..fdacd263f618 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/DisasterRecoveryConfigsRestOperations.cs @@ -521,14 +521,13 @@ public async Task> CreateOrUpdateAsync(s switch (message.Response.Status) { case 200: + case 201: { EventHubsDisasterRecoveryData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); value = EventHubsDisasterRecoveryData.DeserializeEventHubsDisasterRecoveryData(document.RootElement); return Response.FromValue(value, message.Response); } - case 201: - return Response.FromValue((EventHubsDisasterRecoveryData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -556,14 +555,13 @@ public Response CreateOrUpdate(string subscriptio switch (message.Response.Status) { case 200: + case 201: { EventHubsDisasterRecoveryData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); value = EventHubsDisasterRecoveryData.DeserializeEventHubsDisasterRecoveryData(document.RootElement); return Response.FromValue(value, message.Response); } - case 201: - return Response.FromValue((EventHubsDisasterRecoveryData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 1d671b244f09..89d880841b4d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -234,7 +234,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Deletes an existing namespace. This operation also removes all associated resources under the namespace. + /// Deletes a Private Endpoint Connection. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. @@ -262,7 +262,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Deletes an existing namespace. This operation also removes all associated resources under the namespace. + /// Deletes a Private Endpoint Connection. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs index 15f6e250be19..da6e3772cf0c 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/RestOperations/SchemaRegistryRestOperations.cs @@ -154,6 +154,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r return message; } + /// Creates or Updates an EventHub schema group. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. @@ -186,6 +187,7 @@ public async Task> CreateOrUpdateAsync(string } } + /// Creates or Updates an EventHub schema group. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. @@ -240,6 +242,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } + /// Deletes an EventHub schema group. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. @@ -266,6 +269,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } + /// Deletes an EventHub schema group. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. @@ -314,6 +318,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } + /// Gets the details of an EventHub schema group. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. @@ -346,6 +351,7 @@ public async Task> GetAsync(string subscripti } } + /// Gets the details of an EventHub schema group. /// Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of the resource group within the azure subscription. /// The Namespace name. diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md index 9cfc16f72d38..a995e7d00d59 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/autorest.md @@ -8,7 +8,7 @@ generate-model-factory: false csharp: true namespace: Azure.ResourceManager.EventHubs output-folder: $(this-folder)/Generated -require: https://github.com/Azure/azure-rest-api-specs/blob/f8cc22c427518665d6838eb9832243fc9f7ba684/specification/eventhub/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/eventhub/resource-manager/readme.md tag: package-2022-01-preview clear-output-folder: true skip-csproj: true