/// <summary> /// Gets a private link resource by a specified group name for a container /// registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='groupName'> /// The name of the private link resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <PrivateLinkResource> GetPrivateLinkResourceAsync(this IRegistriesOperations operations, string resourceGroupName, string registryName, string groupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPrivateLinkResourceWithHttpMessagesAsync(resourceGroupName, registryName, groupName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }