< Summary

Class:Azure.ResourceManager.Network.PrivateLinkServicesRestOperations
Assembly:Azure.ResourceManager.Network
File(s):C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\PrivateLinkServicesRestOperations.cs
Covered lines:43
Uncovered lines:713
Coverable lines:756
Total lines:1661
Line coverage:5.6% (43 of 756)
Covered branches:14
Total branches:312
Branch coverage:4.4% (14 of 312)

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-88.89%50%
CreateDeleteRequest(...)-0%100%
DeleteAsync()-0%0%
Delete(...)-0%0%
CreateGetRequest(...)-0%0%
GetAsync()-0%0%
Get(...)-0%0%
CreateCreateOrUpdateRequest(...)-0%100%
CreateOrUpdateAsync()-0%0%
CreateOrUpdate(...)-0%0%
CreateListRequest(...)-0%100%
ListAsync()-0%0%
List(...)-0%0%
CreateListBySubscriptionRequest()-0%100%
ListBySubscriptionAsync()-0%0%
ListBySubscription(...)-0%0%
CreateGetPrivateEndpointConnectionRequest(...)-0%0%
GetPrivateEndpointConnectionAsync()-0%0%
GetPrivateEndpointConnection(...)-0%0%
CreateUpdatePrivateEndpointConnectionRequest(...)-0%100%
UpdatePrivateEndpointConnectionAsync()-0%0%
UpdatePrivateEndpointConnection(...)-0%0%
CreateDeletePrivateEndpointConnectionRequest(...)-0%100%
DeletePrivateEndpointConnectionAsync()-0%0%
DeletePrivateEndpointConnection(...)-0%0%
CreateListPrivateEndpointConnectionsRequest(...)-0%100%
ListPrivateEndpointConnectionsAsync()-0%0%
ListPrivateEndpointConnections(...)-0%0%
CreateCheckPrivateLinkServiceVisibilityRequest(...)-0%100%
CheckPrivateLinkServiceVisibilityAsync()-0%0%
CheckPrivateLinkServiceVisibility(...)-0%0%
CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequest(...)-100%100%
CheckPrivateLinkServiceVisibilityByResourceGroupAsync()-66.67%60%
CheckPrivateLinkServiceVisibilityByResourceGroup(...)-66.67%60%
CreateListAutoApprovedPrivateLinkServicesRequest(...)-0%100%
ListAutoApprovedPrivateLinkServicesAsync()-0%0%
ListAutoApprovedPrivateLinkServices(...)-0%0%
CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequest(...)-0%100%
ListAutoApprovedPrivateLinkServicesByResourceGroupAsync()-0%0%
ListAutoApprovedPrivateLinkServicesByResourceGroup(...)-0%0%
CreateListNextPageRequest(...)-0%100%
ListNextPageAsync()-0%0%
ListNextPage(...)-0%0%
CreateListBySubscriptionNextPageRequest(...)-0%100%
ListBySubscriptionNextPageAsync()-0%0%
ListBySubscriptionNextPage(...)-0%0%
CreateListPrivateEndpointConnectionsNextPageRequest(...)-0%100%
ListPrivateEndpointConnectionsNextPageAsync()-0%0%
ListPrivateEndpointConnectionsNextPage(...)-0%0%
CreateListAutoApprovedPrivateLinkServicesNextPageRequest(...)-0%100%
ListAutoApprovedPrivateLinkServicesNextPageAsync()-0%0%
ListAutoApprovedPrivateLinkServicesNextPage(...)-0%0%
CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequest(...)-0%100%
ListAutoApprovedPrivateLinkServicesByResourceGroupNextPageAsync()-0%0%
ListAutoApprovedPrivateLinkServicesByResourceGroupNextPage(...)-0%0%

File(s)

