diff --git a/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt b/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
index 280b0cc2ccca..ff65bb2e2f11 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=E:\build2020\net1\azure-sdk-for-net\sdk
-2020-06-03 00:08:27 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=C:\github\azure-sdk-for-net\sdk
+2021-02-12 19:51:40 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: e3e0fff3be9befda4fd2cc18ee355b88b024fac7
+Commit: a1eee0489c374782a934ec1f093abd16fa7718ca
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 49307dfe0967..f1a1e06eb794 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-06-01;
+ EventGrid_2020-10-15-preview;
$(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 993d2911b597..cc535b5af9bd 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
@@ -1,5 +1,14 @@
# 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 a42d79d44a9e..e7e229b31377 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 15
-VisualStudioVersion = 15.0.27130.2020
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31005.135
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
new file mode 100644
index 000000000000..7e3c982312e8
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs
@@ -0,0 +1,1098 @@
+//
+// 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
new file mode 100644
index 000000000000..69bb2a0d215e
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs
@@ -0,0 +1,347 @@
+//
+// 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 50170cac8a45..7626214c6b86 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
@@ -86,20 +86,45 @@ 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 ITopicsOperations.
+ /// Gets the IPartnerNamespacesOperations.
///
- public virtual ITopicsOperations Topics { get; private set; }
+ public virtual IPartnerNamespacesOperations PartnerNamespaces { get; private set; }
+
+ ///
+ /// Gets the IPartnerRegistrationsOperations.
+ ///
+ public virtual IPartnerRegistrationsOperations PartnerRegistrations { get; private set; }
+
+ ///
+ /// Gets the IPartnerTopicsOperations.
+ ///
+ public virtual IPartnerTopicsOperations PartnerTopics { get; private set; }
///
/// Gets the IPrivateEndpointConnectionsOperations.
@@ -111,6 +136,21 @@ 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.
///
@@ -359,14 +399,22 @@ 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);
- Topics = new TopicsOperations(this);
+ PartnerNamespaces = new PartnerNamespacesOperations(this);
+ PartnerRegistrations = new PartnerRegistrationsOperations(this);
+ PartnerTopics = new PartnerTopicsOperations(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-06-01";
+ ApiVersion = "2020-10-15-preview";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -398,12 +446,14 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("inputSchemaMappingType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("inputSchemaMappingType"));
- 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("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 c61670e7cbf5..87b0edcf05ee 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperations.cs
@@ -2804,6 +2804,209 @@ 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 cbb1bf86c4d0..502da598df1d 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperationsExtensions.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventSubscriptionsOperationsExtensions.cs
@@ -1122,6 +1122,70 @@ 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
new file mode 100644
index 000000000000..30b0c63530ff
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs
@@ -0,0 +1,246 @@
+//
+// 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
new file mode 100644
index 000000000000..16616d14a956
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs
@@ -0,0 +1,79 @@
+//
+// 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
new file mode 100644
index 000000000000..e15cbd6411c7
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs
@@ -0,0 +1,218 @@
+//
+// 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 b45a7ced954a..e36aca2611ad 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
@@ -81,20 +81,45 @@ 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 ITopicsOperations.
+ /// Gets the IPartnerNamespacesOperations.
///
- ITopicsOperations Topics { get; }
+ IPartnerNamespacesOperations PartnerNamespaces { get; }
+
+ ///
+ /// Gets the IPartnerRegistrationsOperations.
+ ///
+ IPartnerRegistrationsOperations PartnerRegistrations { get; }
+
+ ///
+ /// Gets the IPartnerTopicsOperations.
+ ///
+ IPartnerTopicsOperations PartnerTopics { get; }
///
/// Gets the IPrivateEndpointConnectionsOperations.
@@ -106,6 +131,21 @@ 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 7aa35fafa57a..16d48daec43a 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventSubscriptionsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventSubscriptionsOperations.cs
@@ -674,6 +674,44 @@ 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
new file mode 100644
index 000000000000..c6791881310b
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs
@@ -0,0 +1,59 @@
+//
+// 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
new file mode 100644
index 000000000000..eb9e3312cbb2
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs
@@ -0,0 +1,421 @@
+//
+// 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
new file mode 100644
index 000000000000..f813ded402d3
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs
@@ -0,0 +1,293 @@
+//
+// 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
new file mode 100644
index 000000000000..e5baba1ca7ea
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs
@@ -0,0 +1,408 @@
+//
+// 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
new file mode 100644
index 000000000000..f4c8f3eddaf8
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs
@@ -0,0 +1,322 @@
+//
+// 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
new file mode 100644
index 000000000000..f4610328eca7
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs
@@ -0,0 +1,406 @@
+//
+// 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
new file mode 100644
index 000000000000..cb157fe68a18
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs
@@ -0,0 +1,362 @@
+//
+// 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 7370dffe508b..9e0fe7764146 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ITopicsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ITopicsOperations.cs
@@ -398,6 +398,37 @@ 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 c2fe81ab1c01..371d80a647b3 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,7 +21,6 @@ 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 f4565316b35f..a5bd1835bdfd 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,6 +13,8 @@ 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;
///
@@ -43,11 +45,14 @@ public AzureFunctionEventSubscriptionDestination()
/// batch.
/// Preferred batch size in
/// Kilobytes.
- public AzureFunctionEventSubscriptionDestination(string resourceId = default(string), int? maxEventsPerBatch = default(int?), int? preferredBatchSizeInKilobytes = default(int?))
+ /// Delivery attribute
+ /// details.
+ public AzureFunctionEventSubscriptionDestination(string resourceId = default(string), int? maxEventsPerBatch = default(int?), int? preferredBatchSizeInKilobytes = default(int?), IList deliveryAttributeMappings = default(IList))
{
ResourceId = resourceId;
MaxEventsPerBatch = maxEventsPerBatch;
PreferredBatchSizeInKilobytes = preferredBatchSizeInKilobytes;
+ DeliveryAttributeMappings = deliveryAttributeMappings;
CustomInit();
}
@@ -75,5 +80,11 @@ 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
new file mode 100644
index 000000000000..c319250ec5c5
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/CreatedByType.cs
@@ -0,0 +1,24 @@
+//
+// 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 e6ae3ec7e7e4..ba2339e8ee02 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,7 +10,6 @@
namespace Microsoft.Azure.Management.EventGrid.Models
{
- using Newtonsoft.Json;
using System.Linq;
///
@@ -20,7 +19,6 @@ 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
new file mode 100644
index 000000000000..eeb484d8e462
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs
@@ -0,0 +1,71 @@
+//
+// 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
new file mode 100644
index 000000000000..fdbad339b338
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeListResult.cs
@@ -0,0 +1,56 @@
+//
+// 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
new file mode 100644
index 000000000000..2ee4e40e7bb6
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryAttributeMapping.cs
@@ -0,0 +1,52 @@
+//
+// 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
new file mode 100644
index 000000000000..54d916608d5f
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs
@@ -0,0 +1,69 @@
+//
+// 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 47b3e7468044..585a500079b7 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,7 +63,10 @@ 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.
- 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))
+ /// 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))
: base(location, id, name, type, tags)
{
PrivateEndpointConnections = privateEndpointConnections;
@@ -74,6 +77,8 @@ public Domain()
MetricResourceId = metricResourceId;
PublicNetworkAccess = publicNetworkAccess;
InboundIpRules = inboundIpRules;
+ Sku = sku;
+ Identity = identity;
CustomInit();
}
@@ -143,6 +148,18 @@ 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 3ba6fef56bb8..646ddc11716b 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,11 +43,16 @@ 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.
- public DomainUpdateParameters(IDictionary tags = default(IDictionary), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList))
+ /// 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))
{
Tags = tags;
PublicNetworkAccess = publicNetworkAccess;
InboundIpRules = inboundIpRules;
+ Identity = identity;
+ Sku = sku;
CustomInit();
}
@@ -81,5 +86,17 @@ 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
new file mode 100644
index 000000000000..895464b8b901
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DynamicDeliveryAttributeMapping.cs
@@ -0,0 +1,61 @@
+//
+// 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
new file mode 100644
index 000000000000..8d27a3aa7bb3
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs
@@ -0,0 +1,143 @@
+//
+// 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
new file mode 100644
index 000000000000..e3b559e9d200
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs
@@ -0,0 +1,81 @@
+//
+// 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
new file mode 100644
index 000000000000..7c4f32d884b5
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs
@@ -0,0 +1,66 @@
+//
+// 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
new file mode 100644
index 000000000000..0583d8001a61
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs
@@ -0,0 +1,26 @@
+//
+// 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
new file mode 100644
index 000000000000..0d498701f6ff
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs
@@ -0,0 +1,56 @@
+//
+// 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 316004562aea..4b6f88cd679e 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,6 +13,8 @@ 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;
///
@@ -38,9 +40,12 @@ public EventHubEventSubscriptionDestination()
/// The Azure Resource Id that represents the
/// endpoint of an Event Hub destination of an event
/// subscription.
- public EventHubEventSubscriptionDestination(string resourceId = default(string))
+ /// Delivery attribute
+ /// details.
+ public EventHubEventSubscriptionDestination(string resourceId = default(string), IList deliveryAttributeMappings = default(IList))
{
ResourceId = resourceId;
+ DeliveryAttributeMappings = deliveryAttributeMappings;
CustomInit();
}
@@ -56,5 +61,11 @@ 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 2b2f7d2e57ff..d27417e28e14 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,7 +45,15 @@ public EventSubscription()
/// 'Deleting', 'Succeeded', 'Canceled', 'Failed',
/// 'AwaitingManualAction'
/// Information about the destination where
- /// events have to be delivered for the event subscription.
+ /// 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.
/// Information about the filter for the event
/// subscription.
/// List of user defined labels.
@@ -57,20 +65,35 @@ 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 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))
+ /// 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))
: 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();
}
@@ -96,10 +119,22 @@ 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.
@@ -136,10 +171,31 @@ public EventSubscription()
public RetryPolicy RetryPolicy { get; set; }
///
- /// Gets or sets the DeadLetter destination of the event subscription.
+ /// 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.
///
[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 f9ec84760c93..394af8038969 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,13 +10,11 @@
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 6dfffd825501..b1df539479e4 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,14 +45,18 @@ 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?), IList advancedFilters = default(IList))
+ 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))
{
SubjectBeginsWith = subjectBeginsWith;
SubjectEndsWith = subjectEndsWith;
IncludedEventTypes = includedEventTypes;
IsSubjectCaseSensitive = isSubjectCaseSensitive;
+ EnableAdvancedFilteringOnArrays = enableAdvancedFilteringOnArrays;
AdvancedFilters = advancedFilters;
CustomInit();
}
@@ -95,6 +99,13 @@ 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
new file mode 100644
index 000000000000..84aa816df9c1
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs
@@ -0,0 +1,68 @@
+//