diff --git a/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt b/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
index 8b95fdbd18f5..280b0cc2ccca 100644
--- a/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/eventgrid_resource-manager.txt
@@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\build2020\sdk1\azure-sdk-for-net\sdk
-2020-05-14 09:27:42 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\build2020\net1\azure-sdk-for-net\sdk
+2020-06-03 00:08:27 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: 2bf9a22121443b6538e42bda724f3aa372798833
+Commit: e3e0fff3be9befda4fd2cc18ee355b88b024fac7
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props
index 0b25c18d785c..49307dfe0967 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/AzSdk.RP.props
@@ -1,7 +1,7 @@
- EventGrid_2020-04-01-preview;
+ EventGrid_2020-06-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
new file mode 100644
index 000000000000..993d2911b597
--- /dev/null
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/CHANGELOG.md
@@ -0,0 +1,97 @@
+# Release History
+
+## 6.0.0 (2020-06)
+- Add support to new GA service API version 2020-06-01.
+- The new GA'ed features include:
+ * Event delivery schema,
+ * Input mapping,
+ * Custom input schema event delivery schema,
+ * Cloud event V10 schema,
+ * Service bus topic as destination,
+ * Azure function as destination,
+ * Webhook batching,
+ * Secure webhook (AAD support),
+ * ImmutableId support, IpFiltering, and
+ * Private Link.
+- Release version 5.3.2-preview still corresponds to latest preview API version 2020-04-01-preview and it includes all the GA'ed features in version 6.0.0 as well additional features that are still in preview. These preview features include:
+ * Partner topic,
+ * Tracked system topic,
+ * Sku, and
+ * MSI support.
+
+## 5.3.2-preview (2020-05)
+- This include additional bug fixes to enhance quality.
+- As version 5.3.1-preview, this release corresponds to the 2020-04-01-Preview API version which includes the following new functionalities:
+ * Support for IP Filtering when publishing events to Domains and Topics,
+ * Partner Topics,
+ * Tracked Resource System Topics,
+ * Sku,
+ * MSI, and
+ * Private Link support.
+
+## 5.3.1-preview (2020-04)
+- This include various bug fixes to enhance quality.
+- As version 5.3.0-preview, this release corresponds to the 2020-04-01-Preview API version which includes the following new functionalities:
+ * Support for IP Filtering when publishing events to Domains and Topics,
+ * Partner Topics,
+ * Tracked Resource System Topics,
+ * Sku,
+ * MSI, and
+ * Private Link support.
+
+## 5.3.0-preview (2020-03)
+- We introduce new features on top of features already added in verion 5.2.0-preview.
+- As version 5.2.0-preview, this release corresponds to the 2020-04-01-Preview API version.
+- It adds supports to the following new functionalities:
+ * Support for IP Filtering when publishing events to Domains and Topics,
+ * Partner Topics,
+ * Tracked Resource System Topics,
+ * Sku,
+ * MSI, and
+ * Private Link support.
+
+## 5.2.0-preview (2020-01)
+- This release corresponds to the 2020-04-01-Preview API version.
+- It adds supports to the following new functionality:
+ * Support for IP Filtering when publishing events to Domains and Topics,
+
+## 5.0.0 (2019-05)
+- This release corresponds to the 2019-06-01 API version.
+- It adds support to the following new functionalities:
+ * Domains,
+ * Pagination and search filter for resources list operations,
+ * Service Bus Queue as destination,
+ * Advanced filtering, and
+ * Disallows usage of ‘All’ with IncludedEventTypes."
+
+## 4.1.0-preview (2019-03)
+- This release corresponds to the 2019-02-01-preview API version.
+- It adds support to the following new functionalities:
+ * Pagination and search filter for resources list operations,
+ * Manual create/delete of domain topics
+ * Service Bus Queue as destination,
+ * Disallows usage of ‘All’ with IncludedEventTypes,
+
+## 4.0.0 (2018-12)
+- This corresponds to the 2019-01-01 stable API version.
+- It supports General Availability of the following functionalities related to event subscriptions:
+ * DeadLetter destination,
+ * Storage queue as destination,
+ * HybridConnection as destination,
+ * Manual handshake validation, and
+ * Ssupport for retry policies.
+- Features that are still in preview (such as Event Grid domains or advanced filters support) can still be accessed using the 3.0.1-preview version of the SDK."
+
+## 3.0.1-preview (2018-10)
+- Taking dependency on 10.0.3 version of Newtonsoft nuget package.
+
+## 3.0.0-preview (2018-10)
+- This is a preview SDK for the new features introduced in 2018-09-15-preview API version. - This includes support for:
+ * Domain and domain topics CRUD operation
+ * Introducing expiration date for event subscription,
+ Introducing advanced filtering for event subscription,
+- The stable version of the SDK targeting the 2018-01-01 API version continues to exist as version 1.3.0
+
+## 2.0.0-preview (2018-05)
+- This is a preview SDK for the new features introduced in 2018-05-01-preview API version.
+- The stable version of the SDK targeting the 2018-01-01 API version continues to exist as version 1.3.0.
\ No newline at end of file
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs
deleted file mode 100644
index 7e3c982312e8..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperations.cs
+++ /dev/null
@@ -1,1098 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// EventChannelsOperations operations.
- ///
- internal partial class EventChannelsOperations : IServiceOperations, IEventChannelsOperations
- {
- ///
- /// Initializes a new instance of the EventChannelsOperations class.
- ///
- ///
- /// Reference to the service client.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- internal EventChannelsOperations(EventGridManagementClient client)
- {
- if (client == null)
- {
- throw new System.ArgumentNullException("client");
- }
- Client = client;
- }
-
- ///
- /// Gets a reference to the EventGridManagementClient
- ///
- public EventGridManagementClient Client { get; private set; }
-
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (eventChannelName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("eventChannelName", eventChannelName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- _url = _url.Replace("{eventChannelName}", System.Uri.EscapeDataString(eventChannelName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (eventChannelName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelName");
- }
- if (eventChannelInfo == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelInfo");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("eventChannelName", eventChannelName);
- tracingParameters.Add("eventChannelInfo", eventChannelInfo);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- _url = _url.Replace("{eventChannelName}", System.Uri.EscapeDataString(eventChannelName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- if(eventChannelInfo != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(eventChannelInfo, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax. Filtering
- /// is permitted on the 'name' property only and with limited number of OData
- /// operations. These operations are: the 'contains' function as well as the
- /// following logical operations: not, and, or, eq (for equal), and ne (for not
- /// equal). No arithmetic operations are supported. The following is a valid
- /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
- /// The following is not a valid filter example: $filter=location eq 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation. Valid
- /// range for top parameter is 1 to 100. If not specified, the default number
- /// of results to be returned is 20 items per page.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListByPartnerNamespaceWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("filter", filter);
- tracingParameters.Add("top", top);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByPartnerNamespace", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (filter != null)
- {
- _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter)));
- }
- if (top != null)
- {
- _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"'))));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (Client.SubscriptionId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
- }
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (partnerNamespaceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "partnerNamespaceName");
- }
- if (eventChannelName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "eventChannelName");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("partnerNamespaceName", partnerNamespaceName);
- tracingParameters.Add("eventChannelName", eventChannelName);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}").ToString();
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{partnerNamespaceName}", System.Uri.EscapeDataString(partnerNamespaceName));
- _url = _url.Replace("{eventChannelName}", System.Uri.EscapeDataString(eventChannelName));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task>> ListByPartnerNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (nextPageLink == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("nextPageLink", nextPageLink);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByPartnerNamespaceNext", tracingParameters);
- }
- // Construct URL
- string _url = "{nextLink}";
- _url = _url.Replace("{nextLink}", nextPageLink);
- List _queryParameters = new List();
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse>();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs
deleted file mode 100644
index 69bb2a0d215e..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventChannelsOperationsExtensions.cs
+++ /dev/null
@@ -1,347 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for EventChannelsOperations.
- ///
- public static partial class EventChannelsOperationsExtensions
- {
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- public static EventChannel Get(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName)
- {
- return operations.GetAsync(resourceGroupName, partnerNamespaceName, eventChannelName).GetAwaiter().GetResult();
- }
-
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- public static EventChannel CreateOrUpdate(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo)
- {
- return operations.CreateOrUpdateAsync(resourceGroupName, partnerNamespaceName, eventChannelName, eventChannelInfo).GetAwaiter().GetResult();
- }
-
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified parameters.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task CreateOrUpdateAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, eventChannelInfo, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- public static void Delete(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName)
- {
- operations.DeleteAsync(resourceGroupName, partnerNamespaceName, eventChannelName).GetAwaiter().GetResult();
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax. Filtering
- /// is permitted on the 'name' property only and with limited number of OData
- /// operations. These operations are: the 'contains' function as well as the
- /// following logical operations: not, and, or, eq (for equal), and ne (for not
- /// equal). No arithmetic operations are supported. The following is a valid
- /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
- /// The following is not a valid filter example: $filter=location eq 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation. Valid
- /// range for top parameter is 1 to 100. If not specified, the default number
- /// of results to be returned is 20 items per page.
- ///
- public static IPage ListByPartnerNamespace(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?))
- {
- return operations.ListByPartnerNamespaceAsync(resourceGroupName, partnerNamespaceName, filter, top).GetAwaiter().GetResult();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax. Filtering
- /// is permitted on the 'name' property only and with limited number of OData
- /// operations. These operations are: the 'contains' function as well as the
- /// following logical operations: not, and, or, eq (for equal), and ne (for not
- /// equal). No arithmetic operations are supported. The following is a valid
- /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'.
- /// The following is not a valid filter example: $filter=location eq 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation. Valid
- /// range for top parameter is 1 to 100. If not specified, the default number
- /// of results to be returned is 20 items per page.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByPartnerNamespaceAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByPartnerNamespaceWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, filter, top, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- public static void BeginDelete(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName)
- {
- operations.BeginDeleteAsync(resourceGroupName, partnerNamespaceName, eventChannelName).GetAwaiter().GetResult();
- }
-
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task BeginDeleteAsync(this IEventChannelsOperations operations, string resourceGroupName, string partnerNamespaceName, string eventChannelName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, partnerNamespaceName, eventChannelName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- public static IPage ListByPartnerNamespaceNext(this IEventChannelsOperations operations, string nextPageLink)
- {
- return operations.ListByPartnerNamespaceNextAsync(nextPageLink).GetAwaiter().GetResult();
- }
-
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListByPartnerNamespaceNextAsync(this IEventChannelsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByPartnerNamespaceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
index 9a220916c078..50170cac8a45 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/EventGridManagementClient.cs
@@ -86,45 +86,20 @@ public partial class EventGridManagementClient : ServiceClient
public virtual IDomainTopicsOperations DomainTopics { get; private set; }
- ///
- /// Gets the IEventChannelsOperations.
- ///
- public virtual IEventChannelsOperations EventChannels { get; private set; }
-
///
/// Gets the IEventSubscriptionsOperations.
///
public virtual IEventSubscriptionsOperations EventSubscriptions { get; private set; }
- ///
- /// Gets the ISystemTopicEventSubscriptionsOperations.
- ///
- public virtual ISystemTopicEventSubscriptionsOperations SystemTopicEventSubscriptions { get; private set; }
-
- ///
- /// Gets the IPartnerTopicEventSubscriptionsOperations.
- ///
- public virtual IPartnerTopicEventSubscriptionsOperations PartnerTopicEventSubscriptions { get; private set; }
-
///
/// Gets the IOperations.
///
public virtual IOperations Operations { get; private set; }
///
- /// Gets the IPartnerNamespacesOperations.
- ///
- public virtual IPartnerNamespacesOperations PartnerNamespaces { get; private set; }
-
- ///
- /// Gets the IPartnerRegistrationsOperations.
- ///
- public virtual IPartnerRegistrationsOperations PartnerRegistrations { get; private set; }
-
- ///
- /// Gets the IPartnerTopicsOperations.
+ /// Gets the ITopicsOperations.
///
- public virtual IPartnerTopicsOperations PartnerTopics { get; private set; }
+ public virtual ITopicsOperations Topics { get; private set; }
///
/// Gets the IPrivateEndpointConnectionsOperations.
@@ -136,21 +111,6 @@ public partial class EventGridManagementClient : ServiceClient
public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; }
- ///
- /// Gets the ISystemTopicsOperations.
- ///
- public virtual ISystemTopicsOperations SystemTopics { get; private set; }
-
- ///
- /// Gets the ITopicsOperations.
- ///
- public virtual ITopicsOperations Topics { get; private set; }
-
- ///
- /// Gets the IExtensionTopicsOperations.
- ///
- public virtual IExtensionTopicsOperations ExtensionTopics { get; private set; }
-
///
/// Gets the ITopicTypesOperations.
///
@@ -399,22 +359,14 @@ private void Initialize()
{
Domains = new DomainsOperations(this);
DomainTopics = new DomainTopicsOperations(this);
- EventChannels = new EventChannelsOperations(this);
EventSubscriptions = new EventSubscriptionsOperations(this);
- SystemTopicEventSubscriptions = new SystemTopicEventSubscriptionsOperations(this);
- PartnerTopicEventSubscriptions = new PartnerTopicEventSubscriptionsOperations(this);
Operations = new Operations(this);
- PartnerNamespaces = new PartnerNamespacesOperations(this);
- PartnerRegistrations = new PartnerRegistrationsOperations(this);
- PartnerTopics = new PartnerTopicsOperations(this);
+ Topics = new TopicsOperations(this);
PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this);
PrivateLinkResources = new PrivateLinkResourcesOperations(this);
- SystemTopics = new SystemTopicsOperations(this);
- Topics = new TopicsOperations(this);
- ExtensionTopics = new ExtensionTopicsOperations(this);
TopicTypes = new TopicTypesOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2020-04-01-preview";
+ ApiVersion = "2020-06-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -446,10 +398,10 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("inputSchemaMappingType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("inputSchemaMappingType"));
- SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("operatorType"));
- DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("operatorType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("endpointType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("endpointType"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("operatorType"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("operatorType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("endpointType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("endpointType"));
CustomInitialize();
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs
deleted file mode 100644
index 30b0c63530ff..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperations.cs
+++ /dev/null
@@ -1,246 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// ExtensionTopicsOperations operations.
- ///
- internal partial class ExtensionTopicsOperations : IServiceOperations, IExtensionTopicsOperations
- {
- ///
- /// Initializes a new instance of the ExtensionTopicsOperations class.
- ///
- ///
- /// Reference to the service client.
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- internal ExtensionTopicsOperations(EventGridManagementClient client)
- {
- if (client == null)
- {
- throw new System.ArgumentNullException("client");
- }
- Client = client;
- }
-
- ///
- /// Gets a reference to the EventGridManagementClient
- ///
- public EventGridManagementClient Client { get; private set; }
-
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried. The
- /// scope can be a subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- ///
- /// Headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// A response object containing the response body and response headers.
- ///
- public async Task> GetWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- if (scope == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "scope");
- }
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
- // Tracing
- bool _shouldTrace = ServiceClientTracing.IsEnabled;
- string _invocationId = null;
- if (_shouldTrace)
- {
- _invocationId = ServiceClientTracing.NextInvocationId.ToString();
- Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("scope", scope);
- tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
- }
- // Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.EventGrid/extensionTopics/default").ToString();
- _url = _url.Replace("{scope}", System.Uri.EscapeDataString(scope));
- List _queryParameters = new List();
- if (Client.ApiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
- }
- if (_queryParameters.Count > 0)
- {
- _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
- }
- // Create HTTP transport objects
- var _httpRequest = new HttpRequestMessage();
- HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
- _httpRequest.RequestUri = new System.Uri(_url);
- // Set Headers
- if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
- {
- _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
- }
- if (Client.AcceptLanguage != null)
- {
- if (_httpRequest.Headers.Contains("accept-language"))
- {
- _httpRequest.Headers.Remove("accept-language");
- }
- _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
- }
-
-
- if (customHeaders != null)
- {
- foreach(var _header in customHeaders)
- {
- if (_httpRequest.Headers.Contains(_header.Key))
- {
- _httpRequest.Headers.Remove(_header.Key);
- }
- _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
- }
- }
-
- // Serialize Request
- string _requestContent = null;
- // Set Credentials
- if (Client.Credentials != null)
- {
- cancellationToken.ThrowIfCancellationRequested();
- await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- }
- // Send Request
- if (_shouldTrace)
- {
- ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
- }
- cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
- if (_shouldTrace)
- {
- ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
- }
- HttpStatusCode _statusCode = _httpResponse.StatusCode;
- cancellationToken.ThrowIfCancellationRequested();
- string _responseContent = null;
- if ((int)_statusCode != 200)
- {
- var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
- try
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- if (_errorBody != null)
- {
- ex = new CloudException(_errorBody.Message);
- ex.Body = _errorBody;
- }
- }
- catch (JsonException)
- {
- // Ignore the exception
- }
- ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
- ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Error(_invocationId, ex);
- }
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw ex;
- }
- // Create Result
- var _result = new AzureOperationResponse();
- _result.Request = _httpRequest;
- _result.Response = _httpResponse;
- if (_httpResponse.Headers.Contains("x-ms-request-id"))
- {
- _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
- }
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
- if (_shouldTrace)
- {
- ServiceClientTracing.Exit(_invocationId, _result);
- }
- return _result;
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs
deleted file mode 100644
index 16616d14a956..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ExtensionTopicsOperationsExtensions.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// Extension methods for ExtensionTopicsOperations.
- ///
- public static partial class ExtensionTopicsOperationsExtensions
- {
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried. The
- /// scope can be a subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- public static ExtensionTopic Get(this IExtensionTopicsOperations operations, string scope)
- {
- return operations.GetAsync(scope).GetAwaiter().GetResult();
- }
-
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried. The
- /// scope can be a subscription, or a resource group, or a top level resource
- /// belonging to a resource provider namespace. For example, use
- /// '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
- /// resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IExtensionTopicsOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs
deleted file mode 100644
index e15cbd6411c7..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventChannelsOperations.cs
+++ /dev/null
@@ -1,218 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// EventChannelsOperations operations.
- ///
- public partial interface IEventChannelsOperations
- {
- ///
- /// Get an event channel.
- ///
- ///
- /// Get properties of an event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create an event channel.
- ///
- ///
- /// Asynchronously creates a new event channel with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// EventChannel information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, EventChannel eventChannelInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerNamespaceWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event channel.
- ///
- ///
- /// Delete existing event channel.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Name of the event channel.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string eventChannelName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event channels.
- ///
- ///
- /// List all the event channels in a partner namespace.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
index e36aca2611ad..b45a7ced954a 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IEventGridManagementClient.cs
@@ -81,45 +81,20 @@ public partial interface IEventGridManagementClient : System.IDisposable
///
IDomainTopicsOperations DomainTopics { get; }
- ///
- /// Gets the IEventChannelsOperations.
- ///
- IEventChannelsOperations EventChannels { get; }
-
///
/// Gets the IEventSubscriptionsOperations.
///
IEventSubscriptionsOperations EventSubscriptions { get; }
- ///
- /// Gets the ISystemTopicEventSubscriptionsOperations.
- ///
- ISystemTopicEventSubscriptionsOperations SystemTopicEventSubscriptions { get; }
-
- ///
- /// Gets the IPartnerTopicEventSubscriptionsOperations.
- ///
- IPartnerTopicEventSubscriptionsOperations PartnerTopicEventSubscriptions { get; }
-
///
/// Gets the IOperations.
///
IOperations Operations { get; }
///
- /// Gets the IPartnerNamespacesOperations.
- ///
- IPartnerNamespacesOperations PartnerNamespaces { get; }
-
- ///
- /// Gets the IPartnerRegistrationsOperations.
- ///
- IPartnerRegistrationsOperations PartnerRegistrations { get; }
-
- ///
- /// Gets the IPartnerTopicsOperations.
+ /// Gets the ITopicsOperations.
///
- IPartnerTopicsOperations PartnerTopics { get; }
+ ITopicsOperations Topics { get; }
///
/// Gets the IPrivateEndpointConnectionsOperations.
@@ -131,21 +106,6 @@ public partial interface IEventGridManagementClient : System.IDisposable
///
IPrivateLinkResourcesOperations PrivateLinkResources { get; }
- ///
- /// Gets the ISystemTopicsOperations.
- ///
- ISystemTopicsOperations SystemTopics { get; }
-
- ///
- /// Gets the ITopicsOperations.
- ///
- ITopicsOperations Topics { get; }
-
- ///
- /// Gets the IExtensionTopicsOperations.
- ///
- IExtensionTopicsOperations ExtensionTopics { get; }
-
///
/// Gets the ITopicTypesOperations.
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs
deleted file mode 100644
index c6791881310b..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IExtensionTopicsOperations.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// ExtensionTopicsOperations operations.
- ///
- public partial interface IExtensionTopicsOperations
- {
- ///
- /// Get properties of an extension topic.
- ///
- ///
- /// Get the properties of an extension topic.
- ///
- ///
- /// The identifier of the resource to which extension topic is queried.
- /// The scope can be a subscription, or a resource group, or a top
- /// level resource belonging to a resource provider namespace. For
- /// example, use '/subscriptions/{subscriptionId}/' for a subscription,
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'
- /// for a resource group, and
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
- /// for Azure resource.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs
deleted file mode 100644
index eb9e3312cbb2..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerNamespacesOperations.cs
+++ /dev/null
@@ -1,421 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerNamespacesOperations operations.
- ///
- public partial interface IPartnerNamespacesOperations
- {
- ///
- /// Get a partner namespace.
- ///
- ///
- /// Get properties of a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a partner namespace.
- ///
- ///
- /// Asynchronously creates a new partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// PartnerNamespace information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, PartnerNamespace partnerNamespaceInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner namespace.
- ///
- ///
- /// Delete existing partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner namespace.
- ///
- ///
- /// Asynchronously updates a partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Tags of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under an Azure subscription.
- ///
- ///
- /// List all the partner namespaces under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under a resource group.
- ///
- ///
- /// List all the partner namespaces under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List keys for a partner namespace.
- ///
- ///
- /// List the two keys used to publish to a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> ListSharedAccessKeysWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Regenerate key for a partner namespace.
- ///
- ///
- /// Regenerate a shared access key for a partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Key name to regenerate (key1 or key2).
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, string keyName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a partner namespace.
- ///
- ///
- /// Asynchronously creates a new partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// PartnerNamespace information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, PartnerNamespace partnerNamespaceInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner namespace.
- ///
- ///
- /// Delete existing partner namespace.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner namespace.
- ///
- ///
- /// Asynchronously updates a partner namespace with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner namespace.
- ///
- ///
- /// Tags of the partner namespace.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerNamespaceName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under an Azure subscription.
- ///
- ///
- /// List all the partner namespaces under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner namespaces under a resource group.
- ///
- ///
- /// List all the partner namespaces under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs
deleted file mode 100644
index f813ded402d3..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerRegistrationsOperations.cs
+++ /dev/null
@@ -1,293 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerRegistrationsOperations operations.
- ///
- public partial interface IPartnerRegistrationsOperations
- {
- ///
- /// Get a partner registration.
- ///
- ///
- /// Gets a partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a partner registration.
- ///
- ///
- /// Creates a new partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// PartnerRegistration information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, PartnerRegistration partnerRegistrationInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner registration.
- ///
- ///
- /// Deletes a partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner registration.
- ///
- ///
- /// Updates a partner registration with the specified parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner registration.
- ///
- ///
- /// Partner registration update information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerRegistrationName, PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under an Azure subscription.
- ///
- ///
- /// List all the partner registrations under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under a resource group.
- ///
- ///
- /// List all the partner registrations under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List all available partners registrations.
- ///
- ///
- /// List all partners registrations.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under an Azure subscription.
- ///
- ///
- /// List all the partner registrations under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner registrations under a resource group.
- ///
- ///
- /// List all the partner registrations under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs
deleted file mode 100644
index cca41c983ec4..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicEventSubscriptionsOperations.cs
+++ /dev/null
@@ -1,373 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerTopicEventSubscriptionsOperations operations.
- ///
- public partial interface IPartnerTopicEventSubscriptionsOperations
- {
- ///
- /// Get an event subscription of a partner topic.
- ///
- ///
- /// Get an event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be found. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription of a partner topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription of a
- /// partner topic with the specified parameters. Existing event
- /// subscriptions will be updated with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get full URL of an event subscription of a partner topic.
- ///
- ///
- /// Get the full endpoint URL for an event subscription of a partner
- /// topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetFullUrlWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a partner topic.
- ///
- ///
- /// List event subscriptions that belong to a specific partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerTopicWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription of a partner topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription of a
- /// partner topic with the specified parameters. Existing event
- /// subscriptions will be updated with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// Delete an event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// Update event subscription of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a partner topic.
- ///
- ///
- /// List event subscriptions that belong to a specific partner topic.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByPartnerTopicNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs
deleted file mode 100644
index f4c8f3eddaf8..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPartnerTopicsOperations.cs
+++ /dev/null
@@ -1,322 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// PartnerTopicsOperations operations.
- ///
- public partial interface IPartnerTopicsOperations
- {
- ///
- /// Get a partner topic.
- ///
- ///
- /// Get properties of a partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner topic.
- ///
- ///
- /// Delete existing partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a partner topic.
- ///
- ///
- /// Asynchronously updates a partner topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// Tags of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, IDictionary tags = default(IDictionary), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under an Azure subscription.
- ///
- ///
- /// List all the partner topics under an Azure subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under a resource group.
- ///
- ///
- /// List all the partner topics under a resource group.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Activate a partner topic.
- ///
- ///
- /// Activate a newly created partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> ActivateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Deactivate a partner topic.
- ///
- ///
- /// Deactivate specific partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> DeactivateWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a partner topic.
- ///
- ///
- /// Delete existing partner topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the partner topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string partnerTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under an Azure subscription.
- ///
- ///
- /// List all the partner topics under an Azure subscription.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List partner topics under a resource group.
- ///
- ///
- /// List all the partner topics under a resource group.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPrivateEndpointConnectionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPrivateEndpointConnectionsOperations.cs
index b4101f850684..43246030c633 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPrivateEndpointConnectionsOperations.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/IPrivateEndpointConnectionsOperations.cs
@@ -34,7 +34,7 @@ public partial interface IPrivateEndpointConnectionsOperations
///
///
/// The type of the parent resource. This can be either \'topics\' or
- /// \'domains\'.
+ /// \'domains\'. Possible values include: 'topics', 'domains'
///
///
/// The name of the parent resource (namely, either, the topic name or
@@ -71,7 +71,7 @@ public partial interface IPrivateEndpointConnectionsOperations
///
///
/// The type of the parent resource. This can be either \'topics\' or
- /// \'domains\'.
+ /// \'domains\'. Possible values include: 'topics', 'domains'
///
///
/// The name of the parent resource (namely, either, the topic name or
@@ -111,7 +111,7 @@ public partial interface IPrivateEndpointConnectionsOperations
///
///
/// The type of the parent resource. This can be either \'topics\' or
- /// \'domains\'.
+ /// \'domains\'. Possible values include: 'topics', 'domains'
///
///
/// The name of the parent resource (namely, either, the topic name or
@@ -144,7 +144,7 @@ public partial interface IPrivateEndpointConnectionsOperations
///
///
/// The type of the parent resource. This can be either \'topics\' or
- /// \'domains\'.
+ /// \'domains\'. Possible values include: 'topics', 'domains'
///
///
/// The name of the parent resource (namely, either, the topic name or
@@ -194,7 +194,7 @@ public partial interface IPrivateEndpointConnectionsOperations
///
///
/// The type of the parent resource. This can be either \'topics\' or
- /// \'domains\'.
+ /// \'domains\'. Possible values include: 'topics', 'domains'
///
///
/// The name of the parent resource (namely, either, the topic name or
@@ -234,7 +234,7 @@ public partial interface IPrivateEndpointConnectionsOperations
///
///
/// The type of the parent resource. This can be either \'topics\' or
- /// \'domains\'.
+ /// \'domains\'. Possible values include: 'topics', 'domains'
///
///
/// The name of the parent resource (namely, either, the topic name or
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs
deleted file mode 100644
index a27356df6593..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicEventSubscriptionsOperations.cs
+++ /dev/null
@@ -1,373 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// SystemTopicEventSubscriptionsOperations operations.
- ///
- public partial interface ISystemTopicEventSubscriptionsOperations
- {
- ///
- /// Get an event subscription of a system topic.
- ///
- ///
- /// Get an event subscription.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription for a system topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription with the
- /// specified parameters. Existing event subscriptions will be updated
- /// with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Get full URL of an event subscription of a system topic
- ///
- ///
- /// Get the full endpoint URL for an event subscription of a system
- /// topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetFullUrlWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a system topic.
- ///
- ///
- /// List event subscriptions that belong to a specific system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The query used to filter the search results using OData syntax.
- /// Filtering is permitted on the 'name' property only and with limited
- /// number of OData operations. These operations are: the 'contains'
- /// function as well as the following logical operations: not, and, or,
- /// eq (for equal), and ne (for not equal). No arithmetic operations
- /// are supported. The following is a valid filter example:
- /// $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The
- /// following is not a valid filter example: $filter=location eq
- /// 'westus'.
- ///
- ///
- /// The number of results to return per page for the list operation.
- /// Valid range for top parameter is 1 to 100. If not specified, the
- /// default number of results to be returned is 20 items per page.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySystemTopicWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create or update an event subscription for a system topic.
- ///
- ///
- /// Asynchronously creates or updates an event subscription with the
- /// specified parameters. Existing event subscriptions will be updated
- /// with this API.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Event subscription properties containing the destination and filter
- /// information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscription eventSubscriptionInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// Delete an event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// Update event subscription of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Name of the event subscription to be created. Event subscription
- /// names must be between 3 and 100 characters in length and use
- /// alphanumeric letters only.
- ///
- ///
- /// Updated event subscription information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, string eventSubscriptionName, EventSubscriptionUpdateParameters eventSubscriptionUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// List event subscriptions of a system topic.
- ///
- ///
- /// List event subscriptions that belong to a specific system topic.
- ///
- ///
- /// The NextLink from the previous successful call to List operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySystemTopicNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs
deleted file mode 100644
index 83d06afec6c1..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/ISystemTopicsOperations.cs
+++ /dev/null
@@ -1,362 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Azure;
- using Models;
- using System.Collections;
- using System.Collections.Generic;
- using System.Threading;
- using System.Threading.Tasks;
-
- ///
- /// SystemTopicsOperations operations.
- ///
- public partial interface ISystemTopicsOperations
- {
- ///
- /// Get a system topic.
- ///
- ///
- /// Get properties of a system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Create a system topic.
- ///
- ///
- /// Asynchronously creates a new system topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// System Topic information.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, SystemTopic systemTopicInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Delete a system topic.
- ///
- ///
- /// Delete existing system topic.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Update a system topic.
- ///
- ///
- /// Asynchronously updates a system topic with the specified
- /// parameters.
- ///
- ///
- /// The name of the resource group within the user's subscription.
- ///
- ///
- /// Name of the system topic.
- ///
- ///
- /// Tags 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> UpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, IDictionary tags = default(IDictionary), 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.
- ///
- ///
- /// Tags 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> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string systemTopicName, IDictionary tags = default(IDictionary), 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/Models/DeadLetterWithResourceIdentity.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs
deleted file mode 100644
index eeb484d8e462..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeadLetterWithResourceIdentity.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Information about the deadletter destination with resource identity.
- ///
- public partial class DeadLetterWithResourceIdentity
- {
- ///
- /// Initializes a new instance of the DeadLetterWithResourceIdentity
- /// class.
- ///
- public DeadLetterWithResourceIdentity()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DeadLetterWithResourceIdentity
- /// class.
- ///
- /// The identity to use when dead-lettering
- /// events.
- /// Information about the
- /// destination where events have to be delivered for the event
- /// subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- public DeadLetterWithResourceIdentity(EventSubscriptionIdentity identity = default(EventSubscriptionIdentity), DeadLetterDestination deadLetterDestination = default(DeadLetterDestination))
- {
- Identity = identity;
- DeadLetterDestination = deadLetterDestination;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the identity to use when dead-lettering events.
- ///
- [JsonProperty(PropertyName = "identity")]
- public EventSubscriptionIdentity Identity { get; set; }
-
- ///
- /// Gets or sets information about the destination where events have to
- /// be delivered for the event subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "deadLetterDestination")]
- public DeadLetterDestination DeadLetterDestination { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs
deleted file mode 100644
index 54d916608d5f..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DeliveryWithResourceIdentity.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Information about the delivery for an event subscription with resource
- /// identity.
- ///
- public partial class DeliveryWithResourceIdentity
- {
- ///
- /// Initializes a new instance of the DeliveryWithResourceIdentity
- /// class.
- ///
- public DeliveryWithResourceIdentity()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the DeliveryWithResourceIdentity
- /// class.
- ///
- /// The identity to use when delivering
- /// events.
- /// Information about the destination where
- /// events have to be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- public DeliveryWithResourceIdentity(EventSubscriptionIdentity identity = default(EventSubscriptionIdentity), EventSubscriptionDestination destination = default(EventSubscriptionDestination))
- {
- Identity = identity;
- Destination = destination;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the identity to use when delivering events.
- ///
- [JsonProperty(PropertyName = "identity")]
- public EventSubscriptionIdentity Identity { get; set; }
-
- ///
- /// Gets or sets information about the destination where events have to
- /// be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "destination")]
- public EventSubscriptionDestination Destination { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs
index 0ed59c0eba95..47b3e7468044 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/Domain.cs
@@ -37,8 +37,8 @@ public Domain()
/// Location of the resource.
/// Fully qualified identifier of the
/// resource.
- /// Name of the resource
- /// Type of the resource
+ /// Name of the resource.
+ /// Type of the resource.
/// Tags of the resource.
/// List of private endpoint
/// connections.
@@ -63,10 +63,7 @@ public Domain()
/// This can be used to restrict traffic
/// from specific IPs instead of all IPs. Note: These are considered
/// only if PublicNetworkAccess is enabled.
- /// The Sku pricing tier for the domain.
- /// Identity information for the
- /// resource.
- public Domain(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IList privateEndpointConnections = default(IList), string provisioningState = default(string), string endpoint = default(string), string inputSchema = default(string), InputSchemaMapping inputSchemaMapping = default(InputSchemaMapping), string metricResourceId = default(string), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList), ResourceSku sku = default(ResourceSku), IdentityInfo identity = default(IdentityInfo))
+ public Domain(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IList privateEndpointConnections = default(IList), string provisioningState = default(string), string endpoint = default(string), string inputSchema = default(string), InputSchemaMapping inputSchemaMapping = default(InputSchemaMapping), string metricResourceId = default(string), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList))
: base(location, id, name, type, tags)
{
PrivateEndpointConnections = privateEndpointConnections;
@@ -77,8 +74,6 @@ public Domain()
MetricResourceId = metricResourceId;
PublicNetworkAccess = publicNetworkAccess;
InboundIpRules = inboundIpRules;
- Sku = sku;
- Identity = identity;
CustomInit();
}
@@ -148,18 +143,6 @@ public Domain()
[JsonProperty(PropertyName = "properties.inboundIpRules")]
public IList InboundIpRules { get; set; }
- ///
- /// Gets or sets the Sku pricing tier for the domain.
- ///
- [JsonProperty(PropertyName = "sku")]
- public ResourceSku Sku { get; set; }
-
- ///
- /// Gets or sets identity information for the resource.
- ///
- [JsonProperty(PropertyName = "identity")]
- public IdentityInfo Identity { get; set; }
-
///
/// Validate the object.
///
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainTopic.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainTopic.cs
index 7d71300bd171..9cd1287337f1 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainTopic.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainTopic.cs
@@ -34,8 +34,8 @@ public DomainTopic()
///
/// Fully qualified identifier of the
/// resource.
- /// Name of the resource
- /// Type of the resource
+ /// Name of the resource.
+ /// Type of the resource.
/// Provisioning state of the domain
/// topic. Possible values include: 'Creating', 'Updating', 'Deleting',
/// 'Succeeded', 'Canceled', 'Failed'
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs
index 646ddc11716b..3ba6fef56bb8 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/DomainUpdateParameters.cs
@@ -43,16 +43,11 @@ public DomainUpdateParameters()
/// This can be used to restrict traffic
/// from specific IPs instead of all IPs. Note: These are considered
/// only if PublicNetworkAccess is enabled.
- /// Identity information for the
- /// resource.
- /// The Sku pricing tier for the domain.
- public DomainUpdateParameters(IDictionary tags = default(IDictionary), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList), IdentityInfo identity = default(IdentityInfo), ResourceSku sku = default(ResourceSku))
+ public DomainUpdateParameters(IDictionary tags = default(IDictionary), string publicNetworkAccess = default(string), IList inboundIpRules = default(IList))
{
Tags = tags;
PublicNetworkAccess = publicNetworkAccess;
InboundIpRules = inboundIpRules;
- Identity = identity;
- Sku = sku;
CustomInit();
}
@@ -86,17 +81,5 @@ public DomainUpdateParameters()
[JsonProperty(PropertyName = "properties.inboundIpRules")]
public IList InboundIpRules { get; set; }
- ///
- /// Gets or sets identity information for the resource.
- ///
- [JsonProperty(PropertyName = "identity")]
- public IdentityInfo Identity { get; set; }
-
- ///
- /// Gets or sets the Sku pricing tier for the domain.
- ///
- [JsonProperty(PropertyName = "sku")]
- public ResourceSku Sku { get; set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs
deleted file mode 100644
index ad102d559d0b..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannel.cs
+++ /dev/null
@@ -1,134 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Event Channel.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class EventChannel : Resource
- {
- ///
- /// Initializes a new instance of the EventChannel class.
- ///
- public EventChannel()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannel class.
- ///
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource
- /// Type of the resource
- /// Source of the event channel. This represents a
- /// unique resource in the partner's resource model.
- /// Represents the destination of an event
- /// channel.
- /// Provisioning state of the event
- /// channel. Possible values include: 'Creating', 'Updating',
- /// 'Deleting', 'Succeeded', 'Canceled', 'Failed'
- /// The readiness state of the
- /// corresponding partner topic. Possible values include:
- /// 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser',
- /// 'DeletedByUser'
- /// Expiration time of
- /// the event channel. If this timer expires while the corresponding
- /// partner topic is never activated,
- /// the event channel and corresponding partner topic are
- /// deleted.
- /// Information about the filter for the event
- /// channel.
- /// Friendly description
- /// about the topic. This can be set by the publisher/partner to show
- /// custom description for the customer partner topic.
- /// This will be helpful to remove any ambiguity of the origin of
- /// creation of the partner topic for the customer.
- 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))
- : base(id, name, type)
- {
- Source = source;
- Destination = destination;
- ProvisioningState = provisioningState;
- PartnerTopicReadinessState = partnerTopicReadinessState;
- ExpirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
- Filter = filter;
- PartnerTopicFriendlyDescription = partnerTopicFriendlyDescription;
- 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; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs
deleted file mode 100644
index e3b559e9d200..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelDestination.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Properties of the destination of an event channel.
- ///
- public partial class EventChannelDestination
- {
- ///
- /// Initializes a new instance of the EventChannelDestination class.
- ///
- public EventChannelDestination()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannelDestination class.
- ///
- /// Azure subscription ID of the
- /// customer creating the event channel. The partner topic
- /// associated with the event channel will be created under this Azure
- /// subscription.
- /// Azure Resource Group of the customer
- /// creating the event channel. The partner topic
- /// associated with the event channel will be created under this
- /// resource group.
- /// Name of the partner topic associated
- /// with the event channel.
- public EventChannelDestination(string azureSubscriptionId = default(string), string resourceGroup = default(string), string partnerTopicName = default(string))
- {
- AzureSubscriptionId = azureSubscriptionId;
- ResourceGroup = resourceGroup;
- PartnerTopicName = partnerTopicName;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets azure subscription ID of the customer creating the
- /// event channel. The partner topic
- /// associated with the event channel will be created under this Azure
- /// subscription.
- ///
- [JsonProperty(PropertyName = "azureSubscriptionId")]
- public string AzureSubscriptionId { get; set; }
-
- ///
- /// Gets or sets azure Resource Group of the customer creating the
- /// event channel. The partner topic
- /// associated with the event channel will be created under this
- /// resource group.
- ///
- [JsonProperty(PropertyName = "resourceGroup")]
- public string ResourceGroup { get; set; }
-
- ///
- /// Gets or sets name of the partner topic associated with the event
- /// channel.
- ///
- [JsonProperty(PropertyName = "partnerTopicName")]
- public string PartnerTopicName { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs
deleted file mode 100644
index 2fbe0a56bc80..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelFilter.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Filter for the Event Channel.
- ///
- public partial class EventChannelFilter
- {
- ///
- /// Initializes a new instance of the EventChannelFilter class.
- ///
- public EventChannelFilter()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannelFilter class.
- ///
- /// An array of advanced filters that are
- /// used for filtering event channels.
- public EventChannelFilter(IList advancedFilters = default(IList))
- {
- AdvancedFilters = advancedFilters;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets an array of advanced filters that are used for
- /// filtering event channels.
- ///
- [JsonProperty(PropertyName = "advancedFilters")]
- public IList AdvancedFilters { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs
deleted file mode 100644
index 0583d8001a61..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelProvisioningState.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for EventChannelProvisioningState.
- ///
- public static class EventChannelProvisioningState
- {
- public const string Creating = "Creating";
- public const string Updating = "Updating";
- public const string Deleting = "Deleting";
- public const string Succeeded = "Succeeded";
- public const string Canceled = "Canceled";
- public const string Failed = "Failed";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs
deleted file mode 100644
index 0d498701f6ff..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventChannelSource.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Properties of the source of an event channel.
- ///
- public partial class EventChannelSource
- {
- ///
- /// Initializes a new instance of the EventChannelSource class.
- ///
- public EventChannelSource()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventChannelSource class.
- ///
- /// The identifier of the resource that's the
- /// source of the events.
- /// This represents a unique resource in the partner's resource
- /// model.
- public EventChannelSource(string source = default(string))
- {
- Source = source;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the identifier of the resource that's the source of
- /// the events.
- /// This represents a unique resource in the partner's resource model.
- ///
- [JsonProperty(PropertyName = "source")]
- public string Source { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs
index 99622f371ce6..2b2f7d2e57ff 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscription.cs
@@ -36,8 +36,8 @@ public EventSubscription()
///
/// Fully qualified identifier of the
/// resource.
- /// Name of the resource
- /// Type of the resource
+ /// Name of the resource.
+ /// Type of the resource.
/// Name of the topic of the event
/// subscription.
/// Provisioning state of the event
@@ -45,15 +45,7 @@ public EventSubscription()
/// 'Deleting', 'Succeeded', 'Canceled', 'Failed',
/// 'AwaitingManualAction'
/// Information about the destination where
- /// events have to be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- /// Information about the
- /// destination where events have to be delivered for the event
- /// subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
+ /// events have to be delivered for the event subscription.
/// Information about the filter for the event
/// subscription.
/// List of user defined labels.
@@ -65,32 +57,20 @@ public EventSubscription()
/// The retry policy for events. This can be
/// used to configure maximum number of delivery attempts and time to
/// live for events.
- /// The dead letter destination of
- /// the event subscription. Any event that cannot be delivered to its'
- /// destination is sent to the dead letter destination.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- /// The dead letter
- /// destination of the event subscription. Any event that cannot be
- /// delivered to its' destination is sent to the dead letter
- /// destination.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- 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))
+ /// The DeadLetter destination of
+ /// the event subscription.
+ public EventSubscription(string id = default(string), string name = default(string), string type = default(string), string topic = default(string), string provisioningState = default(string), EventSubscriptionDestination destination = default(EventSubscriptionDestination), EventSubscriptionFilter filter = default(EventSubscriptionFilter), IList labels = default(IList), System.DateTime? expirationTimeUtc = default(System.DateTime?), string eventDeliverySchema = default(string), RetryPolicy retryPolicy = default(RetryPolicy), DeadLetterDestination deadLetterDestination = default(DeadLetterDestination))
: base(id, name, type)
{
Topic = topic;
ProvisioningState = provisioningState;
Destination = destination;
- DeliveryWithResourceIdentity = deliveryWithResourceIdentity;
Filter = filter;
Labels = labels;
ExpirationTimeUtc = expirationTimeUtc;
EventDeliverySchema = eventDeliverySchema;
RetryPolicy = retryPolicy;
DeadLetterDestination = deadLetterDestination;
- DeadLetterWithResourceIdentity = deadLetterWithResourceIdentity;
CustomInit();
}
@@ -116,22 +96,10 @@ public EventSubscription()
///
/// Gets or sets information about the destination where events have to
/// be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
///
[JsonProperty(PropertyName = "properties.destination")]
public EventSubscriptionDestination Destination { get; set; }
- ///
- /// Gets or sets information about the destination where events have to
- /// be delivered for the event subscription.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "properties.deliveryWithResourceIdentity")]
- public DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get; set; }
-
///
/// Gets or sets information about the filter for the event
/// subscription.
@@ -168,25 +136,10 @@ public EventSubscription()
public RetryPolicy RetryPolicy { get; set; }
///
- /// Gets or sets the dead letter destination of the event subscription.
- /// Any event that cannot be delivered to its' destination is sent to
- /// the dead letter destination.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
+ /// Gets or sets the DeadLetter destination of the event subscription.
///
[JsonProperty(PropertyName = "properties.deadLetterDestination")]
public DeadLetterDestination DeadLetterDestination { get; set; }
- ///
- /// Gets or sets the dead letter destination of the event subscription.
- /// Any event that cannot be delivered to its' destination is sent to
- /// the dead letter destination.
- /// Uses the managed identity setup on the parent resource (namely,
- /// topic or domain) to acquire the authentication tokens being used
- /// during delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "properties.deadLetterWithResourceIdentity")]
- public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get; set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs
deleted file mode 100644
index 84aa816df9c1..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentity.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// 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;
-
- ///
- /// The identity information with the event subscription.
- ///
- public partial class EventSubscriptionIdentity
- {
- ///
- /// Initializes a new instance of the EventSubscriptionIdentity class.
- ///
- public EventSubscriptionIdentity()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the EventSubscriptionIdentity class.
- ///
- /// The type of managed identity used. The type
- /// 'SystemAssigned, UserAssigned' includes both an implicitly created
- /// identity and a set of user-assigned identities. The type 'None'
- /// will remove any identity. Possible values include:
- /// 'SystemAssigned', 'UserAssigned'
- /// The user identity associated
- /// with the resource.
- public EventSubscriptionIdentity(string type = default(string), string userAssignedIdentity = default(string))
- {
- Type = type;
- UserAssignedIdentity = userAssignedIdentity;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the type of managed identity used. The type
- /// 'SystemAssigned, UserAssigned' includes both an implicitly created
- /// identity and a set of user-assigned identities. The type 'None'
- /// will remove any identity. Possible values include:
- /// 'SystemAssigned', 'UserAssigned'
- ///
- [JsonProperty(PropertyName = "type")]
- public string Type { get; set; }
-
- ///
- /// Gets or sets the user identity associated with the resource.
- ///
- [JsonProperty(PropertyName = "userAssignedIdentity")]
- public string UserAssignedIdentity { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentityType.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentityType.cs
deleted file mode 100644
index 06c41887dab5..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionIdentityType.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for EventSubscriptionIdentityType.
- ///
- public static class EventSubscriptionIdentityType
- {
- public const string SystemAssigned = "SystemAssigned";
- public const string UserAssigned = "UserAssigned";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionUpdateParameters.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionUpdateParameters.cs
index d6fb28f6b55e..59903e2c7ef8 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionUpdateParameters.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventSubscriptionUpdateParameters.cs
@@ -34,15 +34,7 @@ public EventSubscriptionUpdateParameters()
/// class.
///
/// Information about the destination where
- /// events have to be delivered for the event subscription.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- /// Information about the
- /// destination where events have to be delivered for the event
- /// subscription.
- /// Uses the managed identity setup on the parent resource (topic /
- /// domain) to acquire the authentication tokens being used during
- /// delivery / dead-lettering.
+ /// events have to be delivered for the event subscription.
/// Information about the filter for the event
/// subscription.
/// List of user defined labels.
@@ -54,29 +46,17 @@ public EventSubscriptionUpdateParameters()
/// The retry policy for events. This can be
/// used to configure maximum number of delivery attempts and time to
/// live for events.
- /// The dead letter destination of
- /// the event subscription. Any event that cannot be delivered to its'
- /// destination is sent to the dead letter destination.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
- /// The dead letter
- /// destination of the event subscription. Any event that cannot be
- /// delivered to its' destination is sent to the dead letter
- /// destination.
- /// Uses the managed identity setup on the parent resource (topic /
- /// domain) to acquire the authentication tokens being used during
- /// delivery / dead-lettering.
- public EventSubscriptionUpdateParameters(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))
+ /// The DeadLetter destination of
+ /// the event subscription.
+ public EventSubscriptionUpdateParameters(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))
{
Destination = destination;
- DeliveryWithResourceIdentity = deliveryWithResourceIdentity;
Filter = filter;
Labels = labels;
ExpirationTimeUtc = expirationTimeUtc;
EventDeliverySchema = eventDeliverySchema;
RetryPolicy = retryPolicy;
DeadLetterDestination = deadLetterDestination;
- DeadLetterWithResourceIdentity = deadLetterWithResourceIdentity;
CustomInit();
}
@@ -88,22 +68,10 @@ public EventSubscriptionUpdateParameters()
///
/// 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; }
- ///
- /// 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 (topic /
- /// domain) to acquire the authentication tokens being used during
- /// delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "deliveryWithResourceIdentity")]
- public DeliveryWithResourceIdentity DeliveryWithResourceIdentity { get; set; }
-
///
/// Gets or sets information about the filter for the event
/// subscription.
@@ -141,25 +109,10 @@ public EventSubscriptionUpdateParameters()
public RetryPolicy RetryPolicy { get; set; }
///
- /// Gets or sets the dead letter destination of the event subscription.
- /// Any event that cannot be delivered to its' destination is sent to
- /// the dead letter destination.
- /// Uses Azure Event Grid's identity to acquire the authentication
- /// tokens being used during delivery / dead-lettering.
+ /// Gets or sets the DeadLetter destination of the event subscription.
///
[JsonProperty(PropertyName = "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 (topic /
- /// domain) to acquire the authentication tokens being used during
- /// delivery / dead-lettering.
- ///
- [JsonProperty(PropertyName = "deadLetterWithResourceIdentity")]
- public DeadLetterWithResourceIdentity DeadLetterWithResourceIdentity { get; set; }
-
}
}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventType.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventType.cs
index b57d0553f4a1..2f22a6962df5 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventType.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/EventType.cs
@@ -34,8 +34,8 @@ public EventType()
///
/// Fully qualified identifier of the
/// resource.
- /// Name of the resource
- /// Type of the resource
+ /// Name of the resource.
+ /// Type of the resource.
/// Display name of the event type.
/// Description of the event type.
/// Url of the schema for this event
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ExtensionTopic.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ExtensionTopic.cs
deleted file mode 100644
index cf29bffb6e31..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/ExtensionTopic.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Event grid Extension Topic. This is used for getting Event Grid related
- /// metrics for Azure resources.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class ExtensionTopic : Resource
- {
- ///
- /// Initializes a new instance of the ExtensionTopic class.
- ///
- public ExtensionTopic()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the ExtensionTopic class.
- ///
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource
- /// Type of the resource
- /// Description of the extension
- /// topic.
- /// System topic resource id which is mapped
- /// to the source.
- public ExtensionTopic(string id = default(string), string name = default(string), string type = default(string), string description = default(string), string systemTopic = default(string))
- : base(id, name, type)
- {
- Description = description;
- SystemTopic = systemTopic;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets description of the extension topic.
- ///
- [JsonProperty(PropertyName = "properties.description")]
- public string Description { get; set; }
-
- ///
- /// Gets or sets system topic resource id which is mapped to the
- /// source.
- ///
- [JsonProperty(PropertyName = "properties.systemTopic")]
- public string SystemTopic { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityInfo.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityInfo.cs
deleted file mode 100644
index c860851f8f3b..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityInfo.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// The identity information for the resource.
- ///
- public partial class IdentityInfo
- {
- ///
- /// Initializes a new instance of the IdentityInfo class.
- ///
- public IdentityInfo()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the IdentityInfo class.
- ///
- /// The type of managed identity used. The type
- /// 'SystemAssigned, UserAssigned' includes both an implicitly created
- /// identity and a set of user-assigned identities. The type 'None'
- /// will remove any identity. Possible values include: 'None',
- /// 'SystemAssigned', 'UserAssigned', 'SystemAssigned,
- /// UserAssigned'
- /// The principal ID of resource
- /// identity.
- /// The tenant ID of resource.
- /// The list of user identities
- /// associated with the resource. The user identity dictionary key
- /// references will be ARM resource ids in the form:
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- /// This property is currently not used and reserved for future
- /// usage.
- public IdentityInfo(string type = default(string), string principalId = default(string), string tenantId = default(string), IDictionary userAssignedIdentities = default(IDictionary))
- {
- Type = type;
- PrincipalId = principalId;
- TenantId = tenantId;
- UserAssignedIdentities = userAssignedIdentities;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets the type of managed identity used. The type
- /// 'SystemAssigned, UserAssigned' includes both an implicitly created
- /// identity and a set of user-assigned identities. The type 'None'
- /// will remove any identity. Possible values include: 'None',
- /// 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned'
- ///
- [JsonProperty(PropertyName = "type")]
- public string Type { get; set; }
-
- ///
- /// Gets or sets the principal ID of resource identity.
- ///
- [JsonProperty(PropertyName = "principalId")]
- public string PrincipalId { get; set; }
-
- ///
- /// Gets or sets the tenant ID of resource.
- ///
- [JsonProperty(PropertyName = "tenantId")]
- public string TenantId { get; set; }
-
- ///
- /// Gets or sets the list of user identities associated with the
- /// resource. The user identity dictionary key references will be ARM
- /// resource ids in the form:
- /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- /// This property is currently not used and reserved for future usage.
- ///
- [JsonProperty(PropertyName = "userAssignedIdentities")]
- public IDictionary UserAssignedIdentities { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityType.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityType.cs
deleted file mode 100644
index 4a04461638d5..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/IdentityType.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for IdentityType.
- ///
- public static class IdentityType
- {
- public const string None = "None";
- public const string SystemAssigned = "SystemAssigned";
- public const string UserAssigned = "UserAssigned";
- public const string SystemAssignedUserAssigned = "SystemAssigned, UserAssigned";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespace.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespace.cs
deleted file mode 100644
index 193eebb1e98a..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespace.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// EventGrid Partner Namespace.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class PartnerNamespace : TrackedResource
- {
- ///
- /// Initializes a new instance of the PartnerNamespace class.
- ///
- public PartnerNamespace()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerNamespace class.
- ///
- /// Location of the resource.
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource
- /// Type of the resource
- /// Tags of the resource.
- /// Provisioning state of the partner
- /// namespace. Possible values include: 'Creating', 'Updating',
- /// 'Deleting', 'Succeeded', 'Canceled', 'Failed'
- /// The fully
- /// qualified ARM Id of the partner registration that should be
- /// associated with this partner namespace. This takes the following
- /// format:
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.
- /// Endpoint for the partner namespace.
- public PartnerNamespace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), string partnerRegistrationFullyQualifiedId = default(string), string endpoint = default(string))
- : base(location, id, name, type, tags)
- {
- ProvisioningState = provisioningState;
- PartnerRegistrationFullyQualifiedId = partnerRegistrationFullyQualifiedId;
- Endpoint = endpoint;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets provisioning state of the partner namespace. Possible values
- /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
- /// 'Canceled', 'Failed'
- ///
- [JsonProperty(PropertyName = "properties.provisioningState")]
- public string ProvisioningState { get; private set; }
-
- ///
- /// Gets or sets the fully qualified ARM Id of the partner registration
- /// that should be associated with this partner namespace. This takes
- /// the following format:
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.
- ///
- [JsonProperty(PropertyName = "properties.partnerRegistrationFullyQualifiedId")]
- public string PartnerRegistrationFullyQualifiedId { get; set; }
-
- ///
- /// Gets endpoint for the partner namespace.
- ///
- [JsonProperty(PropertyName = "properties.endpoint")]
- public string Endpoint { get; private set; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public override void Validate()
- {
- base.Validate();
- }
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceProvisioningState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceProvisioningState.cs
deleted file mode 100644
index a93d8ed974e0..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceProvisioningState.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerNamespaceProvisioningState.
- ///
- public static class PartnerNamespaceProvisioningState
- {
- 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/PartnerNamespaceRegenerateKeyRequest.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceRegenerateKeyRequest.cs
deleted file mode 100644
index 87f6e0700a98..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceRegenerateKeyRequest.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// PartnerNamespace regenerate shared access key request.
- ///
- public partial class PartnerNamespaceRegenerateKeyRequest
- {
- ///
- /// Initializes a new instance of the
- /// PartnerNamespaceRegenerateKeyRequest class.
- ///
- public PartnerNamespaceRegenerateKeyRequest()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the
- /// PartnerNamespaceRegenerateKeyRequest class.
- ///
- /// Key name to regenerate (key1 or
- /// key2).
- public PartnerNamespaceRegenerateKeyRequest(string keyName)
- {
- KeyName = keyName;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets key name to regenerate (key1 or key2).
- ///
- [JsonProperty(PropertyName = "keyName")]
- public string KeyName { get; set; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (KeyName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "KeyName");
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceSharedAccessKeys.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceSharedAccessKeys.cs
deleted file mode 100644
index 16ada036cecb..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceSharedAccessKeys.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Shared access keys of the partner namespace.
- ///
- public partial class PartnerNamespaceSharedAccessKeys
- {
- ///
- /// Initializes a new instance of the PartnerNamespaceSharedAccessKeys
- /// class.
- ///
- public PartnerNamespaceSharedAccessKeys()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerNamespaceSharedAccessKeys
- /// class.
- ///
- /// Shared access key1 for the partner
- /// namespace.
- /// Shared access key2 for the partner
- /// namespace.
- public PartnerNamespaceSharedAccessKeys(string key1 = default(string), string key2 = default(string))
- {
- Key1 = key1;
- Key2 = key2;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets shared access key1 for the partner namespace.
- ///
- [JsonProperty(PropertyName = "key1")]
- public string Key1 { get; set; }
-
- ///
- /// Gets or sets shared access key2 for the partner namespace.
- ///
- [JsonProperty(PropertyName = "key2")]
- public string Key2 { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceUpdateParameters.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceUpdateParameters.cs
deleted file mode 100644
index 7b8cbbacd418..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerNamespaceUpdateParameters.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Properties of the PartnerNamespace update.
- ///
- public partial class PartnerNamespaceUpdateParameters
- {
- ///
- /// Initializes a new instance of the PartnerNamespaceUpdateParameters
- /// class.
- ///
- public PartnerNamespaceUpdateParameters()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerNamespaceUpdateParameters
- /// class.
- ///
- /// Tags of the partner namespace.
- public PartnerNamespaceUpdateParameters(IDictionary tags = default(IDictionary))
- {
- Tags = tags;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets tags of the partner namespace.
- ///
- [JsonProperty(PropertyName = "tags")]
- public IDictionary Tags { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistration.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistration.cs
deleted file mode 100644
index d794567258ab..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistration.cs
+++ /dev/null
@@ -1,225 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Information about a partner registration.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class PartnerRegistration : TrackedResource
- {
- ///
- /// Initializes a new instance of the PartnerRegistration class.
- ///
- public PartnerRegistration()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerRegistration class.
- ///
- /// Location of the resource.
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource
- /// Type of the resource
- /// Tags of the resource.
- /// Provisioning state of the partner
- /// registration. Possible values include: 'Creating', 'Updating',
- /// 'Deleting', 'Succeeded', 'Canceled', 'Failed'
- /// Official name of the partner name. For
- /// example: "Contoso".
- /// Name of the partner resource
- /// type.
- /// Display name of the
- /// partner resource type.
- /// Short description of
- /// the partner resource type. The length of this description should
- /// not exceed 256 characters.
- /// Long description for the custom
- /// scenarios and integration to be displayed in the portal if needed.
- /// Length of this description should not exceed 2048
- /// characters.
- /// The customer service
- /// number of the publisher. The expected phone format should start
- /// with a '+' sign
- /// followed by the country code. The remaining digits are then
- /// followed. Only digits and spaces are allowed and its
- /// length cannot exceed 16 digits including country code. Examples of
- /// valid phone numbers are: +1 515 123 4567 and
- /// +966 7 5115 2471. Examples of invalid phone numbers are: +1 (515)
- /// 123-4567, 1 515 123 4567 and +966 121 5115 24 7 551 1234 43
- /// The extension of the
- /// customer service number of the publisher. Only digits are allowed
- /// and number of digits should not exceed 10.
- /// The extension of the customer
- /// service URI of the publisher.
- /// URI of the partner website that can be used
- /// by Azure customers to setup Event Grid
- /// integration on an event source.
- /// URI of the logo.
- /// Visibility state of the partner
- /// registration. Possible values include: 'Hidden', 'PublicPreview',
- /// 'GenerallyAvailable'
- /// List of Azure
- /// subscription Ids that are authorized to create a partner namespace
- /// associated with this partner registration. This is an optional
- /// property. Creating
- /// partner namespaces is always permitted under the same Azure
- /// subscription as the one used
- /// for creating the partner registration.
- public PartnerRegistration(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), string partnerName = default(string), string partnerResourceTypeName = default(string), string partnerResourceTypeDisplayName = default(string), string partnerResourceTypeDescription = default(string), string longDescription = default(string), string partnerCustomerServiceNumber = default(string), string partnerCustomerServiceExtension = default(string), string customerServiceUri = default(string), string setupUri = default(string), string logoUri = default(string), string visibilityState = default(string), IList authorizedAzureSubscriptionIds = default(IList))
- : base(location, id, name, type, tags)
- {
- ProvisioningState = provisioningState;
- PartnerName = partnerName;
- PartnerResourceTypeName = partnerResourceTypeName;
- PartnerResourceTypeDisplayName = partnerResourceTypeDisplayName;
- PartnerResourceTypeDescription = partnerResourceTypeDescription;
- LongDescription = longDescription;
- PartnerCustomerServiceNumber = partnerCustomerServiceNumber;
- PartnerCustomerServiceExtension = partnerCustomerServiceExtension;
- CustomerServiceUri = customerServiceUri;
- SetupUri = setupUri;
- LogoUri = logoUri;
- VisibilityState = visibilityState;
- AuthorizedAzureSubscriptionIds = authorizedAzureSubscriptionIds;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets provisioning state of the partner registration. Possible
- /// values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
- /// 'Canceled', 'Failed'
- ///
- [JsonProperty(PropertyName = "properties.provisioningState")]
- public string ProvisioningState { get; private set; }
-
- ///
- /// Gets or sets official name of the partner name. For example:
- /// "Contoso".
- ///
- [JsonProperty(PropertyName = "properties.partnerName")]
- public string PartnerName { get; set; }
-
- ///
- /// Gets or sets name of the partner resource type.
- ///
- [JsonProperty(PropertyName = "properties.partnerResourceTypeName")]
- public string PartnerResourceTypeName { get; set; }
-
- ///
- /// Gets or sets display name of the partner resource type.
- ///
- [JsonProperty(PropertyName = "properties.partnerResourceTypeDisplayName")]
- public string PartnerResourceTypeDisplayName { get; set; }
-
- ///
- /// Gets or sets short description of the partner resource type. The
- /// length of this description should not exceed 256 characters.
- ///
- [JsonProperty(PropertyName = "properties.partnerResourceTypeDescription")]
- public string PartnerResourceTypeDescription { get; set; }
-
- ///
- /// Gets or sets long description for the custom scenarios and
- /// integration to be displayed in the portal if needed.
- /// Length of this description should not exceed 2048 characters.
- ///
- [JsonProperty(PropertyName = "properties.longDescription")]
- public string LongDescription { get; set; }
-
- ///
- /// Gets or sets the customer service number of the publisher. The
- /// expected phone format should start with a '+' sign
- /// followed by the country code. The remaining digits are then
- /// followed. Only digits and spaces are allowed and its
- /// length cannot exceed 16 digits including country code. Examples of
- /// valid phone numbers are: +1 515 123 4567 and
- /// +966 7 5115 2471. Examples of invalid phone numbers are: +1 (515)
- /// 123-4567, 1 515 123 4567 and +966 121 5115 24 7 551 1234 43
- ///
- [JsonProperty(PropertyName = "properties.partnerCustomerServiceNumber")]
- public string PartnerCustomerServiceNumber { get; set; }
-
- ///
- /// Gets or sets the extension of the customer service number of the
- /// publisher. Only digits are allowed and number of digits should not
- /// exceed 10.
- ///
- [JsonProperty(PropertyName = "properties.partnerCustomerServiceExtension")]
- public string PartnerCustomerServiceExtension { get; set; }
-
- ///
- /// Gets or sets the extension of the customer service URI of the
- /// publisher.
- ///
- [JsonProperty(PropertyName = "properties.customerServiceUri")]
- public string CustomerServiceUri { get; set; }
-
- ///
- /// Gets or sets URI of the partner website that can be used by Azure
- /// customers to setup Event Grid
- /// integration on an event source.
- ///
- [JsonProperty(PropertyName = "properties.setupUri")]
- public string SetupUri { get; set; }
-
- ///
- /// Gets or sets URI of the logo.
- ///
- [JsonProperty(PropertyName = "properties.logoUri")]
- public string LogoUri { get; set; }
-
- ///
- /// Gets or sets visibility state of the partner registration. Possible
- /// values include: 'Hidden', 'PublicPreview', 'GenerallyAvailable'
- ///
- [JsonProperty(PropertyName = "properties.visibilityState")]
- public string VisibilityState { get; set; }
-
- ///
- /// Gets or sets list of Azure subscription Ids that are authorized to
- /// create a partner namespace
- /// associated with this partner registration. This is an optional
- /// property. Creating
- /// partner namespaces is always permitted under the same Azure
- /// subscription as the one used
- /// for creating the partner registration.
- ///
- [JsonProperty(PropertyName = "properties.authorizedAzureSubscriptionIds")]
- public IList AuthorizedAzureSubscriptionIds { get; set; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public override void Validate()
- {
- base.Validate();
- }
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationEventTypesListResult.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationEventTypesListResult.cs
deleted file mode 100644
index 860e809317c4..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationEventTypesListResult.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Result of the List Partner Registration Event Types operation.
- ///
- public partial class PartnerRegistrationEventTypesListResult
- {
- ///
- /// Initializes a new instance of the
- /// PartnerRegistrationEventTypesListResult class.
- ///
- public PartnerRegistrationEventTypesListResult()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the
- /// PartnerRegistrationEventTypesListResult class.
- ///
- /// A collection of partner registration event
- /// types.
- /// A link for the next page of partner
- /// registration event types.
- public PartnerRegistrationEventTypesListResult(IList value = default(IList), string nextLink = default(string))
- {
- Value = value;
- NextLink = nextLink;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets a collection of partner registration event types.
- ///
- [JsonProperty(PropertyName = "value")]
- public IList Value { get; set; }
-
- ///
- /// Gets or sets a link for the next page of partner registration event
- /// types.
- ///
- [JsonProperty(PropertyName = "nextLink")]
- public string NextLink { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationProvisioningState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationProvisioningState.cs
deleted file mode 100644
index e08bf8afb566..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationProvisioningState.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerRegistrationProvisioningState.
- ///
- public static class PartnerRegistrationProvisioningState
- {
- 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/PartnerRegistrationUpdateParameters.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationUpdateParameters.cs
deleted file mode 100644
index 5574b3a872f0..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationUpdateParameters.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Properties of the Partner Registration update.
- ///
- public partial class PartnerRegistrationUpdateParameters
- {
- ///
- /// Initializes a new instance of the
- /// PartnerRegistrationUpdateParameters class.
- ///
- public PartnerRegistrationUpdateParameters()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the
- /// PartnerRegistrationUpdateParameters class.
- ///
- /// Tags of the partner registration
- /// resource.
- /// Name of the partner topic
- /// type.
- /// Display name of the
- /// partner topic type.
- /// Description of the
- /// partner topic type.
- /// URI of the partner website that can be used
- /// by Azure customers to setup Event Grid
- /// integration on an event source.
- /// URI of the partner logo.
- /// List of IDs of Azure
- /// AD applications that are authorized to create a partner namespace
- /// associated with this partner registration. This is an optional
- /// property. Creating
- /// partner namespaces is always permitted under the same Azure
- /// subscription as the one used
- /// for creating the partner registration.
- public PartnerRegistrationUpdateParameters(IDictionary tags = default(IDictionary), string partnerTopicTypeName = default(string), string partnerTopicTypeDisplayName = default(string), string partnerTopicTypeDescription = default(string), string setupUri = default(string), string logoUri = default(string), IList authorizedAzureSubscriptionIds = default(IList))
- {
- Tags = tags;
- PartnerTopicTypeName = partnerTopicTypeName;
- PartnerTopicTypeDisplayName = partnerTopicTypeDisplayName;
- PartnerTopicTypeDescription = partnerTopicTypeDescription;
- SetupUri = setupUri;
- LogoUri = logoUri;
- AuthorizedAzureSubscriptionIds = authorizedAzureSubscriptionIds;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets tags of the partner registration resource.
- ///
- [JsonProperty(PropertyName = "tags")]
- public IDictionary Tags { get; set; }
-
- ///
- /// Gets or sets name of the partner topic type.
- ///
- [JsonProperty(PropertyName = "partnerTopicTypeName")]
- public string PartnerTopicTypeName { get; set; }
-
- ///
- /// Gets or sets display name of the partner topic type.
- ///
- [JsonProperty(PropertyName = "partnerTopicTypeDisplayName")]
- public string PartnerTopicTypeDisplayName { get; set; }
-
- ///
- /// Gets or sets description of the partner topic type.
- ///
- [JsonProperty(PropertyName = "partnerTopicTypeDescription")]
- public string PartnerTopicTypeDescription { get; set; }
-
- ///
- /// Gets or sets URI of the partner website that can be used by Azure
- /// customers to setup Event Grid
- /// integration on an event source.
- ///
- [JsonProperty(PropertyName = "setupUri")]
- public string SetupUri { get; set; }
-
- ///
- /// Gets or sets URI of the partner logo.
- ///
- [JsonProperty(PropertyName = "logoUri")]
- public string LogoUri { get; set; }
-
- ///
- /// Gets or sets list of IDs of Azure AD applications that are
- /// authorized to create a partner namespace
- /// associated with this partner registration. This is an optional
- /// property. Creating
- /// partner namespaces is always permitted under the same Azure
- /// subscription as the one used
- /// for creating the partner registration.
- ///
- [JsonProperty(PropertyName = "authorizedAzureSubscriptionIds")]
- public IList AuthorizedAzureSubscriptionIds { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationVisibilityState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationVisibilityState.cs
deleted file mode 100644
index 7a4343c5fc7e..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerRegistrationVisibilityState.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerRegistrationVisibilityState.
- ///
- public static class PartnerRegistrationVisibilityState
- {
- public const string Hidden = "Hidden";
- public const string PublicPreview = "PublicPreview";
- public const string GenerallyAvailable = "GenerallyAvailable";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopic.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopic.cs
deleted file mode 100644
index 1e38ced455e0..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopic.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// EventGrid Partner Topic.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class PartnerTopic : TrackedResource
- {
- ///
- /// Initializes a new instance of the PartnerTopic class.
- ///
- public PartnerTopic()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerTopic class.
- ///
- /// Location of the resource.
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource
- /// Type of the resource
- /// Tags of the resource.
- /// Source associated with this partner topic.
- /// This represents a unique partner resource.
- /// Expiration time of
- /// the partner topic. If this timer expires while the partner topic is
- /// still never activated,
- /// the partner topic and corresponding event channel are
- /// deleted.
- /// Provisioning state of the partner
- /// topic. Possible values include: 'Creating', 'Updating', 'Deleting',
- /// 'Succeeded', 'Canceled', 'Failed'
- /// Activation state of the partner
- /// topic. Possible values include: 'NeverActivated', 'Activated',
- /// 'Deactivated'
- /// 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.
- public PartnerTopic(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string source = default(string), System.DateTime? expirationTimeIfNotActivatedUtc = default(System.DateTime?), string provisioningState = default(string), string activationState = default(string), string partnerTopicFriendlyDescription = default(string))
- : base(location, id, name, type, tags)
- {
- Source = source;
- ExpirationTimeIfNotActivatedUtc = expirationTimeIfNotActivatedUtc;
- ProvisioningState = provisioningState;
- ActivationState = activationState;
- PartnerTopicFriendlyDescription = partnerTopicFriendlyDescription;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets source associated with this partner topic. This
- /// represents a unique partner resource.
- ///
- [JsonProperty(PropertyName = "properties.source")]
- public string Source { get; set; }
-
- ///
- /// Gets or sets expiration time of the partner topic. If this timer
- /// expires while the partner topic is still never activated,
- /// the partner topic and corresponding event channel are deleted.
- ///
- [JsonProperty(PropertyName = "properties.expirationTimeIfNotActivatedUtc")]
- public System.DateTime? ExpirationTimeIfNotActivatedUtc { get; set; }
-
- ///
- /// Gets provisioning state of the partner topic. Possible values
- /// include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
- /// 'Canceled', 'Failed'
- ///
- [JsonProperty(PropertyName = "properties.provisioningState")]
- public string ProvisioningState { get; private set; }
-
- ///
- /// Gets or sets activation state of the partner topic. Possible values
- /// include: 'NeverActivated', 'Activated', 'Deactivated'
- ///
- [JsonProperty(PropertyName = "properties.activationState")]
- public string ActivationState { 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; }
-
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public override void Validate()
- {
- base.Validate();
- }
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicActivationState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicActivationState.cs
deleted file mode 100644
index da853a2b216c..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicActivationState.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerTopicActivationState.
- ///
- public static class PartnerTopicActivationState
- {
- public const string NeverActivated = "NeverActivated";
- public const string Activated = "Activated";
- public const string Deactivated = "Deactivated";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicProvisioningState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicProvisioningState.cs
deleted file mode 100644
index 9eb90ce309ad..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicProvisioningState.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerTopicProvisioningState.
- ///
- public static class PartnerTopicProvisioningState
- {
- 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/PartnerTopicReadinessState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicReadinessState.cs
deleted file mode 100644
index 2b4a5b43a492..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicReadinessState.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerTopicReadinessState.
- ///
- public static class PartnerTopicReadinessState
- {
- public const string NotActivatedByUserYet = "NotActivatedByUserYet";
- public const string ActivatedByUser = "ActivatedByUser";
- public const string DeactivatedByUser = "DeactivatedByUser";
- public const string DeletedByUser = "DeletedByUser";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicType.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicType.cs
deleted file mode 100644
index ef3933261ee6..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicType.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
- using Newtonsoft.Json;
- using System.Linq;
-
- ///
- /// Properties of a partner topic type.
- ///
- [Rest.Serialization.JsonTransformation]
- public partial class PartnerTopicType : Resource
- {
- ///
- /// Initializes a new instance of the PartnerTopicType class.
- ///
- public PartnerTopicType()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerTopicType class.
- ///
- /// Fully qualified identifier of the
- /// resource.
- /// Name of the resource
- /// Type of the resource
- /// Official name of the partner.
- /// Name of the partner topic type. This
- /// name should be unique among all partner topic types names.
- /// Display Name for the partner topic
- /// type.
- /// Description of the partner topic
- /// type.
- /// URI of the partner website that can be used
- /// by Azure customers to setup Event Grid
- /// integration on an event source.
- /// Status of whether the customer has
- /// authorized a partner to create partner topics
- /// in the customer's subscription. Possible values include:
- /// 'NotApplicable', 'NotAuthorized', 'Authorized'
- public PartnerTopicType(string id = default(string), string name = default(string), string type = default(string), string partnerName = default(string), string topicTypeName = default(string), string displayName = default(string), string description = default(string), string setupUri = default(string), string authorizationState = default(string))
- : base(id, name, type)
- {
- PartnerName = partnerName;
- TopicTypeName = topicTypeName;
- DisplayName = displayName;
- Description = description;
- SetupUri = setupUri;
- AuthorizationState = authorizationState;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets official name of the partner.
- ///
- [JsonProperty(PropertyName = "properties.partnerName")]
- public string PartnerName { get; set; }
-
- ///
- /// Gets or sets name of the partner topic type. This name should be
- /// unique among all partner topic types names.
- ///
- [JsonProperty(PropertyName = "properties.topicTypeName")]
- public string TopicTypeName { get; set; }
-
- ///
- /// Gets or sets display Name for the partner topic type.
- ///
- [JsonProperty(PropertyName = "properties.displayName")]
- public string DisplayName { get; set; }
-
- ///
- /// Gets or sets description of the partner topic type.
- ///
- [JsonProperty(PropertyName = "properties.description")]
- public string Description { get; set; }
-
- ///
- /// Gets or sets URI of the partner website that can be used by Azure
- /// customers to setup Event Grid
- /// integration on an event source.
- ///
- [JsonProperty(PropertyName = "properties.setupUri")]
- public string SetupUri { get; set; }
-
- ///
- /// Gets or sets status of whether the customer has authorized a
- /// partner to create partner topics
- /// in the customer's subscription. Possible values include:
- /// 'NotApplicable', 'NotAuthorized', 'Authorized'
- ///
- [JsonProperty(PropertyName = "properties.authorizationState")]
- public string AuthorizationState { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypeAuthorizationState.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypeAuthorizationState.cs
deleted file mode 100644
index 48554203ed03..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypeAuthorizationState.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
-
- ///
- /// Defines values for PartnerTopicTypeAuthorizationState.
- ///
- public static class PartnerTopicTypeAuthorizationState
- {
- public const string NotApplicable = "NotApplicable";
- public const string NotAuthorized = "NotAuthorized";
- public const string Authorized = "Authorized";
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypesListResult.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypesListResult.cs
deleted file mode 100644
index 712f3e05686c..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicTypesListResult.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Result of the List Partner Topic Types operation.
- ///
- public partial class PartnerTopicTypesListResult
- {
- ///
- /// Initializes a new instance of the PartnerTopicTypesListResult
- /// class.
- ///
- public PartnerTopicTypesListResult()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerTopicTypesListResult
- /// class.
- ///
- /// A collection of partner topic types.
- public PartnerTopicTypesListResult(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 partner topic types.
- ///
- [JsonProperty(PropertyName = "value")]
- public IList Value { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicUpdateParameters.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicUpdateParameters.cs
deleted file mode 100644
index c682c8cfdb00..000000000000
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PartnerTopicUpdateParameters.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.EventGrid.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// Properties of the Partner Topic update.
- ///
- public partial class PartnerTopicUpdateParameters
- {
- ///
- /// Initializes a new instance of the PartnerTopicUpdateParameters
- /// class.
- ///
- public PartnerTopicUpdateParameters()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the PartnerTopicUpdateParameters
- /// class.
- ///
- /// Tags of the partner topic.
- public PartnerTopicUpdateParameters(IDictionary tags = default(IDictionary))
- {
- Tags = tags;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets tags of the partner topic.
- ///
- [JsonProperty(PropertyName = "tags")]
- public IDictionary Tags { get; set; }
-
- }
-}
diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnection.cs
index e066ae3539d6..e887d5e608b6 100644
--- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnection.cs
+++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnection.cs
@@ -33,8 +33,8 @@ public PrivateEndpointConnection()
///
///