/// <summary> /// Gets the specified interface endpoint by resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='interfaceEndpointName'> /// The name of the interface endpoint. /// </param> /// <param name='expand'> /// Expands referenced resources. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <InterfaceEndpoint> GetAsync(this IInterfaceEndpointsOperations operations, string resourceGroupName, string interfaceEndpointName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, interfaceEndpointName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }