/// <summary> /// List all Extensions in the cluster. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> public static IPage <Extension> List(this IExtensionsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName) { return(operations.ListAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName).GetAwaiter().GetResult()); }