C:\Git\azure-sdk-for-net\sdk\network\Azure.ResourceManager.Network\src\Generated\PrivateLinkServicesRestOperations.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4// <auto-generated/>
 5
 6#nullable disable
 7
 8using System;
 9using System.Text.Json;
 10using System.Threading;
 11using System.Threading.Tasks;
 12using Azure;
 13using Azure.Core;
 14using Azure.Core.Pipeline;
 15using Azure.ResourceManager.Network.Models;
 16
 17namespace Azure.ResourceManager.Network
 18{
 19    internal partial class PrivateLinkServicesRestOperations
 20    {
 21        private string subscriptionId;
 22        private Uri endpoint;
 23        private ClientDiagnostics _clientDiagnostics;
 24        private HttpPipeline _pipeline;
 25
 26        /// <summary> Initializes a new instance of PrivateLinkServicesRestOperations. </summary>
 27        /// <param name="clientDiagnostics"> The handler for diagnostic messaging in the client. </param>
 28        /// <param name="pipeline"> The HTTP pipeline for sending and receiving REST requests and responses. </param>
 29        /// <param name="subscriptionId"> The subscription credentials which uniquely identify the Microsoft Azure subsc
 30        /// <param name="endpoint"> server parameter. </param>
 31        /// <exception cref="ArgumentNullException"> This occurs when one of the required arguments is null. </exception
 20432        public PrivateLinkServicesRestOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subs
 33        {
 20434            if (subscriptionId == null)
 35            {
 036                throw new ArgumentNullException(nameof(subscriptionId));
 37            }
 20438            endpoint ??= new Uri("https://management.azure.com");
 39
 20440            this.subscriptionId = subscriptionId;
 20441            this.endpoint = endpoint;
 20442            _clientDiagnostics = clientDiagnostics;
 20443            _pipeline = pipeline;
 20444        }
 45
 46        internal HttpMessage CreateDeleteRequest(string resourceGroupName, string serviceName)
 47        {
 048            var message = _pipeline.CreateMessage();
 049            var request = message.Request;
 050            request.Method = RequestMethod.Delete;
 051            var uri = new RawRequestUriBuilder();
 052            uri.Reset(endpoint);
 053            uri.AppendPath("/subscriptions/", false);
 054            uri.AppendPath(subscriptionId, true);
 055            uri.AppendPath("/resourceGroups/", false);
 056            uri.AppendPath(resourceGroupName, true);
 057            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 058            uri.AppendPath(serviceName, true);
 059            uri.AppendQuery("api-version", "2020-04-01", true);
 060            request.Uri = uri;
 061            return message;
 62        }
 63
 64        /// <summary> Deletes the specified private link service. </summary>
 65        /// <param name="resourceGroupName"> The name of the resource group. </param>
 66        /// <param name="serviceName"> The name of the private link service. </param>
 67        /// <param name="cancellationToken"> The cancellation token to use. </param>
 68        public async Task<Response> DeleteAsync(string resourceGroupName, string serviceName, CancellationToken cancella
 69        {
 070            if (resourceGroupName == null)
 71            {
 072                throw new ArgumentNullException(nameof(resourceGroupName));
 73            }
 074            if (serviceName == null)
 75            {
 076                throw new ArgumentNullException(nameof(serviceName));
 77            }
 78
 079            using var message = CreateDeleteRequest(resourceGroupName, serviceName);
 080            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 081            switch (message.Response.Status)
 82            {
 83                case 200:
 84                case 202:
 85                case 204:
 086                    return message.Response;
 87                default:
 088                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 89            }
 090        }
 91
 92        /// <summary> Deletes the specified private link service. </summary>
 93        /// <param name="resourceGroupName"> The name of the resource group. </param>
 94        /// <param name="serviceName"> The name of the private link service. </param>
 95        /// <param name="cancellationToken"> The cancellation token to use. </param>
 96        public Response Delete(string resourceGroupName, string serviceName, CancellationToken cancellationToken = defau
 97        {
 098            if (resourceGroupName == null)
 99            {
 0100                throw new ArgumentNullException(nameof(resourceGroupName));
 101            }
 0102            if (serviceName == null)
 103            {
 0104                throw new ArgumentNullException(nameof(serviceName));
 105            }
 106
 0107            using var message = CreateDeleteRequest(resourceGroupName, serviceName);
 0108            _pipeline.Send(message, cancellationToken);
 0109            switch (message.Response.Status)
 110            {
 111                case 200:
 112                case 202:
 113                case 204:
 0114                    return message.Response;
 115                default:
 0116                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 117            }
 0118        }
 119
 120        internal HttpMessage CreateGetRequest(string resourceGroupName, string serviceName, string expand)
 121        {
 0122            var message = _pipeline.CreateMessage();
 0123            var request = message.Request;
 0124            request.Method = RequestMethod.Get;
 0125            var uri = new RawRequestUriBuilder();
 0126            uri.Reset(endpoint);
 0127            uri.AppendPath("/subscriptions/", false);
 0128            uri.AppendPath(subscriptionId, true);
 0129            uri.AppendPath("/resourceGroups/", false);
 0130            uri.AppendPath(resourceGroupName, true);
 0131            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 0132            uri.AppendPath(serviceName, true);
 0133            uri.AppendQuery("api-version", "2020-04-01", true);
 0134            if (expand != null)
 135            {
 0136                uri.AppendQuery("$expand", expand, true);
 137            }
 0138            request.Uri = uri;
 0139            return message;
 140        }
 141
 142        /// <summary> Gets the specified private link service by resource group. </summary>
 143        /// <param name="resourceGroupName"> The name of the resource group. </param>
 144        /// <param name="serviceName"> The name of the private link service. </param>
 145        /// <param name="expand"> Expands referenced resources. </param>
 146        /// <param name="cancellationToken"> The cancellation token to use. </param>
 147        public async Task<Response<PrivateLinkService>> GetAsync(string resourceGroupName, string serviceName, string ex
 148        {
 0149            if (resourceGroupName == null)
 150            {
 0151                throw new ArgumentNullException(nameof(resourceGroupName));
 152            }
 0153            if (serviceName == null)
 154            {
 0155                throw new ArgumentNullException(nameof(serviceName));
 156            }
 157
 0158            using var message = CreateGetRequest(resourceGroupName, serviceName, expand);
 0159            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0160            switch (message.Response.Status)
 161            {
 162                case 200:
 163                    {
 0164                        PrivateLinkService value = default;
 0165                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0166                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 167                        {
 0168                            value = null;
 169                        }
 170                        else
 171                        {
 0172                            value = PrivateLinkService.DeserializePrivateLinkService(document.RootElement);
 173                        }
 0174                        return Response.FromValue(value, message.Response);
 175                    }
 176                default:
 0177                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 178            }
 0179        }
 180
 181        /// <summary> Gets the specified private link service by resource group. </summary>
 182        /// <param name="resourceGroupName"> The name of the resource group. </param>
 183        /// <param name="serviceName"> The name of the private link service. </param>
 184        /// <param name="expand"> Expands referenced resources. </param>
 185        /// <param name="cancellationToken"> The cancellation token to use. </param>
 186        public Response<PrivateLinkService> Get(string resourceGroupName, string serviceName, string expand = null, Canc
 187        {
 0188            if (resourceGroupName == null)
 189            {
 0190                throw new ArgumentNullException(nameof(resourceGroupName));
 191            }
 0192            if (serviceName == null)
 193            {
 0194                throw new ArgumentNullException(nameof(serviceName));
 195            }
 196
 0197            using var message = CreateGetRequest(resourceGroupName, serviceName, expand);
 0198            _pipeline.Send(message, cancellationToken);
 0199            switch (message.Response.Status)
 200            {
 201                case 200:
 202                    {
 0203                        PrivateLinkService value = default;
 0204                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0205                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 206                        {
 0207                            value = null;
 208                        }
 209                        else
 210                        {
 0211                            value = PrivateLinkService.DeserializePrivateLinkService(document.RootElement);
 212                        }
 0213                        return Response.FromValue(value, message.Response);
 214                    }
 215                default:
 0216                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 217            }
 0218        }
 219
 220        internal HttpMessage CreateCreateOrUpdateRequest(string resourceGroupName, string serviceName, PrivateLinkServic
 221        {
 0222            var message = _pipeline.CreateMessage();
 0223            var request = message.Request;
 0224            request.Method = RequestMethod.Put;
 0225            var uri = new RawRequestUriBuilder();
 0226            uri.Reset(endpoint);
 0227            uri.AppendPath("/subscriptions/", false);
 0228            uri.AppendPath(subscriptionId, true);
 0229            uri.AppendPath("/resourceGroups/", false);
 0230            uri.AppendPath(resourceGroupName, true);
 0231            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 0232            uri.AppendPath(serviceName, true);
 0233            uri.AppendQuery("api-version", "2020-04-01", true);
 0234            request.Uri = uri;
 0235            request.Headers.Add("Content-Type", "application/json");
 0236            var content = new Utf8JsonRequestContent();
 0237            content.JsonWriter.WriteObjectValue(parameters);
 0238            request.Content = content;
 0239            return message;
 240        }
 241
 242        /// <summary> Creates or updates an private link service in the specified resource group. </summary>
 243        /// <param name="resourceGroupName"> The name of the resource group. </param>
 244        /// <param name="serviceName"> The name of the private link service. </param>
 245        /// <param name="parameters"> Parameters supplied to the create or update private link service operation. </para
 246        /// <param name="cancellationToken"> The cancellation token to use. </param>
 247        public async Task<Response> CreateOrUpdateAsync(string resourceGroupName, string serviceName, PrivateLinkService
 248        {
 0249            if (resourceGroupName == null)
 250            {
 0251                throw new ArgumentNullException(nameof(resourceGroupName));
 252            }
 0253            if (serviceName == null)
 254            {
 0255                throw new ArgumentNullException(nameof(serviceName));
 256            }
 0257            if (parameters == null)
 258            {
 0259                throw new ArgumentNullException(nameof(parameters));
 260            }
 261
 0262            using var message = CreateCreateOrUpdateRequest(resourceGroupName, serviceName, parameters);
 0263            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0264            switch (message.Response.Status)
 265            {
 266                case 200:
 267                case 201:
 0268                    return message.Response;
 269                default:
 0270                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 271            }
 0272        }
 273
 274        /// <summary> Creates or updates an private link service in the specified resource group. </summary>
 275        /// <param name="resourceGroupName"> The name of the resource group. </param>
 276        /// <param name="serviceName"> The name of the private link service. </param>
 277        /// <param name="parameters"> Parameters supplied to the create or update private link service operation. </para
 278        /// <param name="cancellationToken"> The cancellation token to use. </param>
 279        public Response CreateOrUpdate(string resourceGroupName, string serviceName, PrivateLinkService parameters, Canc
 280        {
 0281            if (resourceGroupName == null)
 282            {
 0283                throw new ArgumentNullException(nameof(resourceGroupName));
 284            }
 0285            if (serviceName == null)
 286            {
 0287                throw new ArgumentNullException(nameof(serviceName));
 288            }
 0289            if (parameters == null)
 290            {
 0291                throw new ArgumentNullException(nameof(parameters));
 292            }
 293
 0294            using var message = CreateCreateOrUpdateRequest(resourceGroupName, serviceName, parameters);
 0295            _pipeline.Send(message, cancellationToken);
 0296            switch (message.Response.Status)
 297            {
 298                case 200:
 299                case 201:
 0300                    return message.Response;
 301                default:
 0302                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 303            }
 0304        }
 305
 306        internal HttpMessage CreateListRequest(string resourceGroupName)
 307        {
 0308            var message = _pipeline.CreateMessage();
 0309            var request = message.Request;
 0310            request.Method = RequestMethod.Get;
 0311            var uri = new RawRequestUriBuilder();
 0312            uri.Reset(endpoint);
 0313            uri.AppendPath("/subscriptions/", false);
 0314            uri.AppendPath(subscriptionId, true);
 0315            uri.AppendPath("/resourceGroups/", false);
 0316            uri.AppendPath(resourceGroupName, true);
 0317            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices", false);
 0318            uri.AppendQuery("api-version", "2020-04-01", true);
 0319            request.Uri = uri;
 0320            return message;
 321        }
 322
 323        /// <summary> Gets all private link services in a resource group. </summary>
 324        /// <param name="resourceGroupName"> The name of the resource group. </param>
 325        /// <param name="cancellationToken"> The cancellation token to use. </param>
 326        public async Task<Response<PrivateLinkServiceListResult>> ListAsync(string resourceGroupName, CancellationToken 
 327        {
 0328            if (resourceGroupName == null)
 329            {
 0330                throw new ArgumentNullException(nameof(resourceGroupName));
 331            }
 332
 0333            using var message = CreateListRequest(resourceGroupName);
 0334            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0335            switch (message.Response.Status)
 336            {
 337                case 200:
 338                    {
 0339                        PrivateLinkServiceListResult value = default;
 0340                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0341                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 342                        {
 0343                            value = null;
 344                        }
 345                        else
 346                        {
 0347                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 348                        }
 0349                        return Response.FromValue(value, message.Response);
 350                    }
 351                default:
 0352                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 353            }
 0354        }
 355
 356        /// <summary> Gets all private link services in a resource group. </summary>
 357        /// <param name="resourceGroupName"> The name of the resource group. </param>
 358        /// <param name="cancellationToken"> The cancellation token to use. </param>
 359        public Response<PrivateLinkServiceListResult> List(string resourceGroupName, CancellationToken cancellationToken
 360        {
 0361            if (resourceGroupName == null)
 362            {
 0363                throw new ArgumentNullException(nameof(resourceGroupName));
 364            }
 365
 0366            using var message = CreateListRequest(resourceGroupName);
 0367            _pipeline.Send(message, cancellationToken);
 0368            switch (message.Response.Status)
 369            {
 370                case 200:
 371                    {
 0372                        PrivateLinkServiceListResult value = default;
 0373                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0374                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 375                        {
 0376                            value = null;
 377                        }
 378                        else
 379                        {
 0380                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 381                        }
 0382                        return Response.FromValue(value, message.Response);
 383                    }
 384                default:
 0385                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 386            }
 0387        }
 388
 389        internal HttpMessage CreateListBySubscriptionRequest()
 390        {
 0391            var message = _pipeline.CreateMessage();
 0392            var request = message.Request;
 0393            request.Method = RequestMethod.Get;
 0394            var uri = new RawRequestUriBuilder();
 0395            uri.Reset(endpoint);
 0396            uri.AppendPath("/subscriptions/", false);
 0397            uri.AppendPath(subscriptionId, true);
 0398            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices", false);
 0399            uri.AppendQuery("api-version", "2020-04-01", true);
 0400            request.Uri = uri;
 0401            return message;
 402        }
 403
 404        /// <summary> Gets all private link service in a subscription. </summary>
 405        /// <param name="cancellationToken"> The cancellation token to use. </param>
 406        public async Task<Response<PrivateLinkServiceListResult>> ListBySubscriptionAsync(CancellationToken cancellation
 407        {
 0408            using var message = CreateListBySubscriptionRequest();
 0409            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0410            switch (message.Response.Status)
 411            {
 412                case 200:
 413                    {
 0414                        PrivateLinkServiceListResult value = default;
 0415                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0416                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 417                        {
 0418                            value = null;
 419                        }
 420                        else
 421                        {
 0422                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 423                        }
 0424                        return Response.FromValue(value, message.Response);
 425                    }
 426                default:
 0427                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 428            }
 0429        }
 430
 431        /// <summary> Gets all private link service in a subscription. </summary>
 432        /// <param name="cancellationToken"> The cancellation token to use. </param>
 433        public Response<PrivateLinkServiceListResult> ListBySubscription(CancellationToken cancellationToken = default)
 434        {
 0435            using var message = CreateListBySubscriptionRequest();
 0436            _pipeline.Send(message, cancellationToken);
 0437            switch (message.Response.Status)
 438            {
 439                case 200:
 440                    {
 0441                        PrivateLinkServiceListResult value = default;
 0442                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0443                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 444                        {
 0445                            value = null;
 446                        }
 447                        else
 448                        {
 0449                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 450                        }
 0451                        return Response.FromValue(value, message.Response);
 452                    }
 453                default:
 0454                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 455            }
 0456        }
 457
 458        internal HttpMessage CreateGetPrivateEndpointConnectionRequest(string resourceGroupName, string serviceName, str
 459        {
 0460            var message = _pipeline.CreateMessage();
 0461            var request = message.Request;
 0462            request.Method = RequestMethod.Get;
 0463            var uri = new RawRequestUriBuilder();
 0464            uri.Reset(endpoint);
 0465            uri.AppendPath("/subscriptions/", false);
 0466            uri.AppendPath(subscriptionId, true);
 0467            uri.AppendPath("/resourceGroups/", false);
 0468            uri.AppendPath(resourceGroupName, true);
 0469            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 0470            uri.AppendPath(serviceName, true);
 0471            uri.AppendPath("/privateEndpointConnections/", false);
 0472            uri.AppendPath(peConnectionName, true);
 0473            uri.AppendQuery("api-version", "2020-04-01", true);
 0474            if (expand != null)
 475            {
 0476                uri.AppendQuery("$expand", expand, true);
 477            }
 0478            request.Uri = uri;
 0479            return message;
 480        }
 481
 482        /// <summary> Get the specific private end point connection by specific private link service in the resource gro
 483        /// <param name="resourceGroupName"> The name of the resource group. </param>
 484        /// <param name="serviceName"> The name of the private link service. </param>
 485        /// <param name="peConnectionName"> The name of the private end point connection. </param>
 486        /// <param name="expand"> Expands referenced resources. </param>
 487        /// <param name="cancellationToken"> The cancellation token to use. </param>
 488        public async Task<Response<PrivateEndpointConnection>> GetPrivateEndpointConnectionAsync(string resourceGroupNam
 489        {
 0490            if (resourceGroupName == null)
 491            {
 0492                throw new ArgumentNullException(nameof(resourceGroupName));
 493            }
 0494            if (serviceName == null)
 495            {
 0496                throw new ArgumentNullException(nameof(serviceName));
 497            }
 0498            if (peConnectionName == null)
 499            {
 0500                throw new ArgumentNullException(nameof(peConnectionName));
 501            }
 502
 0503            using var message = CreateGetPrivateEndpointConnectionRequest(resourceGroupName, serviceName, peConnectionNa
 0504            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0505            switch (message.Response.Status)
 506            {
 507                case 200:
 508                    {
 0509                        PrivateEndpointConnection value = default;
 0510                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0511                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 512                        {
 0513                            value = null;
 514                        }
 515                        else
 516                        {
 0517                            value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement)
 518                        }
 0519                        return Response.FromValue(value, message.Response);
 520                    }
 521                default:
 0522                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 523            }
 0524        }
 525
 526        /// <summary> Get the specific private end point connection by specific private link service in the resource gro
 527        /// <param name="resourceGroupName"> The name of the resource group. </param>
 528        /// <param name="serviceName"> The name of the private link service. </param>
 529        /// <param name="peConnectionName"> The name of the private end point connection. </param>
 530        /// <param name="expand"> Expands referenced resources. </param>
 531        /// <param name="cancellationToken"> The cancellation token to use. </param>
 532        public Response<PrivateEndpointConnection> GetPrivateEndpointConnection(string resourceGroupName, string service
 533        {
 0534            if (resourceGroupName == null)
 535            {
 0536                throw new ArgumentNullException(nameof(resourceGroupName));
 537            }
 0538            if (serviceName == null)
 539            {
 0540                throw new ArgumentNullException(nameof(serviceName));
 541            }
 0542            if (peConnectionName == null)
 543            {
 0544                throw new ArgumentNullException(nameof(peConnectionName));
 545            }
 546
 0547            using var message = CreateGetPrivateEndpointConnectionRequest(resourceGroupName, serviceName, peConnectionNa
 0548            _pipeline.Send(message, cancellationToken);
 0549            switch (message.Response.Status)
 550            {
 551                case 200:
 552                    {
 0553                        PrivateEndpointConnection value = default;
 0554                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0555                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 556                        {
 0557                            value = null;
 558                        }
 559                        else
 560                        {
 0561                            value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement)
 562                        }
 0563                        return Response.FromValue(value, message.Response);
 564                    }
 565                default:
 0566                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 567            }
 0568        }
 569
 570        internal HttpMessage CreateUpdatePrivateEndpointConnectionRequest(string resourceGroupName, string serviceName, 
 571        {
 0572            var message = _pipeline.CreateMessage();
 0573            var request = message.Request;
 0574            request.Method = RequestMethod.Put;
 0575            var uri = new RawRequestUriBuilder();
 0576            uri.Reset(endpoint);
 0577            uri.AppendPath("/subscriptions/", false);
 0578            uri.AppendPath(subscriptionId, true);
 0579            uri.AppendPath("/resourceGroups/", false);
 0580            uri.AppendPath(resourceGroupName, true);
 0581            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 0582            uri.AppendPath(serviceName, true);
 0583            uri.AppendPath("/privateEndpointConnections/", false);
 0584            uri.AppendPath(peConnectionName, true);
 0585            uri.AppendQuery("api-version", "2020-04-01", true);
 0586            request.Uri = uri;
 0587            request.Headers.Add("Content-Type", "application/json");
 0588            var content = new Utf8JsonRequestContent();
 0589            content.JsonWriter.WriteObjectValue(parameters);
 0590            request.Content = content;
 0591            return message;
 592        }
 593
 594        /// <summary> Approve or reject private end point connection for a private link service in a subscription. </sum
 595        /// <param name="resourceGroupName"> The name of the resource group. </param>
 596        /// <param name="serviceName"> The name of the private link service. </param>
 597        /// <param name="peConnectionName"> The name of the private end point connection. </param>
 598        /// <param name="parameters"> Parameters supplied to approve or reject the private end point connection. </param
 599        /// <param name="cancellationToken"> The cancellation token to use. </param>
 600        public async Task<Response<PrivateEndpointConnection>> UpdatePrivateEndpointConnectionAsync(string resourceGroup
 601        {
 0602            if (resourceGroupName == null)
 603            {
 0604                throw new ArgumentNullException(nameof(resourceGroupName));
 605            }
 0606            if (serviceName == null)
 607            {
 0608                throw new ArgumentNullException(nameof(serviceName));
 609            }
 0610            if (peConnectionName == null)
 611            {
 0612                throw new ArgumentNullException(nameof(peConnectionName));
 613            }
 0614            if (parameters == null)
 615            {
 0616                throw new ArgumentNullException(nameof(parameters));
 617            }
 618
 0619            using var message = CreateUpdatePrivateEndpointConnectionRequest(resourceGroupName, serviceName, peConnectio
 0620            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0621            switch (message.Response.Status)
 622            {
 623                case 200:
 624                    {
 0625                        PrivateEndpointConnection value = default;
 0626                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0627                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 628                        {
 0629                            value = null;
 630                        }
 631                        else
 632                        {
 0633                            value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement)
 634                        }
 0635                        return Response.FromValue(value, message.Response);
 636                    }
 637                default:
 0638                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 639            }
 0640        }
 641
 642        /// <summary> Approve or reject private end point connection for a private link service in a subscription. </sum
 643        /// <param name="resourceGroupName"> The name of the resource group. </param>
 644        /// <param name="serviceName"> The name of the private link service. </param>
 645        /// <param name="peConnectionName"> The name of the private end point connection. </param>
 646        /// <param name="parameters"> Parameters supplied to approve or reject the private end point connection. </param
 647        /// <param name="cancellationToken"> The cancellation token to use. </param>
 648        public Response<PrivateEndpointConnection> UpdatePrivateEndpointConnection(string resourceGroupName, string serv
 649        {
 0650            if (resourceGroupName == null)
 651            {
 0652                throw new ArgumentNullException(nameof(resourceGroupName));
 653            }
 0654            if (serviceName == null)
 655            {
 0656                throw new ArgumentNullException(nameof(serviceName));
 657            }
 0658            if (peConnectionName == null)
 659            {
 0660                throw new ArgumentNullException(nameof(peConnectionName));
 661            }
 0662            if (parameters == null)
 663            {
 0664                throw new ArgumentNullException(nameof(parameters));
 665            }
 666
 0667            using var message = CreateUpdatePrivateEndpointConnectionRequest(resourceGroupName, serviceName, peConnectio
 0668            _pipeline.Send(message, cancellationToken);
 0669            switch (message.Response.Status)
 670            {
 671                case 200:
 672                    {
 0673                        PrivateEndpointConnection value = default;
 0674                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0675                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 676                        {
 0677                            value = null;
 678                        }
 679                        else
 680                        {
 0681                            value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement)
 682                        }
 0683                        return Response.FromValue(value, message.Response);
 684                    }
 685                default:
 0686                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 687            }
 0688        }
 689
 690        internal HttpMessage CreateDeletePrivateEndpointConnectionRequest(string resourceGroupName, string serviceName, 
 691        {
 0692            var message = _pipeline.CreateMessage();
 0693            var request = message.Request;
 0694            request.Method = RequestMethod.Delete;
 0695            var uri = new RawRequestUriBuilder();
 0696            uri.Reset(endpoint);
 0697            uri.AppendPath("/subscriptions/", false);
 0698            uri.AppendPath(subscriptionId, true);
 0699            uri.AppendPath("/resourceGroups/", false);
 0700            uri.AppendPath(resourceGroupName, true);
 0701            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 0702            uri.AppendPath(serviceName, true);
 0703            uri.AppendPath("/privateEndpointConnections/", false);
 0704            uri.AppendPath(peConnectionName, true);
 0705            uri.AppendQuery("api-version", "2020-04-01", true);
 0706            request.Uri = uri;
 0707            return message;
 708        }
 709
 710        /// <summary> Delete private end point connection for a private link service in a subscription. </summary>
 711        /// <param name="resourceGroupName"> The name of the resource group. </param>
 712        /// <param name="serviceName"> The name of the private link service. </param>
 713        /// <param name="peConnectionName"> The name of the private end point connection. </param>
 714        /// <param name="cancellationToken"> The cancellation token to use. </param>
 715        public async Task<Response> DeletePrivateEndpointConnectionAsync(string resourceGroupName, string serviceName, s
 716        {
 0717            if (resourceGroupName == null)
 718            {
 0719                throw new ArgumentNullException(nameof(resourceGroupName));
 720            }
 0721            if (serviceName == null)
 722            {
 0723                throw new ArgumentNullException(nameof(serviceName));
 724            }
 0725            if (peConnectionName == null)
 726            {
 0727                throw new ArgumentNullException(nameof(peConnectionName));
 728            }
 729
 0730            using var message = CreateDeletePrivateEndpointConnectionRequest(resourceGroupName, serviceName, peConnectio
 0731            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0732            switch (message.Response.Status)
 733            {
 734                case 200:
 735                case 202:
 736                case 204:
 0737                    return message.Response;
 738                default:
 0739                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 740            }
 0741        }
 742
 743        /// <summary> Delete private end point connection for a private link service in a subscription. </summary>
 744        /// <param name="resourceGroupName"> The name of the resource group. </param>
 745        /// <param name="serviceName"> The name of the private link service. </param>
 746        /// <param name="peConnectionName"> The name of the private end point connection. </param>
 747        /// <param name="cancellationToken"> The cancellation token to use. </param>
 748        public Response DeletePrivateEndpointConnection(string resourceGroupName, string serviceName, string peConnectio
 749        {
 0750            if (resourceGroupName == null)
 751            {
 0752                throw new ArgumentNullException(nameof(resourceGroupName));
 753            }
 0754            if (serviceName == null)
 755            {
 0756                throw new ArgumentNullException(nameof(serviceName));
 757            }
 0758            if (peConnectionName == null)
 759            {
 0760                throw new ArgumentNullException(nameof(peConnectionName));
 761            }
 762
 0763            using var message = CreateDeletePrivateEndpointConnectionRequest(resourceGroupName, serviceName, peConnectio
 0764            _pipeline.Send(message, cancellationToken);
 0765            switch (message.Response.Status)
 766            {
 767                case 200:
 768                case 202:
 769                case 204:
 0770                    return message.Response;
 771                default:
 0772                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 773            }
 0774        }
 775
 776        internal HttpMessage CreateListPrivateEndpointConnectionsRequest(string resourceGroupName, string serviceName)
 777        {
 0778            var message = _pipeline.CreateMessage();
 0779            var request = message.Request;
 0780            request.Method = RequestMethod.Get;
 0781            var uri = new RawRequestUriBuilder();
 0782            uri.Reset(endpoint);
 0783            uri.AppendPath("/subscriptions/", false);
 0784            uri.AppendPath(subscriptionId, true);
 0785            uri.AppendPath("/resourceGroups/", false);
 0786            uri.AppendPath(resourceGroupName, true);
 0787            uri.AppendPath("/providers/Microsoft.Network/privateLinkServices/", false);
 0788            uri.AppendPath(serviceName, true);
 0789            uri.AppendPath("/privateEndpointConnections", false);
 0790            uri.AppendQuery("api-version", "2020-04-01", true);
 0791            request.Uri = uri;
 0792            return message;
 793        }
 794
 795        /// <summary> Gets all private end point connections for a specific private link service. </summary>
 796        /// <param name="resourceGroupName"> The name of the resource group. </param>
 797        /// <param name="serviceName"> The name of the private link service. </param>
 798        /// <param name="cancellationToken"> The cancellation token to use. </param>
 799        public async Task<Response<PrivateEndpointConnectionListResult>> ListPrivateEndpointConnectionsAsync(string reso
 800        {
 0801            if (resourceGroupName == null)
 802            {
 0803                throw new ArgumentNullException(nameof(resourceGroupName));
 804            }
 0805            if (serviceName == null)
 806            {
 0807                throw new ArgumentNullException(nameof(serviceName));
 808            }
 809
 0810            using var message = CreateListPrivateEndpointConnectionsRequest(resourceGroupName, serviceName);
 0811            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0812            switch (message.Response.Status)
 813            {
 814                case 200:
 815                    {
 0816                        PrivateEndpointConnectionListResult value = default;
 0817                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 0818                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 819                        {
 0820                            value = null;
 821                        }
 822                        else
 823                        {
 0824                            value = PrivateEndpointConnectionListResult.DeserializePrivateEndpointConnectionListResult(d
 825                        }
 0826                        return Response.FromValue(value, message.Response);
 827                    }
 828                default:
 0829                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 830            }
 0831        }
 832
 833        /// <summary> Gets all private end point connections for a specific private link service. </summary>
 834        /// <param name="resourceGroupName"> The name of the resource group. </param>
 835        /// <param name="serviceName"> The name of the private link service. </param>
 836        /// <param name="cancellationToken"> The cancellation token to use. </param>
 837        public Response<PrivateEndpointConnectionListResult> ListPrivateEndpointConnections(string resourceGroupName, st
 838        {
 0839            if (resourceGroupName == null)
 840            {
 0841                throw new ArgumentNullException(nameof(resourceGroupName));
 842            }
 0843            if (serviceName == null)
 844            {
 0845                throw new ArgumentNullException(nameof(serviceName));
 846            }
 847
 0848            using var message = CreateListPrivateEndpointConnectionsRequest(resourceGroupName, serviceName);
 0849            _pipeline.Send(message, cancellationToken);
 0850            switch (message.Response.Status)
 851            {
 852                case 200:
 853                    {
 0854                        PrivateEndpointConnectionListResult value = default;
 0855                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 0856                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 857                        {
 0858                            value = null;
 859                        }
 860                        else
 861                        {
 0862                            value = PrivateEndpointConnectionListResult.DeserializePrivateEndpointConnectionListResult(d
 863                        }
 0864                        return Response.FromValue(value, message.Response);
 865                    }
 866                default:
 0867                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 868            }
 0869        }
 870
 871        internal HttpMessage CreateCheckPrivateLinkServiceVisibilityRequest(string location, CheckPrivateLinkServiceVisi
 872        {
 0873            var message = _pipeline.CreateMessage();
 0874            var request = message.Request;
 0875            request.Method = RequestMethod.Post;
 0876            var uri = new RawRequestUriBuilder();
 0877            uri.Reset(endpoint);
 0878            uri.AppendPath("/subscriptions/", false);
 0879            uri.AppendPath(subscriptionId, true);
 0880            uri.AppendPath("/providers/Microsoft.Network/locations/", false);
 0881            uri.AppendPath(location, true);
 0882            uri.AppendPath("/checkPrivateLinkServiceVisibility", false);
 0883            uri.AppendQuery("api-version", "2020-04-01", true);
 0884            request.Uri = uri;
 0885            request.Headers.Add("Content-Type", "application/json");
 0886            var content = new Utf8JsonRequestContent();
 0887            content.JsonWriter.WriteObjectValue(parameters);
 0888            request.Content = content;
 0889            return message;
 890        }
 891
 892        /// <summary> Checks whether the subscription is visible to private link service. </summary>
 893        /// <param name="location"> The location of the domain name. </param>
 894        /// <param name="parameters"> The request body of CheckPrivateLinkService API call. </param>
 895        /// <param name="cancellationToken"> The cancellation token to use. </param>
 896        public async Task<Response> CheckPrivateLinkServiceVisibilityAsync(string location, CheckPrivateLinkServiceVisib
 897        {
 0898            if (location == null)
 899            {
 0900                throw new ArgumentNullException(nameof(location));
 901            }
 0902            if (parameters == null)
 903            {
 0904                throw new ArgumentNullException(nameof(parameters));
 905            }
 906
 0907            using var message = CreateCheckPrivateLinkServiceVisibilityRequest(location, parameters);
 0908            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 0909            switch (message.Response.Status)
 910            {
 911                case 200:
 912                case 202:
 0913                    return message.Response;
 914                default:
 0915                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 916            }
 0917        }
 918
 919        /// <summary> Checks whether the subscription is visible to private link service. </summary>
 920        /// <param name="location"> The location of the domain name. </param>
 921        /// <param name="parameters"> The request body of CheckPrivateLinkService API call. </param>
 922        /// <param name="cancellationToken"> The cancellation token to use. </param>
 923        public Response CheckPrivateLinkServiceVisibility(string location, CheckPrivateLinkServiceVisibilityRequest para
 924        {
 0925            if (location == null)
 926            {
 0927                throw new ArgumentNullException(nameof(location));
 928            }
 0929            if (parameters == null)
 930            {
 0931                throw new ArgumentNullException(nameof(parameters));
 932            }
 933
 0934            using var message = CreateCheckPrivateLinkServiceVisibilityRequest(location, parameters);
 0935            _pipeline.Send(message, cancellationToken);
 0936            switch (message.Response.Status)
 937            {
 938                case 200:
 939                case 202:
 0940                    return message.Response;
 941                default:
 0942                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 943            }
 0944        }
 945
 946        internal HttpMessage CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequest(string location, string resou
 947        {
 8948            var message = _pipeline.CreateMessage();
 8949            var request = message.Request;
 8950            request.Method = RequestMethod.Post;
 8951            var uri = new RawRequestUriBuilder();
 8952            uri.Reset(endpoint);
 8953            uri.AppendPath("/subscriptions/", false);
 8954            uri.AppendPath(subscriptionId, true);
 8955            uri.AppendPath("/resourceGroups/", false);
 8956            uri.AppendPath(resourceGroupName, true);
 8957            uri.AppendPath("/providers/Microsoft.Network/locations/", false);
 8958            uri.AppendPath(location, true);
 8959            uri.AppendPath("/checkPrivateLinkServiceVisibility", false);
 8960            uri.AppendQuery("api-version", "2020-04-01", true);
 8961            request.Uri = uri;
 8962            request.Headers.Add("Content-Type", "application/json");
 8963            var content = new Utf8JsonRequestContent();
 8964            content.JsonWriter.WriteObjectValue(parameters);
 8965            request.Content = content;
 8966            return message;
 967        }
 968
 969        /// <summary> Checks whether the subscription is visible to private link service in the specified resource group
 970        /// <param name="location"> The location of the domain name. </param>
 971        /// <param name="resourceGroupName"> The name of the resource group. </param>
 972        /// <param name="parameters"> The request body of CheckPrivateLinkService API call. </param>
 973        /// <param name="cancellationToken"> The cancellation token to use. </param>
 974        public async Task<Response> CheckPrivateLinkServiceVisibilityByResourceGroupAsync(string location, string resour
 975        {
 2976            if (location == null)
 977            {
 0978                throw new ArgumentNullException(nameof(location));
 979            }
 2980            if (resourceGroupName == null)
 981            {
 0982                throw new ArgumentNullException(nameof(resourceGroupName));
 983            }
 2984            if (parameters == null)
 985            {
 0986                throw new ArgumentNullException(nameof(parameters));
 987            }
 988
 2989            using var message = CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequest(location, resourceGroupNam
 2990            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 2991            switch (message.Response.Status)
 992            {
 993                case 200:
 994                case 202:
 2995                    return message.Response;
 996                default:
 0997                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 998            }
 2999        }
 1000
 1001        /// <summary> Checks whether the subscription is visible to private link service in the specified resource group
 1002        /// <param name="location"> The location of the domain name. </param>
 1003        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1004        /// <param name="parameters"> The request body of CheckPrivateLinkService API call. </param>
 1005        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1006        public Response CheckPrivateLinkServiceVisibilityByResourceGroup(string location, string resourceGroupName, Chec
 1007        {
 21008            if (location == null)
 1009            {
 01010                throw new ArgumentNullException(nameof(location));
 1011            }
 21012            if (resourceGroupName == null)
 1013            {
 01014                throw new ArgumentNullException(nameof(resourceGroupName));
 1015            }
 21016            if (parameters == null)
 1017            {
 01018                throw new ArgumentNullException(nameof(parameters));
 1019            }
 1020
 21021            using var message = CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequest(location, resourceGroupNam
 21022            _pipeline.Send(message, cancellationToken);
 21023            switch (message.Response.Status)
 1024            {
 1025                case 200:
 1026                case 202:
 21027                    return message.Response;
 1028                default:
 01029                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1030            }
 21031        }
 1032
 1033        internal HttpMessage CreateListAutoApprovedPrivateLinkServicesRequest(string location)
 1034        {
 01035            var message = _pipeline.CreateMessage();
 01036            var request = message.Request;
 01037            request.Method = RequestMethod.Get;
 01038            var uri = new RawRequestUriBuilder();
 01039            uri.Reset(endpoint);
 01040            uri.AppendPath("/subscriptions/", false);
 01041            uri.AppendPath(subscriptionId, true);
 01042            uri.AppendPath("/providers/Microsoft.Network/locations/", false);
 01043            uri.AppendPath(location, true);
 01044            uri.AppendPath("/autoApprovedPrivateLinkServices", false);
 01045            uri.AppendQuery("api-version", "2020-04-01", true);
 01046            request.Uri = uri;
 01047            return message;
 1048        }
 1049
 1050        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1051        /// <param name="location"> The location of the domain name. </param>
 1052        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1053        public async Task<Response<AutoApprovedPrivateLinkServicesResult>> ListAutoApprovedPrivateLinkServicesAsync(stri
 1054        {
 01055            if (location == null)
 1056            {
 01057                throw new ArgumentNullException(nameof(location));
 1058            }
 1059
 01060            using var message = CreateListAutoApprovedPrivateLinkServicesRequest(location);
 01061            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01062            switch (message.Response.Status)
 1063            {
 1064                case 200:
 1065                    {
 01066                        AutoApprovedPrivateLinkServicesResult value = default;
 01067                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01068                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1069                        {
 01070                            value = null;
 1071                        }
 1072                        else
 1073                        {
 01074                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1075                        }
 01076                        return Response.FromValue(value, message.Response);
 1077                    }
 1078                default:
 01079                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1080            }
 01081        }
 1082
 1083        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1084        /// <param name="location"> The location of the domain name. </param>
 1085        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1086        public Response<AutoApprovedPrivateLinkServicesResult> ListAutoApprovedPrivateLinkServices(string location, Canc
 1087        {
 01088            if (location == null)
 1089            {
 01090                throw new ArgumentNullException(nameof(location));
 1091            }
 1092
 01093            using var message = CreateListAutoApprovedPrivateLinkServicesRequest(location);
 01094            _pipeline.Send(message, cancellationToken);
 01095            switch (message.Response.Status)
 1096            {
 1097                case 200:
 1098                    {
 01099                        AutoApprovedPrivateLinkServicesResult value = default;
 01100                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01101                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1102                        {
 01103                            value = null;
 1104                        }
 1105                        else
 1106                        {
 01107                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1108                        }
 01109                        return Response.FromValue(value, message.Response);
 1110                    }
 1111                default:
 01112                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1113            }
 01114        }
 1115
 1116        internal HttpMessage CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequest(string location, string res
 1117        {
 01118            var message = _pipeline.CreateMessage();
 01119            var request = message.Request;
 01120            request.Method = RequestMethod.Get;
 01121            var uri = new RawRequestUriBuilder();
 01122            uri.Reset(endpoint);
 01123            uri.AppendPath("/subscriptions/", false);
 01124            uri.AppendPath(subscriptionId, true);
 01125            uri.AppendPath("/resourceGroups/", false);
 01126            uri.AppendPath(resourceGroupName, true);
 01127            uri.AppendPath("/providers/Microsoft.Network/locations/", false);
 01128            uri.AppendPath(location, true);
 01129            uri.AppendPath("/autoApprovedPrivateLinkServices", false);
 01130            uri.AppendQuery("api-version", "2020-04-01", true);
 01131            request.Uri = uri;
 01132            return message;
 1133        }
 1134
 1135        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1136        /// <param name="location"> The location of the domain name. </param>
 1137        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1138        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1139        public async Task<Response<AutoApprovedPrivateLinkServicesResult>> ListAutoApprovedPrivateLinkServicesByResource
 1140        {
 01141            if (location == null)
 1142            {
 01143                throw new ArgumentNullException(nameof(location));
 1144            }
 01145            if (resourceGroupName == null)
 1146            {
 01147                throw new ArgumentNullException(nameof(resourceGroupName));
 1148            }
 1149
 01150            using var message = CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequest(location, resourceGroupN
 01151            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01152            switch (message.Response.Status)
 1153            {
 1154                case 200:
 1155                    {
 01156                        AutoApprovedPrivateLinkServicesResult value = default;
 01157                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01158                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1159                        {
 01160                            value = null;
 1161                        }
 1162                        else
 1163                        {
 01164                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1165                        }
 01166                        return Response.FromValue(value, message.Response);
 1167                    }
 1168                default:
 01169                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1170            }
 01171        }
 1172
 1173        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1174        /// <param name="location"> The location of the domain name. </param>
 1175        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1176        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1177        public Response<AutoApprovedPrivateLinkServicesResult> ListAutoApprovedPrivateLinkServicesByResourceGroup(string
 1178        {
 01179            if (location == null)
 1180            {
 01181                throw new ArgumentNullException(nameof(location));
 1182            }
 01183            if (resourceGroupName == null)
 1184            {
 01185                throw new ArgumentNullException(nameof(resourceGroupName));
 1186            }
 1187
 01188            using var message = CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequest(location, resourceGroupN
 01189            _pipeline.Send(message, cancellationToken);
 01190            switch (message.Response.Status)
 1191            {
 1192                case 200:
 1193                    {
 01194                        AutoApprovedPrivateLinkServicesResult value = default;
 01195                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01196                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1197                        {
 01198                            value = null;
 1199                        }
 1200                        else
 1201                        {
 01202                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1203                        }
 01204                        return Response.FromValue(value, message.Response);
 1205                    }
 1206                default:
 01207                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1208            }
 01209        }
 1210
 1211        internal HttpMessage CreateListNextPageRequest(string nextLink, string resourceGroupName)
 1212        {
 01213            var message = _pipeline.CreateMessage();
 01214            var request = message.Request;
 01215            request.Method = RequestMethod.Get;
 01216            var uri = new RawRequestUriBuilder();
 01217            uri.Reset(endpoint);
 01218            uri.AppendRawNextLink(nextLink, false);
 01219            request.Uri = uri;
 01220            return message;
 1221        }
 1222
 1223        /// <summary> Gets all private link services in a resource group. </summary>
 1224        /// <param name="nextLink"> The URL to the next page of results. </param>
 1225        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1226        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1227        public async Task<Response<PrivateLinkServiceListResult>> ListNextPageAsync(string nextLink, string resourceGrou
 1228        {
 01229            if (nextLink == null)
 1230            {
 01231                throw new ArgumentNullException(nameof(nextLink));
 1232            }
 01233            if (resourceGroupName == null)
 1234            {
 01235                throw new ArgumentNullException(nameof(resourceGroupName));
 1236            }
 1237
 01238            using var message = CreateListNextPageRequest(nextLink, resourceGroupName);
 01239            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01240            switch (message.Response.Status)
 1241            {
 1242                case 200:
 1243                    {
 01244                        PrivateLinkServiceListResult value = default;
 01245                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01246                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1247                        {
 01248                            value = null;
 1249                        }
 1250                        else
 1251                        {
 01252                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 1253                        }
 01254                        return Response.FromValue(value, message.Response);
 1255                    }
 1256                default:
 01257                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1258            }
 01259        }
 1260
 1261        /// <summary> Gets all private link services in a resource group. </summary>
 1262        /// <param name="nextLink"> The URL to the next page of results. </param>
 1263        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1264        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1265        public Response<PrivateLinkServiceListResult> ListNextPage(string nextLink, string resourceGroupName, Cancellati
 1266        {
 01267            if (nextLink == null)
 1268            {
 01269                throw new ArgumentNullException(nameof(nextLink));
 1270            }
 01271            if (resourceGroupName == null)
 1272            {
 01273                throw new ArgumentNullException(nameof(resourceGroupName));
 1274            }
 1275
 01276            using var message = CreateListNextPageRequest(nextLink, resourceGroupName);
 01277            _pipeline.Send(message, cancellationToken);
 01278            switch (message.Response.Status)
 1279            {
 1280                case 200:
 1281                    {
 01282                        PrivateLinkServiceListResult value = default;
 01283                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01284                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1285                        {
 01286                            value = null;
 1287                        }
 1288                        else
 1289                        {
 01290                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 1291                        }
 01292                        return Response.FromValue(value, message.Response);
 1293                    }
 1294                default:
 01295                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1296            }
 01297        }
 1298
 1299        internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink)
 1300        {
 01301            var message = _pipeline.CreateMessage();
 01302            var request = message.Request;
 01303            request.Method = RequestMethod.Get;
 01304            var uri = new RawRequestUriBuilder();
 01305            uri.Reset(endpoint);
 01306            uri.AppendRawNextLink(nextLink, false);
 01307            request.Uri = uri;
 01308            return message;
 1309        }
 1310
 1311        /// <summary> Gets all private link service in a subscription. </summary>
 1312        /// <param name="nextLink"> The URL to the next page of results. </param>
 1313        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1314        public async Task<Response<PrivateLinkServiceListResult>> ListBySubscriptionNextPageAsync(string nextLink, Cance
 1315        {
 01316            if (nextLink == null)
 1317            {
 01318                throw new ArgumentNullException(nameof(nextLink));
 1319            }
 1320
 01321            using var message = CreateListBySubscriptionNextPageRequest(nextLink);
 01322            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01323            switch (message.Response.Status)
 1324            {
 1325                case 200:
 1326                    {
 01327                        PrivateLinkServiceListResult value = default;
 01328                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01329                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1330                        {
 01331                            value = null;
 1332                        }
 1333                        else
 1334                        {
 01335                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 1336                        }
 01337                        return Response.FromValue(value, message.Response);
 1338                    }
 1339                default:
 01340                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1341            }
 01342        }
 1343
 1344        /// <summary> Gets all private link service in a subscription. </summary>
 1345        /// <param name="nextLink"> The URL to the next page of results. </param>
 1346        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1347        public Response<PrivateLinkServiceListResult> ListBySubscriptionNextPage(string nextLink, CancellationToken canc
 1348        {
 01349            if (nextLink == null)
 1350            {
 01351                throw new ArgumentNullException(nameof(nextLink));
 1352            }
 1353
 01354            using var message = CreateListBySubscriptionNextPageRequest(nextLink);
 01355            _pipeline.Send(message, cancellationToken);
 01356            switch (message.Response.Status)
 1357            {
 1358                case 200:
 1359                    {
 01360                        PrivateLinkServiceListResult value = default;
 01361                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01362                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1363                        {
 01364                            value = null;
 1365                        }
 1366                        else
 1367                        {
 01368                            value = PrivateLinkServiceListResult.DeserializePrivateLinkServiceListResult(document.RootEl
 1369                        }
 01370                        return Response.FromValue(value, message.Response);
 1371                    }
 1372                default:
 01373                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1374            }
 01375        }
 1376
 1377        internal HttpMessage CreateListPrivateEndpointConnectionsNextPageRequest(string nextLink, string resourceGroupNa
 1378        {
 01379            var message = _pipeline.CreateMessage();
 01380            var request = message.Request;
 01381            request.Method = RequestMethod.Get;
 01382            var uri = new RawRequestUriBuilder();
 01383            uri.Reset(endpoint);
 01384            uri.AppendRawNextLink(nextLink, false);
 01385            request.Uri = uri;
 01386            return message;
 1387        }
 1388
 1389        /// <summary> Gets all private end point connections for a specific private link service. </summary>
 1390        /// <param name="nextLink"> The URL to the next page of results. </param>
 1391        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1392        /// <param name="serviceName"> The name of the private link service. </param>
 1393        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1394        public async Task<Response<PrivateEndpointConnectionListResult>> ListPrivateEndpointConnectionsNextPageAsync(str
 1395        {
 01396            if (nextLink == null)
 1397            {
 01398                throw new ArgumentNullException(nameof(nextLink));
 1399            }
 01400            if (resourceGroupName == null)
 1401            {
 01402                throw new ArgumentNullException(nameof(resourceGroupName));
 1403            }
 01404            if (serviceName == null)
 1405            {
 01406                throw new ArgumentNullException(nameof(serviceName));
 1407            }
 1408
 01409            using var message = CreateListPrivateEndpointConnectionsNextPageRequest(nextLink, resourceGroupName, service
 01410            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01411            switch (message.Response.Status)
 1412            {
 1413                case 200:
 1414                    {
 01415                        PrivateEndpointConnectionListResult value = default;
 01416                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01417                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1418                        {
 01419                            value = null;
 1420                        }
 1421                        else
 1422                        {
 01423                            value = PrivateEndpointConnectionListResult.DeserializePrivateEndpointConnectionListResult(d
 1424                        }
 01425                        return Response.FromValue(value, message.Response);
 1426                    }
 1427                default:
 01428                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1429            }
 01430        }
 1431
 1432        /// <summary> Gets all private end point connections for a specific private link service. </summary>
 1433        /// <param name="nextLink"> The URL to the next page of results. </param>
 1434        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1435        /// <param name="serviceName"> The name of the private link service. </param>
 1436        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1437        public Response<PrivateEndpointConnectionListResult> ListPrivateEndpointConnectionsNextPage(string nextLink, str
 1438        {
 01439            if (nextLink == null)
 1440            {
 01441                throw new ArgumentNullException(nameof(nextLink));
 1442            }
 01443            if (resourceGroupName == null)
 1444            {
 01445                throw new ArgumentNullException(nameof(resourceGroupName));
 1446            }
 01447            if (serviceName == null)
 1448            {
 01449                throw new ArgumentNullException(nameof(serviceName));
 1450            }
 1451
 01452            using var message = CreateListPrivateEndpointConnectionsNextPageRequest(nextLink, resourceGroupName, service
 01453            _pipeline.Send(message, cancellationToken);
 01454            switch (message.Response.Status)
 1455            {
 1456                case 200:
 1457                    {
 01458                        PrivateEndpointConnectionListResult value = default;
 01459                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01460                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1461                        {
 01462                            value = null;
 1463                        }
 1464                        else
 1465                        {
 01466                            value = PrivateEndpointConnectionListResult.DeserializePrivateEndpointConnectionListResult(d
 1467                        }
 01468                        return Response.FromValue(value, message.Response);
 1469                    }
 1470                default:
 01471                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1472            }
 01473        }
 1474
 1475        internal HttpMessage CreateListAutoApprovedPrivateLinkServicesNextPageRequest(string nextLink, string location)
 1476        {
 01477            var message = _pipeline.CreateMessage();
 01478            var request = message.Request;
 01479            request.Method = RequestMethod.Get;
 01480            var uri = new RawRequestUriBuilder();
 01481            uri.Reset(endpoint);
 01482            uri.AppendRawNextLink(nextLink, false);
 01483            request.Uri = uri;
 01484            return message;
 1485        }
 1486
 1487        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1488        /// <param name="nextLink"> The URL to the next page of results. </param>
 1489        /// <param name="location"> The location of the domain name. </param>
 1490        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1491        public async Task<Response<AutoApprovedPrivateLinkServicesResult>> ListAutoApprovedPrivateLinkServicesNextPageAs
 1492        {
 01493            if (nextLink == null)
 1494            {
 01495                throw new ArgumentNullException(nameof(nextLink));
 1496            }
 01497            if (location == null)
 1498            {
 01499                throw new ArgumentNullException(nameof(location));
 1500            }
 1501
 01502            using var message = CreateListAutoApprovedPrivateLinkServicesNextPageRequest(nextLink, location);
 01503            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01504            switch (message.Response.Status)
 1505            {
 1506                case 200:
 1507                    {
 01508                        AutoApprovedPrivateLinkServicesResult value = default;
 01509                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01510                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1511                        {
 01512                            value = null;
 1513                        }
 1514                        else
 1515                        {
 01516                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1517                        }
 01518                        return Response.FromValue(value, message.Response);
 1519                    }
 1520                default:
 01521                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1522            }
 01523        }
 1524
 1525        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1526        /// <param name="nextLink"> The URL to the next page of results. </param>
 1527        /// <param name="location"> The location of the domain name. </param>
 1528        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1529        public Response<AutoApprovedPrivateLinkServicesResult> ListAutoApprovedPrivateLinkServicesNextPage(string nextLi
 1530        {
 01531            if (nextLink == null)
 1532            {
 01533                throw new ArgumentNullException(nameof(nextLink));
 1534            }
 01535            if (location == null)
 1536            {
 01537                throw new ArgumentNullException(nameof(location));
 1538            }
 1539
 01540            using var message = CreateListAutoApprovedPrivateLinkServicesNextPageRequest(nextLink, location);
 01541            _pipeline.Send(message, cancellationToken);
 01542            switch (message.Response.Status)
 1543            {
 1544                case 200:
 1545                    {
 01546                        AutoApprovedPrivateLinkServicesResult value = default;
 01547                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01548                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1549                        {
 01550                            value = null;
 1551                        }
 1552                        else
 1553                        {
 01554                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1555                        }
 01556                        return Response.FromValue(value, message.Response);
 1557                    }
 1558                default:
 01559                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1560            }
 01561        }
 1562
 1563        internal HttpMessage CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequest(string nextLink, st
 1564        {
 01565            var message = _pipeline.CreateMessage();
 01566            var request = message.Request;
 01567            request.Method = RequestMethod.Get;
 01568            var uri = new RawRequestUriBuilder();
 01569            uri.Reset(endpoint);
 01570            uri.AppendRawNextLink(nextLink, false);
 01571            request.Uri = uri;
 01572            return message;
 1573        }
 1574
 1575        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1576        /// <param name="nextLink"> The URL to the next page of results. </param>
 1577        /// <param name="location"> The location of the domain name. </param>
 1578        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1579        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1580        public async Task<Response<AutoApprovedPrivateLinkServicesResult>> ListAutoApprovedPrivateLinkServicesByResource
 1581        {
 01582            if (nextLink == null)
 1583            {
 01584                throw new ArgumentNullException(nameof(nextLink));
 1585            }
 01586            if (location == null)
 1587            {
 01588                throw new ArgumentNullException(nameof(location));
 1589            }
 01590            if (resourceGroupName == null)
 1591            {
 01592                throw new ArgumentNullException(nameof(resourceGroupName));
 1593            }
 1594
 01595            using var message = CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequest(nextLink, locati
 01596            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
 01597            switch (message.Response.Status)
 1598            {
 1599                case 200:
 1600                    {
 01601                        AutoApprovedPrivateLinkServicesResult value = default;
 01602                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, canc
 01603                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1604                        {
 01605                            value = null;
 1606                        }
 1607                        else
 1608                        {
 01609                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1610                        }
 01611                        return Response.FromValue(value, message.Response);
 1612                    }
 1613                default:
 01614                    throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(fa
 1615            }
 01616        }
 1617
 1618        /// <summary> Returns all of the private link service ids that can be linked to a Private Endpoint with auto app
 1619        /// <param name="nextLink"> The URL to the next page of results. </param>
 1620        /// <param name="location"> The location of the domain name. </param>
 1621        /// <param name="resourceGroupName"> The name of the resource group. </param>
 1622        /// <param name="cancellationToken"> The cancellation token to use. </param>
 1623        public Response<AutoApprovedPrivateLinkServicesResult> ListAutoApprovedPrivateLinkServicesByResourceGroupNextPag
 1624        {
 01625            if (nextLink == null)
 1626            {
 01627                throw new ArgumentNullException(nameof(nextLink));
 1628            }
 01629            if (location == null)
 1630            {
 01631                throw new ArgumentNullException(nameof(location));
 1632            }
 01633            if (resourceGroupName == null)
 1634            {
 01635                throw new ArgumentNullException(nameof(resourceGroupName));
 1636            }
 1637
 01638            using var message = CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequest(nextLink, locati
 01639            _pipeline.Send(message, cancellationToken);
 01640            switch (message.Response.Status)
 1641            {
 1642                case 200:
 1643                    {
 01644                        AutoApprovedPrivateLinkServicesResult value = default;
 01645                        using var document = JsonDocument.Parse(message.Response.ContentStream);
 01646                        if (document.RootElement.ValueKind == JsonValueKind.Null)
 1647                        {
 01648                            value = null;
 1649                        }
 1650                        else
 1651                        {
 01652                            value = AutoApprovedPrivateLinkServicesResult.DeserializeAutoApprovedPrivateLinkServicesResu
 1653                        }
 01654                        return Response.FromValue(value, message.Response);
 1655                    }
 1656                default:
 01657                    throw _clientDiagnostics.CreateRequestFailedException(message.Response);
 1658            }
 01659        }
 1660    }
 1661}

Methods/Properties

.ctor(...)
CreateDeleteRequest(...)
DeleteAsync()
Delete(...)
CreateGetRequest(...)
GetAsync()
Get(...)
CreateCreateOrUpdateRequest(...)
CreateOrUpdateAsync()
CreateOrUpdate(...)
CreateListRequest(...)
ListAsync()
List(...)
CreateListBySubscriptionRequest()
ListBySubscriptionAsync()
ListBySubscription(...)
CreateGetPrivateEndpointConnectionRequest(...)
GetPrivateEndpointConnectionAsync()
GetPrivateEndpointConnection(...)
CreateUpdatePrivateEndpointConnectionRequest(...)
UpdatePrivateEndpointConnectionAsync()
UpdatePrivateEndpointConnection(...)
CreateDeletePrivateEndpointConnectionRequest(...)
DeletePrivateEndpointConnectionAsync()
DeletePrivateEndpointConnection(...)
CreateListPrivateEndpointConnectionsRequest(...)
ListPrivateEndpointConnectionsAsync()
ListPrivateEndpointConnections(...)
CreateCheckPrivateLinkServiceVisibilityRequest(...)
CheckPrivateLinkServiceVisibilityAsync()
CheckPrivateLinkServiceVisibility(...)
CreateCheckPrivateLinkServiceVisibilityByResourceGroupRequest(...)
CheckPrivateLinkServiceVisibilityByResourceGroupAsync()
CheckPrivateLinkServiceVisibilityByResourceGroup(...)
CreateListAutoApprovedPrivateLinkServicesRequest(...)
ListAutoApprovedPrivateLinkServicesAsync()
ListAutoApprovedPrivateLinkServices(...)
CreateListAutoApprovedPrivateLinkServicesByResourceGroupRequest(...)
ListAutoApprovedPrivateLinkServicesByResourceGroupAsync()
ListAutoApprovedPrivateLinkServicesByResourceGroup(...)
CreateListNextPageRequest(...)
ListNextPageAsync()
ListNextPage(...)
CreateListBySubscriptionNextPageRequest(...)
ListBySubscriptionNextPageAsync()
ListBySubscriptionNextPage(...)
CreateListPrivateEndpointConnectionsNextPageRequest(...)
ListPrivateEndpointConnectionsNextPageAsync()
ListPrivateEndpointConnectionsNextPage(...)
CreateListAutoApprovedPrivateLinkServicesNextPageRequest(...)
ListAutoApprovedPrivateLinkServicesNextPageAsync()
ListAutoApprovedPrivateLinkServicesNextPage(...)
CreateListAutoApprovedPrivateLinkServicesByResourceGroupNextPageRequest(...)
ListAutoApprovedPrivateLinkServicesByResourceGroupNextPageAsync()
ListAutoApprovedPrivateLinkServicesByResourceGroupNextPage(...)