< Summary

Class:Microsoft.Azure.Management.Search.PrivateLinkResourcesOperationsExtensions
Assembly:Microsoft.Azure.Management.Search
File(s):C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\src\Generated\PrivateLinkResourcesOperationsExtensions.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:81
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ListSupported(...)-0%100%
ListSupportedAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\search\Microsoft.Azure.Management.Search\src\Generated\PrivateLinkResourcesOperationsExtensions.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.Management.Search
 12{
 13    using Microsoft.Rest;
 14    using Microsoft.Rest.Azure;
 15    using Models;
 16    using System.Collections;
 17    using System.Collections.Generic;
 18    using System.Threading;
 19    using System.Threading.Tasks;
 20
 21    /// <summary>
 22    /// Extension methods for PrivateLinkResourcesOperations.
 23    /// </summary>
 24    public static partial class PrivateLinkResourcesOperationsExtensions
 25    {
 26            /// <summary>
 27            /// Gets a list of all supported private link resource types for the given
 28            /// service.
 29            /// <see href="https://aka.ms/search-manage" />
 30            /// </summary>
 31            /// <param name='operations'>
 32            /// The operations group for this extension method.
 33            /// </param>
 34            /// <param name='resourceGroupName'>
 35            /// The name of the resource group within the current subscription. You can
 36            /// obtain this value from the Azure Resource Manager API or the portal.
 37            /// </param>
 38            /// <param name='searchServiceName'>
 39            /// The name of the Azure Cognitive Search service associated with the
 40            /// specified resource group.
 41            /// </param>
 42            /// <param name='searchManagementRequestOptions'>
 43            /// Additional parameters for the operation
 44            /// </param>
 45            public static IEnumerable<PrivateLinkResource> ListSupported(this IPrivateLinkResourcesOperations operations
 46            {
 047                return operations.ListSupportedAsync(resourceGroupName, searchServiceName, searchManagementRequestOption
 48            }
 49
 50            /// <summary>
 51            /// Gets a list of all supported private link resource types for the given
 52            /// service.
 53            /// <see href="https://aka.ms/search-manage" />
 54            /// </summary>
 55            /// <param name='operations'>
 56            /// The operations group for this extension method.
 57            /// </param>
 58            /// <param name='resourceGroupName'>
 59            /// The name of the resource group within the current subscription. You can
 60            /// obtain this value from the Azure Resource Manager API or the portal.
 61            /// </param>
 62            /// <param name='searchServiceName'>
 63            /// The name of the Azure Cognitive Search service associated with the
 64            /// specified resource group.
 65            /// </param>
 66            /// <param name='searchManagementRequestOptions'>
 67            /// Additional parameters for the operation
 68            /// </param>
 69            /// <param name='cancellationToken'>
 70            /// The cancellation token.
 71            /// </param>
 72            public static async Task<IEnumerable<PrivateLinkResource>> ListSupportedAsync(this IPrivateLinkResourcesOper
 73            {
 074                using (var _result = await operations.ListSupportedWithHttpMessagesAsync(resourceGroupName, searchServic
 75                {
 076                    return _result.Body;
 77                }
 078            }
 79
 80    }
 81}