From 3012a846c3f9888b6d535c3d48532cf10bdb9cd4 Mon Sep 17 00:00:00 2001
From: bquantump <53361486+bquantump@users.noreply.github.com>
Date: Tue, 23 Feb 2021 11:32:49 -0800
Subject: [PATCH] Revert "EventGrid .NET SDK: api-version 2020-10-15-preview
(#18872)"
This reverts commit 646255c8bb53e613005715c4d1919a56a9fbc1a7.
---
.../eventgrid_resource-manager.txt | 6 +-
.../AzSdk.RP.props | 2 +-
.../CHANGELOG.md | 9 -
.../Microsoft.Azure.Management.EventGrid.sln | 4 +-
.../src/Generated/EventChannelsOperations.cs | 1098 ---------
.../EventChannelsOperationsExtensions.cs | 347 ---
.../Generated/EventGridManagementClient.cs | 62 +-
.../Generated/EventSubscriptionsOperations.cs | 203 --
.../EventSubscriptionsOperationsExtensions.cs | 64 -
.../Generated/ExtensionTopicsOperations.cs | 246 --
.../ExtensionTopicsOperationsExtensions.cs | 79 -
.../src/Generated/IEventChannelsOperations.cs | 218 --
.../Generated/IEventGridManagementClient.cs | 44 +-
.../IEventSubscriptionsOperations.cs | 38 -
.../Generated/IExtensionTopicsOperations.cs | 59 -
.../Generated/IPartnerNamespacesOperations.cs | 421 ----
.../IPartnerRegistrationsOperations.cs | 293 ---
...artnerTopicEventSubscriptionsOperations.cs | 408 ----
.../src/Generated/IPartnerTopicsOperations.cs | 322 ---
...SystemTopicEventSubscriptionsOperations.cs | 406 ----
.../src/Generated/ISystemTopicsOperations.cs | 362 ---
.../src/Generated/ITopicsOperations.cs | 31 -
.../src/Generated/Models/AdvancedFilter.cs | 1 +
...ureFunctionEventSubscriptionDestination.cs | 13 +-
.../src/Generated/Models/CreatedByType.cs | 24 -
.../Generated/Models/DeadLetterDestination.cs | 2 +
.../Models/DeadLetterWithResourceIdentity.cs | 71 -
.../Models/DeliveryAttributeListResult.cs | 56 -
.../Models/DeliveryAttributeMapping.cs | 52 -
.../Models/DeliveryWithResourceIdentity.cs | 69 -
.../src/Generated/Models/Domain.cs | 19 +-
.../Models/DomainUpdateParameters.cs | 19 +-
.../Models/DynamicDeliveryAttributeMapping.cs | 61 -
.../src/Generated/Models/EventChannel.cs | 143 --
.../Models/EventChannelDestination.cs | 81 -
.../Generated/Models/EventChannelFilter.cs | 66 -
.../Models/EventChannelProvisioningState.cs | 26 -
.../Generated/Models/EventChannelSource.cs | 56 -
.../EventHubEventSubscriptionDestination.cs | 13 +-
.../src/Generated/Models/EventSubscription.cs | 66 +-
.../Models/EventSubscriptionDestination.cs | 2 +
.../Models/EventSubscriptionFilter.cs | 13 +-
.../Models/EventSubscriptionIdentity.cs | 68 -
.../Models/EventSubscriptionIdentityType.cs | 22 -
.../EventSubscriptionUpdateParameters.cs | 57 +-
.../src/Generated/Models/ExtendedLocation.cs | 60 -
.../src/Generated/Models/ExtensionTopic.cs | 71 -
...dConnectionEventSubscriptionDestination.cs | 13 +-
.../src/Generated/Models/IdentityInfo.cs | 96 -
.../src/Generated/Models/IdentityType.cs | 24 -
.../Generated/Models/InputSchemaMapping.cs | 2 +
.../Models/IsNotNullAdvancedFilter.cs | 47 -
.../Models/IsNullOrUndefinedAdvancedFilter.cs | 49 -
.../Models/NumberInRangeAdvancedFilter.cs | 59 -
.../Models/NumberNotInRangeAdvancedFilter.cs | 59 -
.../src/Generated/Models/PartnerNamespace.cs | 109 -
.../PartnerNamespaceProvisioningState.cs | 26 -
.../PartnerNamespaceRegenerateKeyRequest.cs | 68 -
.../PartnerNamespaceSharedAccessKeys.cs | 63 -
.../PartnerNamespaceUpdateParameters.cs | 55 -
.../Generated/Models/PartnerRegistration.cs | 234 --
...PartnerRegistrationEventTypesListResult.cs | 66 -
.../PartnerRegistrationProvisioningState.cs | 26 -
.../PartnerRegistrationUpdateParameters.cs | 123 -
.../PartnerRegistrationVisibilityState.cs | 23 -
.../src/Generated/Models/PartnerTopic.cs | 146 --
.../Models/PartnerTopicActivationState.cs | 23 -
.../Models/PartnerTopicProvisioningState.cs | 26 -
.../Models/PartnerTopicReadinessState.cs | 24 -
.../src/Generated/Models/PartnerTopicType.cs | 113 -
.../PartnerTopicTypeAuthorizationState.cs | 23 -
.../Models/PartnerTopicTypesListResult.cs | 55 -
.../Models/PartnerTopicUpdateParameters.cs | 55 -
.../Generated/Models/PrivateLinkResource.cs | 8 +-
.../src/Generated/Models/Resource.cs | 2 +-
.../src/Generated/Models/ResourceKind.cs | 22 -
.../src/Generated/Models/ResourceSku.cs | 54 -
...iceBusQueueEventSubscriptionDestination.cs | 13 +-
...iceBusTopicEventSubscriptionDestination.cs | 13 +-
.../src/Generated/Models/Sku.cs | 22 -
.../Models/StaticDeliveryAttributeMapping.cs | 70 -
...torageQueueEventSubscriptionDestination.cs | 11 +-
.../StringNotBeginsWithAdvancedFilter.cs | 59 -
.../Models/StringNotContainsAdvancedFilter.cs | 59 -
.../Models/StringNotEndsWithAdvancedFilter.cs | 59 -
.../src/Generated/Models/SystemData.cs | 103 -
.../src/Generated/Models/SystemTopic.cs | 120 -
.../Models/SystemTopicUpdateParameters.cs | 63 -
.../src/Generated/Models/Topic.cs | 38 +-
.../src/Generated/Models/TopicTypeInfo.cs | 11 +-
.../Generated/Models/TopicUpdateParameters.cs | 18 +-
.../Models/UserIdentityProperties.cs | 61 -
.../WebHookEventSubscriptionDestination.cs | 13 +-
.../Generated/PartnerNamespacesOperations.cs | 2133 -----------------
.../PartnerNamespacesOperationsExtensions.cs | 679 ------
.../PartnerRegistrationsOperations.cs | 1826 --------------
...artnerRegistrationsOperationsExtensions.cs | 464 ----
...artnerTopicEventSubscriptionsOperations.cs | 1822 --------------
...cEventSubscriptionsOperationsExtensions.cs | 673 ------
.../src/Generated/PartnerTopicsOperations.cs | 1839 --------------
.../PartnerTopicsOperationsExtensions.cs | 513 ----
.../SdkInfo_EventGridManagementClient.cs | 28 +-
...SystemTopicEventSubscriptionsOperations.cs | 1820 --------------
...cEventSubscriptionsOperationsExtensions.cs | 669 ------
.../src/Generated/SystemTopicsOperations.cs | 1749 --------------
.../SystemTopicsOperationsExtensions.cs | 575 -----
.../src/Generated/TopicsOperations.cs | 278 +--
.../Generated/TopicsOperationsExtensions.cs | 52 -
...icrosoft.Azure.Management.EventGrid.csproj | 20 +-
.../src/Properties/AssemblyInfo.cs | 4 +-
...ft.Azure.Management.EventGrid.Tests.csproj | 4 +-
.../DomainCreateGetUpdateDelete.json | 1513 ++++++------
...reateGetUpdateDeleteWithDeadLettering.json | 652 ++---
...ancedFilterAzureFunctionAsDestination.json | 616 ++---
...AdvancedFilterServiceBusAsDestination.json | 646 ++---
...zureSubscriptionCreateGetUpdateDelete.json | 336 +--
...ionToCustomTopicCreateGetUpdateDelete.json | 800 +++----
...etUpdateDeleteWithEventDeliverySchema.json | 798 +++---
...criptionToDomainCreateGetUpdateDelete.json | 1611 +++++++++----
...nToResourceGroupCreateGetUpdateDelete.json | 437 ++--
.../TopicCreateGetUpdateDelete.json | 872 +++----
.../ScenarioTests/TopicTypeTestsAsync.json | 197 --
...enarioTests.EventSubscriptionTests.CRUD.cs | 18 -
.../Tests/ScenarioTests.TopicTests.CRUD.cs | 5 -
.../Tests/ScenarioTests.TopicTypeTests.cs | 30 +-
.../tests/Tests/ScenarioTests.cs | 2 -
tools/Repo-Tasks.psd1 | 254 +-
tools/generateMetadata.ps1 | 66 +-
128 files changed, 4850 insertions(+), 27430 deletions(-)
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/CreatedByType.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentityType.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ExtendedLocation.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ExtensionTopic.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityInfo.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityType.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IsNotNullAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IsNullOrUndefinedAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/NumberInRangeAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/NumberNotInRangeAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespace.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceProvisioningState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceRegenerateKeyRequest.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceSharedAccessKeys.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceUpdateParameters.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistration.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationEventTypesListResult.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationProvisioningState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationUpdateParameters.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationVisibilityState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopic.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicActivationState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicProvisioningState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicReadinessState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicType.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypeAuthorizationState.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypesListResult.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicUpdateParameters.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ResourceKind.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ResourceSku.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Sku.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/StaticDeliveryAttributeMapping.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/StringNotBeginsWithAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/StringNotContainsAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/StringNotEndsWithAdvancedFilter.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/SystemData.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/SystemTopic.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/SystemTopicUpdateParameters.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/UserIdentityProperties.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerNamespacesOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerNamespacesOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerRegistrationsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerRegistrationsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerTopicEventSubscriptionsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerTopicEventSubscriptionsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerTopicsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PartnerTopicsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SystemTopicEventSubscriptionsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SystemTopicEventSubscriptionsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SystemTopicsOperations.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SystemTopicsOperationsExtensions.cs
delete mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/tests/SessionRecords/ScenarioTests/TopicTypeTestsAsync.json
diff --git a/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt b/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
index ff65bb2e2f11..280b0cc2ccca 100644
--- a/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
@@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\github\azure-sdk-for-net\sdk
-2021-02-12 19:51:40 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\build2020\net1\azure-sdk-for-net\sdk
+2020-06-03 00:08:27 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: a1eee0489c374782a934ec1f093abd16fa7718ca
+Commit: e3e0fff3be9befda4fd2cc18ee355b88b024fac7
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props
index f1a1e06eb794..49307dfe0967 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props
@@ -1,7 +1,7 @@
- EventGrid_2020-10-15-preview;
+ EventGrid_2020-06-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
index cc535b5af9bd..993d2911b597 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
@@ -1,14 +1,5 @@
# Release History
-## 6.1.0 (2020-10)
-- This release corresponds to api-version 2020-10-15-preview which includes the following new features:
- * MSI for System Topics
- * Azure Arc support Topics and Event Subscriptions
- * Delivery Attributes for Event Subscriptions
- * Ability to specify a TTL for StorageQueue destinations
- * New AttributeFiltering Operators for Event Channels
- * Exposing Source scopes on the TopicType resource
-
## 6.0.0 (2020-06)
- Add support to new GA service API version 2020-06-01.
- The new GA'ed features include:
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/Microsoft.Azure.Management.EventGrid.sln b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/Microsoft.Azure.Management.EventGrid.sln
index e7e229b31377..a42d79d44a9e 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/Microsoft.Azure.Management.EventGrid.sln
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/Microsoft.Azure.Management.EventGrid.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.31005.135
+# Visual Studio 15
+VisualStudioVersion = 15.0.27130.2020
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.EventGrid", "src\Microsoft.Azure.Management.EventGrid.csproj", "{AE7D9821-F169-456D-80FE-95221111F7A3}"
EndProject
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs
deleted file mode 100644
index 7e3c982312e8..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs
+++ /dev/null
@@ -1,1098 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// EventChannelsOperations operations.
- ///
- internal partial class EventChannelsOperations : IServiceOperations, IEventChannelsOperations
- {
- ///
- /// Initializes a new instance of the EventChannelsOperations class.
- ///
- ///
- /// Reference to the service client.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- internal EventChannelsOperations(EventGridManagementClient client)
- {
- if (client == null)
- {
- throw new System.ArgumentNullException("client");
- }
- Client = client;
- }
-
- ///
- /// Gets a reference to the EventGridManagementClient
- ///
- public EventGridManagementClient Client { get; private set; }
-
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (eventChannelName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("eventChannelName", eventChannelName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- _url = _url.Replace("{eventChannelName}", System.Uri.EscapeDataString(eventChannelName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (eventChannelName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelName");
- }
- if (eventChannelInfo == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelInfo");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("eventChannelName", eventChannelName);
- tracingParameters.Add("eventChannelInfo", eventChannelInfo);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- _url = _url.Replace("{eventChannelName}", System.Uri.EscapeDataString(eventChannelName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- if(eventChannelInfo != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(eventChannelInfo, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax. Filtering
- /// is permitted on the 'name' property only and with limited number of OData
- /// operations. These operations are: the 'contains' function as well as the
- /// following logical operations: not, and, or, eq (for equal), and ne (for not
- /// equal). No arithmetic operations are supported. The following is a valid
- /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
- /// The following is not a valid filter example: $filter=location eq 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation. Valid
- /// range for top parameter is 1 to 100. If not specified, the default number
- /// of results to be returned is 20 items per page.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListByPartnerNamespaceWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("filter", filter);
- tracingParameters.Add("top", top);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByPartnerNamespace", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (filter != null)
- {
- _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter)));
- }
- if (top != null)
- {
- _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"'))));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (eventChannelName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("eventChannelName", eventChannelName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- _url = _url.Replace("{eventChannelName}", System.Uri.EscapeDataString(eventChannelName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListByPartnerNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (nextPageLink == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextPageLink", nextPageLink);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByPartnerNamespaceNext", tracingParameters);
- }
- // Construct URL
- string _url = "{nextLink}";
- _url = _url.Replace("{nextLink}", nextPageLink);
- List _queryParameters = new List();
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs
deleted file mode 100644
index 69bb2a0d215e..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs
+++ /dev/null
@@ -1,347 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for EventChannelsOperations.
- ///
- public static partial class EventChannelsOperationsExtensions
- {
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- public static EventChannel Get(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName)
- {
- return operations.GetAsync(resourceGroupName, partnerNamespaceName, eventChannelName).GetAwaiter().GetResult();
- }
-
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- public static EventChannel CreateOrUpdate(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, partnerNamespaceName, eventChannelName, eventChannelInfo).GetAwaiter().GetResult();
- }
-
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, eventChannelInfo, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- public static void Delete(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName)
- {
- operations.DeleteAsync(resourceGroupName, partnerNamespaceName, eventChannelName).GetAwaiter().GetResult();
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax. Filtering
- /// is permitted on the 'name' property only and with limited number of OData
- /// operations. These operations are: the 'contains' function as well as the
- /// following logical operations: not, and, or, eq (for equal), and ne (for not
- /// equal). No arithmetic operations are supported. The following is a valid
- /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
- /// The following is not a valid filter example: $filter=location eq 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation. Valid
- /// range for top parameter is 1 to 100. If not specified, the default number
- /// of results to be returned is 20 items per page.
- ///
- public static IPage ListByPartnerNamespace(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?))
- {
- return operations.ListByPartnerNamespaceAsync(resourceGroupName, partnerNamespaceName, filter, top).GetAwaiter().GetResult();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax. Filtering
- /// is permitted on the 'name' property only and with limited number of OData
- /// operations. These operations are: the 'contains' function as well as the
- /// following logical operations: not, and, or, eq (for equal), and ne (for not
- /// equal). No arithmetic operations are supported. The following is a valid
- /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
- /// The following is not a valid filter example: $filter=location eq 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation. Valid
- /// range for top parameter is 1 to 100. If not specified, the default number
- /// of results to be returned is 20 items per page.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByPartnerNamespaceAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByPartnerNamespaceWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, filter, top, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- public static void BeginDelete(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName)
- {
- operations.BeginDeleteAsync(resourceGroupName, partnerNamespaceName, eventChannelName).GetAwaiter().GetResult();
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginDeleteAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListByPartnerNamespaceNext(this IEventChannelsOperations operations, string nextPageLink)
- {
- return operations.ListByPartnerNamespaceNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByPartnerNamespaceNextAsync(this IEventChannelsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByPartnerNamespaceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
index 7626214c6b86..50170cac8a45 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
@@ -86,45 +86,20 @@ public partial class EventGridManagementClient : ServiceClient
public virtual IDomainTopicsOperations DomainTopics { get; private set; }
- ///
- /// Gets the IEventChannelsOperations.
- ///
- public virtual IEventChannelsOperations EventChannels { get; private set; }
-
///
/// Gets the IEventSubscriptionsOperations.
///
public virtual IEventSubscriptionsOperations EventSubscriptions { get; private set; }
- ///
- /// Gets the ISystemTopicEventSubscriptionsOperations.
- ///
- public virtual ISystemTopicEventSubscriptionsOperations SystemTopicEventSubscriptions { get; private set; }
-
- ///
- /// Gets the IPartnerTopicEventSubscriptionsOperations.
- ///
- public virtual IPartnerTopicEventSubscriptionsOperations PartnerTopicEventSubscriptions { get; private set; }
-
///
/// Gets the IOperations.
///
public virtual IOperations Operations { get; private set; }
///
- /// Gets the IPartnerNamespacesOperations.
- ///
- public virtual IPartnerNamespacesOperations PartnerNamespaces { get; private set; }
-
- ///
- /// Gets the IPartnerRegistrationsOperations.
- ///
- public virtual IPartnerRegistrationsOperations PartnerRegistrations { get; private set; }
-
- ///
- /// Gets the IPartnerTopicsOperations.
+ /// Gets the ITopicsOperations.
///
- public virtual IPartnerTopicsOperations PartnerTopics { get; private set; }
+ public virtual ITopicsOperations Topics { get; private set; }
///
/// Gets the IPrivateEndpointConnectionsOperations.
@@ -136,21 +111,6 @@ public partial class EventGridManagementClient : ServiceClient
public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; }
- ///
- /// Gets the ISystemTopicsOperations.
- ///
- public virtual ISystemTopicsOperations SystemTopics { get; private set; }
-
- ///
- /// Gets the ITopicsOperations.
- ///
- public virtual ITopicsOperations Topics { get; private set; }
-
- ///
- /// Gets the IExtensionTopicsOperations.
- ///
- public virtual IExtensionTopicsOperations ExtensionTopics { get; private set; }
-
///
/// Gets the ITopicTypesOperations.
///
@@ -399,22 +359,14 @@ private void Initialize()
{
Domains = new DomainsOperations(this);
DomainTopics = new DomainTopicsOperations(this);
- EventChannels = new EventChannelsOperations(this);
EventSubscriptions = new EventSubscriptionsOperations(this);
- SystemTopicEventSubscriptions = new SystemTopicEventSubscriptionsOperations(this);
- PartnerTopicEventSubscriptions = new PartnerTopicEventSubscriptionsOperations(this);
Operations = new Operations(this);
- PartnerNamespaces = new PartnerNamespacesOperations(this);
- PartnerRegistrations = new PartnerRegistrationsOperations(this);
- PartnerTopics = new PartnerTopicsOperations(this);
+ Topics = new TopicsOperations(this);
PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this);
PrivateLinkResources = new PrivateLinkResourcesOperations(this);
- SystemTopics = new SystemTopicsOperations(this);
- Topics = new TopicsOperations(this);
- ExtensionTopics = new ExtensionTopicsOperations(this);
TopicTypes = new TopicTypesOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2020-10-15-preview";
+ ApiVersion = "2020-06-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -446,14 +398,12 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("inputSchemaMappingType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("inputSchemaMappingType"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("operatorType"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("operatorType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("endpointType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("endpointType"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("operatorType"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("operatorType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("endpointType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("endpointType"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperations.cs
index 87b0edcf05ee..c61670e7cbf5 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperations.cs
@@ -2804,209 +2804,6 @@ internal EventSubscriptionsOperations(EventGridManagementClient client)
return _result;
}
- ///
- /// Get delivery attributes for an event subscription.
- ///
- ///
- /// Get all delivery attributes for an event subscription.
- ///
- ///
- /// The scope of the event subscription. The scope can be a subscription, or a
- /// resource group, or a top level resource belonging to a resource provider
- /// namespace, or an EventGrid topic. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for a resource, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- /// for an EventGrid topic.
- ///
- ///
- /// Name of the event subscription.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetDeliveryAttributesWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (scope == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "scope");
- }
- if (eventSubscriptionName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventSubscriptionName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("scope", scope);
- tracingParameters.Add("eventSubscriptionName", eventSubscriptionName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetDeliveryAttributes", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes").ToString();
- _url = _url.Replace("{scope}", scope);
- _url = _url.Replace("{eventSubscriptionName}", System.Uri.EscapeDataString(eventSubscriptionName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
///
/// Create or update an event subscription.
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperationsExtensions.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperationsExtensions.cs
index 502da598df1d..cbb1bf86c4d0 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperationsExtensions.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperationsExtensions.cs
@@ -1122,70 +1122,6 @@ public static EventSubscriptionFullUrl GetFullUrl(this IEventSubscriptionsOperat
}
}
- ///
- /// Get delivery attributes for an event subscription.
- ///
- ///
- /// Get all delivery attributes for an event subscription.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The scope of the event subscription. The scope can be a subscription, or a
- /// resource group, or a top level resource belonging to a resource provider
- /// namespace, or an EventGrid topic. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for a resource, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- /// for an EventGrid topic.
- ///
- ///
- /// Name of the event subscription.
- ///
- public static DeliveryAttributeListResult GetDeliveryAttributes(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName)
- {
- return operations.GetDeliveryAttributesAsync(scope, eventSubscriptionName).GetAwaiter().GetResult();
- }
-
- ///
- /// Get delivery attributes for an event subscription.
- ///
- ///
- /// Get all delivery attributes for an event subscription.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The scope of the event subscription. The scope can be a subscription, or a
- /// resource group, or a top level resource belonging to a resource provider
- /// namespace, or an EventGrid topic. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for a resource, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- /// for an EventGrid topic.
- ///
- ///
- /// Name of the event subscription.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetDeliveryAttributesAsync(this IEventSubscriptionsOperations operations, string scope, string eventSubscriptionName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetDeliveryAttributesWithHttpMessagesAsync(scope, eventSubscriptionName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
///
/// Create or update an event subscription.
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs
deleted file mode 100644
index 30b0c63530ff..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs
+++ /dev/null
@@ -1,246 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// ExtensionTopicsOperations operations.
- ///
- internal partial class ExtensionTopicsOperations : IServiceOperations, IExtensionTopicsOperations
- {
- ///
- /// Initializes a new instance of the ExtensionTopicsOperations class.
- ///
- ///
- /// Reference to the service client.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- internal ExtensionTopicsOperations(EventGridManagementClient client)
- {
- if (client == null)
- {
- throw new System.ArgumentNullException("client");
- }
- Client = client;
- }
-
- ///
- /// Gets a reference to the EventGridManagementClient
- ///
- public EventGridManagementClient Client { get; private set; }
-
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried. The
- /// scope can be a subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (scope == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "scope");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("scope", scope);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/extensionTopics/default").ToString();
- _url = _url.Replace("{scope}", System.Uri.EscapeDataString(scope));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs
deleted file mode 100644
index 16616d14a956..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for ExtensionTopicsOperations.
- ///
- public static partial class ExtensionTopicsOperationsExtensions
- {
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried. The
- /// scope can be a subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- public static ExtensionTopic Get(this IExtensionTopicsOperations operations, string scope)
- {
- return operations.GetAsync(scope).GetAwaiter().GetResult();
- }
-
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried. The
- /// scope can be a subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IExtensionTopicsOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs
deleted file mode 100644
index e15cbd6411c7..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs
+++ /dev/null
@@ -1,218 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// EventChannelsOperations operations.
- ///
- public partial interface IEventChannelsOperations
- {
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerNamespaceWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
index e36aca2611ad..b45a7ced954a 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
@@ -81,45 +81,20 @@ public partial interface IEventGridManagementClient : System.IDisposable
///
IDomainTopicsOperations DomainTopics { get; }
- ///
- /// Gets the IEventChannelsOperations.
- ///
- IEventChannelsOperations EventChannels { get; }
-
///
/// Gets the IEventSubscriptionsOperations.
///
IEventSubscriptionsOperations EventSubscriptions { get; }
- ///
- /// Gets the ISystemTopicEventSubscriptionsOperations.
- ///
- ISystemTopicEventSubscriptionsOperations SystemTopicEventSubscriptions { get; }
-
- ///
- /// Gets the IPartnerTopicEventSubscriptionsOperations.
- ///
- IPartnerTopicEventSubscriptionsOperations PartnerTopicEventSubscriptions { get; }
-
///
/// Gets the IOperations.
///
IOperations Operations { get; }
///
- /// Gets the IPartnerNamespacesOperations.
- ///
- IPartnerNamespacesOperations PartnerNamespaces { get; }
-
- ///
- /// Gets the IPartnerRegistrationsOperations.
- ///
- IPartnerRegistrationsOperations PartnerRegistrations { get; }
-
- ///
- /// Gets the IPartnerTopicsOperations.
+ /// Gets the ITopicsOperations.
///
- IPartnerTopicsOperations PartnerTopics { get; }
+ ITopicsOperations Topics { get; }
///
/// Gets the IPrivateEndpointConnectionsOperations.
@@ -131,21 +106,6 @@ public partial interface IEventGridManagementClient : System.IDisposable
///
IPrivateLinkResourcesOperations PrivateLinkResources { get; }
- ///
- /// Gets the ISystemTopicsOperations.
- ///
- ISystemTopicsOperations SystemTopics { get; }
-
- ///
- /// Gets the ITopicsOperations.
- ///
- ITopicsOperations Topics { get; }
-
- ///
- /// Gets the IExtensionTopicsOperations.
- ///
- IExtensionTopicsOperations ExtensionTopics { get; }
-
///
/// Gets the ITopicTypesOperations.
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventSubscriptionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventSubscriptionsOperations.cs
index 16d48daec43a..7aa35fafa57a 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventSubscriptionsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventSubscriptionsOperations.cs
@@ -674,44 +674,6 @@ public partial interface IEventSubscriptionsOperations
///
Task>> ListByDomainTopicWithHttpMessagesAsync(string resourceGroupName, string domainName, string topicName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get delivery attributes for an event subscription.
- ///
- ///
- /// Get all delivery attributes for an event subscription.
- ///
- ///
- /// The scope of the event subscription. The scope can be a
- /// subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace, or an EventGrid topic.
- /// For example, use '/subscriptions/{subscriptionId}/' for a
- /// subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
- /// for a resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for a resource, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}'
- /// for an EventGrid topic.
- ///
- ///
- /// Name of the event subscription.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetDeliveryAttributesWithHttpMessagesAsync(string scope, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Create or update an event subscription.
///
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs
deleted file mode 100644
index c6791881310b..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// ExtensionTopicsOperations operations.
- ///
- public partial interface IExtensionTopicsOperations
- {
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried.
- /// The scope can be a subscription, or a resource group, or a top
- /// level resource belonging to a resource provider namespace. For
- /// example, use '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
- /// for a resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs
deleted file mode 100644
index eb9e3312cbb2..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs
+++ /dev/null
@@ -1,421 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerNamespacesOperations operations.
- ///
- public partial interface IPartnerNamespacesOperations
- {
- ///
- /// Get a partner namespace.
- ///
- ///
- /// Get properties of a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a partner namespace.
- ///
- ///
- /// Asynchronously creates a new partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// PartnerNamespace information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, PartnerNamespace partnerNamespaceInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner namespace.
- ///
- ///
- /// Delete existing partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner namespace.
- ///
- ///
- /// Asynchronously updates a partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Tags of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under an Azure subscription.
- ///
- ///
- /// List all the partner namespaces under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under a resource group.
- ///
- ///
- /// List all the partner namespaces under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List keys for a partner namespace.
- ///
- ///
- /// List the two keys used to publish to a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> ListSharedAccessKeysWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Regenerate key for a partner namespace.
- ///
- ///
- /// Regenerate a shared access key for a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Key name to regenerate (key1 or key2).
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a partner namespace.
- ///
- ///
- /// Asynchronously creates a new partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// PartnerNamespace information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, PartnerNamespace partnerNamespaceInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner namespace.
- ///
- ///
- /// Delete existing partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner namespace.
- ///
- ///
- /// Asynchronously updates a partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Tags of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under an Azure subscription.
- ///
- ///
- /// List all the partner namespaces under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under a resource group.
- ///
- ///
- /// List all the partner namespaces under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs
deleted file mode 100644
index f813ded402d3..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs
+++ /dev/null
@@ -1,293 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerRegistrationsOperations operations.
- ///
- public partial interface IPartnerRegistrationsOperations
- {
- ///
- /// Get a partner registration.
- ///
- ///
- /// Gets a partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a partner registration.
- ///
- ///
- /// Creates a new partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// PartnerRegistration information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, PartnerRegistration partnerRegistrationInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner registration.
- ///
- ///
- /// Deletes a partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner registration.
- ///
- ///
- /// Updates a partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// Partner registration update information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under an Azure subscription.
- ///
- ///
- /// List all the partner registrations under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under a resource group.
- ///
- ///
- /// List all the partner registrations under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List all available partners registrations.
- ///
- ///
- /// List all partners registrations.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under an Azure subscription.
- ///
- ///
- /// List all the partner registrations under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under a resource group.
- ///
- ///
- /// List all the partner registrations under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs
deleted file mode 100644
index e5baba1ca7ea..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs
+++ /dev/null
@@ -1,408 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerTopicEventSubscriptionsOperations operations.
- ///
- public partial interface IPartnerTopicEventSubscriptionsOperations
- {
- ///
- /// Get an event subscription of a partner topic.
- ///
- ///
- /// Get an event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be found. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription of a partner topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription of a
- /// partner topic with the specified parameters. Existing event
- /// subscriptions will be updated with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get full URL of an event subscription of a partner topic.
- ///
- ///
- /// Get the full endpoint URL for an event subscription of a partner
- /// topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetFullUrlWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a partner topic.
- ///
- ///
- /// List event subscriptions that belong to a specific partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerTopicWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get delivery attributes for an event subscription of a partner
- /// topic.
- ///
- ///
- /// Get all delivery attributes for an event subscription of a partner
- /// topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetDeliveryAttributesWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription of a partner topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription of a
- /// partner topic with the specified parameters. Existing event
- /// subscriptions will be updated with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a partner topic.
- ///
- ///
- /// List event subscriptions that belong to a specific partner topic.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerTopicNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs
deleted file mode 100644
index f4c8f3eddaf8..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs
+++ /dev/null
@@ -1,322 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerTopicsOperations operations.
- ///
- public partial interface IPartnerTopicsOperations
- {
- ///
- /// Get a partner topic.
- ///
- ///
- /// Get properties of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner topic.
- ///
- ///
- /// Delete existing partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner topic.
- ///
- ///
- /// Asynchronously updates a partner topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Tags of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under an Azure subscription.
- ///
- ///
- /// List all the partner topics under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under a resource group.
- ///
- ///
- /// List all the partner topics under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Activate a partner topic.
- ///
- ///
- /// Activate a newly created partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> ActivateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deactivate a partner topic.
- ///
- ///
- /// Deactivate specific partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> DeactivateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner topic.
- ///
- ///
- /// Delete existing partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under an Azure subscription.
- ///
- ///
- /// List all the partner topics under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under a resource group.
- ///
- ///
- /// List all the partner topics under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs
deleted file mode 100644
index f4610328eca7..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs
+++ /dev/null
@@ -1,406 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// SystemTopicEventSubscriptionsOperations operations.
- ///
- public partial interface ISystemTopicEventSubscriptionsOperations
- {
- ///
- /// Get an event subscription of a system topic.
- ///
- ///
- /// Get an event subscription.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription for a system topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription with the
- /// specified parameters. Existing event subscriptions will be updated
- /// with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get full URL of an event subscription of a system topic
- ///
- ///
- /// Get the full endpoint URL for an event subscription of a system
- /// topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetFullUrlWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a system topic.
- ///
- ///
- /// List event subscriptions that belong to a specific system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySystemTopicWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get delivery attributes for an event subscription.
- ///
- ///
- /// Get all delivery attributes for an event subscription.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetDeliveryAttributesWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription for a system topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription with the
- /// specified parameters. Existing event subscriptions will be updated
- /// with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a system topic.
- ///
- ///
- /// List event subscriptions that belong to a specific system topic.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySystemTopicNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs
deleted file mode 100644
index cb157fe68a18..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs
+++ /dev/null
@@ -1,362 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// SystemTopicsOperations operations.
- ///
- public partial interface ISystemTopicsOperations
- {
- ///
- /// Get a system topic.
- ///
- ///
- /// Get properties of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a system topic.
- ///
- ///
- /// Asynchronously creates a new system topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// System Topic information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, SystemTopic systemTopicInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a system topic.
- ///
- ///
- /// Delete existing system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a system topic.
- ///
- ///
- /// Asynchronously updates a system topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// SystemTopic update information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, SystemTopicUpdateParameters systemTopicUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List system topics under an Azure subscription.
- ///
- ///
- /// List all the system topics under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List system topics under a resource group.
- ///
- ///
- /// List all the system topics under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a system topic.
- ///
- ///
- /// Asynchronously creates a new system topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// System Topic information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, SystemTopic systemTopicInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a system topic.
- ///
- ///
- /// Delete existing system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a system topic.
- ///
- ///
- /// Asynchronously updates a system topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// SystemTopic update information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, SystemTopicUpdateParameters systemTopicUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List system topics under an Azure subscription.
- ///
- ///
- /// List all the system topics under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List system topics under a resource group.
- ///
- ///
- /// List all the system topics under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ITopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ITopicsOperations.cs
index 9e0fe7764146..7370dffe508b 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ITopicsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ITopicsOperations.cs
@@ -398,37 +398,6 @@ public partial interface ITopicsOperations
///
Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string topicName, TopicUpdateParameters topicUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Regenerate key for a topic.
- ///
- ///
- /// Regenerate a shared access key for a topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the topic.
- ///
- ///
- /// Key name to regenerate key1 or key2
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string topicName, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// List topics under an Azure subscription.
///
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AdvancedFilter.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AdvancedFilter.cs
index 371d80a647b3..c2fe81ab1c01 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AdvancedFilter.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AdvancedFilter.cs
@@ -21,6 +21,7 @@ namespace Microsoft.Azure.Management.EventGrid.Models
/// StringEqualsAdvancedFilter etc. depending on the type of the key based
/// on which you want to filter.
///
+ [Newtonsoft.Json.JsonObject("AdvancedFilter")]
public partial class AdvancedFilter
{
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs
index a5bd1835bdfd..f4565316b35f 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/AzureFunctionEventSubscriptionDestination.cs
@@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.EventGrid.Models
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
using System.Linq;
///
@@ -45,14 +43,11 @@ public AzureFunctionEventSubscriptionDestination()
/// batch.
/// Preferred batch size in
/// Kilobytes.
- /// Delivery attribute
- /// details.
- public AzureFunctionEventSubscriptionDestination(string resourceId = default(string), int? maxEventsPerBatch = default(int?), int? preferredBatchSizeInKilobytes = default(int?), IList deliveryAttributeMappings = default(IList))
+ public AzureFunctionEventSubscriptionDestination(string resourceId = default(string), int? maxEventsPerBatch = default(int?), int? preferredBatchSizeInKilobytes = default(int?))
{
ResourceId = resourceId;
MaxEventsPerBatch = maxEventsPerBatch;
PreferredBatchSizeInKilobytes = preferredBatchSizeInKilobytes;
- DeliveryAttributeMappings = deliveryAttributeMappings;
CustomInit();
}
@@ -80,11 +75,5 @@ public AzureFunctionEventSubscriptionDestination()
[JsonProperty(PropertyName = "properties.preferredBatchSizeInKilobytes")]
public int? PreferredBatchSizeInKilobytes { get; set; }
- ///
- /// Gets or sets delivery attribute details.
- ///
- [JsonProperty(PropertyName = "properties.deliveryAttributeMappings")]
- public IList DeliveryAttributeMappings { get; set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/CreatedByType.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/CreatedByType.cs
deleted file mode 100644
index c319250ec5c5..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/CreatedByType.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for CreatedByType.
- ///
- public static class CreatedByType
- {
- public const string User = "User";
- public const string Application = "Application";
- public const string ManagedIdentity = "ManagedIdentity";
- public const string Key = "Key";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterDestination.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterDestination.cs
index ba2339e8ee02..e6ae3ec7e7e4 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterDestination.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterDestination.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.EventGrid.Models
{
+ using Newtonsoft.Json;
using System.Linq;
///
@@ -19,6 +20,7 @@ namespace Microsoft.Azure.Management.EventGrid.Models
/// a derived class. Currently, StorageBlobDeadLetterDestination is the
/// only class that derives from this class.
///
+ [Newtonsoft.Json.JsonObject("DeadLetterDestination")]
public partial class DeadLetterDestination
{
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs
deleted file mode 100644
index eeb484d8e462..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Information about the deadletter destination with resource identity.
- ///
- public partial class DeadLetterWithResourceIdentity
- {
- ///
- /// Initializes a new instance of the DeadLetterWithResourceIdentity
- /// class.
- ///
- public DeadLetterWithResourceIdentity()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DeadLetterWithResourceIdentity
- /// class.
- ///
- /// The identity to use when dead-lettering
- /// events.
- /// Information about the
- /// destination where events have to be delivered for the event
- /// subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- public DeadLetterWithResourceIdentity(EventSubscriptionIdentity identity = default(EventSubscriptionIdentity), DeadLetterDestination deadLetterDestination = default(DeadLetterDestination))
- {
- Identity = identity;
- DeadLetterDestination = deadLetterDestination;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the identity to use when dead-lettering events.
- ///
- [JsonProperty(PropertyName = "identity")]
- public EventSubscriptionIdentity Identity { get; set; }
-
- ///
- /// Gets or sets information about the destination where events have to
- /// be delivered for the event subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "deadLetterDestination")]
- public DeadLetterDestination DeadLetterDestination { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs
deleted file mode 100644
index fdbad339b338..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Result of the Get delivery attributes operation.
- ///
- public partial class DeliveryAttributeListResult
- {
- ///
- /// Initializes a new instance of the DeliveryAttributeListResult
- /// class.
- ///
- public DeliveryAttributeListResult()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DeliveryAttributeListResult
- /// class.
- ///
- /// A collection of
- /// DeliveryAttributeMapping
- public DeliveryAttributeListResult(IList value = default(IList))
- {
- Value = value;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets a collection of DeliveryAttributeMapping
- ///
- [JsonProperty(PropertyName = "value")]
- public IList Value { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs
deleted file mode 100644
index 2ee4e40e7bb6..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Delivery attribute mapping details.
- ///
- public partial class DeliveryAttributeMapping
- {
- ///
- /// Initializes a new instance of the DeliveryAttributeMapping class.
- ///
- public DeliveryAttributeMapping()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DeliveryAttributeMapping class.
- ///
- /// Name of the delivery attribute or
- /// header.
- public DeliveryAttributeMapping(string name = default(string))
- {
- Name = name;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets name of the delivery attribute or header.
- ///
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs
deleted file mode 100644
index 54d916608d5f..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Information about the delivery for an event subscription with resource
- /// identity.
- ///
- public partial class DeliveryWithResourceIdentity
- {
- ///
- /// Initializes a new instance of the DeliveryWithResourceIdentity
- /// class.
- ///
- public DeliveryWithResourceIdentity()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DeliveryWithResourceIdentity
- /// class.
- ///
- /// The identity to use when delivering
- /// events.
- /// Information about the destination where
- /// events have to be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- public DeliveryWithResourceIdentity(EventSubscriptionIdentity identity = default(EventSubscriptionIdentity), EventSubscriptionDestination destination = default(EventSubscriptionDestination))
- {
- Identity = identity;
- Destination = destination;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the identity to use when delivering events.
- ///
- [JsonProperty(PropertyName = "identity")]
- public EventSubscriptionIdentity Identity { get; set; }
-
- ///
- /// Gets or sets information about the destination where events have to
- /// be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "destination")]
- public EventSubscriptionDestination Destination { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs
index 585a500079b7..47b3e7468044 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs
@@ -63,10 +63,7 @@ public Domain()
/// This can be used to restrict traffic
/// from specific IPs instead of all IPs. Note: These are considered
/// only if PublicNetworkAccess is enabled.
- /// The Sku pricing tier for the domain.
- /// Identity information for the
- /// resource.
- public Domain(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IList privateEndpointConnections = default(IList), string provisioningState = default(string), string endpoint = default(string), string inputSchema = default(string), InputSchemaMapping inputSchemaMapping = default(InputSchemaMapping), string metricResourceId = default(string), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList), ResourceSku sku = default(ResourceSku), IdentityInfo identity = default(IdentityInfo))
+ public Domain(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IList privateEndpointConnections = default(IList), string provisioningState = default(string), string endpoint = default(string), string inputSchema = default(string), InputSchemaMapping inputSchemaMapping = default(InputSchemaMapping), string metricResourceId = default(string), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList))
: base(location, id, name, type, tags)
{
PrivateEndpointConnections = privateEndpointConnections;
@@ -77,8 +74,6 @@ public Domain()
MetricResourceId = metricResourceId;
PublicNetworkAccess = publicNetworkAccess;
InboundIpRules = inboundIpRules;
- Sku = sku;
- Identity = identity;
CustomInit();
}
@@ -148,18 +143,6 @@ public Domain()
[JsonProperty(PropertyName = "properties.inboundIpRules")]
public IList InboundIpRules { get; set; }
- ///
- /// Gets or sets the Sku pricing tier for the domain.
- ///
- [JsonProperty(PropertyName = "sku")]
- public ResourceSku Sku { get; set; }
-
- ///
- /// Gets or sets identity information for the resource.
- ///
- [JsonProperty(PropertyName = "identity")]
- public IdentityInfo Identity { get; set; }
-
///
/// Validate the object.
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs
index 646ddc11716b..3ba6fef56bb8 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs
@@ -43,16 +43,11 @@ public DomainUpdateParameters()
/// This can be used to restrict traffic
/// from specific IPs instead of all IPs. Note: These are considered
/// only if PublicNetworkAccess is enabled.
- /// Identity information for the
- /// resource.
- /// The Sku pricing tier for the domain.
- public DomainUpdateParameters(IDictionary tags = default(IDictionary), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList), IdentityInfo identity = default(IdentityInfo), ResourceSku sku = default(ResourceSku))
+ public DomainUpdateParameters(IDictionary tags = default(IDictionary), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList))
{
Tags = tags;
PublicNetworkAccess = publicNetworkAccess;
InboundIpRules = inboundIpRules;
- Identity = identity;
- Sku = sku;
CustomInit();
}
@@ -86,17 +81,5 @@ public DomainUpdateParameters()
[JsonProperty(PropertyName = "properties.inboundIpRules")]
public IList InboundIpRules { get; set; }
- ///
- /// Gets or sets identity information for the resource.
- ///
- [JsonProperty(PropertyName = "identity")]
- public IdentityInfo Identity { get; set; }
-
- ///
- /// Gets or sets the Sku pricing tier for the domain.
- ///
- [JsonProperty(PropertyName = "sku")]
- public ResourceSku Sku { get; set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs
deleted file mode 100644
index 895464b8b901..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Dynamic delivery attribute mapping details.
- ///
- [Newtonsoft.Json.JsonObject("Dynamic")]
- [Rest.Serialization.JsonTransformation]
- public partial class DynamicDeliveryAttributeMapping : DeliveryAttributeMapping
- {
- ///
- /// Initializes a new instance of the DynamicDeliveryAttributeMapping
- /// class.
- ///
- public DynamicDeliveryAttributeMapping()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DynamicDeliveryAttributeMapping
- /// class.
- ///
- /// Name of the delivery attribute or
- /// header.
- /// JSON path in the event which contains
- /// attribute value.
- public DynamicDeliveryAttributeMapping(string name = default(string), string sourceField = default(string))
- : base(name)
- {
- SourceField = sourceField;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets JSON path in the event which contains attribute value.
- ///
- [JsonProperty(PropertyName = "properties.sourceField")]
- public string SourceField { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs
deleted file mode 100644
index 8d27a3aa7bb3..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs
+++ /dev/null
@@ -1,143 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Event Channel.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class EventChannel : Resource
- {
- ///
- /// Initializes a new instance of the EventChannel class.
- ///
- public EventChannel()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannel class.
- ///
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource.
- /// Type of the resource.
- /// Source of the event channel. This represents a
- /// unique resource in the partner's resource model.
- /// Represents the destination of an event
- /// channel.
- /// Provisioning state of the event
- /// channel. Possible values include: 'Creating', 'Updating',
- /// 'Deleting', 'Succeeded', 'Canceled', 'Failed'
- /// The readiness state of the
- /// corresponding partner topic. Possible values include:
- /// 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser',
- /// 'DeletedByUser'
- /// Expiration time of
- /// the event channel. If this timer expires while the corresponding
- /// partner topic is never activated,
- /// the event channel and corresponding partner topic are
- /// deleted.
- /// Information about the filter for the event
- /// channel.
- /// Friendly description
- /// about the topic. This can be set by the publisher/partner to show
- /// custom description for the customer partner topic.
- /// This will be helpful to remove any ambiguity of the origin of
- /// creation of the partner topic for the customer.
- /// The system metadata relating to this
- /// resource.
- public EventChannel(string id = default(string), string name = default(string), string type = default(string), EventChannelSource source = default(EventChannelSource), EventChannelDestination destination = default(EventChannelDestination), string provisioningState = default(string), string partnerTopicReadinessState = default(string), System.DateTime? expirationTimeIfNotActivatedUtc = default(System.DateTime?), EventChannelFilter filter = default(EventChannelFilter), string partnerTopicFriendlyDescription = default(string), SystemData systemData = default(SystemData))
- : base(id, name, type)
- {
- Source = source;
- Destination = destination;
- ProvisioningState = provisioningState;
- PartnerTopicReadinessState = partnerTopicReadinessState;
- ExpirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
- Filter = filter;
- PartnerTopicFriendlyDescription = partnerTopicFriendlyDescription;
- SystemData = systemData;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets source of the event channel. This represents a unique
- /// resource in the partner's resource model.
- ///
- [JsonProperty(PropertyName = "properties.source")]
- public EventChannelSource Source { get; set; }
-
- ///
- /// Gets or sets represents the destination of an event channel.
- ///
- [JsonProperty(PropertyName = "properties.destination")]
- public EventChannelDestination Destination { get; set; }
-
- ///
- /// Gets provisioning state of the event channel. Possible values
- /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
- /// 'Canceled', 'Failed'
- ///
- [JsonProperty(PropertyName = "properties.provisioningState")]
- public string ProvisioningState { get; private set; }
-
- ///
- /// Gets the readiness state of the corresponding partner topic.
- /// Possible values include: 'NotActivatedByUserYet',
- /// 'ActivatedByUser', 'DeactivatedByUser', 'DeletedByUser'
- ///
- [JsonProperty(PropertyName = "properties.partnerTopicReadinessState")]
- public string PartnerTopicReadinessState { get; private set; }
-
- ///
- /// Gets or sets expiration time of the event channel. If this timer
- /// expires while the corresponding partner topic is never activated,
- /// the event channel and corresponding partner topic are deleted.
- ///
- [JsonProperty(PropertyName = "properties.expirationTimeIfNotActivatedUtc")]
- public System.DateTime? ExpirationTimeIfNotActivatedUtc { get; set; }
-
- ///
- /// Gets or sets information about the filter for the event channel.
- ///
- [JsonProperty(PropertyName = "properties.filter")]
- public EventChannelFilter Filter { get; set; }
-
- ///
- /// Gets or sets friendly description about the topic. This can be set
- /// by the publisher/partner to show custom description for the
- /// customer partner topic.
- /// This will be helpful to remove any ambiguity of the origin of
- /// creation of the partner topic for the customer.
- ///
- [JsonProperty(PropertyName = "properties.partnerTopicFriendlyDescription")]
- public string PartnerTopicFriendlyDescription { get; set; }
-
- ///
- /// Gets the system metadata relating to this resource.
- ///
- [JsonProperty(PropertyName = "systemData")]
- public SystemData SystemData { get; private set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs
deleted file mode 100644
index e3b559e9d200..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Properties of the destination of an event channel.
- ///
- public partial class EventChannelDestination
- {
- ///
- /// Initializes a new instance of the EventChannelDestination class.
- ///
- public EventChannelDestination()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannelDestination class.
- ///
- /// Azure subscription ID of the
- /// customer creating the event channel. The partner topic
- /// associated with the event channel will be created under this Azure
- /// subscription.
- /// Azure Resource Group of the customer
- /// creating the event channel. The partner topic
- /// associated with the event channel will be created under this
- /// resource group.
- /// Name of the partner topic associated
- /// with the event channel.
- public EventChannelDestination(string azureSubscriptionId = default(string), string resourceGroup = default(string), string partnerTopicName = default(string))
- {
- AzureSubscriptionId = azureSubscriptionId;
- ResourceGroup = resourceGroup;
- PartnerTopicName = partnerTopicName;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets azure subscription ID of the customer creating the
- /// event channel. The partner topic
- /// associated with the event channel will be created under this Azure
- /// subscription.
- ///
- [JsonProperty(PropertyName = "azureSubscriptionId")]
- public string AzureSubscriptionId { get; set; }
-
- ///
- /// Gets or sets azure Resource Group of the customer creating the
- /// event channel. The partner topic
- /// associated with the event channel will be created under this
- /// resource group.
- ///
- [JsonProperty(PropertyName = "resourceGroup")]
- public string ResourceGroup { get; set; }
-
- ///
- /// Gets or sets name of the partner topic associated with the event
- /// channel.
- ///
- [JsonProperty(PropertyName = "partnerTopicName")]
- public string PartnerTopicName { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs
deleted file mode 100644
index 7c4f32d884b5..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Filter for the Event Channel.
- ///
- public partial class EventChannelFilter
- {
- ///
- /// Initializes a new instance of the EventChannelFilter class.
- ///
- public EventChannelFilter()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannelFilter class.
- ///
- /// Allows advanced
- /// filters to be evaluated against an array of values instead of
- /// expecting a singular value.
- /// An array of advanced filters that are
- /// used for filtering event channels.
- public EventChannelFilter(bool? enableAdvancedFilteringOnArrays = default(bool?), IList advancedFilters = default(IList))
- {
- EnableAdvancedFilteringOnArrays = enableAdvancedFilteringOnArrays;
- AdvancedFilters = advancedFilters;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets allows advanced filters to be evaluated against an
- /// array of values instead of expecting a singular value.
- ///
- [JsonProperty(PropertyName = "enableAdvancedFilteringOnArrays")]
- public bool? EnableAdvancedFilteringOnArrays { get; set; }
-
- ///
- /// Gets or sets an array of advanced filters that are used for
- /// filtering event channels.
- ///
- [JsonProperty(PropertyName = "advancedFilters")]
- public IList AdvancedFilters { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs
deleted file mode 100644
index 0583d8001a61..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for EventChannelProvisioningState.
- ///
- public static class EventChannelProvisioningState
- {
- public const string Creating = "Creating";
- public const string Updating = "Updating";
- public const string Deleting = "Deleting";
- public const string Succeeded = "Succeeded";
- public const string Canceled = "Canceled";
- public const string Failed = "Failed";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs
deleted file mode 100644
index 0d498701f6ff..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Properties of the source of an event channel.
- ///
- public partial class EventChannelSource
- {
- ///
- /// Initializes a new instance of the EventChannelSource class.
- ///
- public EventChannelSource()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannelSource class.
- ///
- /// The identifier of the resource that's the
- /// source of the events.
- /// This represents a unique resource in the partner's resource
- /// model.
- public EventChannelSource(string source = default(string))
- {
- Source = source;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the identifier of the resource that's the source of
- /// the events.
- /// This represents a unique resource in the partner's resource model.
- ///
- [JsonProperty(PropertyName = "source")]
- public string Source { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs
index 4b6f88cd679e..316004562aea 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventHubEventSubscriptionDestination.cs
@@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.EventGrid.Models
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
using System.Linq;
///
@@ -40,12 +38,9 @@ public EventHubEventSubscriptionDestination()
/// The Azure Resource Id that represents the
/// endpoint of an Event Hub destination of an event
/// subscription.
- /// Delivery attribute
- /// details.
- public EventHubEventSubscriptionDestination(string resourceId = default(string), IList deliveryAttributeMappings = default(IList))
+ public EventHubEventSubscriptionDestination(string resourceId = default(string))
{
ResourceId = resourceId;
- DeliveryAttributeMappings = deliveryAttributeMappings;
CustomInit();
}
@@ -61,11 +56,5 @@ public EventHubEventSubscriptionDestination()
[JsonProperty(PropertyName = "properties.resourceId")]
public string ResourceId { get; set; }
- ///
- /// Gets or sets delivery attribute details.
- ///
- [JsonProperty(PropertyName = "properties.deliveryAttributeMappings")]
- public IList DeliveryAttributeMappings { get; set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs
index d27417e28e14..2b2f7d2e57ff 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs
@@ -45,15 +45,7 @@ public EventSubscription()
/// 'Deleting', 'Succeeded', 'Canceled', 'Failed',
/// 'AwaitingManualAction'
/// Information about the destination where
- /// events have to be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- /// Information about the
- /// destination where events have to be delivered for the event
- /// subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
+ /// events have to be delivered for the event subscription.
/// Information about the filter for the event
/// subscription.
/// List of user defined labels.
@@ -65,35 +57,20 @@ public EventSubscription()
/// The retry policy for events. This can be
/// used to configure maximum number of delivery attempts and time to
/// live for events.
- /// The dead letter destination of
- /// the event subscription. Any event that cannot be delivered to its'
- /// destination is sent to the dead letter destination.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- /// The dead letter
- /// destination of the event subscription. Any event that cannot be
- /// delivered to its' destination is sent to the dead letter
- /// destination.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- /// The system metadata relating to this
- /// resource.
- public EventSubscription(string id = default(string), string name = default(string), string type = default(string), string topic = default(string), string provisioningState = default(string), EventSubscriptionDestination destination = default(EventSubscriptionDestination), DeliveryWithResourceIdentity deliveryWithResourceIdentity = default(DeliveryWithResourceIdentity), EventSubscriptionFilter filter = default(EventSubscriptionFilter), IList labels = default(IList), System.DateTime? expirationTimeUtc = default(System.DateTime?), string eventDeliverySchema = default(string), RetryPolicy retryPolicy = default(RetryPolicy), DeadLetterDestination deadLetterDestination = default(DeadLetterDestination), DeadLetterWithResourceIdentity deadLetterWithResourceIdentity = default(DeadLetterWithResourceIdentity), SystemData systemData = default(SystemData))
+ /// The DeadLetter destination of
+ /// the event subscription.
+ public EventSubscription(string id = default(string), string name = default(string), string type = default(string), string topic = default(string), string provisioningState = default(string), EventSubscriptionDestination destination = default(EventSubscriptionDestination), EventSubscriptionFilter filter = default(EventSubscriptionFilter), IList labels = default(IList), System.DateTime? expirationTimeUtc = default(System.DateTime?), string eventDeliverySchema = default(string), RetryPolicy retryPolicy = default(RetryPolicy), DeadLetterDestination deadLetterDestination = default(DeadLetterDestination))
: base(id, name, type)
{
Topic = topic;
ProvisioningState = provisioningState;
Destination = destination;
- DeliveryWithResourceIdentity = deliveryWithResourceIdentity;
Filter = filter;
Labels = labels;
ExpirationTimeUtc = expirationTimeUtc;
EventDeliverySchema = eventDeliverySchema;
RetryPolicy = retryPolicy;
DeadLetterDestination = deadLetterDestination;
- DeadLetterWithResourceIdentity = deadLetterWithResourceIdentity;
- SystemData = systemData;
CustomInit();
}
@@ -119,22 +96,10 @@ public EventSubscription()
///
/// Gets or sets information about the destination where events have to
/// be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
///
[JsonProperty(PropertyName = "properties.destination")]
public EventSubscriptionDestination Destination { get; set; }
- ///
- /// Gets or sets information about the destination where events have to
- /// be delivered for the event subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "properties.deliveryWithResourceIdentity")]
- public DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get; set; }
-
///
/// Gets or sets information about the filter for the event
/// subscription.
@@ -171,31 +136,10 @@ public EventSubscription()
public RetryPolicy RetryPolicy { get; set; }
///
- /// Gets or sets the dead letter destination of the event subscription.
- /// Any event that cannot be delivered to its' destination is sent to
- /// the dead letter destination.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
+ /// Gets or sets the DeadLetter destination of the event subscription.
///
[JsonProperty(PropertyName = "properties.deadLetterDestination")]
public DeadLetterDestination DeadLetterDestination { get; set; }
- ///
- /// Gets or sets the dead letter destination of the event subscription.
- /// Any event that cannot be delivered to its' destination is sent to
- /// the dead letter destination.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "properties.deadLetterWithResourceIdentity")]
- public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get; set; }
-
- ///
- /// Gets the system metadata relating to this resource.
- ///
- [JsonProperty(PropertyName = "systemData")]
- public SystemData SystemData { get; private set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs
index 394af8038969..f9ec84760c93 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionDestination.cs
@@ -10,11 +10,13 @@
namespace Microsoft.Azure.Management.EventGrid.Models
{
+ using Newtonsoft.Json;
using System.Linq;
///
/// Information about the destination for an event subscription.
///
+ [Newtonsoft.Json.JsonObject("EventSubscriptionDestination")]
public partial class EventSubscriptionDestination
{
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs
index b1df539479e4..6dfffd825501 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionFilter.cs
@@ -45,18 +45,14 @@ public EventSubscriptionFilter()
/// Specifies if the
/// SubjectBeginsWith and SubjectEndsWith properties of the filter
/// should be compared in a case sensitive manner.
- /// Allows advanced
- /// filters to be evaluated against an array of values instead of
- /// expecting a singular value.
/// An array of advanced filters that are
/// used for filtering event subscriptions.
- public EventSubscriptionFilter(string subjectBeginsWith = default(string), string subjectEndsWith = default(string), IList includedEventTypes = default(IList), bool? isSubjectCaseSensitive = default(bool?), bool? enableAdvancedFilteringOnArrays = default(bool?), IList advancedFilters = default(IList))
+ public EventSubscriptionFilter(string subjectBeginsWith = default(string), string subjectEndsWith = default(string), IList includedEventTypes = default(IList), bool? isSubjectCaseSensitive = default(bool?), IList advancedFilters = default(IList))
{
SubjectBeginsWith = subjectBeginsWith;
SubjectEndsWith = subjectEndsWith;
IncludedEventTypes = includedEventTypes;
IsSubjectCaseSensitive = isSubjectCaseSensitive;
- EnableAdvancedFilteringOnArrays = enableAdvancedFilteringOnArrays;
AdvancedFilters = advancedFilters;
CustomInit();
}
@@ -99,13 +95,6 @@ public EventSubscriptionFilter()
[JsonProperty(PropertyName = "isSubjectCaseSensitive")]
public bool? IsSubjectCaseSensitive { get; set; }
- ///
- /// Gets or sets allows advanced filters to be evaluated against an
- /// array of values instead of expecting a singular value.
- ///
- [JsonProperty(PropertyName = "enableAdvancedFilteringOnArrays")]
- public bool? EnableAdvancedFilteringOnArrays { get; set; }
-
///
/// Gets or sets an array of advanced filters that are used for
/// filtering event subscriptions.
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs
deleted file mode 100644
index 84aa816df9c1..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-//