/// <summary> /// Returns all of the resource types that can be linked to a Private Endpoint /// in this subscription in this region. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// the location of the domain name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <AvailablePrivateEndpointType> > ListAsync(this IAvailablePrivateEndpointTypesOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }