From a9df1806540239f1bc0b66393c74915ebc00ffb5 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 28 Feb 2022 07:52:22 +0000 Subject: [PATCH] CodeGen from PR 17226 in Azure/azure-rest-api-specs Merge 4ae3d25296978008558e9a8913e82bcf7b996175 into 38e75c2929676f39b3029efaafb23379b4b3b51e --- .../PrivateEndpointConnectionsParentType.cs | 22 +++++++++++++++++++ .../PrivateEndpointConnectionsOperations.cs | 8 +++---- .../SdkInfo_EventGridManagementClient.cs | 11 ---------- 3 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnectionsParentType.cs diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnectionsParentType.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnectionsParentType.cs new file mode 100644 index 0000000000000..86be1317e6923 --- /dev/null +++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/Models/PrivateEndpointConnectionsParentType.cs @@ -0,0 +1,22 @@ +// +// 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 PrivateEndpointConnectionsParentType. + /// + public static class PrivateEndpointConnectionsParentType + { + public const string Topics = "topics"; + public const string Domains = "domains"; + } +} diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PrivateEndpointConnectionsOperations.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PrivateEndpointConnectionsOperations.cs index 9d16493c4754e..25e23acca7472 100644 --- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PrivateEndpointConnectionsOperations.cs +++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/PrivateEndpointConnectionsOperations.cs @@ -136,7 +136,7 @@ internal PrivateEndpointConnectionsOperations(EventGridManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(parentType, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(parentType)); _url = _url.Replace("{parentName}", System.Uri.EscapeDataString(parentName)); _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName)); List _queryParameters = new List(); @@ -432,7 +432,7 @@ internal PrivateEndpointConnectionsOperations(EventGridManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(parentType, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(parentType)); _url = _url.Replace("{parentName}", System.Uri.EscapeDataString(parentName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -666,7 +666,7 @@ internal PrivateEndpointConnectionsOperations(EventGridManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(parentType, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(parentType)); _url = _url.Replace("{parentName}", System.Uri.EscapeDataString(parentName)); _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName)); List _queryParameters = new List(); @@ -906,7 +906,7 @@ internal PrivateEndpointConnectionsOperations(EventGridManagementClient client) var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/{parentType}/{parentName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(parentType, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{parentType}", System.Uri.EscapeDataString(parentType)); _url = _url.Replace("{parentName}", System.Uri.EscapeDataString(parentName)); _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName)); List _queryParameters = new List(); diff --git a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SdkInfo_EventGridManagementClient.cs b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SdkInfo_EventGridManagementClient.cs index 557f81a2d8a72..b4a6514b7fcc1 100644 --- a/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SdkInfo_EventGridManagementClient.cs +++ b/sdk/eventgrid/Microsoft.Azure.Management.EventGrid/src/Generated/SdkInfo_EventGridManagementClient.cs @@ -33,16 +33,5 @@ public static IEnumerable> ApiInfo_EventGridManage }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.4.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventgrid/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\repos\\public_sdk\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "84c09261f588a7ad29cfb4b46ad7f038f7254275"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -