code: public List<PacketCaptureResultInner> list(String resourceGroupName, String networkWatcherName) {
          return listWithServiceResponseAsync(resourceGroupName, networkWatcherName).toBlocking().single().body();
      }
docs: Lists all packet capture sessions within the specified resource group.
  
  @param resourceGroupName The name of the resource group.
  @param networkWatcherName The name of the Network Watcher resource.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the List&lt;PacketCaptureResultInner&gt; object if successful.